configure revision 41c30155
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXfont 1.4.5.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550as_awk_strverscmp='
551  # Use only awk features that work with 7th edition Unix awk (1978).
552  # My, what an old awk you have, Mr. Solaris!
553  END {
554    while (length(v1) && length(v2)) {
555      # Set d1 to be the next thing to compare from v1, and likewise for d2.
556      # Normally this is a single character, but if v1 and v2 contain digits,
557      # compare them as integers and fractions as strverscmp does.
558      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559	# Split v1 and v2 into their leading digit string components d1 and d2,
560	# and advance v1 and v2 past the leading digit strings.
561	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565	if (d1 ~ /^0/) {
566	  if (d2 ~ /^0/) {
567	    # Compare two fractions.
568	    while (d1 ~ /^0/ && d2 ~ /^0/) {
569	      d1 = substr(d1, 2); len1--
570	      d2 = substr(d2, 2); len2--
571	    }
572	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573	      # The two components differ in length, and the common prefix
574	      # contains only leading zeros.  Consider the longer to be less.
575	      d1 = -len1
576	      d2 = -len2
577	    } else {
578	      # Otherwise, compare as strings.
579	      d1 = "x" d1
580	      d2 = "x" d2
581	    }
582	  } else {
583	    # A fraction is less than an integer.
584	    exit 1
585	  }
586	} else {
587	  if (d2 ~ /^0/) {
588	    # An integer is greater than a fraction.
589	    exit 2
590	  } else {
591	    # Compare two integers.
592	    d1 += 0
593	    d2 += 0
594	  }
595	}
596      } else {
597	# The normal case, without worrying about digits.
598	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600      }
601      if (d1 < d2) exit 1
602      if (d1 > d2) exit 2
603    }
604    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605    # which mishandles some comparisons of empty strings to integers.
606    if (length(v2)) exit 1
607    if (length(v1)) exit 2
608  }
609'
610
611test -n "$DJDIR" || exec 7<&0 </dev/null
612exec 6>&1
613
614# Name of the host.
615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616# so uname gets run too.
617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619#
620# Initializations.
621#
622ac_default_prefix=/usr/local
623ac_clean_files=
624ac_config_libobj_dir=.
625LIBOBJS=
626cross_compiling=no
627subdirs=
628MFLAGS=
629MAKEFLAGS=
630
631# Identity of this package.
632PACKAGE_NAME='libXfont'
633PACKAGE_TARNAME='libXfont'
634PACKAGE_VERSION='1.4.5'
635PACKAGE_STRING='libXfont 1.4.5'
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_PCFFORMAT_FALSE
695XFONT_PCFFORMAT_TRUE
696XFONT_BUILTINS_FALSE
697XFONT_BUILTINS_TRUE
698Z_LIBS
699X_BZIP2_FONT_COMPRESSION_FALSE
700X_BZIP2_FONT_COMPRESSION_TRUE
701X_GZIP_FONT_COMPRESSION
702FREETYPE_REQUIRES
703ft_config
704FREETYPE_LIBS
705FREETYPE_CFLAGS
706XFONT_FREETYPE_FALSE
707XFONT_FREETYPE_TRUE
708HAVE_STYLESHEETS_FALSE
709HAVE_STYLESHEETS_TRUE
710XSL_STYLESHEET
711STYLESHEET_SRCDIR
712XORG_SGML_PATH
713HAVE_FOP_FALSE
714HAVE_FOP_TRUE
715FOP
716HAVE_XMLTO_FALSE
717HAVE_XMLTO_TRUE
718HAVE_XMLTO_TEXT_FALSE
719HAVE_XMLTO_TEXT_TRUE
720XMLTO
721ENABLE_DEVEL_DOCS_FALSE
722ENABLE_DEVEL_DOCS_TRUE
723AM_BACKSLASH
724AM_DEFAULT_VERBOSITY
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
745CPP
746OTOOL64
747OTOOL
748LIPO
749NMEDIT
750DSYMUTIL
751MANIFEST_TOOL
752RANLIB
753ac_ct_AR
754AR
755DLLTOOL
756OBJDUMP
757LN_S
758NM
759ac_ct_DUMPBIN
760DUMPBIN
761LD
762FGREP
763EGREP
764GREP
765SED
766am__fastdepCC_FALSE
767am__fastdepCC_TRUE
768CCDEPMODE
769AMDEPBACKSLASH
770AMDEP_FALSE
771AMDEP_TRUE
772am__quote
773am__include
774DEPDIR
775OBJEXT
776EXEEXT
777ac_ct_CC
778CPPFLAGS
779LDFLAGS
780CFLAGS
781CC
782host_os
783host_vendor
784host_cpu
785host
786build_os
787build_vendor
788build_cpu
789build
790LIBTOOL
791MAINT
792MAINTAINER_MODE_FALSE
793MAINTAINER_MODE_TRUE
794am__untar
795am__tar
796AMTAR
797am__leading_dot
798SET_MAKE
799AWK
800mkdir_p
801MKDIR_P
802INSTALL_STRIP_PROGRAM
803STRIP
804install_sh
805MAKEINFO
806AUTOHEADER
807AUTOMAKE
808AUTOCONF
809ACLOCAL
810VERSION
811PACKAGE
812CYGPATH_W
813am__isrc
814INSTALL_DATA
815INSTALL_SCRIPT
816INSTALL_PROGRAM
817target_alias
818host_alias
819build_alias
820LIBS
821ECHO_T
822ECHO_N
823ECHO_C
824DEFS
825mandir
826localedir
827libdir
828psdir
829pdfdir
830dvidir
831htmldir
832infodir
833docdir
834oldincludedir
835includedir
836localstatedir
837sharedstatedir
838sysconfdir
839datadir
840datarootdir
841libexecdir
842sbindir
843bindir
844program_transform_name
845prefix
846exec_prefix
847PACKAGE_URL
848PACKAGE_BUGREPORT
849PACKAGE_STRING
850PACKAGE_VERSION
851PACKAGE_TARNAME
852PACKAGE_NAME
853PATH_SEPARATOR
854SHELL'
855ac_subst_files=''
856ac_user_opts='
857enable_option_checking
858enable_maintainer_mode
859enable_shared
860enable_static
861with_pic
862enable_fast_install
863enable_dependency_tracking
864with_gnu_ld
865with_sysroot
866enable_libtool_lock
867enable_selective_werror
868enable_strict_compilation
869enable_silent_rules
870enable_devel_docs
871with_xmlto
872with_fop
873enable_freetype
874with_freetype_config
875with_bzip2
876enable_builtins
877enable_pcfformat
878enable_bdfformat
879enable_snfformat
880enable_fc
881enable_unix_transport
882enable_tcp_transport
883enable_ipv6
884enable_local_transport
885'
886      ac_precious_vars='build_alias
887host_alias
888target_alias
889CC
890CFLAGS
891LDFLAGS
892LIBS
893CPPFLAGS
894CPP
895PKG_CONFIG
896XMLTO
897FOP
898FREETYPE_CFLAGS
899FREETYPE_LIBS
900XFONT_CFLAGS
901XFONT_LIBS'
902
903
904# Initialize some variables set by options.
905ac_init_help=
906ac_init_version=false
907ac_unrecognized_opts=
908ac_unrecognized_sep=
909# The variables have the same names as the options, with
910# dashes changed to underlines.
911cache_file=/dev/null
912exec_prefix=NONE
913no_create=
914no_recursion=
915prefix=NONE
916program_prefix=NONE
917program_suffix=NONE
918program_transform_name=s,x,x,
919silent=
920site=
921srcdir=
922verbose=
923x_includes=NONE
924x_libraries=NONE
925
926# Installation directory options.
927# These are left unexpanded so users can "make install exec_prefix=/foo"
928# and all the variables that are supposed to be based on exec_prefix
929# by default will actually change.
930# Use braces instead of parens because sh, perl, etc. also accept them.
931# (The list follows the same order as the GNU Coding Standards.)
932bindir='${exec_prefix}/bin'
933sbindir='${exec_prefix}/sbin'
934libexecdir='${exec_prefix}/libexec'
935datarootdir='${prefix}/share'
936datadir='${datarootdir}'
937sysconfdir='${prefix}/etc'
938sharedstatedir='${prefix}/com'
939localstatedir='${prefix}/var'
940includedir='${prefix}/include'
941oldincludedir='/usr/include'
942docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943infodir='${datarootdir}/info'
944htmldir='${docdir}'
945dvidir='${docdir}'
946pdfdir='${docdir}'
947psdir='${docdir}'
948libdir='${exec_prefix}/lib'
949localedir='${datarootdir}/locale'
950mandir='${datarootdir}/man'
951
952ac_prev=
953ac_dashdash=
954for ac_option
955do
956  # If the previous option needs an argument, assign it.
957  if test -n "$ac_prev"; then
958    eval $ac_prev=\$ac_option
959    ac_prev=
960    continue
961  fi
962
963  case $ac_option in
964  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965  *=)   ac_optarg= ;;
966  *)    ac_optarg=yes ;;
967  esac
968
969  # Accept the important Cygnus configure options, so we can diagnose typos.
970
971  case $ac_dashdash$ac_option in
972  --)
973    ac_dashdash=yes ;;
974
975  -bindir | --bindir | --bindi | --bind | --bin | --bi)
976    ac_prev=bindir ;;
977  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978    bindir=$ac_optarg ;;
979
980  -build | --build | --buil | --bui | --bu)
981    ac_prev=build_alias ;;
982  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983    build_alias=$ac_optarg ;;
984
985  -cache-file | --cache-file | --cache-fil | --cache-fi \
986  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987    ac_prev=cache_file ;;
988  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990    cache_file=$ac_optarg ;;
991
992  --config-cache | -C)
993    cache_file=config.cache ;;
994
995  -datadir | --datadir | --datadi | --datad)
996    ac_prev=datadir ;;
997  -datadir=* | --datadir=* | --datadi=* | --datad=*)
998    datadir=$ac_optarg ;;
999
1000  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001  | --dataroo | --dataro | --datar)
1002    ac_prev=datarootdir ;;
1003  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005    datarootdir=$ac_optarg ;;
1006
1007  -disable-* | --disable-*)
1008    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009    # Reject names that are not valid shell variable names.
1010    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011      as_fn_error $? "invalid feature name: $ac_useropt"
1012    ac_useropt_orig=$ac_useropt
1013    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014    case $ac_user_opts in
1015      *"
1016"enable_$ac_useropt"
1017"*) ;;
1018      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019	 ac_unrecognized_sep=', ';;
1020    esac
1021    eval enable_$ac_useropt=no ;;
1022
1023  -docdir | --docdir | --docdi | --doc | --do)
1024    ac_prev=docdir ;;
1025  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026    docdir=$ac_optarg ;;
1027
1028  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029    ac_prev=dvidir ;;
1030  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031    dvidir=$ac_optarg ;;
1032
1033  -enable-* | --enable-*)
1034    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035    # Reject names that are not valid shell variable names.
1036    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037      as_fn_error $? "invalid feature name: $ac_useropt"
1038    ac_useropt_orig=$ac_useropt
1039    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040    case $ac_user_opts in
1041      *"
1042"enable_$ac_useropt"
1043"*) ;;
1044      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045	 ac_unrecognized_sep=', ';;
1046    esac
1047    eval enable_$ac_useropt=\$ac_optarg ;;
1048
1049  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051  | --exec | --exe | --ex)
1052    ac_prev=exec_prefix ;;
1053  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055  | --exec=* | --exe=* | --ex=*)
1056    exec_prefix=$ac_optarg ;;
1057
1058  -gas | --gas | --ga | --g)
1059    # Obsolete; use --with-gas.
1060    with_gas=yes ;;
1061
1062  -help | --help | --hel | --he | -h)
1063    ac_init_help=long ;;
1064  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065    ac_init_help=recursive ;;
1066  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067    ac_init_help=short ;;
1068
1069  -host | --host | --hos | --ho)
1070    ac_prev=host_alias ;;
1071  -host=* | --host=* | --hos=* | --ho=*)
1072    host_alias=$ac_optarg ;;
1073
1074  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075    ac_prev=htmldir ;;
1076  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077  | --ht=*)
1078    htmldir=$ac_optarg ;;
1079
1080  -includedir | --includedir | --includedi | --included | --include \
1081  | --includ | --inclu | --incl | --inc)
1082    ac_prev=includedir ;;
1083  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084  | --includ=* | --inclu=* | --incl=* | --inc=*)
1085    includedir=$ac_optarg ;;
1086
1087  -infodir | --infodir | --infodi | --infod | --info | --inf)
1088    ac_prev=infodir ;;
1089  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090    infodir=$ac_optarg ;;
1091
1092  -libdir | --libdir | --libdi | --libd)
1093    ac_prev=libdir ;;
1094  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095    libdir=$ac_optarg ;;
1096
1097  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098  | --libexe | --libex | --libe)
1099    ac_prev=libexecdir ;;
1100  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101  | --libexe=* | --libex=* | --libe=*)
1102    libexecdir=$ac_optarg ;;
1103
1104  -localedir | --localedir | --localedi | --localed | --locale)
1105    ac_prev=localedir ;;
1106  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107    localedir=$ac_optarg ;;
1108
1109  -localstatedir | --localstatedir | --localstatedi | --localstated \
1110  | --localstate | --localstat | --localsta | --localst | --locals)
1111    ac_prev=localstatedir ;;
1112  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114    localstatedir=$ac_optarg ;;
1115
1116  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117    ac_prev=mandir ;;
1118  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119    mandir=$ac_optarg ;;
1120
1121  -nfp | --nfp | --nf)
1122    # Obsolete; use --without-fp.
1123    with_fp=no ;;
1124
1125  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126  | --no-cr | --no-c | -n)
1127    no_create=yes ;;
1128
1129  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131    no_recursion=yes ;;
1132
1133  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135  | --oldin | --oldi | --old | --ol | --o)
1136    ac_prev=oldincludedir ;;
1137  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140    oldincludedir=$ac_optarg ;;
1141
1142  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143    ac_prev=prefix ;;
1144  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145    prefix=$ac_optarg ;;
1146
1147  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148  | --program-pre | --program-pr | --program-p)
1149    ac_prev=program_prefix ;;
1150  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152    program_prefix=$ac_optarg ;;
1153
1154  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155  | --program-suf | --program-su | --program-s)
1156    ac_prev=program_suffix ;;
1157  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159    program_suffix=$ac_optarg ;;
1160
1161  -program-transform-name | --program-transform-name \
1162  | --program-transform-nam | --program-transform-na \
1163  | --program-transform-n | --program-transform- \
1164  | --program-transform | --program-transfor \
1165  | --program-transfo | --program-transf \
1166  | --program-trans | --program-tran \
1167  | --progr-tra | --program-tr | --program-t)
1168    ac_prev=program_transform_name ;;
1169  -program-transform-name=* | --program-transform-name=* \
1170  | --program-transform-nam=* | --program-transform-na=* \
1171  | --program-transform-n=* | --program-transform-=* \
1172  | --program-transform=* | --program-transfor=* \
1173  | --program-transfo=* | --program-transf=* \
1174  | --program-trans=* | --program-tran=* \
1175  | --progr-tra=* | --program-tr=* | --program-t=*)
1176    program_transform_name=$ac_optarg ;;
1177
1178  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179    ac_prev=pdfdir ;;
1180  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181    pdfdir=$ac_optarg ;;
1182
1183  -psdir | --psdir | --psdi | --psd | --ps)
1184    ac_prev=psdir ;;
1185  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186    psdir=$ac_optarg ;;
1187
1188  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189  | -silent | --silent | --silen | --sile | --sil)
1190    silent=yes ;;
1191
1192  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193    ac_prev=sbindir ;;
1194  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195  | --sbi=* | --sb=*)
1196    sbindir=$ac_optarg ;;
1197
1198  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200  | --sharedst | --shareds | --shared | --share | --shar \
1201  | --sha | --sh)
1202    ac_prev=sharedstatedir ;;
1203  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206  | --sha=* | --sh=*)
1207    sharedstatedir=$ac_optarg ;;
1208
1209  -site | --site | --sit)
1210    ac_prev=site ;;
1211  -site=* | --site=* | --sit=*)
1212    site=$ac_optarg ;;
1213
1214  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215    ac_prev=srcdir ;;
1216  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217    srcdir=$ac_optarg ;;
1218
1219  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220  | --syscon | --sysco | --sysc | --sys | --sy)
1221    ac_prev=sysconfdir ;;
1222  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224    sysconfdir=$ac_optarg ;;
1225
1226  -target | --target | --targe | --targ | --tar | --ta | --t)
1227    ac_prev=target_alias ;;
1228  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229    target_alias=$ac_optarg ;;
1230
1231  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232    verbose=yes ;;
1233
1234  -version | --version | --versio | --versi | --vers | -V)
1235    ac_init_version=: ;;
1236
1237  -with-* | --with-*)
1238    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239    # Reject names that are not valid shell variable names.
1240    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241      as_fn_error $? "invalid package name: $ac_useropt"
1242    ac_useropt_orig=$ac_useropt
1243    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244    case $ac_user_opts in
1245      *"
1246"with_$ac_useropt"
1247"*) ;;
1248      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249	 ac_unrecognized_sep=', ';;
1250    esac
1251    eval with_$ac_useropt=\$ac_optarg ;;
1252
1253  -without-* | --without-*)
1254    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255    # Reject names that are not valid shell variable names.
1256    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257      as_fn_error $? "invalid package name: $ac_useropt"
1258    ac_useropt_orig=$ac_useropt
1259    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260    case $ac_user_opts in
1261      *"
1262"with_$ac_useropt"
1263"*) ;;
1264      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265	 ac_unrecognized_sep=', ';;
1266    esac
1267    eval with_$ac_useropt=no ;;
1268
1269  --x)
1270    # Obsolete; use --with-x.
1271    with_x=yes ;;
1272
1273  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1274  | --x-incl | --x-inc | --x-in | --x-i)
1275    ac_prev=x_includes ;;
1276  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1277  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1278    x_includes=$ac_optarg ;;
1279
1280  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1281  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1282    ac_prev=x_libraries ;;
1283  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1284  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1285    x_libraries=$ac_optarg ;;
1286
1287  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1288Try \`$0 --help' for more information"
1289    ;;
1290
1291  *=*)
1292    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293    # Reject names that are not valid shell variable names.
1294    case $ac_envvar in #(
1295      '' | [0-9]* | *[!_$as_cr_alnum]* )
1296      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1297    esac
1298    eval $ac_envvar=\$ac_optarg
1299    export $ac_envvar ;;
1300
1301  *)
1302    # FIXME: should be removed in autoconf 3.0.
1303    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1307    ;;
1308
1309  esac
1310done
1311
1312if test -n "$ac_prev"; then
1313  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1314  as_fn_error $? "missing argument to $ac_option"
1315fi
1316
1317if test -n "$ac_unrecognized_opts"; then
1318  case $enable_option_checking in
1319    no) ;;
1320    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1321    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322  esac
1323fi
1324
1325# Check all directory arguments for consistency.
1326for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327		datadir sysconfdir sharedstatedir localstatedir includedir \
1328		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329		libdir localedir mandir
1330do
1331  eval ac_val=\$$ac_var
1332  # Remove trailing slashes.
1333  case $ac_val in
1334    */ )
1335      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336      eval $ac_var=\$ac_val;;
1337  esac
1338  # Be sure to have absolute directory names.
1339  case $ac_val in
1340    [\\/$]* | ?:[\\/]* )  continue;;
1341    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342  esac
1343  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1344done
1345
1346# There might be people who depend on the old broken behavior: `$host'
1347# used to hold the argument of --host etc.
1348# FIXME: To remove some day.
1349build=$build_alias
1350host=$host_alias
1351target=$target_alias
1352
1353# FIXME: To remove some day.
1354if test "x$host_alias" != x; then
1355  if test "x$build_alias" = x; then
1356    cross_compiling=maybe
1357    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1358    If a cross compiler is detected then cross compile mode will be used" >&2
1359  elif test "x$build_alias" != "x$host_alias"; then
1360    cross_compiling=yes
1361  fi
1362fi
1363
1364ac_tool_prefix=
1365test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367test "$silent" = yes && exec 6>/dev/null
1368
1369
1370ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371ac_ls_di=`ls -di .` &&
1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373  as_fn_error $? "working directory cannot be determined"
1374test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375  as_fn_error $? "pwd does not report name of working directory"
1376
1377
1378# Find the source files, if location was not specified.
1379if test -z "$srcdir"; then
1380  ac_srcdir_defaulted=yes
1381  # Try the directory containing this script, then the parent directory.
1382  ac_confdir=`$as_dirname -- "$as_myself" ||
1383$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384	 X"$as_myself" : 'X\(//\)[^/]' \| \
1385	 X"$as_myself" : 'X\(//\)$' \| \
1386	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387$as_echo X"$as_myself" |
1388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389	    s//\1/
1390	    q
1391	  }
1392	  /^X\(\/\/\)[^/].*/{
1393	    s//\1/
1394	    q
1395	  }
1396	  /^X\(\/\/\)$/{
1397	    s//\1/
1398	    q
1399	  }
1400	  /^X\(\/\).*/{
1401	    s//\1/
1402	    q
1403	  }
1404	  s/.*/./; q'`
1405  srcdir=$ac_confdir
1406  if test ! -r "$srcdir/$ac_unique_file"; then
1407    srcdir=..
1408  fi
1409else
1410  ac_srcdir_defaulted=no
1411fi
1412if test ! -r "$srcdir/$ac_unique_file"; then
1413  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415fi
1416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417ac_abs_confdir=`(
1418	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419	pwd)`
1420# When building in place, set srcdir=.
1421if test "$ac_abs_confdir" = "$ac_pwd"; then
1422  srcdir=.
1423fi
1424# Remove unnecessary trailing slashes from srcdir.
1425# Double slashes in file names in object file debugging info
1426# mess up M-x gdb in Emacs.
1427case $srcdir in
1428*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429esac
1430for ac_var in $ac_precious_vars; do
1431  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432  eval ac_env_${ac_var}_value=\$${ac_var}
1433  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435done
1436
1437#
1438# Report the --help message.
1439#
1440if test "$ac_init_help" = "long"; then
1441  # Omit some internal or obsolete options to make the list less imposing.
1442  # This message is too long to be a string in the A/UX 3.1 sh.
1443  cat <<_ACEOF
1444\`configure' configures libXfont 1.4.5 to adapt to many kinds of systems.
1445
1446Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449VAR=VALUE.  See below for descriptions of some of the useful variables.
1450
1451Defaults for the options are specified in brackets.
1452
1453Configuration:
1454  -h, --help              display this help and exit
1455      --help=short        display options specific to this package
1456      --help=recursive    display the short help of all the included packages
1457  -V, --version           display version information and exit
1458  -q, --quiet, --silent   do not print \`checking ...' messages
1459      --cache-file=FILE   cache test results in FILE [disabled]
1460  -C, --config-cache      alias for \`--cache-file=config.cache'
1461  -n, --no-create         do not create output files
1462      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1463
1464Installation directories:
1465  --prefix=PREFIX         install architecture-independent files in PREFIX
1466                          [$ac_default_prefix]
1467  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1468                          [PREFIX]
1469
1470By default, \`make install' will install all the files in
1471\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1472an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473for instance \`--prefix=\$HOME'.
1474
1475For better control, use the options below.
1476
1477Fine tuning of the installation directories:
1478  --bindir=DIR            user executables [EPREFIX/bin]
1479  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1480  --libexecdir=DIR        program executables [EPREFIX/libexec]
1481  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1482  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1483  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1484  --libdir=DIR            object code libraries [EPREFIX/lib]
1485  --includedir=DIR        C header files [PREFIX/include]
1486  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1487  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1488  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1489  --infodir=DIR           info documentation [DATAROOTDIR/info]
1490  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1491  --mandir=DIR            man documentation [DATAROOTDIR/man]
1492  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXfont]
1493  --htmldir=DIR           html documentation [DOCDIR]
1494  --dvidir=DIR            dvi documentation [DOCDIR]
1495  --pdfdir=DIR            pdf documentation [DOCDIR]
1496  --psdir=DIR             ps documentation [DOCDIR]
1497_ACEOF
1498
1499  cat <<\_ACEOF
1500
1501Program names:
1502  --program-prefix=PREFIX            prepend PREFIX to installed program names
1503  --program-suffix=SUFFIX            append SUFFIX to installed program names
1504  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1505
1506System types:
1507  --build=BUILD     configure for building on BUILD [guessed]
1508  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1509_ACEOF
1510fi
1511
1512if test -n "$ac_init_help"; then
1513  case $ac_init_help in
1514     short | recursive ) echo "Configuration of libXfont 1.4.5:";;
1515   esac
1516  cat <<\_ACEOF
1517
1518Optional Features:
1519  --disable-option-checking  ignore unrecognized --enable/--with options
1520  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1521  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1522  --enable-maintainer-mode  enable make rules and dependencies not useful
1523			  (and sometimes confusing) to the casual installer
1524  --enable-shared[=PKGS]  build shared libraries [default=yes]
1525  --enable-static[=PKGS]  build static libraries [default=yes]
1526  --enable-fast-install[=PKGS]
1527                          optimize for fast installation [default=yes]
1528  --disable-dependency-tracking  speeds up one-time build
1529  --enable-dependency-tracking   do not reject slow dependency extractors
1530  --disable-libtool-lock  avoid locking (might break parallel builds)
1531  --disable-selective-werror
1532                          Turn off selective compiler errors. (default:
1533                          enabled)
1534  --enable-strict-compilation
1535                          Enable all warnings from compiler and make them
1536                          errors (default: disabled)
1537  --enable-silent-rules          less verbose build output (undo: `make V=1')
1538  --disable-silent-rules         verbose build output (undo: `make V=0')
1539  --enable-devel-docs     Enable building the developer documentation
1540                          (default: yes)
1541 --disable-freetype
1542 --disable-builtins
1543 --disable-pcfformat
1544 --disable-bdfformat
1545 --disable-snfformat
1546 --disable-fc
1547  --enable-unix-transport Enable UNIX domain socket transport
1548  --enable-tcp-transport  Enable TCP socket transport
1549  --enable-ipv6           Enable IPv6 support
1550  --enable-local-transport
1551                          Enable os-specific local transport
1552
1553Optional Packages:
1554  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556  --with-pic              try to use only PIC/non-PIC objects [default=use
1557                          both]
1558  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1559  --with-sysroot=DIR Search for dependent libraries within DIR
1560                        (or the compiler's sysroot if not specified).
1561  --with-xmlto            Use xmlto to regenerate documentation (default:
1562                          auto)
1563  --with-fop              Use fop to regenerate documentation (default: auto)
1564  --with-freetype-config=PROG   Use FreeType configuration program PROG
1565  --with-bzip2            Support bzip2 compressed bitmap fonts
1566
1567Some influential environment variables:
1568  CC          C compiler command
1569  CFLAGS      C compiler flags
1570  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571              nonstandard directory <lib dir>
1572  LIBS        libraries to pass to the linker, e.g. -l<library>
1573  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574              you have headers in a nonstandard directory <include dir>
1575  CPP         C preprocessor
1576  PKG_CONFIG  path to pkg-config utility
1577  XMLTO       Path to xmlto command
1578  FOP         Path to fop command
1579  FREETYPE_CFLAGS
1580              C compiler flags for FREETYPE, overriding pkg-config
1581  FREETYPE_LIBS
1582              linker flags for FREETYPE, overriding pkg-config
1583  XFONT_CFLAGS
1584              C compiler flags for XFONT, overriding pkg-config
1585  XFONT_LIBS  linker flags for XFONT, overriding pkg-config
1586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
1590Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1591_ACEOF
1592ac_status=$?
1593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596  # If there are subdirs, report their specific --help.
1597  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598    test -d "$ac_dir" ||
1599      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600      continue
1601    ac_builddir=.
1602
1603case "$ac_dir" in
1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605*)
1606  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607  # A ".." for each directory in $ac_dir_suffix.
1608  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609  case $ac_top_builddir_sub in
1610  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612  esac ;;
1613esac
1614ac_abs_top_builddir=$ac_pwd
1615ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616# for backward compatibility:
1617ac_top_builddir=$ac_top_build_prefix
1618
1619case $srcdir in
1620  .)  # We are building in place.
1621    ac_srcdir=.
1622    ac_top_srcdir=$ac_top_builddir_sub
1623    ac_abs_top_srcdir=$ac_pwd ;;
1624  [\\/]* | ?:[\\/]* )  # Absolute name.
1625    ac_srcdir=$srcdir$ac_dir_suffix;
1626    ac_top_srcdir=$srcdir
1627    ac_abs_top_srcdir=$srcdir ;;
1628  *) # Relative name.
1629    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630    ac_top_srcdir=$ac_top_build_prefix$srcdir
1631    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632esac
1633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635    cd "$ac_dir" || { ac_status=$?; continue; }
1636    # Check for guested configure.
1637    if test -f "$ac_srcdir/configure.gnu"; then
1638      echo &&
1639      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640    elif test -f "$ac_srcdir/configure"; then
1641      echo &&
1642      $SHELL "$ac_srcdir/configure" --help=recursive
1643    else
1644      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645    fi || ac_status=$?
1646    cd "$ac_pwd" || { ac_status=$?; break; }
1647  done
1648fi
1649
1650test -n "$ac_init_help" && exit $ac_status
1651if $ac_init_version; then
1652  cat <<\_ACEOF
1653libXfont configure 1.4.5
1654generated by GNU Autoconf 2.68
1655
1656Copyright (C) 2010 Free Software Foundation, Inc.
1657This configure script is free software; the Free Software Foundation
1658gives unlimited permission to copy, distribute and modify it.
1659_ACEOF
1660  exit
1661fi
1662
1663## ------------------------ ##
1664## Autoconf initialization. ##
1665## ------------------------ ##
1666
1667# ac_fn_c_try_compile LINENO
1668# --------------------------
1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_compile ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  rm -f conftest.$ac_objext
1674  if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677  *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681  (eval "$ac_compile") 2>conftest.err
1682  ac_status=$?
1683  if test -s conftest.err; then
1684    grep -v '^ *+' conftest.err >conftest.er1
1685    cat conftest.er1 >&5
1686    mv -f conftest.er1 conftest.err
1687  fi
1688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689  test $ac_status = 0; } && {
1690	 test -z "$ac_c_werror_flag" ||
1691	 test ! -s conftest.err
1692       } && test -s conftest.$ac_objext; then :
1693  ac_retval=0
1694else
1695  $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698	ac_retval=1
1699fi
1700  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701  as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_compile
1704
1705# ac_fn_c_try_link LINENO
1706# -----------------------
1707# Try to link conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_link ()
1709{
1710  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711  rm -f conftest.$ac_objext conftest$ac_exeext
1712  if { { ac_try="$ac_link"
1713case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_link") 2>conftest.err
1720  ac_status=$?
1721  if test -s conftest.err; then
1722    grep -v '^ *+' conftest.err >conftest.er1
1723    cat conftest.er1 >&5
1724    mv -f conftest.er1 conftest.err
1725  fi
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } && {
1728	 test -z "$ac_c_werror_flag" ||
1729	 test ! -s conftest.err
1730       } && test -s conftest$ac_exeext && {
1731	 test "$cross_compiling" = yes ||
1732	 $as_test_x conftest$ac_exeext
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  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743  # interfere with the next link command; also delete a directory that is
1744  # left behind by Apple's compiler.  We do this before executing the actions.
1745  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_link
1750
1751# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752# -------------------------------------------------------
1753# Tests whether HEADER exists and can be compiled using the include files in
1754# INCLUDES, setting the cache variable VAR accordingly.
1755ac_fn_c_check_header_compile ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if eval \${$3+:} false; then :
1761  $as_echo_n "(cached) " >&6
1762else
1763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765$4
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"; then :
1769  eval "$3=yes"
1770else
1771  eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774fi
1775eval ac_res=\$$3
1776	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780} # ac_fn_c_check_header_compile
1781
1782# ac_fn_c_try_cpp LINENO
1783# ----------------------
1784# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_cpp ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  if { { ac_try="$ac_cpp conftest.$ac_ext"
1789case "(($ac_try" in
1790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791  *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796  ac_status=$?
1797  if test -s conftest.err; then
1798    grep -v '^ *+' conftest.err >conftest.er1
1799    cat conftest.er1 >&5
1800    mv -f conftest.er1 conftest.err
1801  fi
1802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803  test $ac_status = 0; } > conftest.i && {
1804	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1805	 test ! -s conftest.err
1806       }; then :
1807  ac_retval=0
1808else
1809  $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812    ac_retval=1
1813fi
1814  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815  as_fn_set_status $ac_retval
1816
1817} # ac_fn_c_try_cpp
1818
1819# ac_fn_c_try_run LINENO
1820# ----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822# that executables *can* be run.
1823ac_fn_c_try_run ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829  *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833  (eval "$ac_link") 2>&5
1834  ac_status=$?
1835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837  { { case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_try") 2>&5
1844  ac_status=$?
1845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846  test $ac_status = 0; }; }; then :
1847  ac_retval=0
1848else
1849  $as_echo "$as_me: program exited with status $ac_status" >&5
1850       $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853       ac_retval=$ac_status
1854fi
1855  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857  as_fn_set_status $ac_retval
1858
1859} # ac_fn_c_try_run
1860
1861# ac_fn_c_check_func LINENO FUNC VAR
1862# ----------------------------------
1863# Tests whether FUNC exists, setting the cache variable VAR accordingly
1864ac_fn_c_check_func ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1876#define $2 innocuous_$2
1877
1878/* System header to define __stub macros and hopefully few prototypes,
1879    which can conflict with char $2 (); below.
1880    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881    <limits.h> exists even on freestanding compilers.  */
1882
1883#ifdef __STDC__
1884# include <limits.h>
1885#else
1886# include <assert.h>
1887#endif
1888
1889#undef $2
1890
1891/* Override any GCC internal prototype to avoid an error.
1892   Use char because int might match the return type of a GCC
1893   builtin and then its argument prototype would still apply.  */
1894#ifdef __cplusplus
1895extern "C"
1896#endif
1897char $2 ();
1898/* The GNU C library defines this for functions which it implements
1899    to always fail with ENOSYS.  Some functions are actually named
1900    something starting with __ and the normal name is an alias.  */
1901#if defined __stub_$2 || defined __stub___$2
1902choke me
1903#endif
1904
1905int
1906main ()
1907{
1908return $2 ();
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_link "$LINENO"; then :
1914  eval "$3=yes"
1915else
1916  eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext \
1919    conftest$ac_exeext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_func
1927
1928# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1929# ---------------------------------------------
1930# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1931# accordingly.
1932ac_fn_c_check_decl ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  as_decl_name=`echo $2|sed 's/ *(.*//'`
1936  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1938$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1939if eval \${$3+:} false; then :
1940  $as_echo_n "(cached) " >&6
1941else
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$4
1945int
1946main ()
1947{
1948#ifndef $as_decl_name
1949#ifdef __cplusplus
1950  (void) $as_decl_use;
1951#else
1952  (void) $as_decl_name;
1953#endif
1954#endif
1955
1956  ;
1957  return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961  eval "$3=yes"
1962else
1963  eval "$3=no"
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_decl
1973
1974# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1975# -------------------------------------------------------
1976# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1977# the include files in INCLUDES and setting the cache variable VAR
1978# accordingly.
1979ac_fn_c_check_header_mongrel ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  if eval \${$3+:} false; then :
1983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984$as_echo_n "checking for $2... " >&6; }
1985if eval \${$3+:} false; then :
1986  $as_echo_n "(cached) " >&6
1987fi
1988eval ac_res=\$$3
1989	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991else
1992  # Is the header compilable?
1993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1994$as_echo_n "checking $2 usability... " >&6; }
1995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h.  */
1997$4
1998#include <$2>
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001  ac_header_compiler=yes
2002else
2003  ac_header_compiler=no
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2007$as_echo "$ac_header_compiler" >&6; }
2008
2009# Is the header present?
2010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2011$as_echo_n "checking $2 presence... " >&6; }
2012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h.  */
2014#include <$2>
2015_ACEOF
2016if ac_fn_c_try_cpp "$LINENO"; then :
2017  ac_header_preproc=yes
2018else
2019  ac_header_preproc=no
2020fi
2021rm -f conftest.err conftest.i conftest.$ac_ext
2022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2023$as_echo "$ac_header_preproc" >&6; }
2024
2025# So?  What about this header?
2026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2027  yes:no: )
2028    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2029$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2030    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2032    ;;
2033  no:yes:* )
2034    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2035$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2036    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2037$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2038    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2039$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2040    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2041$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2042    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044( $as_echo "## ---------------------------------------------------------------------- ##
2045## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2046## ---------------------------------------------------------------------- ##"
2047     ) | sed "s/^/$as_me: WARNING:     /" >&2
2048    ;;
2049esac
2050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051$as_echo_n "checking for $2... " >&6; }
2052if eval \${$3+:} false; then :
2053  $as_echo_n "(cached) " >&6
2054else
2055  eval "$3=\$ac_header_compiler"
2056fi
2057eval ac_res=\$$3
2058	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059$as_echo "$ac_res" >&6; }
2060fi
2061  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063} # ac_fn_c_check_header_mongrel
2064
2065# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2066# ----------------------------------------------------
2067# Tries to find if the field MEMBER exists in type AGGR, after including
2068# INCLUDES, setting cache variable VAR accordingly.
2069ac_fn_c_check_member ()
2070{
2071  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2073$as_echo_n "checking for $2.$3... " >&6; }
2074if eval \${$4+:} false; then :
2075  $as_echo_n "(cached) " >&6
2076else
2077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h.  */
2079$5
2080int
2081main ()
2082{
2083static $2 ac_aggr;
2084if (ac_aggr.$3)
2085return 0;
2086  ;
2087  return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091  eval "$4=yes"
2092else
2093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h.  */
2095$5
2096int
2097main ()
2098{
2099static $2 ac_aggr;
2100if (sizeof ac_aggr.$3)
2101return 0;
2102  ;
2103  return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107  eval "$4=yes"
2108else
2109  eval "$4=no"
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114fi
2115eval ac_res=\$$4
2116	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117$as_echo "$ac_res" >&6; }
2118  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119
2120} # ac_fn_c_check_member
2121
2122# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2123# -------------------------------------------
2124# Tests whether TYPE exists after having included INCLUDES, setting cache
2125# variable VAR accordingly.
2126ac_fn_c_check_type ()
2127{
2128  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
2131if eval \${$3+:} false; then :
2132  $as_echo_n "(cached) " >&6
2133else
2134  eval "$3=no"
2135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h.  */
2137$4
2138int
2139main ()
2140{
2141if (sizeof ($2))
2142	 return 0;
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h.  */
2150$4
2151int
2152main ()
2153{
2154if (sizeof (($2)))
2155	    return 0;
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160if ac_fn_c_try_compile "$LINENO"; then :
2161
2162else
2163  eval "$3=yes"
2164fi
2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168fi
2169eval ac_res=\$$3
2170	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171$as_echo "$ac_res" >&6; }
2172  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173
2174} # ac_fn_c_check_type
2175cat >config.log <<_ACEOF
2176This file contains any messages produced by compilers while
2177running configure, to aid debugging if configure makes a mistake.
2178
2179It was created by libXfont $as_me 1.4.5, which was
2180generated by GNU Autoconf 2.68.  Invocation command line was
2181
2182  $ $0 $@
2183
2184_ACEOF
2185exec 5>>config.log
2186{
2187cat <<_ASUNAME
2188## --------- ##
2189## Platform. ##
2190## --------- ##
2191
2192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2193uname -m = `(uname -m) 2>/dev/null || echo unknown`
2194uname -r = `(uname -r) 2>/dev/null || echo unknown`
2195uname -s = `(uname -s) 2>/dev/null || echo unknown`
2196uname -v = `(uname -v) 2>/dev/null || echo unknown`
2197
2198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2199/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2200
2201/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2202/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2204/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2205/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2206/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2207/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2208
2209_ASUNAME
2210
2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212for as_dir in $PATH
2213do
2214  IFS=$as_save_IFS
2215  test -z "$as_dir" && as_dir=.
2216    $as_echo "PATH: $as_dir"
2217  done
2218IFS=$as_save_IFS
2219
2220} >&5
2221
2222cat >&5 <<_ACEOF
2223
2224
2225## ----------- ##
2226## Core tests. ##
2227## ----------- ##
2228
2229_ACEOF
2230
2231
2232# Keep a trace of the command line.
2233# Strip out --no-create and --no-recursion so they do not pile up.
2234# Strip out --silent because we don't want to record it for future runs.
2235# Also quote any args containing shell meta-characters.
2236# Make two passes to allow for proper duplicate-argument suppression.
2237ac_configure_args=
2238ac_configure_args0=
2239ac_configure_args1=
2240ac_must_keep_next=false
2241for ac_pass in 1 2
2242do
2243  for ac_arg
2244  do
2245    case $ac_arg in
2246    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2247    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2248    | -silent | --silent | --silen | --sile | --sil)
2249      continue ;;
2250    *\'*)
2251      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2252    esac
2253    case $ac_pass in
2254    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2255    2)
2256      as_fn_append ac_configure_args1 " '$ac_arg'"
2257      if test $ac_must_keep_next = true; then
2258	ac_must_keep_next=false # Got value, back to normal.
2259      else
2260	case $ac_arg in
2261	  *=* | --config-cache | -C | -disable-* | --disable-* \
2262	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2263	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2264	  | -with-* | --with-* | -without-* | --without-* | --x)
2265	    case "$ac_configure_args0 " in
2266	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2267	    esac
2268	    ;;
2269	  -* ) ac_must_keep_next=true ;;
2270	esac
2271      fi
2272      as_fn_append ac_configure_args " '$ac_arg'"
2273      ;;
2274    esac
2275  done
2276done
2277{ ac_configure_args0=; unset ac_configure_args0;}
2278{ ac_configure_args1=; unset ac_configure_args1;}
2279
2280# When interrupted or exit'd, cleanup temporary files, and complete
2281# config.log.  We remove comments because anyway the quotes in there
2282# would cause problems or look ugly.
2283# WARNING: Use '\'' to represent an apostrophe within the trap.
2284# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2285trap 'exit_status=$?
2286  # Save into config.log some information that might help in debugging.
2287  {
2288    echo
2289
2290    $as_echo "## ---------------- ##
2291## Cache variables. ##
2292## ---------------- ##"
2293    echo
2294    # The following way of writing the cache mishandles newlines in values,
2295(
2296  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297    eval ac_val=\$$ac_var
2298    case $ac_val in #(
2299    *${as_nl}*)
2300      case $ac_var in #(
2301      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303      esac
2304      case $ac_var in #(
2305      _ | IFS | as_nl) ;; #(
2306      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307      *) { eval $ac_var=; unset $ac_var;} ;;
2308      esac ;;
2309    esac
2310  done
2311  (set) 2>&1 |
2312    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313    *${as_nl}ac_space=\ *)
2314      sed -n \
2315	"s/'\''/'\''\\\\'\'''\''/g;
2316	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317      ;; #(
2318    *)
2319      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2320      ;;
2321    esac |
2322    sort
2323)
2324    echo
2325
2326    $as_echo "## ----------------- ##
2327## Output variables. ##
2328## ----------------- ##"
2329    echo
2330    for ac_var in $ac_subst_vars
2331    do
2332      eval ac_val=\$$ac_var
2333      case $ac_val in
2334      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335      esac
2336      $as_echo "$ac_var='\''$ac_val'\''"
2337    done | sort
2338    echo
2339
2340    if test -n "$ac_subst_files"; then
2341      $as_echo "## ------------------- ##
2342## File substitutions. ##
2343## ------------------- ##"
2344      echo
2345      for ac_var in $ac_subst_files
2346      do
2347	eval ac_val=\$$ac_var
2348	case $ac_val in
2349	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350	esac
2351	$as_echo "$ac_var='\''$ac_val'\''"
2352      done | sort
2353      echo
2354    fi
2355
2356    if test -s confdefs.h; then
2357      $as_echo "## ----------- ##
2358## confdefs.h. ##
2359## ----------- ##"
2360      echo
2361      cat confdefs.h
2362      echo
2363    fi
2364    test "$ac_signal" != 0 &&
2365      $as_echo "$as_me: caught signal $ac_signal"
2366    $as_echo "$as_me: exit $exit_status"
2367  } >&5
2368  rm -f core *.core core.conftest.* &&
2369    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370    exit $exit_status
2371' 0
2372for ac_signal in 1 2 13 15; do
2373  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2374done
2375ac_signal=0
2376
2377# confdefs.h avoids OS command line length limits that DEFS can exceed.
2378rm -f -r conftest* confdefs.h
2379
2380$as_echo "/* confdefs.h */" > confdefs.h
2381
2382# Predefined preprocessor variables.
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_NAME "$PACKAGE_NAME"
2386_ACEOF
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390_ACEOF
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_VERSION "$PACKAGE_VERSION"
2394_ACEOF
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_STRING "$PACKAGE_STRING"
2398_ACEOF
2399
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402_ACEOF
2403
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_URL "$PACKAGE_URL"
2406_ACEOF
2407
2408
2409# Let the site file select an alternate cache file if it wants to.
2410# Prefer an explicitly selected file to automatically selected ones.
2411ac_site_file1=NONE
2412ac_site_file2=NONE
2413if test -n "$CONFIG_SITE"; then
2414  # We do not want a PATH search for config.site.
2415  case $CONFIG_SITE in #((
2416    -*)  ac_site_file1=./$CONFIG_SITE;;
2417    */*) ac_site_file1=$CONFIG_SITE;;
2418    *)   ac_site_file1=./$CONFIG_SITE;;
2419  esac
2420elif test "x$prefix" != xNONE; then
2421  ac_site_file1=$prefix/share/config.site
2422  ac_site_file2=$prefix/etc/config.site
2423else
2424  ac_site_file1=$ac_default_prefix/share/config.site
2425  ac_site_file2=$ac_default_prefix/etc/config.site
2426fi
2427for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428do
2429  test "x$ac_site_file" = xNONE && continue
2430  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2431    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433    sed 's/^/| /' "$ac_site_file" >&5
2434    . "$ac_site_file" \
2435      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437as_fn_error $? "failed to load site script $ac_site_file
2438See \`config.log' for more details" "$LINENO" 5; }
2439  fi
2440done
2441
2442if test -r "$cache_file"; then
2443  # Some versions of bash will fail to source /dev/null (special files
2444  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2445  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2446    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2447$as_echo "$as_me: loading cache $cache_file" >&6;}
2448    case $cache_file in
2449      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2450      *)                      . "./$cache_file";;
2451    esac
2452  fi
2453else
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2455$as_echo "$as_me: creating cache $cache_file" >&6;}
2456  >$cache_file
2457fi
2458
2459# Check that the precious variables saved in the cache have kept the same
2460# value.
2461ac_cache_corrupted=false
2462for ac_var in $ac_precious_vars; do
2463  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2464  eval ac_new_set=\$ac_env_${ac_var}_set
2465  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2466  eval ac_new_val=\$ac_env_${ac_var}_value
2467  case $ac_old_set,$ac_new_set in
2468    set,)
2469      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2470$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2471      ac_cache_corrupted=: ;;
2472    ,set)
2473      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2474$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2475      ac_cache_corrupted=: ;;
2476    ,);;
2477    *)
2478      if test "x$ac_old_val" != "x$ac_new_val"; then
2479	# differences in whitespace do not lead to failure.
2480	ac_old_val_w=`echo x $ac_old_val`
2481	ac_new_val_w=`echo x $ac_new_val`
2482	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2483	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2484$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2485	  ac_cache_corrupted=:
2486	else
2487	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2488$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2489	  eval $ac_var=\$ac_old_val
2490	fi
2491	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2492$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2493	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2494$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2495      fi;;
2496  esac
2497  # Pass precious variables to config.status.
2498  if test "$ac_new_set" = set; then
2499    case $ac_new_val in
2500    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2501    *) ac_arg=$ac_var=$ac_new_val ;;
2502    esac
2503    case " $ac_configure_args " in
2504      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2505      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2506    esac
2507  fi
2508done
2509if $ac_cache_corrupted; then
2510  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2513$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2514  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2515fi
2516## -------------------- ##
2517## Main body of script. ##
2518## -------------------- ##
2519
2520ac_ext=c
2521ac_cpp='$CPP $CPPFLAGS'
2522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525
2526
2527
2528ac_config_headers="$ac_config_headers config.h include/X11/fonts/fontconf.h"
2529
2530
2531# Initialize Automake
2532am__api_version='1.11'
2533
2534ac_aux_dir=
2535for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2536  if test -f "$ac_dir/install-sh"; then
2537    ac_aux_dir=$ac_dir
2538    ac_install_sh="$ac_aux_dir/install-sh -c"
2539    break
2540  elif 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/shtool"; then
2545    ac_aux_dir=$ac_dir
2546    ac_install_sh="$ac_aux_dir/shtool install -c"
2547    break
2548  fi
2549done
2550if test -z "$ac_aux_dir"; then
2551  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2552fi
2553
2554# These three variables are undocumented and unsupported,
2555# and are intended to be withdrawn in a future Autoconf release.
2556# They can cause serious problems if a builder's source tree is in a directory
2557# whose full name contains unusual characters.
2558ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2559ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2560ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2561
2562
2563# Find a good install program.  We prefer a C program (faster),
2564# so one script is as good as another.  But avoid the broken or
2565# incompatible versions:
2566# SysV /etc/install, /usr/sbin/install
2567# SunOS /usr/etc/install
2568# IRIX /sbin/install
2569# AIX /bin/install
2570# AmigaOS /C/install, which installs bootblocks on floppy discs
2571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574# OS/2's system install, which has a completely different semantic
2575# ./install, which can be erroneously created by make from ./install.sh.
2576# Reject install programs that cannot install multiple files.
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2578$as_echo_n "checking for a BSD-compatible install... " >&6; }
2579if test -z "$INSTALL"; then
2580if ${ac_cv_path_install+:} false; then :
2581  $as_echo_n "(cached) " >&6
2582else
2583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586  IFS=$as_save_IFS
2587  test -z "$as_dir" && as_dir=.
2588    # Account for people who put trailing slashes in PATH elements.
2589case $as_dir/ in #((
2590  ./ | .// | /[cC]/* | \
2591  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593  /usr/ucb/* ) ;;
2594  *)
2595    # OSF1 and SCO ODT 3.0 have their own names for install.
2596    # Don't use installbsd from OSF since it installs stuff as root
2597    # by default.
2598    for ac_prog in ginstall scoinst install; do
2599      for ac_exec_ext in '' $ac_executable_extensions; do
2600	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2601	  if test $ac_prog = install &&
2602	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603	    # AIX install.  It has an incompatible calling convention.
2604	    :
2605	  elif test $ac_prog = install &&
2606	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607	    # program-specific install script used by HP pwplus--don't use.
2608	    :
2609	  else
2610	    rm -rf conftest.one conftest.two conftest.dir
2611	    echo one > conftest.one
2612	    echo two > conftest.two
2613	    mkdir conftest.dir
2614	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2615	      test -s conftest.one && test -s conftest.two &&
2616	      test -s conftest.dir/conftest.one &&
2617	      test -s conftest.dir/conftest.two
2618	    then
2619	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2620	      break 3
2621	    fi
2622	  fi
2623	fi
2624      done
2625    done
2626    ;;
2627esac
2628
2629  done
2630IFS=$as_save_IFS
2631
2632rm -rf conftest.one conftest.two conftest.dir
2633
2634fi
2635  if test "${ac_cv_path_install+set}" = set; then
2636    INSTALL=$ac_cv_path_install
2637  else
2638    # As a last resort, use the slow shell script.  Don't cache a
2639    # value for INSTALL within a source directory, because that will
2640    # break other packages using the cache if that directory is
2641    # removed, or if the value is a relative name.
2642    INSTALL=$ac_install_sh
2643  fi
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2646$as_echo "$INSTALL" >&6; }
2647
2648# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2649# It thinks the first close brace ends the variable substitution.
2650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2651
2652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2653
2654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2655
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2657$as_echo_n "checking whether build environment is sane... " >&6; }
2658# Just in case
2659sleep 1
2660echo timestamp > conftest.file
2661# Reject unsafe characters in $srcdir or the absolute working directory
2662# name.  Accept space and tab only in the latter.
2663am_lf='
2664'
2665case `pwd` in
2666  *[\\\"\#\$\&\'\`$am_lf]*)
2667    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2668esac
2669case $srcdir in
2670  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2671    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2672esac
2673
2674# Do `set' in a subshell so we don't clobber the current shell's
2675# arguments.  Must try -L first in case configure is actually a
2676# symlink; some systems play weird games with the mod time of symlinks
2677# (eg FreeBSD returns the mod time of the symlink's containing
2678# directory).
2679if (
2680   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2681   if test "$*" = "X"; then
2682      # -L didn't work.
2683      set X `ls -t "$srcdir/configure" conftest.file`
2684   fi
2685   rm -f conftest.file
2686   if test "$*" != "X $srcdir/configure conftest.file" \
2687      && test "$*" != "X conftest.file $srcdir/configure"; then
2688
2689      # If neither matched, then we have a broken ls.  This can happen
2690      # if, for instance, CONFIG_SHELL is bash and it inherits a
2691      # broken ls alias from the environment.  This has actually
2692      # happened.  Such a system could not be considered "sane".
2693      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2694alias in your environment" "$LINENO" 5
2695   fi
2696
2697   test "$2" = conftest.file
2698   )
2699then
2700   # Ok.
2701   :
2702else
2703   as_fn_error $? "newly created file is older than distributed files!
2704Check your system clock" "$LINENO" 5
2705fi
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2707$as_echo "yes" >&6; }
2708test "$program_prefix" != NONE &&
2709  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2710# Use a double $ so make ignores it.
2711test "$program_suffix" != NONE &&
2712  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2713# Double any \ or $.
2714# By default was `s,x,x', remove it if useless.
2715ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2716program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2717
2718# expand $ac_aux_dir to an absolute path
2719am_aux_dir=`cd $ac_aux_dir && pwd`
2720
2721if test x"${MISSING+set}" != xset; then
2722  case $am_aux_dir in
2723  *\ * | *\	*)
2724    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2725  *)
2726    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2727  esac
2728fi
2729# Use eval to expand $SHELL
2730if eval "$MISSING --run true"; then
2731  am_missing_run="$MISSING --run "
2732else
2733  am_missing_run=
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2735$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2736fi
2737
2738if test x"${install_sh}" != xset; then
2739  case $am_aux_dir in
2740  *\ * | *\	*)
2741    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2742  *)
2743    install_sh="\${SHELL} $am_aux_dir/install-sh"
2744  esac
2745fi
2746
2747# Installed binaries are usually stripped using `strip' when the user
2748# run `make install-strip'.  However `strip' might not be the right
2749# tool to use in cross-compilation environments, therefore Automake
2750# will honor the `STRIP' environment variable to overrule this program.
2751if test "$cross_compiling" != no; then
2752  if test -n "$ac_tool_prefix"; then
2753  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2754set dummy ${ac_tool_prefix}strip; ac_word=$2
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if ${ac_cv_prog_STRIP+:} false; then :
2758  $as_echo_n "(cached) " >&6
2759else
2760  if test -n "$STRIP"; then
2761  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766  IFS=$as_save_IFS
2767  test -z "$as_dir" && as_dir=.
2768    for ac_exec_ext in '' $ac_executable_extensions; do
2769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772    break 2
2773  fi
2774done
2775  done
2776IFS=$as_save_IFS
2777
2778fi
2779fi
2780STRIP=$ac_cv_prog_STRIP
2781if test -n "$STRIP"; then
2782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2783$as_echo "$STRIP" >&6; }
2784else
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786$as_echo "no" >&6; }
2787fi
2788
2789
2790fi
2791if test -z "$ac_cv_prog_STRIP"; then
2792  ac_ct_STRIP=$STRIP
2793  # Extract the first word of "strip", so it can be a program name with args.
2794set dummy strip; ac_word=$2
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2798  $as_echo_n "(cached) " >&6
2799else
2800  if test -n "$ac_ct_STRIP"; then
2801  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808    for ac_exec_ext in '' $ac_executable_extensions; do
2809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810    ac_cv_prog_ac_ct_STRIP="strip"
2811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812    break 2
2813  fi
2814done
2815  done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2821if test -n "$ac_ct_STRIP"; then
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2823$as_echo "$ac_ct_STRIP" >&6; }
2824else
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829  if test "x$ac_ct_STRIP" = x; then
2830    STRIP=":"
2831  else
2832    case $cross_compiling:$ac_tool_warned in
2833yes:)
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836ac_tool_warned=yes ;;
2837esac
2838    STRIP=$ac_ct_STRIP
2839  fi
2840else
2841  STRIP="$ac_cv_prog_STRIP"
2842fi
2843
2844fi
2845INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2846
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2848$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2849if test -z "$MKDIR_P"; then
2850  if ${ac_cv_path_mkdir+:} false; then :
2851  $as_echo_n "(cached) " >&6
2852else
2853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2855do
2856  IFS=$as_save_IFS
2857  test -z "$as_dir" && as_dir=.
2858    for ac_prog in mkdir gmkdir; do
2859	 for ac_exec_ext in '' $ac_executable_extensions; do
2860	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2861	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2862	     'mkdir (GNU coreutils) '* | \
2863	     'mkdir (coreutils) '* | \
2864	     'mkdir (fileutils) '4.1*)
2865	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2866	       break 3;;
2867	   esac
2868	 done
2869       done
2870  done
2871IFS=$as_save_IFS
2872
2873fi
2874
2875  test -d ./--version && rmdir ./--version
2876  if test "${ac_cv_path_mkdir+set}" = set; then
2877    MKDIR_P="$ac_cv_path_mkdir -p"
2878  else
2879    # As a last resort, use the slow shell script.  Don't cache a
2880    # value for MKDIR_P within a source directory, because that will
2881    # break other packages using the cache if that directory is
2882    # removed, or if the value is a relative name.
2883    MKDIR_P="$ac_install_sh -d"
2884  fi
2885fi
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2887$as_echo "$MKDIR_P" >&6; }
2888
2889mkdir_p="$MKDIR_P"
2890case $mkdir_p in
2891  [\\/$]* | ?:[\\/]*) ;;
2892  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2893esac
2894
2895for ac_prog in gawk mawk nawk awk
2896do
2897  # Extract the first word of "$ac_prog", so it can be a program name with args.
2898set dummy $ac_prog; ac_word=$2
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900$as_echo_n "checking for $ac_word... " >&6; }
2901if ${ac_cv_prog_AWK+:} false; then :
2902  $as_echo_n "(cached) " >&6
2903else
2904  if test -n "$AWK"; then
2905  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  test -z "$as_dir" && as_dir=.
2912    for ac_exec_ext in '' $ac_executable_extensions; do
2913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914    ac_cv_prog_AWK="$ac_prog"
2915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916    break 2
2917  fi
2918done
2919  done
2920IFS=$as_save_IFS
2921
2922fi
2923fi
2924AWK=$ac_cv_prog_AWK
2925if test -n "$AWK"; then
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2927$as_echo "$AWK" >&6; }
2928else
2929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930$as_echo "no" >&6; }
2931fi
2932
2933
2934  test -n "$AWK" && break
2935done
2936
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2938$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2939set x ${MAKE-make}
2940ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2941if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2942  $as_echo_n "(cached) " >&6
2943else
2944  cat >conftest.make <<\_ACEOF
2945SHELL = /bin/sh
2946all:
2947	@echo '@@@%%%=$(MAKE)=@@@%%%'
2948_ACEOF
2949# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2950case `${MAKE-make} -f conftest.make 2>/dev/null` in
2951  *@@@%%%=?*=@@@%%%*)
2952    eval ac_cv_prog_make_${ac_make}_set=yes;;
2953  *)
2954    eval ac_cv_prog_make_${ac_make}_set=no;;
2955esac
2956rm -f conftest.make
2957fi
2958if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960$as_echo "yes" >&6; }
2961  SET_MAKE=
2962else
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964$as_echo "no" >&6; }
2965  SET_MAKE="MAKE=${MAKE-make}"
2966fi
2967
2968rm -rf .tst 2>/dev/null
2969mkdir .tst 2>/dev/null
2970if test -d .tst; then
2971  am__leading_dot=.
2972else
2973  am__leading_dot=_
2974fi
2975rmdir .tst 2>/dev/null
2976
2977if test "`cd $srcdir && pwd`" != "`pwd`"; then
2978  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2979  # is not polluted with repeated "-I."
2980  am__isrc=' -I$(srcdir)'
2981  # test to see if srcdir already configured
2982  if test -f $srcdir/config.status; then
2983    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2984  fi
2985fi
2986
2987# test whether we have cygpath
2988if test -z "$CYGPATH_W"; then
2989  if (cygpath --version) >/dev/null 2>/dev/null; then
2990    CYGPATH_W='cygpath -w'
2991  else
2992    CYGPATH_W=echo
2993  fi
2994fi
2995
2996
2997# Define the identity of the package.
2998 PACKAGE='libXfont'
2999 VERSION='1.4.5'
3000
3001
3002cat >>confdefs.h <<_ACEOF
3003#define PACKAGE "$PACKAGE"
3004_ACEOF
3005
3006
3007cat >>confdefs.h <<_ACEOF
3008#define VERSION "$VERSION"
3009_ACEOF
3010
3011# Some tools Automake needs.
3012
3013ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3014
3015
3016AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3017
3018
3019AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3020
3021
3022AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3023
3024
3025MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3026
3027# We need awk for the "check" target.  The system "awk" is bad on
3028# some platforms.
3029# Always define AMTAR for backward compatibility.
3030
3031AMTAR=${AMTAR-"${am_missing_run}tar"}
3032
3033am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3034
3035
3036
3037
3038
3039
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3041$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3042    # Check whether --enable-maintainer-mode was given.
3043if test "${enable_maintainer_mode+set}" = set; then :
3044  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3045else
3046  USE_MAINTAINER_MODE=no
3047fi
3048
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3050$as_echo "$USE_MAINTAINER_MODE" >&6; }
3051   if test $USE_MAINTAINER_MODE = yes; then
3052  MAINTAINER_MODE_TRUE=
3053  MAINTAINER_MODE_FALSE='#'
3054else
3055  MAINTAINER_MODE_TRUE='#'
3056  MAINTAINER_MODE_FALSE=
3057fi
3058
3059  MAINT=$MAINTAINER_MODE_TRUE
3060
3061
3062
3063# Initialize libtool
3064case `pwd` in
3065  *\ * | *\	*)
3066    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3067$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3068esac
3069
3070
3071
3072macro_version='2.4'
3073macro_revision='1.3293'
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087ltmain="$ac_aux_dir/ltmain.sh"
3088
3089# Make sure we can run config.sub.
3090$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3091  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3092
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3094$as_echo_n "checking build system type... " >&6; }
3095if ${ac_cv_build+:} false; then :
3096  $as_echo_n "(cached) " >&6
3097else
3098  ac_build_alias=$build_alias
3099test "x$ac_build_alias" = x &&
3100  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3101test "x$ac_build_alias" = x &&
3102  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3103ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3104  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3105
3106fi
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3108$as_echo "$ac_cv_build" >&6; }
3109case $ac_cv_build in
3110*-*-*) ;;
3111*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3112esac
3113build=$ac_cv_build
3114ac_save_IFS=$IFS; IFS='-'
3115set x $ac_cv_build
3116shift
3117build_cpu=$1
3118build_vendor=$2
3119shift; shift
3120# Remember, the first character of IFS is used to create $*,
3121# except with old shells:
3122build_os=$*
3123IFS=$ac_save_IFS
3124case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3125
3126
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3128$as_echo_n "checking host system type... " >&6; }
3129if ${ac_cv_host+:} false; then :
3130  $as_echo_n "(cached) " >&6
3131else
3132  if test "x$host_alias" = x; then
3133  ac_cv_host=$ac_cv_build
3134else
3135  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3136    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3137fi
3138
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3141$as_echo "$ac_cv_host" >&6; }
3142case $ac_cv_host in
3143*-*-*) ;;
3144*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3145esac
3146host=$ac_cv_host
3147ac_save_IFS=$IFS; IFS='-'
3148set x $ac_cv_host
3149shift
3150host_cpu=$1
3151host_vendor=$2
3152shift; shift
3153# Remember, the first character of IFS is used to create $*,
3154# except with old shells:
3155host_os=$*
3156IFS=$ac_save_IFS
3157case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3158
3159
3160# Backslashify metacharacters that are still active within
3161# double-quoted strings.
3162sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3163
3164# Same as above, but do not quote variable references.
3165double_quote_subst='s/\(["`\\]\)/\\\1/g'
3166
3167# Sed substitution to delay expansion of an escaped shell variable in a
3168# double_quote_subst'ed string.
3169delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3170
3171# Sed substitution to delay expansion of an escaped single quote.
3172delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3173
3174# Sed substitution to avoid accidental globbing in evaled expressions
3175no_glob_subst='s/\*/\\\*/g'
3176
3177ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3178ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3179ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3180
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3182$as_echo_n "checking how to print strings... " >&6; }
3183# Test print first, because it will be a builtin if present.
3184if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3185   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3186  ECHO='print -r --'
3187elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3188  ECHO='printf %s\n'
3189else
3190  # Use this function as a fallback that always works.
3191  func_fallback_echo ()
3192  {
3193    eval 'cat <<_LTECHO_EOF
3194$1
3195_LTECHO_EOF'
3196  }
3197  ECHO='func_fallback_echo'
3198fi
3199
3200# func_echo_all arg...
3201# Invoke $ECHO with all args, space-separated.
3202func_echo_all ()
3203{
3204    $ECHO ""
3205}
3206
3207case "$ECHO" in
3208  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3209$as_echo "printf" >&6; } ;;
3210  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3211$as_echo "print -r" >&6; } ;;
3212  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3213$as_echo "cat" >&6; } ;;
3214esac
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229DEPDIR="${am__leading_dot}deps"
3230
3231ac_config_commands="$ac_config_commands depfiles"
3232
3233
3234am_make=${MAKE-make}
3235cat > confinc << 'END'
3236am__doit:
3237	@echo this is the am__doit target
3238.PHONY: am__doit
3239END
3240# If we don't find an include directive, just comment out the code.
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3242$as_echo_n "checking for style of include used by $am_make... " >&6; }
3243am__include="#"
3244am__quote=
3245_am_result=none
3246# First try GNU make style include.
3247echo "include confinc" > confmf
3248# Ignore all kinds of additional output from `make'.
3249case `$am_make -s -f confmf 2> /dev/null` in #(
3250*the\ am__doit\ target*)
3251  am__include=include
3252  am__quote=
3253  _am_result=GNU
3254  ;;
3255esac
3256# Now try BSD make style include.
3257if test "$am__include" = "#"; then
3258   echo '.include "confinc"' > confmf
3259   case `$am_make -s -f confmf 2> /dev/null` in #(
3260   *the\ am__doit\ target*)
3261     am__include=.include
3262     am__quote="\""
3263     _am_result=BSD
3264     ;;
3265   esac
3266fi
3267
3268
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3270$as_echo "$_am_result" >&6; }
3271rm -f confinc confmf
3272
3273# Check whether --enable-dependency-tracking was given.
3274if test "${enable_dependency_tracking+set}" = set; then :
3275  enableval=$enable_dependency_tracking;
3276fi
3277
3278if test "x$enable_dependency_tracking" != xno; then
3279  am_depcomp="$ac_aux_dir/depcomp"
3280  AMDEPBACKSLASH='\'
3281fi
3282 if test "x$enable_dependency_tracking" != xno; then
3283  AMDEP_TRUE=
3284  AMDEP_FALSE='#'
3285else
3286  AMDEP_TRUE='#'
3287  AMDEP_FALSE=
3288fi
3289
3290
3291ac_ext=c
3292ac_cpp='$CPP $CPPFLAGS'
3293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296if test -n "$ac_tool_prefix"; then
3297  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3298set dummy ${ac_tool_prefix}gcc; ac_word=$2
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300$as_echo_n "checking for $ac_word... " >&6; }
3301if ${ac_cv_prog_CC+:} false; then :
3302  $as_echo_n "(cached) " >&6
3303else
3304  if test -n "$CC"; then
3305  ac_cv_prog_CC="$CC" # Let the user override the test.
3306else
3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310  IFS=$as_save_IFS
3311  test -z "$as_dir" && as_dir=.
3312    for ac_exec_ext in '' $ac_executable_extensions; do
3313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316    break 2
3317  fi
3318done
3319  done
3320IFS=$as_save_IFS
3321
3322fi
3323fi
3324CC=$ac_cv_prog_CC
3325if test -n "$CC"; then
3326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327$as_echo "$CC" >&6; }
3328else
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331fi
3332
3333
3334fi
3335if test -z "$ac_cv_prog_CC"; then
3336  ac_ct_CC=$CC
3337  # Extract the first word of "gcc", so it can be a program name with args.
3338set dummy gcc; ac_word=$2
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340$as_echo_n "checking for $ac_word... " >&6; }
3341if ${ac_cv_prog_ac_ct_CC+:} false; then :
3342  $as_echo_n "(cached) " >&6
3343else
3344  if test -n "$ac_ct_CC"; then
3345  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3346else
3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348for as_dir in $PATH
3349do
3350  IFS=$as_save_IFS
3351  test -z "$as_dir" && as_dir=.
3352    for ac_exec_ext in '' $ac_executable_extensions; do
3353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354    ac_cv_prog_ac_ct_CC="gcc"
3355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356    break 2
3357  fi
3358done
3359  done
3360IFS=$as_save_IFS
3361
3362fi
3363fi
3364ac_ct_CC=$ac_cv_prog_ac_ct_CC
3365if test -n "$ac_ct_CC"; then
3366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3367$as_echo "$ac_ct_CC" >&6; }
3368else
3369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370$as_echo "no" >&6; }
3371fi
3372
3373  if test "x$ac_ct_CC" = x; then
3374    CC=""
3375  else
3376    case $cross_compiling:$ac_tool_warned in
3377yes:)
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380ac_tool_warned=yes ;;
3381esac
3382    CC=$ac_ct_CC
3383  fi
3384else
3385  CC="$ac_cv_prog_CC"
3386fi
3387
3388if test -z "$CC"; then
3389          if test -n "$ac_tool_prefix"; then
3390    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3391set dummy ${ac_tool_prefix}cc; ac_word=$2
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393$as_echo_n "checking for $ac_word... " >&6; }
3394if ${ac_cv_prog_CC+:} false; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397  if test -n "$CC"; then
3398  ac_cv_prog_CC="$CC" # Let the user override the test.
3399else
3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403  IFS=$as_save_IFS
3404  test -z "$as_dir" && as_dir=.
3405    for ac_exec_ext in '' $ac_executable_extensions; do
3406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407    ac_cv_prog_CC="${ac_tool_prefix}cc"
3408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409    break 2
3410  fi
3411done
3412  done
3413IFS=$as_save_IFS
3414
3415fi
3416fi
3417CC=$ac_cv_prog_CC
3418if test -n "$CC"; then
3419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420$as_echo "$CC" >&6; }
3421else
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
3424fi
3425
3426
3427  fi
3428fi
3429if test -z "$CC"; then
3430  # Extract the first word of "cc", so it can be a program name with args.
3431set dummy cc; ac_word=$2
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433$as_echo_n "checking for $ac_word... " >&6; }
3434if ${ac_cv_prog_CC+:} false; then :
3435  $as_echo_n "(cached) " >&6
3436else
3437  if test -n "$CC"; then
3438  ac_cv_prog_CC="$CC" # Let the user override the test.
3439else
3440  ac_prog_rejected=no
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444  IFS=$as_save_IFS
3445  test -z "$as_dir" && as_dir=.
3446    for ac_exec_ext in '' $ac_executable_extensions; do
3447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449       ac_prog_rejected=yes
3450       continue
3451     fi
3452    ac_cv_prog_CC="cc"
3453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457  done
3458IFS=$as_save_IFS
3459
3460if test $ac_prog_rejected = yes; then
3461  # We found a bogon in the path, so make sure we never use it.
3462  set dummy $ac_cv_prog_CC
3463  shift
3464  if test $# != 0; then
3465    # We chose a different compiler from the bogus one.
3466    # However, it has the same basename, so the bogon will be chosen
3467    # first if we set CC to just the basename; use the full file name.
3468    shift
3469    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3470  fi
3471fi
3472fi
3473fi
3474CC=$ac_cv_prog_CC
3475if test -n "$CC"; then
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477$as_echo "$CC" >&6; }
3478else
3479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480$as_echo "no" >&6; }
3481fi
3482
3483
3484fi
3485if test -z "$CC"; then
3486  if test -n "$ac_tool_prefix"; then
3487  for ac_prog in cl.exe
3488  do
3489    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492$as_echo_n "checking for $ac_word... " >&6; }
3493if ${ac_cv_prog_CC+:} false; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  if test -n "$CC"; then
3497  ac_cv_prog_CC="$CC" # Let the user override the test.
3498else
3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500for as_dir in $PATH
3501do
3502  IFS=$as_save_IFS
3503  test -z "$as_dir" && as_dir=.
3504    for ac_exec_ext in '' $ac_executable_extensions; do
3505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508    break 2
3509  fi
3510done
3511  done
3512IFS=$as_save_IFS
3513
3514fi
3515fi
3516CC=$ac_cv_prog_CC
3517if test -n "$CC"; then
3518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519$as_echo "$CC" >&6; }
3520else
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522$as_echo "no" >&6; }
3523fi
3524
3525
3526    test -n "$CC" && break
3527  done
3528fi
3529if test -z "$CC"; then
3530  ac_ct_CC=$CC
3531  for ac_prog in cl.exe
3532do
3533  # Extract the first word of "$ac_prog", so it can be a program name with args.
3534set dummy $ac_prog; ac_word=$2
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536$as_echo_n "checking for $ac_word... " >&6; }
3537if ${ac_cv_prog_ac_ct_CC+:} false; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540  if test -n "$ac_ct_CC"; then
3541  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542else
3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544for as_dir in $PATH
3545do
3546  IFS=$as_save_IFS
3547  test -z "$as_dir" && as_dir=.
3548    for ac_exec_ext in '' $ac_executable_extensions; do
3549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550    ac_cv_prog_ac_ct_CC="$ac_prog"
3551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552    break 2
3553  fi
3554done
3555  done
3556IFS=$as_save_IFS
3557
3558fi
3559fi
3560ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561if test -n "$ac_ct_CC"; then
3562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563$as_echo "$ac_ct_CC" >&6; }
3564else
3565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566$as_echo "no" >&6; }
3567fi
3568
3569
3570  test -n "$ac_ct_CC" && break
3571done
3572
3573  if test "x$ac_ct_CC" = x; then
3574    CC=""
3575  else
3576    case $cross_compiling:$ac_tool_warned in
3577yes:)
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3580ac_tool_warned=yes ;;
3581esac
3582    CC=$ac_ct_CC
3583  fi
3584fi
3585
3586fi
3587
3588
3589test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591as_fn_error $? "no acceptable C compiler found in \$PATH
3592See \`config.log' for more details" "$LINENO" 5; }
3593
3594# Provide some information about the compiler.
3595$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3596set X $ac_compile
3597ac_compiler=$2
3598for ac_option in --version -v -V -qversion; do
3599  { { ac_try="$ac_compiler $ac_option >&5"
3600case "(($ac_try" in
3601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602  *) ac_try_echo=$ac_try;;
3603esac
3604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605$as_echo "$ac_try_echo"; } >&5
3606  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3607  ac_status=$?
3608  if test -s conftest.err; then
3609    sed '10a\
3610... rest of stderr output deleted ...
3611         10q' conftest.err >conftest.er1
3612    cat conftest.er1 >&5
3613  fi
3614  rm -f conftest.er1 conftest.err
3615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616  test $ac_status = 0; }
3617done
3618
3619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h.  */
3621
3622int
3623main ()
3624{
3625
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630ac_clean_files_save=$ac_clean_files
3631ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3632# Try to create an executable without -o first, disregard a.out.
3633# It will help us diagnose broken compilers, and finding out an intuition
3634# of exeext.
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3636$as_echo_n "checking whether the C compiler works... " >&6; }
3637ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3638
3639# The possible output files:
3640ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3641
3642ac_rmfiles=
3643for ac_file in $ac_files
3644do
3645  case $ac_file in
3646    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3647    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3648  esac
3649done
3650rm -f $ac_rmfiles
3651
3652if { { ac_try="$ac_link_default"
3653case "(($ac_try" in
3654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655  *) ac_try_echo=$ac_try;;
3656esac
3657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658$as_echo "$ac_try_echo"; } >&5
3659  (eval "$ac_link_default") 2>&5
3660  ac_status=$?
3661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662  test $ac_status = 0; }; then :
3663  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3664# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3665# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3666# so that the user can short-circuit this test for compilers unknown to
3667# Autoconf.
3668for ac_file in $ac_files ''
3669do
3670  test -f "$ac_file" || continue
3671  case $ac_file in
3672    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3673	;;
3674    [ab].out )
3675	# We found the default executable, but exeext='' is most
3676	# certainly right.
3677	break;;
3678    *.* )
3679	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3680	then :; else
3681	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682	fi
3683	# We set ac_cv_exeext here because the later test for it is not
3684	# safe: cross compilers may not add the suffix if given an `-o'
3685	# argument, so we may need to know it at that point already.
3686	# Even if this section looks crufty: it has the advantage of
3687	# actually working.
3688	break;;
3689    * )
3690	break;;
3691  esac
3692done
3693test "$ac_cv_exeext" = no && ac_cv_exeext=
3694
3695else
3696  ac_file=''
3697fi
3698if test -z "$ac_file"; then :
3699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700$as_echo "no" >&6; }
3701$as_echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706as_fn_error 77 "C compiler cannot create executables
3707See \`config.log' for more details" "$LINENO" 5; }
3708else
3709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3710$as_echo "yes" >&6; }
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3713$as_echo_n "checking for C compiler default output file name... " >&6; }
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3715$as_echo "$ac_file" >&6; }
3716ac_exeext=$ac_cv_exeext
3717
3718rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3719ac_clean_files=$ac_clean_files_save
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3721$as_echo_n "checking for suffix of executables... " >&6; }
3722if { { ac_try="$ac_link"
3723case "(($ac_try" in
3724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725  *) ac_try_echo=$ac_try;;
3726esac
3727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728$as_echo "$ac_try_echo"; } >&5
3729  (eval "$ac_link") 2>&5
3730  ac_status=$?
3731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732  test $ac_status = 0; }; then :
3733  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3734# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3735# work properly (i.e., refer to `conftest.exe'), while it won't with
3736# `rm'.
3737for ac_file in conftest.exe conftest conftest.*; do
3738  test -f "$ac_file" || continue
3739  case $ac_file in
3740    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3742	  break;;
3743    * ) break;;
3744  esac
3745done
3746else
3747  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3750See \`config.log' for more details" "$LINENO" 5; }
3751fi
3752rm -f conftest conftest$ac_cv_exeext
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3754$as_echo "$ac_cv_exeext" >&6; }
3755
3756rm -f conftest.$ac_ext
3757EXEEXT=$ac_cv_exeext
3758ac_exeext=$EXEEXT
3759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761#include <stdio.h>
3762int
3763main ()
3764{
3765FILE *f = fopen ("conftest.out", "w");
3766 return ferror (f) || fclose (f) != 0;
3767
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772ac_clean_files="$ac_clean_files conftest.out"
3773# Check that the compiler produces executables we can run.  If not, either
3774# the compiler is broken, or we cross compile.
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3776$as_echo_n "checking whether we are cross compiling... " >&6; }
3777if test "$cross_compiling" != yes; then
3778  { { ac_try="$ac_link"
3779case "(($ac_try" in
3780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781  *) ac_try_echo=$ac_try;;
3782esac
3783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784$as_echo "$ac_try_echo"; } >&5
3785  (eval "$ac_link") 2>&5
3786  ac_status=$?
3787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788  test $ac_status = 0; }
3789  if { ac_try='./conftest$ac_cv_exeext'
3790  { { case "(($ac_try" in
3791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792  *) ac_try_echo=$ac_try;;
3793esac
3794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795$as_echo "$ac_try_echo"; } >&5
3796  (eval "$ac_try") 2>&5
3797  ac_status=$?
3798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799  test $ac_status = 0; }; }; then
3800    cross_compiling=no
3801  else
3802    if test "$cross_compiling" = maybe; then
3803	cross_compiling=yes
3804    else
3805	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807as_fn_error $? "cannot run C compiled programs.
3808If you meant to cross compile, use \`--host'.
3809See \`config.log' for more details" "$LINENO" 5; }
3810    fi
3811  fi
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3814$as_echo "$cross_compiling" >&6; }
3815
3816rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3817ac_clean_files=$ac_clean_files_save
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3819$as_echo_n "checking for suffix of object files... " >&6; }
3820if ${ac_cv_objext+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h.  */
3825
3826int
3827main ()
3828{
3829
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834rm -f conftest.o conftest.obj
3835if { { ac_try="$ac_compile"
3836case "(($ac_try" in
3837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838  *) ac_try_echo=$ac_try;;
3839esac
3840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841$as_echo "$ac_try_echo"; } >&5
3842  (eval "$ac_compile") 2>&5
3843  ac_status=$?
3844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845  test $ac_status = 0; }; then :
3846  for ac_file in conftest.o conftest.obj conftest.*; do
3847  test -f "$ac_file" || continue;
3848  case $ac_file in
3849    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3850    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3851       break;;
3852  esac
3853done
3854else
3855  $as_echo "$as_me: failed program was:" >&5
3856sed 's/^/| /' conftest.$ac_ext >&5
3857
3858{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860as_fn_error $? "cannot compute suffix of object files: cannot compile
3861See \`config.log' for more details" "$LINENO" 5; }
3862fi
3863rm -f conftest.$ac_cv_objext conftest.$ac_ext
3864fi
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3866$as_echo "$ac_cv_objext" >&6; }
3867OBJEXT=$ac_cv_objext
3868ac_objext=$OBJEXT
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3870$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3871if ${ac_cv_c_compiler_gnu+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h.  */
3876
3877int
3878main ()
3879{
3880#ifndef __GNUC__
3881       choke me
3882#endif
3883
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888if ac_fn_c_try_compile "$LINENO"; then :
3889  ac_compiler_gnu=yes
3890else
3891  ac_compiler_gnu=no
3892fi
3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894ac_cv_c_compiler_gnu=$ac_compiler_gnu
3895
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3898$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3899if test $ac_compiler_gnu = yes; then
3900  GCC=yes
3901else
3902  GCC=
3903fi
3904ac_test_CFLAGS=${CFLAGS+set}
3905ac_save_CFLAGS=$CFLAGS
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3907$as_echo_n "checking whether $CC accepts -g... " >&6; }
3908if ${ac_cv_prog_cc_g+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  ac_save_c_werror_flag=$ac_c_werror_flag
3912   ac_c_werror_flag=yes
3913   ac_cv_prog_cc_g=no
3914   CFLAGS="-g"
3915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916/* end confdefs.h.  */
3917
3918int
3919main ()
3920{
3921
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926if ac_fn_c_try_compile "$LINENO"; then :
3927  ac_cv_prog_cc_g=yes
3928else
3929  CFLAGS=""
3930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h.  */
3932
3933int
3934main ()
3935{
3936
3937  ;
3938  return 0;
3939}
3940_ACEOF
3941if ac_fn_c_try_compile "$LINENO"; then :
3942
3943else
3944  ac_c_werror_flag=$ac_save_c_werror_flag
3945	 CFLAGS="-g"
3946	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947/* end confdefs.h.  */
3948
3949int
3950main ()
3951{
3952
3953  ;
3954  return 0;
3955}
3956_ACEOF
3957if ac_fn_c_try_compile "$LINENO"; then :
3958  ac_cv_prog_cc_g=yes
3959fi
3960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961fi
3962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963fi
3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965   ac_c_werror_flag=$ac_save_c_werror_flag
3966fi
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3968$as_echo "$ac_cv_prog_cc_g" >&6; }
3969if test "$ac_test_CFLAGS" = set; then
3970  CFLAGS=$ac_save_CFLAGS
3971elif test $ac_cv_prog_cc_g = yes; then
3972  if test "$GCC" = yes; then
3973    CFLAGS="-g -O2"
3974  else
3975    CFLAGS="-g"
3976  fi
3977else
3978  if test "$GCC" = yes; then
3979    CFLAGS="-O2"
3980  else
3981    CFLAGS=
3982  fi
3983fi
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3985$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3986if ${ac_cv_prog_cc_c89+:} false; then :
3987  $as_echo_n "(cached) " >&6
3988else
3989  ac_cv_prog_cc_c89=no
3990ac_save_CC=$CC
3991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h.  */
3993#include <stdarg.h>
3994#include <stdio.h>
3995#include <sys/types.h>
3996#include <sys/stat.h>
3997/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3998struct buf { int x; };
3999FILE * (*rcsopen) (struct buf *, struct stat *, int);
4000static char *e (p, i)
4001     char **p;
4002     int i;
4003{
4004  return p[i];
4005}
4006static char *f (char * (*g) (char **, int), char **p, ...)
4007{
4008  char *s;
4009  va_list v;
4010  va_start (v,p);
4011  s = g (p, va_arg (v,int));
4012  va_end (v);
4013  return s;
4014}
4015
4016/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4017   function prototypes and stuff, but not '\xHH' hex character constants.
4018   These don't provoke an error unfortunately, instead are silently treated
4019   as 'x'.  The following induces an error, until -std is added to get
4020   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4021   array size at least.  It's necessary to write '\x00'==0 to get something
4022   that's true only with -std.  */
4023int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4024
4025/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4026   inside strings and character constants.  */
4027#define FOO(x) 'x'
4028int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4029
4030int test (int i, double x);
4031struct s1 {int (*f) (int a);};
4032struct s2 {int (*f) (double a);};
4033int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4034int argc;
4035char **argv;
4036int
4037main ()
4038{
4039return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4040  ;
4041  return 0;
4042}
4043_ACEOF
4044for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4045	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4046do
4047  CC="$ac_save_CC $ac_arg"
4048  if ac_fn_c_try_compile "$LINENO"; then :
4049  ac_cv_prog_cc_c89=$ac_arg
4050fi
4051rm -f core conftest.err conftest.$ac_objext
4052  test "x$ac_cv_prog_cc_c89" != "xno" && break
4053done
4054rm -f conftest.$ac_ext
4055CC=$ac_save_CC
4056
4057fi
4058# AC_CACHE_VAL
4059case "x$ac_cv_prog_cc_c89" in
4060  x)
4061    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4062$as_echo "none needed" >&6; } ;;
4063  xno)
4064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4065$as_echo "unsupported" >&6; } ;;
4066  *)
4067    CC="$CC $ac_cv_prog_cc_c89"
4068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4069$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4070esac
4071if test "x$ac_cv_prog_cc_c89" != xno; then :
4072
4073fi
4074
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081depcc="$CC"   am_compiler_list=
4082
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4084$as_echo_n "checking dependency style of $depcc... " >&6; }
4085if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4086  $as_echo_n "(cached) " >&6
4087else
4088  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4089  # We make a subdir and do the tests there.  Otherwise we can end up
4090  # making bogus files that we don't know about and never remove.  For
4091  # instance it was reported that on HP-UX the gcc test will end up
4092  # making a dummy file named `D' -- because `-MD' means `put the output
4093  # in D'.
4094  mkdir conftest.dir
4095  # Copy depcomp to subdir because otherwise we won't find it if we're
4096  # using a relative directory.
4097  cp "$am_depcomp" conftest.dir
4098  cd conftest.dir
4099  # We will build objects and dependencies in a subdirectory because
4100  # it helps to detect inapplicable dependency modes.  For instance
4101  # both Tru64's cc and ICC support -MD to output dependencies as a
4102  # side effect of compilation, but ICC will put the dependencies in
4103  # the current directory while Tru64 will put them in the object
4104  # directory.
4105  mkdir sub
4106
4107  am_cv_CC_dependencies_compiler_type=none
4108  if test "$am_compiler_list" = ""; then
4109     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4110  fi
4111  am__universal=false
4112  case " $depcc " in #(
4113     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4114     esac
4115
4116  for depmode in $am_compiler_list; do
4117    # Setup a source with many dependencies, because some compilers
4118    # like to wrap large dependency lists on column 80 (with \), and
4119    # we should not choose a depcomp mode which is confused by this.
4120    #
4121    # We need to recreate these files for each test, as the compiler may
4122    # overwrite some of them when testing with obscure command lines.
4123    # This happens at least with the AIX C compiler.
4124    : > sub/conftest.c
4125    for i in 1 2 3 4 5 6; do
4126      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4127      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4128      # Solaris 8's {/usr,}/bin/sh.
4129      touch sub/conftst$i.h
4130    done
4131    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4132
4133    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4134    # mode.  It turns out that the SunPro C++ compiler does not properly
4135    # handle `-M -o', and we need to detect this.  Also, some Intel
4136    # versions had trouble with output in subdirs
4137    am__obj=sub/conftest.${OBJEXT-o}
4138    am__minus_obj="-o $am__obj"
4139    case $depmode in
4140    gcc)
4141      # This depmode causes a compiler race in universal mode.
4142      test "$am__universal" = false || continue
4143      ;;
4144    nosideeffect)
4145      # after this tag, mechanisms are not by side-effect, so they'll
4146      # only be used when explicitly requested
4147      if test "x$enable_dependency_tracking" = xyes; then
4148	continue
4149      else
4150	break
4151      fi
4152      ;;
4153    msvisualcpp | msvcmsys)
4154      # This compiler won't grok `-c -o', but also, the minuso test has
4155      # not run yet.  These depmodes are late enough in the game, and
4156      # so weak that their functioning should not be impacted.
4157      am__obj=conftest.${OBJEXT-o}
4158      am__minus_obj=
4159      ;;
4160    none) break ;;
4161    esac
4162    if depmode=$depmode \
4163       source=sub/conftest.c object=$am__obj \
4164       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4165       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4166         >/dev/null 2>conftest.err &&
4167       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4168       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4169       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4170       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4171      # icc doesn't choke on unknown options, it will just issue warnings
4172      # or remarks (even with -Werror).  So we grep stderr for any message
4173      # that says an option was ignored or not supported.
4174      # When given -MP, icc 7.0 and 7.1 complain thusly:
4175      #   icc: Command line warning: ignoring option '-M'; no argument required
4176      # The diagnosis changed in icc 8.0:
4177      #   icc: Command line remark: option '-MP' not supported
4178      if (grep 'ignoring option' conftest.err ||
4179          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4180        am_cv_CC_dependencies_compiler_type=$depmode
4181        break
4182      fi
4183    fi
4184  done
4185
4186  cd ..
4187  rm -rf conftest.dir
4188else
4189  am_cv_CC_dependencies_compiler_type=none
4190fi
4191
4192fi
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4194$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4195CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4196
4197 if
4198  test "x$enable_dependency_tracking" != xno \
4199  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4200  am__fastdepCC_TRUE=
4201  am__fastdepCC_FALSE='#'
4202else
4203  am__fastdepCC_TRUE='#'
4204  am__fastdepCC_FALSE=
4205fi
4206
4207
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4209$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4210if ${ac_cv_path_SED+:} false; then :
4211  $as_echo_n "(cached) " >&6
4212else
4213            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4214     for ac_i in 1 2 3 4 5 6 7; do
4215       ac_script="$ac_script$as_nl$ac_script"
4216     done
4217     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4218     { ac_script=; unset ac_script;}
4219     if test -z "$SED"; then
4220  ac_path_SED_found=false
4221  # Loop through the user's path and test for each of PROGNAME-LIST
4222  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225  IFS=$as_save_IFS
4226  test -z "$as_dir" && as_dir=.
4227    for ac_prog in sed gsed; do
4228    for ac_exec_ext in '' $ac_executable_extensions; do
4229      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4230      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4231# Check for GNU ac_path_SED and select it if it is found.
4232  # Check for GNU $ac_path_SED
4233case `"$ac_path_SED" --version 2>&1` in
4234*GNU*)
4235  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4236*)
4237  ac_count=0
4238  $as_echo_n 0123456789 >"conftest.in"
4239  while :
4240  do
4241    cat "conftest.in" "conftest.in" >"conftest.tmp"
4242    mv "conftest.tmp" "conftest.in"
4243    cp "conftest.in" "conftest.nl"
4244    $as_echo '' >> "conftest.nl"
4245    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4246    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4247    as_fn_arith $ac_count + 1 && ac_count=$as_val
4248    if test $ac_count -gt ${ac_path_SED_max-0}; then
4249      # Best one so far, save it but keep looking for a better one
4250      ac_cv_path_SED="$ac_path_SED"
4251      ac_path_SED_max=$ac_count
4252    fi
4253    # 10*(2^10) chars as input seems more than enough
4254    test $ac_count -gt 10 && break
4255  done
4256  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4257esac
4258
4259      $ac_path_SED_found && break 3
4260    done
4261  done
4262  done
4263IFS=$as_save_IFS
4264  if test -z "$ac_cv_path_SED"; then
4265    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4266  fi
4267else
4268  ac_cv_path_SED=$SED
4269fi
4270
4271fi
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4273$as_echo "$ac_cv_path_SED" >&6; }
4274 SED="$ac_cv_path_SED"
4275  rm -f conftest.sed
4276
4277test -z "$SED" && SED=sed
4278Xsed="$SED -e 1s/^X//"
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4291$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4292if ${ac_cv_path_GREP+:} false; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295  if test -z "$GREP"; then
4296  ac_path_GREP_found=false
4297  # Loop through the user's path and test for each of PROGNAME-LIST
4298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4300do
4301  IFS=$as_save_IFS
4302  test -z "$as_dir" && as_dir=.
4303    for ac_prog in grep ggrep; do
4304    for ac_exec_ext in '' $ac_executable_extensions; do
4305      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4306      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4307# Check for GNU ac_path_GREP and select it if it is found.
4308  # Check for GNU $ac_path_GREP
4309case `"$ac_path_GREP" --version 2>&1` in
4310*GNU*)
4311  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4312*)
4313  ac_count=0
4314  $as_echo_n 0123456789 >"conftest.in"
4315  while :
4316  do
4317    cat "conftest.in" "conftest.in" >"conftest.tmp"
4318    mv "conftest.tmp" "conftest.in"
4319    cp "conftest.in" "conftest.nl"
4320    $as_echo 'GREP' >> "conftest.nl"
4321    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4322    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4323    as_fn_arith $ac_count + 1 && ac_count=$as_val
4324    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4325      # Best one so far, save it but keep looking for a better one
4326      ac_cv_path_GREP="$ac_path_GREP"
4327      ac_path_GREP_max=$ac_count
4328    fi
4329    # 10*(2^10) chars as input seems more than enough
4330    test $ac_count -gt 10 && break
4331  done
4332  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333esac
4334
4335      $ac_path_GREP_found && break 3
4336    done
4337  done
4338  done
4339IFS=$as_save_IFS
4340  if test -z "$ac_cv_path_GREP"; then
4341    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4342  fi
4343else
4344  ac_cv_path_GREP=$GREP
4345fi
4346
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4349$as_echo "$ac_cv_path_GREP" >&6; }
4350 GREP="$ac_cv_path_GREP"
4351
4352
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4354$as_echo_n "checking for egrep... " >&6; }
4355if ${ac_cv_path_EGREP+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4359   then ac_cv_path_EGREP="$GREP -E"
4360   else
4361     if test -z "$EGREP"; then
4362  ac_path_EGREP_found=false
4363  # Loop through the user's path and test for each of PROGNAME-LIST
4364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4366do
4367  IFS=$as_save_IFS
4368  test -z "$as_dir" && as_dir=.
4369    for ac_prog in egrep; do
4370    for ac_exec_ext in '' $ac_executable_extensions; do
4371      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4372      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4373# Check for GNU ac_path_EGREP and select it if it is found.
4374  # Check for GNU $ac_path_EGREP
4375case `"$ac_path_EGREP" --version 2>&1` in
4376*GNU*)
4377  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4378*)
4379  ac_count=0
4380  $as_echo_n 0123456789 >"conftest.in"
4381  while :
4382  do
4383    cat "conftest.in" "conftest.in" >"conftest.tmp"
4384    mv "conftest.tmp" "conftest.in"
4385    cp "conftest.in" "conftest.nl"
4386    $as_echo 'EGREP' >> "conftest.nl"
4387    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4388    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4389    as_fn_arith $ac_count + 1 && ac_count=$as_val
4390    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4391      # Best one so far, save it but keep looking for a better one
4392      ac_cv_path_EGREP="$ac_path_EGREP"
4393      ac_path_EGREP_max=$ac_count
4394    fi
4395    # 10*(2^10) chars as input seems more than enough
4396    test $ac_count -gt 10 && break
4397  done
4398  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4399esac
4400
4401      $ac_path_EGREP_found && break 3
4402    done
4403  done
4404  done
4405IFS=$as_save_IFS
4406  if test -z "$ac_cv_path_EGREP"; then
4407    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4408  fi
4409else
4410  ac_cv_path_EGREP=$EGREP
4411fi
4412
4413   fi
4414fi
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4416$as_echo "$ac_cv_path_EGREP" >&6; }
4417 EGREP="$ac_cv_path_EGREP"
4418
4419
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4421$as_echo_n "checking for fgrep... " >&6; }
4422if ${ac_cv_path_FGREP+:} false; then :
4423  $as_echo_n "(cached) " >&6
4424else
4425  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4426   then ac_cv_path_FGREP="$GREP -F"
4427   else
4428     if test -z "$FGREP"; then
4429  ac_path_FGREP_found=false
4430  # Loop through the user's path and test for each of PROGNAME-LIST
4431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4433do
4434  IFS=$as_save_IFS
4435  test -z "$as_dir" && as_dir=.
4436    for ac_prog in fgrep; do
4437    for ac_exec_ext in '' $ac_executable_extensions; do
4438      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4439      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4440# Check for GNU ac_path_FGREP and select it if it is found.
4441  # Check for GNU $ac_path_FGREP
4442case `"$ac_path_FGREP" --version 2>&1` in
4443*GNU*)
4444  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4445*)
4446  ac_count=0
4447  $as_echo_n 0123456789 >"conftest.in"
4448  while :
4449  do
4450    cat "conftest.in" "conftest.in" >"conftest.tmp"
4451    mv "conftest.tmp" "conftest.in"
4452    cp "conftest.in" "conftest.nl"
4453    $as_echo 'FGREP' >> "conftest.nl"
4454    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456    as_fn_arith $ac_count + 1 && ac_count=$as_val
4457    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4458      # Best one so far, save it but keep looking for a better one
4459      ac_cv_path_FGREP="$ac_path_FGREP"
4460      ac_path_FGREP_max=$ac_count
4461    fi
4462    # 10*(2^10) chars as input seems more than enough
4463    test $ac_count -gt 10 && break
4464  done
4465  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4466esac
4467
4468      $ac_path_FGREP_found && break 3
4469    done
4470  done
4471  done
4472IFS=$as_save_IFS
4473  if test -z "$ac_cv_path_FGREP"; then
4474    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4475  fi
4476else
4477  ac_cv_path_FGREP=$FGREP
4478fi
4479
4480   fi
4481fi
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4483$as_echo "$ac_cv_path_FGREP" >&6; }
4484 FGREP="$ac_cv_path_FGREP"
4485
4486
4487test -z "$GREP" && GREP=grep
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507# Check whether --with-gnu-ld was given.
4508if test "${with_gnu_ld+set}" = set; then :
4509  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4510else
4511  with_gnu_ld=no
4512fi
4513
4514ac_prog=ld
4515if test "$GCC" = yes; then
4516  # Check if gcc -print-prog-name=ld gives a path.
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4518$as_echo_n "checking for ld used by $CC... " >&6; }
4519  case $host in
4520  *-*-mingw*)
4521    # gcc leaves a trailing carriage return which upsets mingw
4522    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4523  *)
4524    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4525  esac
4526  case $ac_prog in
4527    # Accept absolute paths.
4528    [\\/]* | ?:[\\/]*)
4529      re_direlt='/[^/][^/]*/\.\./'
4530      # Canonicalize the pathname of ld
4531      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4532      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4533	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4534      done
4535      test -z "$LD" && LD="$ac_prog"
4536      ;;
4537  "")
4538    # If it fails, then pretend we aren't using GCC.
4539    ac_prog=ld
4540    ;;
4541  *)
4542    # If it is relative, then search for the first ld in PATH.
4543    with_gnu_ld=unknown
4544    ;;
4545  esac
4546elif test "$with_gnu_ld" = yes; then
4547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4548$as_echo_n "checking for GNU ld... " >&6; }
4549else
4550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4551$as_echo_n "checking for non-GNU ld... " >&6; }
4552fi
4553if ${lt_cv_path_LD+:} false; then :
4554  $as_echo_n "(cached) " >&6
4555else
4556  if test -z "$LD"; then
4557  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4558  for ac_dir in $PATH; do
4559    IFS="$lt_save_ifs"
4560    test -z "$ac_dir" && ac_dir=.
4561    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4562      lt_cv_path_LD="$ac_dir/$ac_prog"
4563      # Check to see if the program is GNU ld.  I'd rather use --version,
4564      # but apparently some variants of GNU ld only accept -v.
4565      # Break only if it was the GNU/non-GNU ld that we prefer.
4566      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4567      *GNU* | *'with BFD'*)
4568	test "$with_gnu_ld" != no && break
4569	;;
4570      *)
4571	test "$with_gnu_ld" != yes && break
4572	;;
4573      esac
4574    fi
4575  done
4576  IFS="$lt_save_ifs"
4577else
4578  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4579fi
4580fi
4581
4582LD="$lt_cv_path_LD"
4583if test -n "$LD"; then
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4585$as_echo "$LD" >&6; }
4586else
4587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588$as_echo "no" >&6; }
4589fi
4590test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4592$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4593if ${lt_cv_prog_gnu_ld+:} false; then :
4594  $as_echo_n "(cached) " >&6
4595else
4596  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4597case `$LD -v 2>&1 </dev/null` in
4598*GNU* | *'with BFD'*)
4599  lt_cv_prog_gnu_ld=yes
4600  ;;
4601*)
4602  lt_cv_prog_gnu_ld=no
4603  ;;
4604esac
4605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4607$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4608with_gnu_ld=$lt_cv_prog_gnu_ld
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4619$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4620if ${lt_cv_path_NM+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623  if test -n "$NM"; then
4624  # Let the user override the test.
4625  lt_cv_path_NM="$NM"
4626else
4627  lt_nm_to_check="${ac_tool_prefix}nm"
4628  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4629    lt_nm_to_check="$lt_nm_to_check nm"
4630  fi
4631  for lt_tmp_nm in $lt_nm_to_check; do
4632    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4633    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4634      IFS="$lt_save_ifs"
4635      test -z "$ac_dir" && ac_dir=.
4636      tmp_nm="$ac_dir/$lt_tmp_nm"
4637      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4638	# Check to see if the nm accepts a BSD-compat flag.
4639	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4640	#   nm: unknown option "B" ignored
4641	# Tru64's nm complains that /dev/null is an invalid object file
4642	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4643	*/dev/null* | *'Invalid file or object type'*)
4644	  lt_cv_path_NM="$tmp_nm -B"
4645	  break
4646	  ;;
4647	*)
4648	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4649	  */dev/null*)
4650	    lt_cv_path_NM="$tmp_nm -p"
4651	    break
4652	    ;;
4653	  *)
4654	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4655	    continue # so that we can try to find one that supports BSD flags
4656	    ;;
4657	  esac
4658	  ;;
4659	esac
4660      fi
4661    done
4662    IFS="$lt_save_ifs"
4663  done
4664  : ${lt_cv_path_NM=no}
4665fi
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4668$as_echo "$lt_cv_path_NM" >&6; }
4669if test "$lt_cv_path_NM" != "no"; then
4670  NM="$lt_cv_path_NM"
4671else
4672  # Didn't find any BSD compatible name lister, look for dumpbin.
4673  if test -n "$DUMPBIN"; then :
4674    # Let the user override the test.
4675  else
4676    if test -n "$ac_tool_prefix"; then
4677  for ac_prog in dumpbin "link -dump"
4678  do
4679    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4680set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682$as_echo_n "checking for $ac_word... " >&6; }
4683if ${ac_cv_prog_DUMPBIN+:} false; then :
4684  $as_echo_n "(cached) " >&6
4685else
4686  if test -n "$DUMPBIN"; then
4687  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692  IFS=$as_save_IFS
4693  test -z "$as_dir" && as_dir=.
4694    for ac_exec_ext in '' $ac_executable_extensions; do
4695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698    break 2
4699  fi
4700done
4701  done
4702IFS=$as_save_IFS
4703
4704fi
4705fi
4706DUMPBIN=$ac_cv_prog_DUMPBIN
4707if test -n "$DUMPBIN"; then
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4709$as_echo "$DUMPBIN" >&6; }
4710else
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712$as_echo "no" >&6; }
4713fi
4714
4715
4716    test -n "$DUMPBIN" && break
4717  done
4718fi
4719if test -z "$DUMPBIN"; then
4720  ac_ct_DUMPBIN=$DUMPBIN
4721  for ac_prog in dumpbin "link -dump"
4722do
4723  # Extract the first word of "$ac_prog", so it can be a program name with args.
4724set dummy $ac_prog; ac_word=$2
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726$as_echo_n "checking for $ac_word... " >&6; }
4727if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4728  $as_echo_n "(cached) " >&6
4729else
4730  if test -n "$ac_ct_DUMPBIN"; then
4731  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4732else
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736  IFS=$as_save_IFS
4737  test -z "$as_dir" && as_dir=.
4738    for ac_exec_ext in '' $ac_executable_extensions; do
4739  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742    break 2
4743  fi
4744done
4745  done
4746IFS=$as_save_IFS
4747
4748fi
4749fi
4750ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4751if test -n "$ac_ct_DUMPBIN"; then
4752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4753$as_echo "$ac_ct_DUMPBIN" >&6; }
4754else
4755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756$as_echo "no" >&6; }
4757fi
4758
4759
4760  test -n "$ac_ct_DUMPBIN" && break
4761done
4762
4763  if test "x$ac_ct_DUMPBIN" = x; then
4764    DUMPBIN=":"
4765  else
4766    case $cross_compiling:$ac_tool_warned in
4767yes:)
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770ac_tool_warned=yes ;;
4771esac
4772    DUMPBIN=$ac_ct_DUMPBIN
4773  fi
4774fi
4775
4776    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4777    *COFF*)
4778      DUMPBIN="$DUMPBIN -symbols"
4779      ;;
4780    *)
4781      DUMPBIN=:
4782      ;;
4783    esac
4784  fi
4785
4786  if test "$DUMPBIN" != ":"; then
4787    NM="$DUMPBIN"
4788  fi
4789fi
4790test -z "$NM" && NM=nm
4791
4792
4793
4794
4795
4796
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4798$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4799if ${lt_cv_nm_interface+:} false; then :
4800  $as_echo_n "(cached) " >&6
4801else
4802  lt_cv_nm_interface="BSD nm"
4803  echo "int some_variable = 0;" > conftest.$ac_ext
4804  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4805  (eval "$ac_compile" 2>conftest.err)
4806  cat conftest.err >&5
4807  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4808  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4809  cat conftest.err >&5
4810  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4811  cat conftest.out >&5
4812  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4813    lt_cv_nm_interface="MS dumpbin"
4814  fi
4815  rm -f conftest*
4816fi
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4818$as_echo "$lt_cv_nm_interface" >&6; }
4819
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4821$as_echo_n "checking whether ln -s works... " >&6; }
4822LN_S=$as_ln_s
4823if test "$LN_S" = "ln -s"; then
4824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4825$as_echo "yes" >&6; }
4826else
4827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4828$as_echo "no, using $LN_S" >&6; }
4829fi
4830
4831# find the maximum length of command line arguments
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4833$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4834if ${lt_cv_sys_max_cmd_len+:} false; then :
4835  $as_echo_n "(cached) " >&6
4836else
4837    i=0
4838  teststring="ABCD"
4839
4840  case $build_os in
4841  msdosdjgpp*)
4842    # On DJGPP, this test can blow up pretty badly due to problems in libc
4843    # (any single argument exceeding 2000 bytes causes a buffer overrun
4844    # during glob expansion).  Even if it were fixed, the result of this
4845    # check would be larger than it should be.
4846    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4847    ;;
4848
4849  gnu*)
4850    # Under GNU Hurd, this test is not required because there is
4851    # no limit to the length of command line arguments.
4852    # Libtool will interpret -1 as no limit whatsoever
4853    lt_cv_sys_max_cmd_len=-1;
4854    ;;
4855
4856  cygwin* | mingw* | cegcc*)
4857    # On Win9x/ME, this test blows up -- it succeeds, but takes
4858    # about 5 minutes as the teststring grows exponentially.
4859    # Worse, since 9x/ME are not pre-emptively multitasking,
4860    # you end up with a "frozen" computer, even though with patience
4861    # the test eventually succeeds (with a max line length of 256k).
4862    # Instead, let's just punt: use the minimum linelength reported by
4863    # all of the supported platforms: 8192 (on NT/2K/XP).
4864    lt_cv_sys_max_cmd_len=8192;
4865    ;;
4866
4867  mint*)
4868    # On MiNT this can take a long time and run out of memory.
4869    lt_cv_sys_max_cmd_len=8192;
4870    ;;
4871
4872  amigaos*)
4873    # On AmigaOS with pdksh, this test takes hours, literally.
4874    # So we just punt and use a minimum line length of 8192.
4875    lt_cv_sys_max_cmd_len=8192;
4876    ;;
4877
4878  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4879    # This has been around since 386BSD, at least.  Likely further.
4880    if test -x /sbin/sysctl; then
4881      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4882    elif test -x /usr/sbin/sysctl; then
4883      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4884    else
4885      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4886    fi
4887    # And add a safety zone
4888    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4889    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4890    ;;
4891
4892  interix*)
4893    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4894    lt_cv_sys_max_cmd_len=196608
4895    ;;
4896
4897  osf*)
4898    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4899    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4900    # nice to cause kernel panics so lets avoid the loop below.
4901    # First set a reasonable default.
4902    lt_cv_sys_max_cmd_len=16384
4903    #
4904    if test -x /sbin/sysconfig; then
4905      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4906        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4907      esac
4908    fi
4909    ;;
4910  sco3.2v5*)
4911    lt_cv_sys_max_cmd_len=102400
4912    ;;
4913  sysv5* | sco5v6* | sysv4.2uw2*)
4914    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4915    if test -n "$kargmax"; then
4916      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4917    else
4918      lt_cv_sys_max_cmd_len=32768
4919    fi
4920    ;;
4921  *)
4922    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4923    if test -n "$lt_cv_sys_max_cmd_len"; then
4924      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4925      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4926    else
4927      # Make teststring a little bigger before we do anything with it.
4928      # a 1K string should be a reasonable start.
4929      for i in 1 2 3 4 5 6 7 8 ; do
4930        teststring=$teststring$teststring
4931      done
4932      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4933      # If test is not a shell built-in, we'll probably end up computing a
4934      # maximum length that is only half of the actual maximum length, but
4935      # we can't tell.
4936      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4937	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4938	      test $i != 17 # 1/2 MB should be enough
4939      do
4940        i=`expr $i + 1`
4941        teststring=$teststring$teststring
4942      done
4943      # Only check the string length outside the loop.
4944      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4945      teststring=
4946      # Add a significant safety factor because C++ compilers can tack on
4947      # massive amounts of additional arguments before passing them to the
4948      # linker.  It appears as though 1/2 is a usable value.
4949      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4950    fi
4951    ;;
4952  esac
4953
4954fi
4955
4956if test -n $lt_cv_sys_max_cmd_len ; then
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4958$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4959else
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4961$as_echo "none" >&6; }
4962fi
4963max_cmd_len=$lt_cv_sys_max_cmd_len
4964
4965
4966
4967
4968
4969
4970: ${CP="cp -f"}
4971: ${MV="mv -f"}
4972: ${RM="rm -f"}
4973
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4975$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4976# Try some XSI features
4977xsi_shell=no
4978( _lt_dummy="a/b/c"
4979  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4980      = c,a/b,b/c, \
4981    && eval 'test $(( 1 + 1 )) -eq 2 \
4982    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4983  && xsi_shell=yes
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4985$as_echo "$xsi_shell" >&6; }
4986
4987
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4989$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4990lt_shell_append=no
4991( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4992    >/dev/null 2>&1 \
4993  && lt_shell_append=yes
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4995$as_echo "$lt_shell_append" >&6; }
4996
4997
4998if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4999  lt_unset=unset
5000else
5001  lt_unset=false
5002fi
5003
5004
5005
5006
5007
5008# test EBCDIC or ASCII
5009case `echo X|tr X '\101'` in
5010 A) # ASCII based system
5011    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5012  lt_SP2NL='tr \040 \012'
5013  lt_NL2SP='tr \015\012 \040\040'
5014  ;;
5015 *) # EBCDIC based system
5016  lt_SP2NL='tr \100 \n'
5017  lt_NL2SP='tr \r\n \100\100'
5018  ;;
5019esac
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5030$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5031if ${lt_cv_to_host_file_cmd+:} false; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  case $host in
5035  *-*-mingw* )
5036    case $build in
5037      *-*-mingw* ) # actually msys
5038        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5039        ;;
5040      *-*-cygwin* )
5041        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5042        ;;
5043      * ) # otherwise, assume *nix
5044        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5045        ;;
5046    esac
5047    ;;
5048  *-*-cygwin* )
5049    case $build in
5050      *-*-mingw* ) # actually msys
5051        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5052        ;;
5053      *-*-cygwin* )
5054        lt_cv_to_host_file_cmd=func_convert_file_noop
5055        ;;
5056      * ) # otherwise, assume *nix
5057        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5058        ;;
5059    esac
5060    ;;
5061  * ) # unhandled hosts (and "normal" native builds)
5062    lt_cv_to_host_file_cmd=func_convert_file_noop
5063    ;;
5064esac
5065
5066fi
5067
5068to_host_file_cmd=$lt_cv_to_host_file_cmd
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5070$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5071
5072
5073
5074
5075
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5077$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5078if ${lt_cv_to_tool_file_cmd+:} false; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  #assume ordinary cross tools, or native build.
5082lt_cv_to_tool_file_cmd=func_convert_file_noop
5083case $host in
5084  *-*-mingw* )
5085    case $build in
5086      *-*-mingw* ) # actually msys
5087        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5088        ;;
5089    esac
5090    ;;
5091esac
5092
5093fi
5094
5095to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5097$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5098
5099
5100
5101
5102
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5104$as_echo_n "checking for $LD option to reload object files... " >&6; }
5105if ${lt_cv_ld_reload_flag+:} false; then :
5106  $as_echo_n "(cached) " >&6
5107else
5108  lt_cv_ld_reload_flag='-r'
5109fi
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5111$as_echo "$lt_cv_ld_reload_flag" >&6; }
5112reload_flag=$lt_cv_ld_reload_flag
5113case $reload_flag in
5114"" | " "*) ;;
5115*) reload_flag=" $reload_flag" ;;
5116esac
5117reload_cmds='$LD$reload_flag -o $output$reload_objs'
5118case $host_os in
5119  cygwin* | mingw* | pw32* | cegcc*)
5120    if test "$GCC" != yes; then
5121      reload_cmds=false
5122    fi
5123    ;;
5124  darwin*)
5125    if test "$GCC" = yes; then
5126      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5127    else
5128      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5129    fi
5130    ;;
5131esac
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141if test -n "$ac_tool_prefix"; then
5142  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5143set dummy ${ac_tool_prefix}objdump; ac_word=$2
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145$as_echo_n "checking for $ac_word... " >&6; }
5146if ${ac_cv_prog_OBJDUMP+:} false; then :
5147  $as_echo_n "(cached) " >&6
5148else
5149  if test -n "$OBJDUMP"; then
5150  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5151else
5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH
5154do
5155  IFS=$as_save_IFS
5156  test -z "$as_dir" && as_dir=.
5157    for ac_exec_ext in '' $ac_executable_extensions; do
5158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161    break 2
5162  fi
5163done
5164  done
5165IFS=$as_save_IFS
5166
5167fi
5168fi
5169OBJDUMP=$ac_cv_prog_OBJDUMP
5170if test -n "$OBJDUMP"; then
5171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5172$as_echo "$OBJDUMP" >&6; }
5173else
5174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175$as_echo "no" >&6; }
5176fi
5177
5178
5179fi
5180if test -z "$ac_cv_prog_OBJDUMP"; then
5181  ac_ct_OBJDUMP=$OBJDUMP
5182  # Extract the first word of "objdump", so it can be a program name with args.
5183set dummy objdump; ac_word=$2
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185$as_echo_n "checking for $ac_word... " >&6; }
5186if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5187  $as_echo_n "(cached) " >&6
5188else
5189  if test -n "$ac_ct_OBJDUMP"; then
5190  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195  IFS=$as_save_IFS
5196  test -z "$as_dir" && as_dir=.
5197    for ac_exec_ext in '' $ac_executable_extensions; do
5198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201    break 2
5202  fi
5203done
5204  done
5205IFS=$as_save_IFS
5206
5207fi
5208fi
5209ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5210if test -n "$ac_ct_OBJDUMP"; then
5211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5212$as_echo "$ac_ct_OBJDUMP" >&6; }
5213else
5214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215$as_echo "no" >&6; }
5216fi
5217
5218  if test "x$ac_ct_OBJDUMP" = x; then
5219    OBJDUMP="false"
5220  else
5221    case $cross_compiling:$ac_tool_warned in
5222yes:)
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225ac_tool_warned=yes ;;
5226esac
5227    OBJDUMP=$ac_ct_OBJDUMP
5228  fi
5229else
5230  OBJDUMP="$ac_cv_prog_OBJDUMP"
5231fi
5232
5233test -z "$OBJDUMP" && OBJDUMP=objdump
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5244$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5245if ${lt_cv_deplibs_check_method+:} false; then :
5246  $as_echo_n "(cached) " >&6
5247else
5248  lt_cv_file_magic_cmd='$MAGIC_CMD'
5249lt_cv_file_magic_test_file=
5250lt_cv_deplibs_check_method='unknown'
5251# Need to set the preceding variable on all platforms that support
5252# interlibrary dependencies.
5253# 'none' -- dependencies not supported.
5254# `unknown' -- same as none, but documents that we really don't know.
5255# 'pass_all' -- all dependencies passed with no checks.
5256# 'test_compile' -- check by making test program.
5257# 'file_magic [[regex]]' -- check by looking for files in library path
5258# which responds to the $file_magic_cmd with a given extended regex.
5259# If you have `file' or equivalent on your system and you're not sure
5260# whether `pass_all' will *always* work, you probably want this one.
5261
5262case $host_os in
5263aix[4-9]*)
5264  lt_cv_deplibs_check_method=pass_all
5265  ;;
5266
5267beos*)
5268  lt_cv_deplibs_check_method=pass_all
5269  ;;
5270
5271bsdi[45]*)
5272  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5273  lt_cv_file_magic_cmd='/usr/bin/file -L'
5274  lt_cv_file_magic_test_file=/shlib/libc.so
5275  ;;
5276
5277cygwin*)
5278  # func_win32_libid is a shell function defined in ltmain.sh
5279  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5280  lt_cv_file_magic_cmd='func_win32_libid'
5281  ;;
5282
5283mingw* | pw32*)
5284  # Base MSYS/MinGW do not provide the 'file' command needed by
5285  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5286  # unless we find 'file', for example because we are cross-compiling.
5287  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5288  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5289    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5290    lt_cv_file_magic_cmd='func_win32_libid'
5291  else
5292    # Keep this pattern in sync with the one in func_win32_libid.
5293    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5294    lt_cv_file_magic_cmd='$OBJDUMP -f'
5295  fi
5296  ;;
5297
5298cegcc*)
5299  # use the weaker test based on 'objdump'. See mingw*.
5300  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5301  lt_cv_file_magic_cmd='$OBJDUMP -f'
5302  ;;
5303
5304darwin* | rhapsody*)
5305  lt_cv_deplibs_check_method=pass_all
5306  ;;
5307
5308freebsd* | dragonfly*)
5309  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5310    case $host_cpu in
5311    i*86 )
5312      # Not sure whether the presence of OpenBSD here was a mistake.
5313      # Let's accept both of them until this is cleared up.
5314      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5315      lt_cv_file_magic_cmd=/usr/bin/file
5316      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5317      ;;
5318    esac
5319  else
5320    lt_cv_deplibs_check_method=pass_all
5321  fi
5322  ;;
5323
5324gnu*)
5325  lt_cv_deplibs_check_method=pass_all
5326  ;;
5327
5328haiku*)
5329  lt_cv_deplibs_check_method=pass_all
5330  ;;
5331
5332hpux10.20* | hpux11*)
5333  lt_cv_file_magic_cmd=/usr/bin/file
5334  case $host_cpu in
5335  ia64*)
5336    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5337    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5338    ;;
5339  hppa*64*)
5340    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]'
5341    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5342    ;;
5343  *)
5344    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5345    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5346    ;;
5347  esac
5348  ;;
5349
5350interix[3-9]*)
5351  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5352  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5353  ;;
5354
5355irix5* | irix6* | nonstopux*)
5356  case $LD in
5357  *-32|*"-32 ") libmagic=32-bit;;
5358  *-n32|*"-n32 ") libmagic=N32;;
5359  *-64|*"-64 ") libmagic=64-bit;;
5360  *) libmagic=never-match;;
5361  esac
5362  lt_cv_deplibs_check_method=pass_all
5363  ;;
5364
5365# This must be Linux ELF.
5366linux* | k*bsd*-gnu | kopensolaris*-gnu)
5367  lt_cv_deplibs_check_method=pass_all
5368  ;;
5369
5370netbsd*)
5371  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5372    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5373  else
5374    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5375  fi
5376  ;;
5377
5378newos6*)
5379  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5380  lt_cv_file_magic_cmd=/usr/bin/file
5381  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5382  ;;
5383
5384*nto* | *qnx*)
5385  lt_cv_deplibs_check_method=pass_all
5386  ;;
5387
5388openbsd*)
5389  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5390    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5391  else
5392    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5393  fi
5394  ;;
5395
5396osf3* | osf4* | osf5*)
5397  lt_cv_deplibs_check_method=pass_all
5398  ;;
5399
5400rdos*)
5401  lt_cv_deplibs_check_method=pass_all
5402  ;;
5403
5404solaris*)
5405  lt_cv_deplibs_check_method=pass_all
5406  ;;
5407
5408sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5409  lt_cv_deplibs_check_method=pass_all
5410  ;;
5411
5412sysv4 | sysv4.3*)
5413  case $host_vendor in
5414  motorola)
5415    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]'
5416    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5417    ;;
5418  ncr)
5419    lt_cv_deplibs_check_method=pass_all
5420    ;;
5421  sequent)
5422    lt_cv_file_magic_cmd='/bin/file'
5423    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5424    ;;
5425  sni)
5426    lt_cv_file_magic_cmd='/bin/file'
5427    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5428    lt_cv_file_magic_test_file=/lib/libc.so
5429    ;;
5430  siemens)
5431    lt_cv_deplibs_check_method=pass_all
5432    ;;
5433  pc)
5434    lt_cv_deplibs_check_method=pass_all
5435    ;;
5436  esac
5437  ;;
5438
5439tpf*)
5440  lt_cv_deplibs_check_method=pass_all
5441  ;;
5442esac
5443
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5446$as_echo "$lt_cv_deplibs_check_method" >&6; }
5447
5448file_magic_glob=
5449want_nocaseglob=no
5450if test "$build" = "$host"; then
5451  case $host_os in
5452  mingw* | pw32*)
5453    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5454      want_nocaseglob=yes
5455    else
5456      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5457    fi
5458    ;;
5459  esac
5460fi
5461
5462file_magic_cmd=$lt_cv_file_magic_cmd
5463deplibs_check_method=$lt_cv_deplibs_check_method
5464test -z "$deplibs_check_method" && deplibs_check_method=unknown
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487if test -n "$ac_tool_prefix"; then
5488  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5489set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
5492if ${ac_cv_prog_DLLTOOL+:} false; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  if test -n "$DLLTOOL"; then
5496  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501  IFS=$as_save_IFS
5502  test -z "$as_dir" && as_dir=.
5503    for ac_exec_ext in '' $ac_executable_extensions; do
5504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507    break 2
5508  fi
5509done
5510  done
5511IFS=$as_save_IFS
5512
5513fi
5514fi
5515DLLTOOL=$ac_cv_prog_DLLTOOL
5516if test -n "$DLLTOOL"; then
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5518$as_echo "$DLLTOOL" >&6; }
5519else
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523
5524
5525fi
5526if test -z "$ac_cv_prog_DLLTOOL"; then
5527  ac_ct_DLLTOOL=$DLLTOOL
5528  # Extract the first word of "dlltool", so it can be a program name with args.
5529set dummy dlltool; ac_word=$2
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531$as_echo_n "checking for $ac_word... " >&6; }
5532if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  if test -n "$ac_ct_DLLTOOL"; then
5536  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5537else
5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541  IFS=$as_save_IFS
5542  test -z "$as_dir" && as_dir=.
5543    for ac_exec_ext in '' $ac_executable_extensions; do
5544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547    break 2
5548  fi
5549done
5550  done
5551IFS=$as_save_IFS
5552
5553fi
5554fi
5555ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5556if test -n "$ac_ct_DLLTOOL"; then
5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5558$as_echo "$ac_ct_DLLTOOL" >&6; }
5559else
5560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561$as_echo "no" >&6; }
5562fi
5563
5564  if test "x$ac_ct_DLLTOOL" = x; then
5565    DLLTOOL="false"
5566  else
5567    case $cross_compiling:$ac_tool_warned in
5568yes:)
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5571ac_tool_warned=yes ;;
5572esac
5573    DLLTOOL=$ac_ct_DLLTOOL
5574  fi
5575else
5576  DLLTOOL="$ac_cv_prog_DLLTOOL"
5577fi
5578
5579test -z "$DLLTOOL" && DLLTOOL=dlltool
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5591$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5592if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595  lt_cv_sharedlib_from_linklib_cmd='unknown'
5596
5597case $host_os in
5598cygwin* | mingw* | pw32* | cegcc*)
5599  # two different shell functions defined in ltmain.sh
5600  # decide which to use based on capabilities of $DLLTOOL
5601  case `$DLLTOOL --help 2>&1` in
5602  *--identify-strict*)
5603    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5604    ;;
5605  *)
5606    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5607    ;;
5608  esac
5609  ;;
5610*)
5611  # fallback: assume linklib IS sharedlib
5612  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5613  ;;
5614esac
5615
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5618$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5619sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5620test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5621
5622
5623
5624
5625
5626
5627
5628
5629if test -n "$ac_tool_prefix"; then
5630  for ac_prog in ar
5631  do
5632    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635$as_echo_n "checking for $ac_word... " >&6; }
5636if ${ac_cv_prog_AR+:} false; then :
5637  $as_echo_n "(cached) " >&6
5638else
5639  if test -n "$AR"; then
5640  ac_cv_prog_AR="$AR" # Let the user override the test.
5641else
5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645  IFS=$as_save_IFS
5646  test -z "$as_dir" && as_dir=.
5647    for ac_exec_ext in '' $ac_executable_extensions; do
5648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651    break 2
5652  fi
5653done
5654  done
5655IFS=$as_save_IFS
5656
5657fi
5658fi
5659AR=$ac_cv_prog_AR
5660if test -n "$AR"; then
5661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5662$as_echo "$AR" >&6; }
5663else
5664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665$as_echo "no" >&6; }
5666fi
5667
5668
5669    test -n "$AR" && break
5670  done
5671fi
5672if test -z "$AR"; then
5673  ac_ct_AR=$AR
5674  for ac_prog in ar
5675do
5676  # Extract the first word of "$ac_prog", so it can be a program name with args.
5677set dummy $ac_prog; ac_word=$2
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
5680if ${ac_cv_prog_ac_ct_AR+:} false; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  if test -n "$ac_ct_AR"; then
5684  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689  IFS=$as_save_IFS
5690  test -z "$as_dir" && as_dir=.
5691    for ac_exec_ext in '' $ac_executable_extensions; do
5692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693    ac_cv_prog_ac_ct_AR="$ac_prog"
5694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695    break 2
5696  fi
5697done
5698  done
5699IFS=$as_save_IFS
5700
5701fi
5702fi
5703ac_ct_AR=$ac_cv_prog_ac_ct_AR
5704if test -n "$ac_ct_AR"; then
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5706$as_echo "$ac_ct_AR" >&6; }
5707else
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712
5713  test -n "$ac_ct_AR" && break
5714done
5715
5716  if test "x$ac_ct_AR" = x; then
5717    AR="false"
5718  else
5719    case $cross_compiling:$ac_tool_warned in
5720yes:)
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723ac_tool_warned=yes ;;
5724esac
5725    AR=$ac_ct_AR
5726  fi
5727fi
5728
5729: ${AR=ar}
5730: ${AR_FLAGS=cru}
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5743$as_echo_n "checking for archiver @FILE support... " >&6; }
5744if ${lt_cv_ar_at_file+:} false; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747  lt_cv_ar_at_file=no
5748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h.  */
5750
5751int
5752main ()
5753{
5754
5755  ;
5756  return 0;
5757}
5758_ACEOF
5759if ac_fn_c_try_compile "$LINENO"; then :
5760  echo conftest.$ac_objext > conftest.lst
5761      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5762      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5763  (eval $lt_ar_try) 2>&5
5764  ac_status=$?
5765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5766  test $ac_status = 0; }
5767      if test "$ac_status" -eq 0; then
5768	# Ensure the archiver fails upon bogus file names.
5769	rm -f conftest.$ac_objext libconftest.a
5770	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5771  (eval $lt_ar_try) 2>&5
5772  ac_status=$?
5773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774  test $ac_status = 0; }
5775	if test "$ac_status" -ne 0; then
5776          lt_cv_ar_at_file=@
5777        fi
5778      fi
5779      rm -f conftest.* libconftest.a
5780
5781fi
5782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783
5784fi
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5786$as_echo "$lt_cv_ar_at_file" >&6; }
5787
5788if test "x$lt_cv_ar_at_file" = xno; then
5789  archiver_list_spec=
5790else
5791  archiver_list_spec=$lt_cv_ar_at_file
5792fi
5793
5794
5795
5796
5797
5798
5799
5800if test -n "$ac_tool_prefix"; then
5801  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5802set dummy ${ac_tool_prefix}strip; ac_word=$2
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804$as_echo_n "checking for $ac_word... " >&6; }
5805if ${ac_cv_prog_STRIP+:} false; then :
5806  $as_echo_n "(cached) " >&6
5807else
5808  if test -n "$STRIP"; then
5809  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5810else
5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH
5813do
5814  IFS=$as_save_IFS
5815  test -z "$as_dir" && as_dir=.
5816    for ac_exec_ext in '' $ac_executable_extensions; do
5817  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820    break 2
5821  fi
5822done
5823  done
5824IFS=$as_save_IFS
5825
5826fi
5827fi
5828STRIP=$ac_cv_prog_STRIP
5829if test -n "$STRIP"; then
5830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5831$as_echo "$STRIP" >&6; }
5832else
5833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834$as_echo "no" >&6; }
5835fi
5836
5837
5838fi
5839if test -z "$ac_cv_prog_STRIP"; then
5840  ac_ct_STRIP=$STRIP
5841  # Extract the first word of "strip", so it can be a program name with args.
5842set dummy strip; ac_word=$2
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844$as_echo_n "checking for $ac_word... " >&6; }
5845if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5846  $as_echo_n "(cached) " >&6
5847else
5848  if test -n "$ac_ct_STRIP"; then
5849  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854  IFS=$as_save_IFS
5855  test -z "$as_dir" && as_dir=.
5856    for ac_exec_ext in '' $ac_executable_extensions; do
5857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858    ac_cv_prog_ac_ct_STRIP="strip"
5859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860    break 2
5861  fi
5862done
5863  done
5864IFS=$as_save_IFS
5865
5866fi
5867fi
5868ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5869if test -n "$ac_ct_STRIP"; then
5870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5871$as_echo "$ac_ct_STRIP" >&6; }
5872else
5873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874$as_echo "no" >&6; }
5875fi
5876
5877  if test "x$ac_ct_STRIP" = x; then
5878    STRIP=":"
5879  else
5880    case $cross_compiling:$ac_tool_warned in
5881yes:)
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884ac_tool_warned=yes ;;
5885esac
5886    STRIP=$ac_ct_STRIP
5887  fi
5888else
5889  STRIP="$ac_cv_prog_STRIP"
5890fi
5891
5892test -z "$STRIP" && STRIP=:
5893
5894
5895
5896
5897
5898
5899if test -n "$ac_tool_prefix"; then
5900  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5901set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903$as_echo_n "checking for $ac_word... " >&6; }
5904if ${ac_cv_prog_RANLIB+:} false; then :
5905  $as_echo_n "(cached) " >&6
5906else
5907  if test -n "$RANLIB"; then
5908  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5909else
5910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913  IFS=$as_save_IFS
5914  test -z "$as_dir" && as_dir=.
5915    for ac_exec_ext in '' $ac_executable_extensions; do
5916  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919    break 2
5920  fi
5921done
5922  done
5923IFS=$as_save_IFS
5924
5925fi
5926fi
5927RANLIB=$ac_cv_prog_RANLIB
5928if test -n "$RANLIB"; then
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5930$as_echo "$RANLIB" >&6; }
5931else
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933$as_echo "no" >&6; }
5934fi
5935
5936
5937fi
5938if test -z "$ac_cv_prog_RANLIB"; then
5939  ac_ct_RANLIB=$RANLIB
5940  # Extract the first word of "ranlib", so it can be a program name with args.
5941set dummy ranlib; ac_word=$2
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943$as_echo_n "checking for $ac_word... " >&6; }
5944if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  if test -n "$ac_ct_RANLIB"; then
5948  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955    for ac_exec_ext in '' $ac_executable_extensions; do
5956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957    ac_cv_prog_ac_ct_RANLIB="ranlib"
5958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959    break 2
5960  fi
5961done
5962  done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5968if test -n "$ac_ct_RANLIB"; then
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5970$as_echo "$ac_ct_RANLIB" >&6; }
5971else
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973$as_echo "no" >&6; }
5974fi
5975
5976  if test "x$ac_ct_RANLIB" = x; then
5977    RANLIB=":"
5978  else
5979    case $cross_compiling:$ac_tool_warned in
5980yes:)
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5983ac_tool_warned=yes ;;
5984esac
5985    RANLIB=$ac_ct_RANLIB
5986  fi
5987else
5988  RANLIB="$ac_cv_prog_RANLIB"
5989fi
5990
5991test -z "$RANLIB" && RANLIB=:
5992
5993
5994
5995
5996
5997
5998# Determine commands to create old-style static archives.
5999old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6000old_postinstall_cmds='chmod 644 $oldlib'
6001old_postuninstall_cmds=
6002
6003if test -n "$RANLIB"; then
6004  case $host_os in
6005  openbsd*)
6006    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6007    ;;
6008  *)
6009    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6010    ;;
6011  esac
6012  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6013fi
6014
6015case $host_os in
6016  darwin*)
6017    lock_old_archive_extraction=yes ;;
6018  *)
6019    lock_old_archive_extraction=no ;;
6020esac
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060# If no C compiler was specified, use CC.
6061LTCC=${LTCC-"$CC"}
6062
6063# If no C compiler flags were specified, use CFLAGS.
6064LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6065
6066# Allow CC to be a program name with arguments.
6067compiler=$CC
6068
6069
6070# Check for command to grab the raw symbol name followed by C symbol from nm.
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6072$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6073if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6074  $as_echo_n "(cached) " >&6
6075else
6076
6077# These are sane defaults that work on at least a few old systems.
6078# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6079
6080# Character class describing NM global symbol codes.
6081symcode='[BCDEGRST]'
6082
6083# Regexp to match symbols that can be accessed directly from C.
6084sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6085
6086# Define system-specific variables.
6087case $host_os in
6088aix*)
6089  symcode='[BCDT]'
6090  ;;
6091cygwin* | mingw* | pw32* | cegcc*)
6092  symcode='[ABCDGISTW]'
6093  ;;
6094hpux*)
6095  if test "$host_cpu" = ia64; then
6096    symcode='[ABCDEGRST]'
6097  fi
6098  ;;
6099irix* | nonstopux*)
6100  symcode='[BCDEGRST]'
6101  ;;
6102osf*)
6103  symcode='[BCDEGQRST]'
6104  ;;
6105solaris*)
6106  symcode='[BDRT]'
6107  ;;
6108sco3.2v5*)
6109  symcode='[DT]'
6110  ;;
6111sysv4.2uw2*)
6112  symcode='[DT]'
6113  ;;
6114sysv5* | sco5v6* | unixware* | OpenUNIX*)
6115  symcode='[ABDT]'
6116  ;;
6117sysv4)
6118  symcode='[DFNSTU]'
6119  ;;
6120esac
6121
6122# If we're using GNU nm, then use its standard symbol codes.
6123case `$NM -V 2>&1` in
6124*GNU* | *'with BFD'*)
6125  symcode='[ABCDGIRSTW]' ;;
6126esac
6127
6128# Transform an extracted symbol line into a proper C declaration.
6129# Some systems (esp. on ia64) link data and code symbols differently,
6130# so use this general approach.
6131lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6132
6133# Transform an extracted symbol line into symbol name and symbol address
6134lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6135lt_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'"
6136
6137# Handle CRLF in mingw tool chain
6138opt_cr=
6139case $build_os in
6140mingw*)
6141  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6142  ;;
6143esac
6144
6145# Try without a prefix underscore, then with it.
6146for ac_symprfx in "" "_"; do
6147
6148  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6149  symxfrm="\\1 $ac_symprfx\\2 \\2"
6150
6151  # Write the raw and C identifiers.
6152  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6153    # Fake it for dumpbin and say T for any non-static function
6154    # and D for any global variable.
6155    # Also find C++ and __fastcall symbols from MSVC++,
6156    # which start with @ or ?.
6157    lt_cv_sys_global_symbol_pipe="$AWK '"\
6158"     {last_section=section; section=\$ 3};"\
6159"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6160"     \$ 0!~/External *\|/{next};"\
6161"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6162"     {if(hide[section]) next};"\
6163"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6164"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6165"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6166"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6167"     ' prfx=^$ac_symprfx"
6168  else
6169    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6170  fi
6171  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6172
6173  # Check to see that the pipe works correctly.
6174  pipe_works=no
6175
6176  rm -f conftest*
6177  cat > conftest.$ac_ext <<_LT_EOF
6178#ifdef __cplusplus
6179extern "C" {
6180#endif
6181char nm_test_var;
6182void nm_test_func(void);
6183void nm_test_func(void){}
6184#ifdef __cplusplus
6185}
6186#endif
6187int main(){nm_test_var='a';nm_test_func();return(0);}
6188_LT_EOF
6189
6190  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6191  (eval $ac_compile) 2>&5
6192  ac_status=$?
6193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194  test $ac_status = 0; }; then
6195    # Now try to grab the symbols.
6196    nlist=conftest.nm
6197    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6198  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6199  ac_status=$?
6200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201  test $ac_status = 0; } && test -s "$nlist"; then
6202      # Try sorting and uniquifying the output.
6203      if sort "$nlist" | uniq > "$nlist"T; then
6204	mv -f "$nlist"T "$nlist"
6205      else
6206	rm -f "$nlist"T
6207      fi
6208
6209      # Make sure that we snagged all the symbols we need.
6210      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6211	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6212	  cat <<_LT_EOF > conftest.$ac_ext
6213/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6214#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6215/* DATA imports from DLLs on WIN32 con't be const, because runtime
6216   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6217# define LT_DLSYM_CONST
6218#elif defined(__osf__)
6219/* This system does not cope well with relocations in const data.  */
6220# define LT_DLSYM_CONST
6221#else
6222# define LT_DLSYM_CONST const
6223#endif
6224
6225#ifdef __cplusplus
6226extern "C" {
6227#endif
6228
6229_LT_EOF
6230	  # Now generate the symbol file.
6231	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6232
6233	  cat <<_LT_EOF >> conftest.$ac_ext
6234
6235/* The mapping between symbol names and symbols.  */
6236LT_DLSYM_CONST struct {
6237  const char *name;
6238  void       *address;
6239}
6240lt__PROGRAM__LTX_preloaded_symbols[] =
6241{
6242  { "@PROGRAM@", (void *) 0 },
6243_LT_EOF
6244	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6245	  cat <<\_LT_EOF >> conftest.$ac_ext
6246  {0, (void *) 0}
6247};
6248
6249/* This works around a problem in FreeBSD linker */
6250#ifdef FREEBSD_WORKAROUND
6251static const void *lt_preloaded_setup() {
6252  return lt__PROGRAM__LTX_preloaded_symbols;
6253}
6254#endif
6255
6256#ifdef __cplusplus
6257}
6258#endif
6259_LT_EOF
6260	  # Now try linking the two files.
6261	  mv conftest.$ac_objext conftstm.$ac_objext
6262	  lt_globsym_save_LIBS=$LIBS
6263	  lt_globsym_save_CFLAGS=$CFLAGS
6264	  LIBS="conftstm.$ac_objext"
6265	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6266	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6267  (eval $ac_link) 2>&5
6268  ac_status=$?
6269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6271	    pipe_works=yes
6272	  fi
6273	  LIBS=$lt_globsym_save_LIBS
6274	  CFLAGS=$lt_globsym_save_CFLAGS
6275	else
6276	  echo "cannot find nm_test_func in $nlist" >&5
6277	fi
6278      else
6279	echo "cannot find nm_test_var in $nlist" >&5
6280      fi
6281    else
6282      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6283    fi
6284  else
6285    echo "$progname: failed program was:" >&5
6286    cat conftest.$ac_ext >&5
6287  fi
6288  rm -rf conftest* conftst*
6289
6290  # Do not use the global_symbol_pipe unless it works.
6291  if test "$pipe_works" = yes; then
6292    break
6293  else
6294    lt_cv_sys_global_symbol_pipe=
6295  fi
6296done
6297
6298fi
6299
6300if test -z "$lt_cv_sys_global_symbol_pipe"; then
6301  lt_cv_sys_global_symbol_to_cdecl=
6302fi
6303if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6305$as_echo "failed" >&6; }
6306else
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6308$as_echo "ok" >&6; }
6309fi
6310
6311# Response file support.
6312if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6313  nm_file_list_spec='@'
6314elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6315  nm_file_list_spec='@'
6316fi
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6345$as_echo_n "checking for sysroot... " >&6; }
6346
6347# Check whether --with-sysroot was given.
6348if test "${with_sysroot+set}" = set; then :
6349  withval=$with_sysroot;
6350else
6351  with_sysroot=no
6352fi
6353
6354
6355lt_sysroot=
6356case ${with_sysroot} in #(
6357 yes)
6358   if test "$GCC" = yes; then
6359     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6360   fi
6361   ;; #(
6362 /*)
6363   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6364   ;; #(
6365 no|'')
6366   ;; #(
6367 *)
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6369$as_echo "${with_sysroot}" >&6; }
6370   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6371   ;;
6372esac
6373
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6375$as_echo "${lt_sysroot:-no}" >&6; }
6376
6377
6378
6379
6380
6381# Check whether --enable-libtool-lock was given.
6382if test "${enable_libtool_lock+set}" = set; then :
6383  enableval=$enable_libtool_lock;
6384fi
6385
6386test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6387
6388# Some flags need to be propagated to the compiler or linker for good
6389# libtool support.
6390case $host in
6391ia64-*-hpux*)
6392  # Find out which ABI we are using.
6393  echo 'int i;' > conftest.$ac_ext
6394  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6395  (eval $ac_compile) 2>&5
6396  ac_status=$?
6397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398  test $ac_status = 0; }; then
6399    case `/usr/bin/file conftest.$ac_objext` in
6400      *ELF-32*)
6401	HPUX_IA64_MODE="32"
6402	;;
6403      *ELF-64*)
6404	HPUX_IA64_MODE="64"
6405	;;
6406    esac
6407  fi
6408  rm -rf conftest*
6409  ;;
6410*-*-irix6*)
6411  # Find out which ABI we are using.
6412  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6413  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414  (eval $ac_compile) 2>&5
6415  ac_status=$?
6416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417  test $ac_status = 0; }; then
6418    if test "$lt_cv_prog_gnu_ld" = yes; then
6419      case `/usr/bin/file conftest.$ac_objext` in
6420	*32-bit*)
6421	  LD="${LD-ld} -melf32bsmip"
6422	  ;;
6423	*N32*)
6424	  LD="${LD-ld} -melf32bmipn32"
6425	  ;;
6426	*64-bit*)
6427	  LD="${LD-ld} -melf64bmip"
6428	;;
6429      esac
6430    else
6431      case `/usr/bin/file conftest.$ac_objext` in
6432	*32-bit*)
6433	  LD="${LD-ld} -32"
6434	  ;;
6435	*N32*)
6436	  LD="${LD-ld} -n32"
6437	  ;;
6438	*64-bit*)
6439	  LD="${LD-ld} -64"
6440	  ;;
6441      esac
6442    fi
6443  fi
6444  rm -rf conftest*
6445  ;;
6446
6447x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6448s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6449  # Find out which ABI we are using.
6450  echo 'int i;' > conftest.$ac_ext
6451  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6452  (eval $ac_compile) 2>&5
6453  ac_status=$?
6454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455  test $ac_status = 0; }; then
6456    case `/usr/bin/file conftest.o` in
6457      *32-bit*)
6458	case $host in
6459	  x86_64-*kfreebsd*-gnu)
6460	    LD="${LD-ld} -m elf_i386_fbsd"
6461	    ;;
6462	  x86_64-*linux*)
6463	    LD="${LD-ld} -m elf_i386"
6464	    ;;
6465	  ppc64-*linux*|powerpc64-*linux*)
6466	    LD="${LD-ld} -m elf32ppclinux"
6467	    ;;
6468	  s390x-*linux*)
6469	    LD="${LD-ld} -m elf_s390"
6470	    ;;
6471	  sparc64-*linux*)
6472	    LD="${LD-ld} -m elf32_sparc"
6473	    ;;
6474	esac
6475	;;
6476      *64-bit*)
6477	case $host in
6478	  x86_64-*kfreebsd*-gnu)
6479	    LD="${LD-ld} -m elf_x86_64_fbsd"
6480	    ;;
6481	  x86_64-*linux*)
6482	    LD="${LD-ld} -m elf_x86_64"
6483	    ;;
6484	  ppc*-*linux*|powerpc*-*linux*)
6485	    LD="${LD-ld} -m elf64ppc"
6486	    ;;
6487	  s390*-*linux*|s390*-*tpf*)
6488	    LD="${LD-ld} -m elf64_s390"
6489	    ;;
6490	  sparc*-*linux*)
6491	    LD="${LD-ld} -m elf64_sparc"
6492	    ;;
6493	esac
6494	;;
6495    esac
6496  fi
6497  rm -rf conftest*
6498  ;;
6499
6500*-*-sco3.2v5*)
6501  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6502  SAVE_CFLAGS="$CFLAGS"
6503  CFLAGS="$CFLAGS -belf"
6504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6505$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6506if ${lt_cv_cc_needs_belf+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  ac_ext=c
6510ac_cpp='$CPP $CPPFLAGS'
6511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6513ac_compiler_gnu=$ac_cv_c_compiler_gnu
6514
6515     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h.  */
6517
6518int
6519main ()
6520{
6521
6522  ;
6523  return 0;
6524}
6525_ACEOF
6526if ac_fn_c_try_link "$LINENO"; then :
6527  lt_cv_cc_needs_belf=yes
6528else
6529  lt_cv_cc_needs_belf=no
6530fi
6531rm -f core conftest.err conftest.$ac_objext \
6532    conftest$ac_exeext conftest.$ac_ext
6533     ac_ext=c
6534ac_cpp='$CPP $CPPFLAGS'
6535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6537ac_compiler_gnu=$ac_cv_c_compiler_gnu
6538
6539fi
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6541$as_echo "$lt_cv_cc_needs_belf" >&6; }
6542  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6543    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6544    CFLAGS="$SAVE_CFLAGS"
6545  fi
6546  ;;
6547sparc*-*solaris*)
6548  # Find out which ABI we are using.
6549  echo 'int i;' > conftest.$ac_ext
6550  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551  (eval $ac_compile) 2>&5
6552  ac_status=$?
6553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554  test $ac_status = 0; }; then
6555    case `/usr/bin/file conftest.o` in
6556    *64-bit*)
6557      case $lt_cv_prog_gnu_ld in
6558      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6559      *)
6560	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6561	  LD="${LD-ld} -64"
6562	fi
6563	;;
6564      esac
6565      ;;
6566    esac
6567  fi
6568  rm -rf conftest*
6569  ;;
6570esac
6571
6572need_locks="$enable_libtool_lock"
6573
6574if test -n "$ac_tool_prefix"; then
6575  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6576set dummy ${ac_tool_prefix}mt; ac_word=$2
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578$as_echo_n "checking for $ac_word... " >&6; }
6579if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6580  $as_echo_n "(cached) " >&6
6581else
6582  if test -n "$MANIFEST_TOOL"; then
6583  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588  IFS=$as_save_IFS
6589  test -z "$as_dir" && as_dir=.
6590    for ac_exec_ext in '' $ac_executable_extensions; do
6591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594    break 2
6595  fi
6596done
6597  done
6598IFS=$as_save_IFS
6599
6600fi
6601fi
6602MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6603if test -n "$MANIFEST_TOOL"; then
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6605$as_echo "$MANIFEST_TOOL" >&6; }
6606else
6607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608$as_echo "no" >&6; }
6609fi
6610
6611
6612fi
6613if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6614  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6615  # Extract the first word of "mt", so it can be a program name with args.
6616set dummy mt; ac_word=$2
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618$as_echo_n "checking for $ac_word... " >&6; }
6619if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6620  $as_echo_n "(cached) " >&6
6621else
6622  if test -n "$ac_ct_MANIFEST_TOOL"; then
6623  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628  IFS=$as_save_IFS
6629  test -z "$as_dir" && as_dir=.
6630    for ac_exec_ext in '' $ac_executable_extensions; do
6631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634    break 2
6635  fi
6636done
6637  done
6638IFS=$as_save_IFS
6639
6640fi
6641fi
6642ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6643if test -n "$ac_ct_MANIFEST_TOOL"; then
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6645$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6646else
6647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648$as_echo "no" >&6; }
6649fi
6650
6651  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6652    MANIFEST_TOOL=":"
6653  else
6654    case $cross_compiling:$ac_tool_warned in
6655yes:)
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6658ac_tool_warned=yes ;;
6659esac
6660    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6661  fi
6662else
6663  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6664fi
6665
6666test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6668$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6669if ${lt_cv_path_mainfest_tool+:} false; then :
6670  $as_echo_n "(cached) " >&6
6671else
6672  lt_cv_path_mainfest_tool=no
6673  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6674  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6675  cat conftest.err >&5
6676  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6677    lt_cv_path_mainfest_tool=yes
6678  fi
6679  rm -f conftest*
6680fi
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6682$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6683if test "x$lt_cv_path_mainfest_tool" != xyes; then
6684  MANIFEST_TOOL=:
6685fi
6686
6687
6688
6689
6690
6691
6692  case $host_os in
6693    rhapsody* | darwin*)
6694    if test -n "$ac_tool_prefix"; then
6695  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6696set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698$as_echo_n "checking for $ac_word... " >&6; }
6699if ${ac_cv_prog_DSYMUTIL+:} false; then :
6700  $as_echo_n "(cached) " >&6
6701else
6702  if test -n "$DSYMUTIL"; then
6703  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708  IFS=$as_save_IFS
6709  test -z "$as_dir" && as_dir=.
6710    for ac_exec_ext in '' $ac_executable_extensions; do
6711  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714    break 2
6715  fi
6716done
6717  done
6718IFS=$as_save_IFS
6719
6720fi
6721fi
6722DSYMUTIL=$ac_cv_prog_DSYMUTIL
6723if test -n "$DSYMUTIL"; then
6724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6725$as_echo "$DSYMUTIL" >&6; }
6726else
6727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728$as_echo "no" >&6; }
6729fi
6730
6731
6732fi
6733if test -z "$ac_cv_prog_DSYMUTIL"; then
6734  ac_ct_DSYMUTIL=$DSYMUTIL
6735  # Extract the first word of "dsymutil", so it can be a program name with args.
6736set dummy dsymutil; ac_word=$2
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738$as_echo_n "checking for $ac_word... " >&6; }
6739if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742  if test -n "$ac_ct_DSYMUTIL"; then
6743  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6744else
6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748  IFS=$as_save_IFS
6749  test -z "$as_dir" && as_dir=.
6750    for ac_exec_ext in '' $ac_executable_extensions; do
6751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754    break 2
6755  fi
6756done
6757  done
6758IFS=$as_save_IFS
6759
6760fi
6761fi
6762ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6763if test -n "$ac_ct_DSYMUTIL"; then
6764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6765$as_echo "$ac_ct_DSYMUTIL" >&6; }
6766else
6767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768$as_echo "no" >&6; }
6769fi
6770
6771  if test "x$ac_ct_DSYMUTIL" = x; then
6772    DSYMUTIL=":"
6773  else
6774    case $cross_compiling:$ac_tool_warned in
6775yes:)
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778ac_tool_warned=yes ;;
6779esac
6780    DSYMUTIL=$ac_ct_DSYMUTIL
6781  fi
6782else
6783  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6784fi
6785
6786    if test -n "$ac_tool_prefix"; then
6787  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6788set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790$as_echo_n "checking for $ac_word... " >&6; }
6791if ${ac_cv_prog_NMEDIT+:} false; then :
6792  $as_echo_n "(cached) " >&6
6793else
6794  if test -n "$NMEDIT"; then
6795  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800  IFS=$as_save_IFS
6801  test -z "$as_dir" && as_dir=.
6802    for ac_exec_ext in '' $ac_executable_extensions; do
6803  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806    break 2
6807  fi
6808done
6809  done
6810IFS=$as_save_IFS
6811
6812fi
6813fi
6814NMEDIT=$ac_cv_prog_NMEDIT
6815if test -n "$NMEDIT"; then
6816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6817$as_echo "$NMEDIT" >&6; }
6818else
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
6821fi
6822
6823
6824fi
6825if test -z "$ac_cv_prog_NMEDIT"; then
6826  ac_ct_NMEDIT=$NMEDIT
6827  # Extract the first word of "nmedit", so it can be a program name with args.
6828set dummy nmedit; ac_word=$2
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830$as_echo_n "checking for $ac_word... " >&6; }
6831if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6832  $as_echo_n "(cached) " >&6
6833else
6834  if test -n "$ac_ct_NMEDIT"; then
6835  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840  IFS=$as_save_IFS
6841  test -z "$as_dir" && as_dir=.
6842    for ac_exec_ext in '' $ac_executable_extensions; do
6843  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846    break 2
6847  fi
6848done
6849  done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6855if test -n "$ac_ct_NMEDIT"; then
6856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6857$as_echo "$ac_ct_NMEDIT" >&6; }
6858else
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860$as_echo "no" >&6; }
6861fi
6862
6863  if test "x$ac_ct_NMEDIT" = x; then
6864    NMEDIT=":"
6865  else
6866    case $cross_compiling:$ac_tool_warned in
6867yes:)
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870ac_tool_warned=yes ;;
6871esac
6872    NMEDIT=$ac_ct_NMEDIT
6873  fi
6874else
6875  NMEDIT="$ac_cv_prog_NMEDIT"
6876fi
6877
6878    if test -n "$ac_tool_prefix"; then
6879  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6880set dummy ${ac_tool_prefix}lipo; ac_word=$2
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882$as_echo_n "checking for $ac_word... " >&6; }
6883if ${ac_cv_prog_LIPO+:} false; then :
6884  $as_echo_n "(cached) " >&6
6885else
6886  if test -n "$LIPO"; then
6887  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892  IFS=$as_save_IFS
6893  test -z "$as_dir" && as_dir=.
6894    for ac_exec_ext in '' $ac_executable_extensions; do
6895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898    break 2
6899  fi
6900done
6901  done
6902IFS=$as_save_IFS
6903
6904fi
6905fi
6906LIPO=$ac_cv_prog_LIPO
6907if test -n "$LIPO"; then
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6909$as_echo "$LIPO" >&6; }
6910else
6911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912$as_echo "no" >&6; }
6913fi
6914
6915
6916fi
6917if test -z "$ac_cv_prog_LIPO"; then
6918  ac_ct_LIPO=$LIPO
6919  # Extract the first word of "lipo", so it can be a program name with args.
6920set dummy lipo; ac_word=$2
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922$as_echo_n "checking for $ac_word... " >&6; }
6923if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926  if test -n "$ac_ct_LIPO"; then
6927  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6928else
6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932  IFS=$as_save_IFS
6933  test -z "$as_dir" && as_dir=.
6934    for ac_exec_ext in '' $ac_executable_extensions; do
6935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936    ac_cv_prog_ac_ct_LIPO="lipo"
6937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938    break 2
6939  fi
6940done
6941  done
6942IFS=$as_save_IFS
6943
6944fi
6945fi
6946ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6947if test -n "$ac_ct_LIPO"; then
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6949$as_echo "$ac_ct_LIPO" >&6; }
6950else
6951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952$as_echo "no" >&6; }
6953fi
6954
6955  if test "x$ac_ct_LIPO" = x; then
6956    LIPO=":"
6957  else
6958    case $cross_compiling:$ac_tool_warned in
6959yes:)
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962ac_tool_warned=yes ;;
6963esac
6964    LIPO=$ac_ct_LIPO
6965  fi
6966else
6967  LIPO="$ac_cv_prog_LIPO"
6968fi
6969
6970    if test -n "$ac_tool_prefix"; then
6971  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6972set dummy ${ac_tool_prefix}otool; ac_word=$2
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974$as_echo_n "checking for $ac_word... " >&6; }
6975if ${ac_cv_prog_OTOOL+:} false; then :
6976  $as_echo_n "(cached) " >&6
6977else
6978  if test -n "$OTOOL"; then
6979  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6980else
6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984  IFS=$as_save_IFS
6985  test -z "$as_dir" && as_dir=.
6986    for ac_exec_ext in '' $ac_executable_extensions; do
6987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990    break 2
6991  fi
6992done
6993  done
6994IFS=$as_save_IFS
6995
6996fi
6997fi
6998OTOOL=$ac_cv_prog_OTOOL
6999if test -n "$OTOOL"; then
7000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7001$as_echo "$OTOOL" >&6; }
7002else
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004$as_echo "no" >&6; }
7005fi
7006
7007
7008fi
7009if test -z "$ac_cv_prog_OTOOL"; then
7010  ac_ct_OTOOL=$OTOOL
7011  # Extract the first word of "otool", so it can be a program name with args.
7012set dummy otool; ac_word=$2
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014$as_echo_n "checking for $ac_word... " >&6; }
7015if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7016  $as_echo_n "(cached) " >&6
7017else
7018  if test -n "$ac_ct_OTOOL"; then
7019  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7020else
7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024  IFS=$as_save_IFS
7025  test -z "$as_dir" && as_dir=.
7026    for ac_exec_ext in '' $ac_executable_extensions; do
7027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028    ac_cv_prog_ac_ct_OTOOL="otool"
7029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030    break 2
7031  fi
7032done
7033  done
7034IFS=$as_save_IFS
7035
7036fi
7037fi
7038ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7039if test -n "$ac_ct_OTOOL"; then
7040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7041$as_echo "$ac_ct_OTOOL" >&6; }
7042else
7043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044$as_echo "no" >&6; }
7045fi
7046
7047  if test "x$ac_ct_OTOOL" = x; then
7048    OTOOL=":"
7049  else
7050    case $cross_compiling:$ac_tool_warned in
7051yes:)
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054ac_tool_warned=yes ;;
7055esac
7056    OTOOL=$ac_ct_OTOOL
7057  fi
7058else
7059  OTOOL="$ac_cv_prog_OTOOL"
7060fi
7061
7062    if test -n "$ac_tool_prefix"; then
7063  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7064set dummy ${ac_tool_prefix}otool64; ac_word=$2
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066$as_echo_n "checking for $ac_word... " >&6; }
7067if ${ac_cv_prog_OTOOL64+:} false; then :
7068  $as_echo_n "(cached) " >&6
7069else
7070  if test -n "$OTOOL64"; then
7071  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076  IFS=$as_save_IFS
7077  test -z "$as_dir" && as_dir=.
7078    for ac_exec_ext in '' $ac_executable_extensions; do
7079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082    break 2
7083  fi
7084done
7085  done
7086IFS=$as_save_IFS
7087
7088fi
7089fi
7090OTOOL64=$ac_cv_prog_OTOOL64
7091if test -n "$OTOOL64"; then
7092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7093$as_echo "$OTOOL64" >&6; }
7094else
7095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096$as_echo "no" >&6; }
7097fi
7098
7099
7100fi
7101if test -z "$ac_cv_prog_OTOOL64"; then
7102  ac_ct_OTOOL64=$OTOOL64
7103  # Extract the first word of "otool64", so it can be a program name with args.
7104set dummy otool64; ac_word=$2
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106$as_echo_n "checking for $ac_word... " >&6; }
7107if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7108  $as_echo_n "(cached) " >&6
7109else
7110  if test -n "$ac_ct_OTOOL64"; then
7111  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116  IFS=$as_save_IFS
7117  test -z "$as_dir" && as_dir=.
7118    for ac_exec_ext in '' $ac_executable_extensions; do
7119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120    ac_cv_prog_ac_ct_OTOOL64="otool64"
7121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122    break 2
7123  fi
7124done
7125  done
7126IFS=$as_save_IFS
7127
7128fi
7129fi
7130ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7131if test -n "$ac_ct_OTOOL64"; then
7132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7133$as_echo "$ac_ct_OTOOL64" >&6; }
7134else
7135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
7137fi
7138
7139  if test "x$ac_ct_OTOOL64" = x; then
7140    OTOOL64=":"
7141  else
7142    case $cross_compiling:$ac_tool_warned in
7143yes:)
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146ac_tool_warned=yes ;;
7147esac
7148    OTOOL64=$ac_ct_OTOOL64
7149  fi
7150else
7151  OTOOL64="$ac_cv_prog_OTOOL64"
7152fi
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7181$as_echo_n "checking for -single_module linker flag... " >&6; }
7182if ${lt_cv_apple_cc_single_mod+:} false; then :
7183  $as_echo_n "(cached) " >&6
7184else
7185  lt_cv_apple_cc_single_mod=no
7186      if test -z "${LT_MULTI_MODULE}"; then
7187	# By default we will add the -single_module flag. You can override
7188	# by either setting the environment variable LT_MULTI_MODULE
7189	# non-empty at configure time, or by adding -multi_module to the
7190	# link flags.
7191	rm -rf libconftest.dylib*
7192	echo "int foo(void){return 1;}" > conftest.c
7193	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7194-dynamiclib -Wl,-single_module conftest.c" >&5
7195	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7196	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7197        _lt_result=$?
7198	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7199	  lt_cv_apple_cc_single_mod=yes
7200	else
7201	  cat conftest.err >&5
7202	fi
7203	rm -rf libconftest.dylib*
7204	rm -f conftest.*
7205      fi
7206fi
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7208$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7209    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7210$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7211if ${lt_cv_ld_exported_symbols_list+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  lt_cv_ld_exported_symbols_list=no
7215      save_LDFLAGS=$LDFLAGS
7216      echo "_main" > conftest.sym
7217      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7218      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219/* end confdefs.h.  */
7220
7221int
7222main ()
7223{
7224
7225  ;
7226  return 0;
7227}
7228_ACEOF
7229if ac_fn_c_try_link "$LINENO"; then :
7230  lt_cv_ld_exported_symbols_list=yes
7231else
7232  lt_cv_ld_exported_symbols_list=no
7233fi
7234rm -f core conftest.err conftest.$ac_objext \
7235    conftest$ac_exeext conftest.$ac_ext
7236	LDFLAGS="$save_LDFLAGS"
7237
7238fi
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7240$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7242$as_echo_n "checking for -force_load linker flag... " >&6; }
7243if ${lt_cv_ld_force_load+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  lt_cv_ld_force_load=no
7247      cat > conftest.c << _LT_EOF
7248int forced_loaded() { return 2;}
7249_LT_EOF
7250      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7251      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7252      echo "$AR cru libconftest.a conftest.o" >&5
7253      $AR cru libconftest.a conftest.o 2>&5
7254      echo "$RANLIB libconftest.a" >&5
7255      $RANLIB libconftest.a 2>&5
7256      cat > conftest.c << _LT_EOF
7257int main() { return 0;}
7258_LT_EOF
7259      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7260      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7261      _lt_result=$?
7262      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7263	lt_cv_ld_force_load=yes
7264      else
7265	cat conftest.err >&5
7266      fi
7267        rm -f conftest.err libconftest.a conftest conftest.c
7268        rm -rf conftest.dSYM
7269
7270fi
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7272$as_echo "$lt_cv_ld_force_load" >&6; }
7273    case $host_os in
7274    rhapsody* | darwin1.[012])
7275      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7276    darwin1.*)
7277      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7278    darwin*) # darwin 5.x on
7279      # if running on 10.5 or later, the deployment target defaults
7280      # to the OS version, if on x86, and 10.4, the deployment
7281      # target defaults to 10.4. Don't you love it?
7282      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7283	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7284	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7285	10.[012]*)
7286	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7287	10.*)
7288	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7289      esac
7290    ;;
7291  esac
7292    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7293      _lt_dar_single_mod='$single_module'
7294    fi
7295    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7296      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7297    else
7298      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7299    fi
7300    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7301      _lt_dsymutil='~$DSYMUTIL $lib || :'
7302    else
7303      _lt_dsymutil=
7304    fi
7305    ;;
7306  esac
7307
7308ac_ext=c
7309ac_cpp='$CPP $CPPFLAGS'
7310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7314$as_echo_n "checking how to run the C preprocessor... " >&6; }
7315# On Suns, sometimes $CPP names a directory.
7316if test -n "$CPP" && test -d "$CPP"; then
7317  CPP=
7318fi
7319if test -z "$CPP"; then
7320  if ${ac_cv_prog_CPP+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323      # Double quotes because CPP needs to be expanded
7324    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7325    do
7326      ac_preproc_ok=false
7327for ac_c_preproc_warn_flag in '' yes
7328do
7329  # Use a header file that comes with gcc, so configuring glibc
7330  # with a fresh cross-compiler works.
7331  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7332  # <limits.h> exists even on freestanding compilers.
7333  # On the NeXT, cc -E runs the code through the compiler's parser,
7334  # not just through cpp. "Syntax error" is here to catch this case.
7335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336/* end confdefs.h.  */
7337#ifdef __STDC__
7338# include <limits.h>
7339#else
7340# include <assert.h>
7341#endif
7342		     Syntax error
7343_ACEOF
7344if ac_fn_c_try_cpp "$LINENO"; then :
7345
7346else
7347  # Broken: fails on valid input.
7348continue
7349fi
7350rm -f conftest.err conftest.i conftest.$ac_ext
7351
7352  # OK, works on sane cases.  Now check whether nonexistent headers
7353  # can be detected and how.
7354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355/* end confdefs.h.  */
7356#include <ac_nonexistent.h>
7357_ACEOF
7358if ac_fn_c_try_cpp "$LINENO"; then :
7359  # Broken: success on invalid input.
7360continue
7361else
7362  # Passes both tests.
7363ac_preproc_ok=:
7364break
7365fi
7366rm -f conftest.err conftest.i conftest.$ac_ext
7367
7368done
7369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7370rm -f conftest.i conftest.err conftest.$ac_ext
7371if $ac_preproc_ok; then :
7372  break
7373fi
7374
7375    done
7376    ac_cv_prog_CPP=$CPP
7377
7378fi
7379  CPP=$ac_cv_prog_CPP
7380else
7381  ac_cv_prog_CPP=$CPP
7382fi
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7384$as_echo "$CPP" >&6; }
7385ac_preproc_ok=false
7386for ac_c_preproc_warn_flag in '' yes
7387do
7388  # Use a header file that comes with gcc, so configuring glibc
7389  # with a fresh cross-compiler works.
7390  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7391  # <limits.h> exists even on freestanding compilers.
7392  # On the NeXT, cc -E runs the code through the compiler's parser,
7393  # not just through cpp. "Syntax error" is here to catch this case.
7394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h.  */
7396#ifdef __STDC__
7397# include <limits.h>
7398#else
7399# include <assert.h>
7400#endif
7401		     Syntax error
7402_ACEOF
7403if ac_fn_c_try_cpp "$LINENO"; then :
7404
7405else
7406  # Broken: fails on valid input.
7407continue
7408fi
7409rm -f conftest.err conftest.i conftest.$ac_ext
7410
7411  # OK, works on sane cases.  Now check whether nonexistent headers
7412  # can be detected and how.
7413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414/* end confdefs.h.  */
7415#include <ac_nonexistent.h>
7416_ACEOF
7417if ac_fn_c_try_cpp "$LINENO"; then :
7418  # Broken: success on invalid input.
7419continue
7420else
7421  # Passes both tests.
7422ac_preproc_ok=:
7423break
7424fi
7425rm -f conftest.err conftest.i conftest.$ac_ext
7426
7427done
7428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7429rm -f conftest.i conftest.err conftest.$ac_ext
7430if $ac_preproc_ok; then :
7431
7432else
7433  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7435as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7436See \`config.log' for more details" "$LINENO" 5; }
7437fi
7438
7439ac_ext=c
7440ac_cpp='$CPP $CPPFLAGS'
7441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7443ac_compiler_gnu=$ac_cv_c_compiler_gnu
7444
7445
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7447$as_echo_n "checking for ANSI C header files... " >&6; }
7448if ${ac_cv_header_stdc+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h.  */
7453#include <stdlib.h>
7454#include <stdarg.h>
7455#include <string.h>
7456#include <float.h>
7457
7458int
7459main ()
7460{
7461
7462  ;
7463  return 0;
7464}
7465_ACEOF
7466if ac_fn_c_try_compile "$LINENO"; then :
7467  ac_cv_header_stdc=yes
7468else
7469  ac_cv_header_stdc=no
7470fi
7471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472
7473if test $ac_cv_header_stdc = yes; then
7474  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476/* end confdefs.h.  */
7477#include <string.h>
7478
7479_ACEOF
7480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7481  $EGREP "memchr" >/dev/null 2>&1; then :
7482
7483else
7484  ac_cv_header_stdc=no
7485fi
7486rm -f conftest*
7487
7488fi
7489
7490if test $ac_cv_header_stdc = yes; then
7491  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493/* end confdefs.h.  */
7494#include <stdlib.h>
7495
7496_ACEOF
7497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498  $EGREP "free" >/dev/null 2>&1; then :
7499
7500else
7501  ac_cv_header_stdc=no
7502fi
7503rm -f conftest*
7504
7505fi
7506
7507if test $ac_cv_header_stdc = yes; then
7508  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7509  if test "$cross_compiling" = yes; then :
7510  :
7511else
7512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513/* end confdefs.h.  */
7514#include <ctype.h>
7515#include <stdlib.h>
7516#if ((' ' & 0x0FF) == 0x020)
7517# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7518# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7519#else
7520# define ISLOWER(c) \
7521		   (('a' <= (c) && (c) <= 'i') \
7522		     || ('j' <= (c) && (c) <= 'r') \
7523		     || ('s' <= (c) && (c) <= 'z'))
7524# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7525#endif
7526
7527#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7528int
7529main ()
7530{
7531  int i;
7532  for (i = 0; i < 256; i++)
7533    if (XOR (islower (i), ISLOWER (i))
7534	|| toupper (i) != TOUPPER (i))
7535      return 2;
7536  return 0;
7537}
7538_ACEOF
7539if ac_fn_c_try_run "$LINENO"; then :
7540
7541else
7542  ac_cv_header_stdc=no
7543fi
7544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7545  conftest.$ac_objext conftest.beam conftest.$ac_ext
7546fi
7547
7548fi
7549fi
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7551$as_echo "$ac_cv_header_stdc" >&6; }
7552if test $ac_cv_header_stdc = yes; then
7553
7554$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7555
7556fi
7557
7558# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7559for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7560		  inttypes.h stdint.h unistd.h
7561do :
7562  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7563ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7564"
7565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7566  cat >>confdefs.h <<_ACEOF
7567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7568_ACEOF
7569
7570fi
7571
7572done
7573
7574
7575for ac_header in dlfcn.h
7576do :
7577  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7578"
7579if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7580  cat >>confdefs.h <<_ACEOF
7581#define HAVE_DLFCN_H 1
7582_ACEOF
7583
7584fi
7585
7586done
7587
7588
7589
7590
7591
7592# Set options
7593
7594
7595
7596        enable_dlopen=no
7597
7598
7599  enable_win32_dll=no
7600
7601
7602            # Check whether --enable-shared was given.
7603if test "${enable_shared+set}" = set; then :
7604  enableval=$enable_shared; p=${PACKAGE-default}
7605    case $enableval in
7606    yes) enable_shared=yes ;;
7607    no) enable_shared=no ;;
7608    *)
7609      enable_shared=no
7610      # Look at the argument we got.  We use all the common list separators.
7611      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7612      for pkg in $enableval; do
7613	IFS="$lt_save_ifs"
7614	if test "X$pkg" = "X$p"; then
7615	  enable_shared=yes
7616	fi
7617      done
7618      IFS="$lt_save_ifs"
7619      ;;
7620    esac
7621else
7622  enable_shared=yes
7623fi
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633  # Check whether --enable-static was given.
7634if test "${enable_static+set}" = set; then :
7635  enableval=$enable_static; p=${PACKAGE-default}
7636    case $enableval in
7637    yes) enable_static=yes ;;
7638    no) enable_static=no ;;
7639    *)
7640     enable_static=no
7641      # Look at the argument we got.  We use all the common list separators.
7642      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7643      for pkg in $enableval; do
7644	IFS="$lt_save_ifs"
7645	if test "X$pkg" = "X$p"; then
7646	  enable_static=yes
7647	fi
7648      done
7649      IFS="$lt_save_ifs"
7650      ;;
7651    esac
7652else
7653  enable_static=yes
7654fi
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665# Check whether --with-pic was given.
7666if test "${with_pic+set}" = set; then :
7667  withval=$with_pic; pic_mode="$withval"
7668else
7669  pic_mode=default
7670fi
7671
7672
7673test -z "$pic_mode" && pic_mode=default
7674
7675
7676
7677
7678
7679
7680
7681  # Check whether --enable-fast-install was given.
7682if test "${enable_fast_install+set}" = set; then :
7683  enableval=$enable_fast_install; p=${PACKAGE-default}
7684    case $enableval in
7685    yes) enable_fast_install=yes ;;
7686    no) enable_fast_install=no ;;
7687    *)
7688      enable_fast_install=no
7689      # Look at the argument we got.  We use all the common list separators.
7690      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7691      for pkg in $enableval; do
7692	IFS="$lt_save_ifs"
7693	if test "X$pkg" = "X$p"; then
7694	  enable_fast_install=yes
7695	fi
7696      done
7697      IFS="$lt_save_ifs"
7698      ;;
7699    esac
7700else
7701  enable_fast_install=yes
7702fi
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714# This can be used to rebuild libtool when needed
7715LIBTOOL_DEPS="$ltmain"
7716
7717# Always use our own libtool.
7718LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745test -z "$LN_S" && LN_S="ln -s"
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760if test -n "${ZSH_VERSION+set}" ; then
7761   setopt NO_GLOB_SUBST
7762fi
7763
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7765$as_echo_n "checking for objdir... " >&6; }
7766if ${lt_cv_objdir+:} false; then :
7767  $as_echo_n "(cached) " >&6
7768else
7769  rm -f .libs 2>/dev/null
7770mkdir .libs 2>/dev/null
7771if test -d .libs; then
7772  lt_cv_objdir=.libs
7773else
7774  # MS-DOS does not allow filenames that begin with a dot.
7775  lt_cv_objdir=_libs
7776fi
7777rmdir .libs 2>/dev/null
7778fi
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7780$as_echo "$lt_cv_objdir" >&6; }
7781objdir=$lt_cv_objdir
7782
7783
7784
7785
7786
7787cat >>confdefs.h <<_ACEOF
7788#define LT_OBJDIR "$lt_cv_objdir/"
7789_ACEOF
7790
7791
7792
7793
7794case $host_os in
7795aix3*)
7796  # AIX sometimes has problems with the GCC collect2 program.  For some
7797  # reason, if we set the COLLECT_NAMES environment variable, the problems
7798  # vanish in a puff of smoke.
7799  if test "X${COLLECT_NAMES+set}" != Xset; then
7800    COLLECT_NAMES=
7801    export COLLECT_NAMES
7802  fi
7803  ;;
7804esac
7805
7806# Global variables:
7807ofile=libtool
7808can_build_shared=yes
7809
7810# All known linkers require a `.a' archive for static linking (except MSVC,
7811# which needs '.lib').
7812libext=a
7813
7814with_gnu_ld="$lt_cv_prog_gnu_ld"
7815
7816old_CC="$CC"
7817old_CFLAGS="$CFLAGS"
7818
7819# Set sane defaults for various variables
7820test -z "$CC" && CC=cc
7821test -z "$LTCC" && LTCC=$CC
7822test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7823test -z "$LD" && LD=ld
7824test -z "$ac_objext" && ac_objext=o
7825
7826for cc_temp in $compiler""; do
7827  case $cc_temp in
7828    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7829    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7830    \-*) ;;
7831    *) break;;
7832  esac
7833done
7834cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7835
7836
7837# Only perform the check for file, if the check method requires it
7838test -z "$MAGIC_CMD" && MAGIC_CMD=file
7839case $deplibs_check_method in
7840file_magic*)
7841  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7842    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7843$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7844if ${lt_cv_path_MAGIC_CMD+:} false; then :
7845  $as_echo_n "(cached) " >&6
7846else
7847  case $MAGIC_CMD in
7848[\\/*] |  ?:[\\/]*)
7849  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7850  ;;
7851*)
7852  lt_save_MAGIC_CMD="$MAGIC_CMD"
7853  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7854  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7855  for ac_dir in $ac_dummy; do
7856    IFS="$lt_save_ifs"
7857    test -z "$ac_dir" && ac_dir=.
7858    if test -f $ac_dir/${ac_tool_prefix}file; then
7859      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7860      if test -n "$file_magic_test_file"; then
7861	case $deplibs_check_method in
7862	"file_magic "*)
7863	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7864	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7865	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7866	    $EGREP "$file_magic_regex" > /dev/null; then
7867	    :
7868	  else
7869	    cat <<_LT_EOF 1>&2
7870
7871*** Warning: the command libtool uses to detect shared libraries,
7872*** $file_magic_cmd, produces output that libtool cannot recognize.
7873*** The result is that libtool may fail to recognize shared libraries
7874*** as such.  This will affect the creation of libtool libraries that
7875*** depend on shared libraries, but programs linked with such libtool
7876*** libraries will work regardless of this problem.  Nevertheless, you
7877*** may want to report the problem to your system manager and/or to
7878*** bug-libtool@gnu.org
7879
7880_LT_EOF
7881	  fi ;;
7882	esac
7883      fi
7884      break
7885    fi
7886  done
7887  IFS="$lt_save_ifs"
7888  MAGIC_CMD="$lt_save_MAGIC_CMD"
7889  ;;
7890esac
7891fi
7892
7893MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7894if test -n "$MAGIC_CMD"; then
7895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7896$as_echo "$MAGIC_CMD" >&6; }
7897else
7898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899$as_echo "no" >&6; }
7900fi
7901
7902
7903
7904
7905
7906if test -z "$lt_cv_path_MAGIC_CMD"; then
7907  if test -n "$ac_tool_prefix"; then
7908    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7909$as_echo_n "checking for file... " >&6; }
7910if ${lt_cv_path_MAGIC_CMD+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  case $MAGIC_CMD in
7914[\\/*] |  ?:[\\/]*)
7915  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7916  ;;
7917*)
7918  lt_save_MAGIC_CMD="$MAGIC_CMD"
7919  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7920  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7921  for ac_dir in $ac_dummy; do
7922    IFS="$lt_save_ifs"
7923    test -z "$ac_dir" && ac_dir=.
7924    if test -f $ac_dir/file; then
7925      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7926      if test -n "$file_magic_test_file"; then
7927	case $deplibs_check_method in
7928	"file_magic "*)
7929	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7930	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7932	    $EGREP "$file_magic_regex" > /dev/null; then
7933	    :
7934	  else
7935	    cat <<_LT_EOF 1>&2
7936
7937*** Warning: the command libtool uses to detect shared libraries,
7938*** $file_magic_cmd, produces output that libtool cannot recognize.
7939*** The result is that libtool may fail to recognize shared libraries
7940*** as such.  This will affect the creation of libtool libraries that
7941*** depend on shared libraries, but programs linked with such libtool
7942*** libraries will work regardless of this problem.  Nevertheless, you
7943*** may want to report the problem to your system manager and/or to
7944*** bug-libtool@gnu.org
7945
7946_LT_EOF
7947	  fi ;;
7948	esac
7949      fi
7950      break
7951    fi
7952  done
7953  IFS="$lt_save_ifs"
7954  MAGIC_CMD="$lt_save_MAGIC_CMD"
7955  ;;
7956esac
7957fi
7958
7959MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7960if test -n "$MAGIC_CMD"; then
7961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7962$as_echo "$MAGIC_CMD" >&6; }
7963else
7964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965$as_echo "no" >&6; }
7966fi
7967
7968
7969  else
7970    MAGIC_CMD=:
7971  fi
7972fi
7973
7974  fi
7975  ;;
7976esac
7977
7978# Use C for the default configuration in the libtool script
7979
7980lt_save_CC="$CC"
7981ac_ext=c
7982ac_cpp='$CPP $CPPFLAGS'
7983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985ac_compiler_gnu=$ac_cv_c_compiler_gnu
7986
7987
7988# Source file extension for C test sources.
7989ac_ext=c
7990
7991# Object file extension for compiled C test sources.
7992objext=o
7993objext=$objext
7994
7995# Code to be used in simple compile tests
7996lt_simple_compile_test_code="int some_variable = 0;"
7997
7998# Code to be used in simple link tests
7999lt_simple_link_test_code='int main(){return(0);}'
8000
8001
8002
8003
8004
8005
8006
8007# If no C compiler was specified, use CC.
8008LTCC=${LTCC-"$CC"}
8009
8010# If no C compiler flags were specified, use CFLAGS.
8011LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8012
8013# Allow CC to be a program name with arguments.
8014compiler=$CC
8015
8016# Save the default compiler, since it gets overwritten when the other
8017# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8018compiler_DEFAULT=$CC
8019
8020# save warnings/boilerplate of simple test code
8021ac_outfile=conftest.$ac_objext
8022echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8023eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8024_lt_compiler_boilerplate=`cat conftest.err`
8025$RM conftest*
8026
8027ac_outfile=conftest.$ac_objext
8028echo "$lt_simple_link_test_code" >conftest.$ac_ext
8029eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8030_lt_linker_boilerplate=`cat conftest.err`
8031$RM -r conftest*
8032
8033
8034if test -n "$compiler"; then
8035
8036lt_prog_compiler_no_builtin_flag=
8037
8038if test "$GCC" = yes; then
8039  case $cc_basename in
8040  nvcc*)
8041    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8042  *)
8043    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8044  esac
8045
8046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8047$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8048if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8049  $as_echo_n "(cached) " >&6
8050else
8051  lt_cv_prog_compiler_rtti_exceptions=no
8052   ac_outfile=conftest.$ac_objext
8053   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8054   lt_compiler_flag="-fno-rtti -fno-exceptions"
8055   # Insert the option either (1) after the last *FLAGS variable, or
8056   # (2) before a word containing "conftest.", or (3) at the end.
8057   # Note that $ac_compile itself does not contain backslashes and begins
8058   # with a dollar sign (not a hyphen), so the echo should work correctly.
8059   # The option is referenced via a variable to avoid confusing sed.
8060   lt_compile=`echo "$ac_compile" | $SED \
8061   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8062   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8063   -e 's:$: $lt_compiler_flag:'`
8064   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8065   (eval "$lt_compile" 2>conftest.err)
8066   ac_status=$?
8067   cat conftest.err >&5
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   if (exit $ac_status) && test -s "$ac_outfile"; then
8070     # The compiler can only warn and ignore the option if not recognized
8071     # So say no if there are warnings other than the usual output.
8072     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8073     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8074     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8075       lt_cv_prog_compiler_rtti_exceptions=yes
8076     fi
8077   fi
8078   $RM conftest*
8079
8080fi
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8082$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8083
8084if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8085    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8086else
8087    :
8088fi
8089
8090fi
8091
8092
8093
8094
8095
8096
8097  lt_prog_compiler_wl=
8098lt_prog_compiler_pic=
8099lt_prog_compiler_static=
8100
8101
8102  if test "$GCC" = yes; then
8103    lt_prog_compiler_wl='-Wl,'
8104    lt_prog_compiler_static='-static'
8105
8106    case $host_os in
8107      aix*)
8108      # All AIX code is PIC.
8109      if test "$host_cpu" = ia64; then
8110	# AIX 5 now supports IA64 processor
8111	lt_prog_compiler_static='-Bstatic'
8112      fi
8113      ;;
8114
8115    amigaos*)
8116      case $host_cpu in
8117      powerpc)
8118            # see comment about AmigaOS4 .so support
8119            lt_prog_compiler_pic='-fPIC'
8120        ;;
8121      m68k)
8122            # FIXME: we need at least 68020 code to build shared libraries, but
8123            # adding the `-m68020' flag to GCC prevents building anything better,
8124            # like `-m68040'.
8125            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8126        ;;
8127      esac
8128      ;;
8129
8130    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8131      # PIC is the default for these OSes.
8132      ;;
8133
8134    mingw* | cygwin* | pw32* | os2* | cegcc*)
8135      # This hack is so that the source file can tell whether it is being
8136      # built for inclusion in a dll (and should export symbols for example).
8137      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8138      # (--disable-auto-import) libraries
8139      lt_prog_compiler_pic='-DDLL_EXPORT'
8140      ;;
8141
8142    darwin* | rhapsody*)
8143      # PIC is the default on this platform
8144      # Common symbols not allowed in MH_DYLIB files
8145      lt_prog_compiler_pic='-fno-common'
8146      ;;
8147
8148    haiku*)
8149      # PIC is the default for Haiku.
8150      # The "-static" flag exists, but is broken.
8151      lt_prog_compiler_static=
8152      ;;
8153
8154    hpux*)
8155      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8156      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8157      # sets the default TLS model and affects inlining.
8158      case $host_cpu in
8159      hppa*64*)
8160	# +Z the default
8161	;;
8162      *)
8163	lt_prog_compiler_pic='-fPIC'
8164	;;
8165      esac
8166      ;;
8167
8168    interix[3-9]*)
8169      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8170      # Instead, we relocate shared libraries at runtime.
8171      ;;
8172
8173    msdosdjgpp*)
8174      # Just because we use GCC doesn't mean we suddenly get shared libraries
8175      # on systems that don't support them.
8176      lt_prog_compiler_can_build_shared=no
8177      enable_shared=no
8178      ;;
8179
8180    *nto* | *qnx*)
8181      # QNX uses GNU C++, but need to define -shared option too, otherwise
8182      # it will coredump.
8183      lt_prog_compiler_pic='-fPIC -shared'
8184      ;;
8185
8186    sysv4*MP*)
8187      if test -d /usr/nec; then
8188	lt_prog_compiler_pic=-Kconform_pic
8189      fi
8190      ;;
8191
8192    *)
8193      lt_prog_compiler_pic='-fPIC'
8194      ;;
8195    esac
8196
8197    case $cc_basename in
8198    nvcc*) # Cuda Compiler Driver 2.2
8199      lt_prog_compiler_wl='-Xlinker '
8200      lt_prog_compiler_pic='-Xcompiler -fPIC'
8201      ;;
8202    esac
8203  else
8204    # PORTME Check for flag to pass linker flags through the system compiler.
8205    case $host_os in
8206    aix*)
8207      lt_prog_compiler_wl='-Wl,'
8208      if test "$host_cpu" = ia64; then
8209	# AIX 5 now supports IA64 processor
8210	lt_prog_compiler_static='-Bstatic'
8211      else
8212	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8213      fi
8214      ;;
8215
8216    mingw* | cygwin* | pw32* | os2* | cegcc*)
8217      # This hack is so that the source file can tell whether it is being
8218      # built for inclusion in a dll (and should export symbols for example).
8219      lt_prog_compiler_pic='-DDLL_EXPORT'
8220      ;;
8221
8222    hpux9* | hpux10* | hpux11*)
8223      lt_prog_compiler_wl='-Wl,'
8224      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8225      # not for PA HP-UX.
8226      case $host_cpu in
8227      hppa*64*|ia64*)
8228	# +Z the default
8229	;;
8230      *)
8231	lt_prog_compiler_pic='+Z'
8232	;;
8233      esac
8234      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8235      lt_prog_compiler_static='${wl}-a ${wl}archive'
8236      ;;
8237
8238    irix5* | irix6* | nonstopux*)
8239      lt_prog_compiler_wl='-Wl,'
8240      # PIC (with -KPIC) is the default.
8241      lt_prog_compiler_static='-non_shared'
8242      ;;
8243
8244    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8245      case $cc_basename in
8246      # old Intel for x86_64 which still supported -KPIC.
8247      ecc*)
8248	lt_prog_compiler_wl='-Wl,'
8249	lt_prog_compiler_pic='-KPIC'
8250	lt_prog_compiler_static='-static'
8251        ;;
8252      # icc used to be incompatible with GCC.
8253      # ICC 10 doesn't accept -KPIC any more.
8254      icc* | ifort*)
8255	lt_prog_compiler_wl='-Wl,'
8256	lt_prog_compiler_pic='-fPIC'
8257	lt_prog_compiler_static='-static'
8258        ;;
8259      # Lahey Fortran 8.1.
8260      lf95*)
8261	lt_prog_compiler_wl='-Wl,'
8262	lt_prog_compiler_pic='--shared'
8263	lt_prog_compiler_static='--static'
8264	;;
8265      nagfor*)
8266	# NAG Fortran compiler
8267	lt_prog_compiler_wl='-Wl,-Wl,,'
8268	lt_prog_compiler_pic='-PIC'
8269	lt_prog_compiler_static='-Bstatic'
8270	;;
8271      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8272        # Portland Group compilers (*not* the Pentium gcc compiler,
8273	# which looks to be a dead project)
8274	lt_prog_compiler_wl='-Wl,'
8275	lt_prog_compiler_pic='-fpic'
8276	lt_prog_compiler_static='-Bstatic'
8277        ;;
8278      ccc*)
8279        lt_prog_compiler_wl='-Wl,'
8280        # All Alpha code is PIC.
8281        lt_prog_compiler_static='-non_shared'
8282        ;;
8283      xl* | bgxl* | bgf* | mpixl*)
8284	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8285	lt_prog_compiler_wl='-Wl,'
8286	lt_prog_compiler_pic='-qpic'
8287	lt_prog_compiler_static='-qstaticlink'
8288	;;
8289      *)
8290	case `$CC -V 2>&1 | sed 5q` in
8291	*Sun\ F* | *Sun*Fortran*)
8292	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8293	  lt_prog_compiler_pic='-KPIC'
8294	  lt_prog_compiler_static='-Bstatic'
8295	  lt_prog_compiler_wl=''
8296	  ;;
8297	*Sun\ C*)
8298	  # Sun C 5.9
8299	  lt_prog_compiler_pic='-KPIC'
8300	  lt_prog_compiler_static='-Bstatic'
8301	  lt_prog_compiler_wl='-Wl,'
8302	  ;;
8303	esac
8304	;;
8305      esac
8306      ;;
8307
8308    newsos6)
8309      lt_prog_compiler_pic='-KPIC'
8310      lt_prog_compiler_static='-Bstatic'
8311      ;;
8312
8313    *nto* | *qnx*)
8314      # QNX uses GNU C++, but need to define -shared option too, otherwise
8315      # it will coredump.
8316      lt_prog_compiler_pic='-fPIC -shared'
8317      ;;
8318
8319    osf3* | osf4* | osf5*)
8320      lt_prog_compiler_wl='-Wl,'
8321      # All OSF/1 code is PIC.
8322      lt_prog_compiler_static='-non_shared'
8323      ;;
8324
8325    rdos*)
8326      lt_prog_compiler_static='-non_shared'
8327      ;;
8328
8329    solaris*)
8330      lt_prog_compiler_pic='-KPIC'
8331      lt_prog_compiler_static='-Bstatic'
8332      case $cc_basename in
8333      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8334	lt_prog_compiler_wl='-Qoption ld ';;
8335      *)
8336	lt_prog_compiler_wl='-Wl,';;
8337      esac
8338      ;;
8339
8340    sunos4*)
8341      lt_prog_compiler_wl='-Qoption ld '
8342      lt_prog_compiler_pic='-PIC'
8343      lt_prog_compiler_static='-Bstatic'
8344      ;;
8345
8346    sysv4 | sysv4.2uw2* | sysv4.3*)
8347      lt_prog_compiler_wl='-Wl,'
8348      lt_prog_compiler_pic='-KPIC'
8349      lt_prog_compiler_static='-Bstatic'
8350      ;;
8351
8352    sysv4*MP*)
8353      if test -d /usr/nec ;then
8354	lt_prog_compiler_pic='-Kconform_pic'
8355	lt_prog_compiler_static='-Bstatic'
8356      fi
8357      ;;
8358
8359    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8360      lt_prog_compiler_wl='-Wl,'
8361      lt_prog_compiler_pic='-KPIC'
8362      lt_prog_compiler_static='-Bstatic'
8363      ;;
8364
8365    unicos*)
8366      lt_prog_compiler_wl='-Wl,'
8367      lt_prog_compiler_can_build_shared=no
8368      ;;
8369
8370    uts4*)
8371      lt_prog_compiler_pic='-pic'
8372      lt_prog_compiler_static='-Bstatic'
8373      ;;
8374
8375    *)
8376      lt_prog_compiler_can_build_shared=no
8377      ;;
8378    esac
8379  fi
8380
8381case $host_os in
8382  # For platforms which do not support PIC, -DPIC is meaningless:
8383  *djgpp*)
8384    lt_prog_compiler_pic=
8385    ;;
8386  *)
8387    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8388    ;;
8389esac
8390
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8392$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8393if ${lt_cv_prog_compiler_pic+:} false; then :
8394  $as_echo_n "(cached) " >&6
8395else
8396  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8397fi
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8399$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8400lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8401
8402#
8403# Check to make sure the PIC flag actually works.
8404#
8405if test -n "$lt_prog_compiler_pic"; then
8406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8407$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8408if ${lt_cv_prog_compiler_pic_works+:} false; then :
8409  $as_echo_n "(cached) " >&6
8410else
8411  lt_cv_prog_compiler_pic_works=no
8412   ac_outfile=conftest.$ac_objext
8413   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8415   # Insert the option either (1) after the last *FLAGS variable, or
8416   # (2) before a word containing "conftest.", or (3) at the end.
8417   # Note that $ac_compile itself does not contain backslashes and begins
8418   # with a dollar sign (not a hyphen), so the echo should work correctly.
8419   # The option is referenced via a variable to avoid confusing sed.
8420   lt_compile=`echo "$ac_compile" | $SED \
8421   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423   -e 's:$: $lt_compiler_flag:'`
8424   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8425   (eval "$lt_compile" 2>conftest.err)
8426   ac_status=$?
8427   cat conftest.err >&5
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   if (exit $ac_status) && test -s "$ac_outfile"; then
8430     # The compiler can only warn and ignore the option if not recognized
8431     # So say no if there are warnings other than the usual output.
8432     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8433     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8434     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8435       lt_cv_prog_compiler_pic_works=yes
8436     fi
8437   fi
8438   $RM conftest*
8439
8440fi
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8442$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8443
8444if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8445    case $lt_prog_compiler_pic in
8446     "" | " "*) ;;
8447     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8448     esac
8449else
8450    lt_prog_compiler_pic=
8451     lt_prog_compiler_can_build_shared=no
8452fi
8453
8454fi
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466#
8467# Check to make sure the static flag actually works.
8468#
8469wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8471$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8472if ${lt_cv_prog_compiler_static_works+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  lt_cv_prog_compiler_static_works=no
8476   save_LDFLAGS="$LDFLAGS"
8477   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8478   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8479   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8480     # The linker can only warn and ignore the option if not recognized
8481     # So say no if there are warnings
8482     if test -s conftest.err; then
8483       # Append any errors to the config.log.
8484       cat conftest.err 1>&5
8485       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8486       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8487       if diff conftest.exp conftest.er2 >/dev/null; then
8488         lt_cv_prog_compiler_static_works=yes
8489       fi
8490     else
8491       lt_cv_prog_compiler_static_works=yes
8492     fi
8493   fi
8494   $RM -r conftest*
8495   LDFLAGS="$save_LDFLAGS"
8496
8497fi
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8499$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8500
8501if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8502    :
8503else
8504    lt_prog_compiler_static=
8505fi
8506
8507
8508
8509
8510
8511
8512
8513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8514$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8515if ${lt_cv_prog_compiler_c_o+:} false; then :
8516  $as_echo_n "(cached) " >&6
8517else
8518  lt_cv_prog_compiler_c_o=no
8519   $RM -r conftest 2>/dev/null
8520   mkdir conftest
8521   cd conftest
8522   mkdir out
8523   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8524
8525   lt_compiler_flag="-o out/conftest2.$ac_objext"
8526   # Insert the option either (1) after the last *FLAGS variable, or
8527   # (2) before a word containing "conftest.", or (3) at the end.
8528   # Note that $ac_compile itself does not contain backslashes and begins
8529   # with a dollar sign (not a hyphen), so the echo should work correctly.
8530   lt_compile=`echo "$ac_compile" | $SED \
8531   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8532   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8533   -e 's:$: $lt_compiler_flag:'`
8534   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8535   (eval "$lt_compile" 2>out/conftest.err)
8536   ac_status=$?
8537   cat out/conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8540   then
8541     # The compiler can only warn and ignore the option if not recognized
8542     # So say no if there are warnings
8543     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8544     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8545     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8546       lt_cv_prog_compiler_c_o=yes
8547     fi
8548   fi
8549   chmod u+w . 2>&5
8550   $RM conftest*
8551   # SGI C++ compiler will create directory out/ii_files/ for
8552   # template instantiation
8553   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8554   $RM out/* && rmdir out
8555   cd ..
8556   $RM -r conftest
8557   $RM conftest*
8558
8559fi
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8561$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8562
8563
8564
8565
8566
8567
8568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8569$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8570if ${lt_cv_prog_compiler_c_o+:} false; then :
8571  $as_echo_n "(cached) " >&6
8572else
8573  lt_cv_prog_compiler_c_o=no
8574   $RM -r conftest 2>/dev/null
8575   mkdir conftest
8576   cd conftest
8577   mkdir out
8578   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8579
8580   lt_compiler_flag="-o out/conftest2.$ac_objext"
8581   # Insert the option either (1) after the last *FLAGS variable, or
8582   # (2) before a word containing "conftest.", or (3) at the end.
8583   # Note that $ac_compile itself does not contain backslashes and begins
8584   # with a dollar sign (not a hyphen), so the echo should work correctly.
8585   lt_compile=`echo "$ac_compile" | $SED \
8586   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8587   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8588   -e 's:$: $lt_compiler_flag:'`
8589   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8590   (eval "$lt_compile" 2>out/conftest.err)
8591   ac_status=$?
8592   cat out/conftest.err >&5
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8595   then
8596     # The compiler can only warn and ignore the option if not recognized
8597     # So say no if there are warnings
8598     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8599     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8600     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8601       lt_cv_prog_compiler_c_o=yes
8602     fi
8603   fi
8604   chmod u+w . 2>&5
8605   $RM conftest*
8606   # SGI C++ compiler will create directory out/ii_files/ for
8607   # template instantiation
8608   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8609   $RM out/* && rmdir out
8610   cd ..
8611   $RM -r conftest
8612   $RM conftest*
8613
8614fi
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8616$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8617
8618
8619
8620
8621hard_links="nottested"
8622if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8623  # do not overwrite the value of need_locks provided by the user
8624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8625$as_echo_n "checking if we can lock with hard links... " >&6; }
8626  hard_links=yes
8627  $RM conftest*
8628  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8629  touch conftest.a
8630  ln conftest.a conftest.b 2>&5 || hard_links=no
8631  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8633$as_echo "$hard_links" >&6; }
8634  if test "$hard_links" = no; then
8635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8636$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8637    need_locks=warn
8638  fi
8639else
8640  need_locks=no
8641fi
8642
8643
8644
8645
8646
8647
8648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8649$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8650
8651  runpath_var=
8652  allow_undefined_flag=
8653  always_export_symbols=no
8654  archive_cmds=
8655  archive_expsym_cmds=
8656  compiler_needs_object=no
8657  enable_shared_with_static_runtimes=no
8658  export_dynamic_flag_spec=
8659  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8660  hardcode_automatic=no
8661  hardcode_direct=no
8662  hardcode_direct_absolute=no
8663  hardcode_libdir_flag_spec=
8664  hardcode_libdir_flag_spec_ld=
8665  hardcode_libdir_separator=
8666  hardcode_minus_L=no
8667  hardcode_shlibpath_var=unsupported
8668  inherit_rpath=no
8669  link_all_deplibs=unknown
8670  module_cmds=
8671  module_expsym_cmds=
8672  old_archive_from_new_cmds=
8673  old_archive_from_expsyms_cmds=
8674  thread_safe_flag_spec=
8675  whole_archive_flag_spec=
8676  # include_expsyms should be a list of space-separated symbols to be *always*
8677  # included in the symbol list
8678  include_expsyms=
8679  # exclude_expsyms can be an extended regexp of symbols to exclude
8680  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8681  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8682  # as well as any symbol that contains `d'.
8683  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8684  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8685  # platforms (ab)use it in PIC code, but their linkers get confused if
8686  # the symbol is explicitly referenced.  Since portable code cannot
8687  # rely on this symbol name, it's probably fine to never include it in
8688  # preloaded symbol tables.
8689  # Exclude shared library initialization/finalization symbols.
8690  extract_expsyms_cmds=
8691
8692  case $host_os in
8693  cygwin* | mingw* | pw32* | cegcc*)
8694    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8695    # When not using gcc, we currently assume that we are using
8696    # Microsoft Visual C++.
8697    if test "$GCC" != yes; then
8698      with_gnu_ld=no
8699    fi
8700    ;;
8701  interix*)
8702    # we just hope/assume this is gcc and not c89 (= MSVC++)
8703    with_gnu_ld=yes
8704    ;;
8705  openbsd*)
8706    with_gnu_ld=no
8707    ;;
8708  esac
8709
8710  ld_shlibs=yes
8711
8712  # On some targets, GNU ld is compatible enough with the native linker
8713  # that we're better off using the native interface for both.
8714  lt_use_gnu_ld_interface=no
8715  if test "$with_gnu_ld" = yes; then
8716    case $host_os in
8717      aix*)
8718	# The AIX port of GNU ld has always aspired to compatibility
8719	# with the native linker.  However, as the warning in the GNU ld
8720	# block says, versions before 2.19.5* couldn't really create working
8721	# shared libraries, regardless of the interface used.
8722	case `$LD -v 2>&1` in
8723	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8724	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8725	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8726	  *)
8727	    lt_use_gnu_ld_interface=yes
8728	    ;;
8729	esac
8730	;;
8731      *)
8732	lt_use_gnu_ld_interface=yes
8733	;;
8734    esac
8735  fi
8736
8737  if test "$lt_use_gnu_ld_interface" = yes; then
8738    # If archive_cmds runs LD, not CC, wlarc should be empty
8739    wlarc='${wl}'
8740
8741    # Set some defaults for GNU ld with shared library support. These
8742    # are reset later if shared libraries are not supported. Putting them
8743    # here allows them to be overridden if necessary.
8744    runpath_var=LD_RUN_PATH
8745    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8746    export_dynamic_flag_spec='${wl}--export-dynamic'
8747    # ancient GNU ld didn't support --whole-archive et. al.
8748    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8749      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8750    else
8751      whole_archive_flag_spec=
8752    fi
8753    supports_anon_versioning=no
8754    case `$LD -v 2>&1` in
8755      *GNU\ gold*) supports_anon_versioning=yes ;;
8756      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8757      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8758      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8759      *\ 2.11.*) ;; # other 2.11 versions
8760      *) supports_anon_versioning=yes ;;
8761    esac
8762
8763    # See if GNU ld supports shared libraries.
8764    case $host_os in
8765    aix[3-9]*)
8766      # On AIX/PPC, the GNU linker is very broken
8767      if test "$host_cpu" != ia64; then
8768	ld_shlibs=no
8769	cat <<_LT_EOF 1>&2
8770
8771*** Warning: the GNU linker, at least up to release 2.19, is reported
8772*** to be unable to reliably create shared libraries on AIX.
8773*** Therefore, libtool is disabling shared libraries support.  If you
8774*** really care for shared libraries, you may want to install binutils
8775*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8776*** You will then need to restart the configuration process.
8777
8778_LT_EOF
8779      fi
8780      ;;
8781
8782    amigaos*)
8783      case $host_cpu in
8784      powerpc)
8785            # see comment about AmigaOS4 .so support
8786            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8787            archive_expsym_cmds=''
8788        ;;
8789      m68k)
8790            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)'
8791            hardcode_libdir_flag_spec='-L$libdir'
8792            hardcode_minus_L=yes
8793        ;;
8794      esac
8795      ;;
8796
8797    beos*)
8798      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8799	allow_undefined_flag=unsupported
8800	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8801	# support --undefined.  This deserves some investigation.  FIXME
8802	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803      else
8804	ld_shlibs=no
8805      fi
8806      ;;
8807
8808    cygwin* | mingw* | pw32* | cegcc*)
8809      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8810      # as there is no search path for DLLs.
8811      hardcode_libdir_flag_spec='-L$libdir'
8812      export_dynamic_flag_spec='${wl}--export-all-symbols'
8813      allow_undefined_flag=unsupported
8814      always_export_symbols=no
8815      enable_shared_with_static_runtimes=yes
8816      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'
8817      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8818
8819      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8820        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8821	# If the export-symbols file already is a .def file (1st line
8822	# is EXPORTS), use it as is; otherwise, prepend...
8823	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8824	  cp $export_symbols $output_objdir/$soname.def;
8825	else
8826	  echo EXPORTS > $output_objdir/$soname.def;
8827	  cat $export_symbols >> $output_objdir/$soname.def;
8828	fi~
8829	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8830      else
8831	ld_shlibs=no
8832      fi
8833      ;;
8834
8835    haiku*)
8836      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837      link_all_deplibs=yes
8838      ;;
8839
8840    interix[3-9]*)
8841      hardcode_direct=no
8842      hardcode_shlibpath_var=no
8843      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8844      export_dynamic_flag_spec='${wl}-E'
8845      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8846      # Instead, shared libraries are loaded at an image base (0x10000000 by
8847      # default) and relocated if they conflict, which is a slow very memory
8848      # consuming and fragmenting process.  To avoid this, we pick a random,
8849      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8850      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8851      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8852      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'
8853      ;;
8854
8855    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8856      tmp_diet=no
8857      if test "$host_os" = linux-dietlibc; then
8858	case $cc_basename in
8859	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8860	esac
8861      fi
8862      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8863	 && test "$tmp_diet" = no
8864      then
8865	tmp_addflag=' $pic_flag'
8866	tmp_sharedflag='-shared'
8867	case $cc_basename,$host_cpu in
8868        pgcc*)				# Portland Group C compiler
8869	  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'
8870	  tmp_addflag=' $pic_flag'
8871	  ;;
8872	pgf77* | pgf90* | pgf95* | pgfortran*)
8873					# Portland Group f77 and f90 compilers
8874	  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'
8875	  tmp_addflag=' $pic_flag -Mnomain' ;;
8876	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8877	  tmp_addflag=' -i_dynamic' ;;
8878	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8879	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8880	ifc* | ifort*)			# Intel Fortran compiler
8881	  tmp_addflag=' -nofor_main' ;;
8882	lf95*)				# Lahey Fortran 8.1
8883	  whole_archive_flag_spec=
8884	  tmp_sharedflag='--shared' ;;
8885	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8886	  tmp_sharedflag='-qmkshrobj'
8887	  tmp_addflag= ;;
8888	nvcc*)	# Cuda Compiler Driver 2.2
8889	  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'
8890	  compiler_needs_object=yes
8891	  ;;
8892	esac
8893	case `$CC -V 2>&1 | sed 5q` in
8894	*Sun\ C*)			# Sun C 5.9
8895	  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'
8896	  compiler_needs_object=yes
8897	  tmp_sharedflag='-G' ;;
8898	*Sun\ F*)			# Sun Fortran 8.3
8899	  tmp_sharedflag='-G' ;;
8900	esac
8901	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8902
8903        if test "x$supports_anon_versioning" = xyes; then
8904          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8905	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8906	    echo "local: *; };" >> $output_objdir/$libname.ver~
8907	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8908        fi
8909
8910	case $cc_basename in
8911	xlf* | bgf* | bgxlf* | mpixlf*)
8912	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8913	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8914	  hardcode_libdir_flag_spec=
8915	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8916	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8917	  if test "x$supports_anon_versioning" = xyes; then
8918	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8919	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8920	      echo "local: *; };" >> $output_objdir/$libname.ver~
8921	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8922	  fi
8923	  ;;
8924	esac
8925      else
8926        ld_shlibs=no
8927      fi
8928      ;;
8929
8930    netbsd*)
8931      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8932	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8933	wlarc=
8934      else
8935	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8937      fi
8938      ;;
8939
8940    solaris*)
8941      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8942	ld_shlibs=no
8943	cat <<_LT_EOF 1>&2
8944
8945*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8946*** create shared libraries on Solaris systems.  Therefore, libtool
8947*** is disabling shared libraries support.  We urge you to upgrade GNU
8948*** binutils to release 2.9.1 or newer.  Another option is to modify
8949*** your PATH or compiler configuration so that the native linker is
8950*** used, and then restart.
8951
8952_LT_EOF
8953      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8954	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8956      else
8957	ld_shlibs=no
8958      fi
8959      ;;
8960
8961    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8962      case `$LD -v 2>&1` in
8963        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8964	ld_shlibs=no
8965	cat <<_LT_EOF 1>&2
8966
8967*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8968*** reliably create shared libraries on SCO systems.  Therefore, libtool
8969*** is disabling shared libraries support.  We urge you to upgrade GNU
8970*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8971*** your PATH or compiler configuration so that the native linker is
8972*** used, and then restart.
8973
8974_LT_EOF
8975	;;
8976	*)
8977	  # For security reasons, it is highly recommended that you always
8978	  # use absolute paths for naming shared libraries, and exclude the
8979	  # DT_RUNPATH tag from executables and libraries.  But doing so
8980	  # requires that you compile everything twice, which is a pain.
8981	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8982	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8983	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8985	  else
8986	    ld_shlibs=no
8987	  fi
8988	;;
8989      esac
8990      ;;
8991
8992    sunos4*)
8993      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8994      wlarc=
8995      hardcode_direct=yes
8996      hardcode_shlibpath_var=no
8997      ;;
8998
8999    *)
9000      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9001	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9003      else
9004	ld_shlibs=no
9005      fi
9006      ;;
9007    esac
9008
9009    if test "$ld_shlibs" = no; then
9010      runpath_var=
9011      hardcode_libdir_flag_spec=
9012      export_dynamic_flag_spec=
9013      whole_archive_flag_spec=
9014    fi
9015  else
9016    # PORTME fill in a description of your system's linker (not GNU ld)
9017    case $host_os in
9018    aix3*)
9019      allow_undefined_flag=unsupported
9020      always_export_symbols=yes
9021      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'
9022      # Note: this linker hardcodes the directories in LIBPATH if there
9023      # are no directories specified by -L.
9024      hardcode_minus_L=yes
9025      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9026	# Neither direct hardcoding nor static linking is supported with a
9027	# broken collect2.
9028	hardcode_direct=unsupported
9029      fi
9030      ;;
9031
9032    aix[4-9]*)
9033      if test "$host_cpu" = ia64; then
9034	# On IA64, the linker does run time linking by default, so we don't
9035	# have to do anything special.
9036	aix_use_runtimelinking=no
9037	exp_sym_flag='-Bexport'
9038	no_entry_flag=""
9039      else
9040	# If we're using GNU nm, then we don't want the "-C" option.
9041	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9042	# Also, AIX nm treats weak defined symbols like other global
9043	# defined symbols, whereas GNU nm marks them as "W".
9044	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9045	  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'
9046	else
9047	  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'
9048	fi
9049	aix_use_runtimelinking=no
9050
9051	# Test if we are trying to use run time linking or normal
9052	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9053	# need to do runtime linking.
9054	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9055	  for ld_flag in $LDFLAGS; do
9056	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9057	    aix_use_runtimelinking=yes
9058	    break
9059	  fi
9060	  done
9061	  ;;
9062	esac
9063
9064	exp_sym_flag='-bexport'
9065	no_entry_flag='-bnoentry'
9066      fi
9067
9068      # When large executables or shared objects are built, AIX ld can
9069      # have problems creating the table of contents.  If linking a library
9070      # or program results in "error TOC overflow" add -mminimal-toc to
9071      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9072      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9073
9074      archive_cmds=''
9075      hardcode_direct=yes
9076      hardcode_direct_absolute=yes
9077      hardcode_libdir_separator=':'
9078      link_all_deplibs=yes
9079      file_list_spec='${wl}-f,'
9080
9081      if test "$GCC" = yes; then
9082	case $host_os in aix4.[012]|aix4.[012].*)
9083	# We only want to do this on AIX 4.2 and lower, the check
9084	# below for broken collect2 doesn't work under 4.3+
9085	  collect2name=`${CC} -print-prog-name=collect2`
9086	  if test -f "$collect2name" &&
9087	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9088	  then
9089	  # We have reworked collect2
9090	  :
9091	  else
9092	  # We have old collect2
9093	  hardcode_direct=unsupported
9094	  # It fails to find uninstalled libraries when the uninstalled
9095	  # path is not listed in the libpath.  Setting hardcode_minus_L
9096	  # to unsupported forces relinking
9097	  hardcode_minus_L=yes
9098	  hardcode_libdir_flag_spec='-L$libdir'
9099	  hardcode_libdir_separator=
9100	  fi
9101	  ;;
9102	esac
9103	shared_flag='-shared'
9104	if test "$aix_use_runtimelinking" = yes; then
9105	  shared_flag="$shared_flag "'${wl}-G'
9106	fi
9107      else
9108	# not using gcc
9109	if test "$host_cpu" = ia64; then
9110	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9111	# chokes on -Wl,-G. The following line is correct:
9112	  shared_flag='-G'
9113	else
9114	  if test "$aix_use_runtimelinking" = yes; then
9115	    shared_flag='${wl}-G'
9116	  else
9117	    shared_flag='${wl}-bM:SRE'
9118	  fi
9119	fi
9120      fi
9121
9122      export_dynamic_flag_spec='${wl}-bexpall'
9123      # It seems that -bexpall does not export symbols beginning with
9124      # underscore (_), so it is better to generate a list of symbols to export.
9125      always_export_symbols=yes
9126      if test "$aix_use_runtimelinking" = yes; then
9127	# Warning - without using the other runtime loading flags (-brtl),
9128	# -berok will link without error, but may produce a broken library.
9129	allow_undefined_flag='-berok'
9130        # Determine the default libpath from the value encoded in an
9131        # empty executable.
9132        if test "${lt_cv_aix_libpath+set}" = set; then
9133  aix_libpath=$lt_cv_aix_libpath
9134else
9135  if ${lt_cv_aix_libpath_+:} false; then :
9136  $as_echo_n "(cached) " >&6
9137else
9138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h.  */
9140
9141int
9142main ()
9143{
9144
9145  ;
9146  return 0;
9147}
9148_ACEOF
9149if ac_fn_c_try_link "$LINENO"; then :
9150
9151  lt_aix_libpath_sed='
9152      /Import File Strings/,/^$/ {
9153	  /^0/ {
9154	      s/^0  *\([^ ]*\) *$/\1/
9155	      p
9156	  }
9157      }'
9158  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9159  # Check for a 64-bit object if we didn't find anything.
9160  if test -z "$lt_cv_aix_libpath_"; then
9161    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9162  fi
9163fi
9164rm -f core conftest.err conftest.$ac_objext \
9165    conftest$ac_exeext conftest.$ac_ext
9166  if test -z "$lt_cv_aix_libpath_"; then
9167    lt_cv_aix_libpath_="/usr/lib:/lib"
9168  fi
9169
9170fi
9171
9172  aix_libpath=$lt_cv_aix_libpath_
9173fi
9174
9175        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9176        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"
9177      else
9178	if test "$host_cpu" = ia64; then
9179	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9180	  allow_undefined_flag="-z nodefs"
9181	  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"
9182	else
9183	 # Determine the default libpath from the value encoded in an
9184	 # empty executable.
9185	 if test "${lt_cv_aix_libpath+set}" = set; then
9186  aix_libpath=$lt_cv_aix_libpath
9187else
9188  if ${lt_cv_aix_libpath_+:} false; then :
9189  $as_echo_n "(cached) " >&6
9190else
9191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193
9194int
9195main ()
9196{
9197
9198  ;
9199  return 0;
9200}
9201_ACEOF
9202if ac_fn_c_try_link "$LINENO"; then :
9203
9204  lt_aix_libpath_sed='
9205      /Import File Strings/,/^$/ {
9206	  /^0/ {
9207	      s/^0  *\([^ ]*\) *$/\1/
9208	      p
9209	  }
9210      }'
9211  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9212  # Check for a 64-bit object if we didn't find anything.
9213  if test -z "$lt_cv_aix_libpath_"; then
9214    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9215  fi
9216fi
9217rm -f core conftest.err conftest.$ac_objext \
9218    conftest$ac_exeext conftest.$ac_ext
9219  if test -z "$lt_cv_aix_libpath_"; then
9220    lt_cv_aix_libpath_="/usr/lib:/lib"
9221  fi
9222
9223fi
9224
9225  aix_libpath=$lt_cv_aix_libpath_
9226fi
9227
9228	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9229	  # Warning - without using the other run time loading flags,
9230	  # -berok will link without error, but may produce a broken library.
9231	  no_undefined_flag=' ${wl}-bernotok'
9232	  allow_undefined_flag=' ${wl}-berok'
9233	  if test "$with_gnu_ld" = yes; then
9234	    # We only use this code for GNU lds that support --whole-archive.
9235	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9236	  else
9237	    # Exported symbols can be pulled into shared objects from archives
9238	    whole_archive_flag_spec='$convenience'
9239	  fi
9240	  archive_cmds_need_lc=yes
9241	  # This is similar to how AIX traditionally builds its shared libraries.
9242	  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'
9243	fi
9244      fi
9245      ;;
9246
9247    amigaos*)
9248      case $host_cpu in
9249      powerpc)
9250            # see comment about AmigaOS4 .so support
9251            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252            archive_expsym_cmds=''
9253        ;;
9254      m68k)
9255            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)'
9256            hardcode_libdir_flag_spec='-L$libdir'
9257            hardcode_minus_L=yes
9258        ;;
9259      esac
9260      ;;
9261
9262    bsdi[45]*)
9263      export_dynamic_flag_spec=-rdynamic
9264      ;;
9265
9266    cygwin* | mingw* | pw32* | cegcc*)
9267      # When not using gcc, we currently assume that we are using
9268      # Microsoft Visual C++.
9269      # hardcode_libdir_flag_spec is actually meaningless, as there is
9270      # no search path for DLLs.
9271      case $cc_basename in
9272      cl*)
9273	# Native MSVC
9274	hardcode_libdir_flag_spec=' '
9275	allow_undefined_flag=unsupported
9276	always_export_symbols=yes
9277	file_list_spec='@'
9278	# Tell ltmain to make .lib files, not .a files.
9279	libext=lib
9280	# Tell ltmain to make .dll files, not .so files.
9281	shrext_cmds=".dll"
9282	# FIXME: Setting linknames here is a bad hack.
9283	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9284	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9285	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9286	  else
9287	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9288	  fi~
9289	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9290	  linknames='
9291	# The linker will not automatically build a static lib if we build a DLL.
9292	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9293	enable_shared_with_static_runtimes=yes
9294	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9295	# Don't use ranlib
9296	old_postinstall_cmds='chmod 644 $oldlib'
9297	postlink_cmds='lt_outputfile="@OUTPUT@"~
9298	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9299	  case $lt_outputfile in
9300	    *.exe|*.EXE) ;;
9301	    *)
9302	      lt_outputfile="$lt_outputfile.exe"
9303	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9304	      ;;
9305	  esac~
9306	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9307	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9308	    $RM "$lt_outputfile.manifest";
9309	  fi'
9310	;;
9311      *)
9312	# Assume MSVC wrapper
9313	hardcode_libdir_flag_spec=' '
9314	allow_undefined_flag=unsupported
9315	# Tell ltmain to make .lib files, not .a files.
9316	libext=lib
9317	# Tell ltmain to make .dll files, not .so files.
9318	shrext_cmds=".dll"
9319	# FIXME: Setting linknames here is a bad hack.
9320	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9321	# The linker will automatically build a .lib file if we build a DLL.
9322	old_archive_from_new_cmds='true'
9323	# FIXME: Should let the user specify the lib program.
9324	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9325	enable_shared_with_static_runtimes=yes
9326	;;
9327      esac
9328      ;;
9329
9330    darwin* | rhapsody*)
9331
9332
9333  archive_cmds_need_lc=no
9334  hardcode_direct=no
9335  hardcode_automatic=yes
9336  hardcode_shlibpath_var=unsupported
9337  if test "$lt_cv_ld_force_load" = "yes"; then
9338    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\"`'
9339  else
9340    whole_archive_flag_spec=''
9341  fi
9342  link_all_deplibs=yes
9343  allow_undefined_flag="$_lt_dar_allow_undefined"
9344  case $cc_basename in
9345     ifort*) _lt_dar_can_shared=yes ;;
9346     *) _lt_dar_can_shared=$GCC ;;
9347  esac
9348  if test "$_lt_dar_can_shared" = "yes"; then
9349    output_verbose_link_cmd=func_echo_all
9350    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9351    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9352    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}"
9353    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}"
9354
9355  else
9356  ld_shlibs=no
9357  fi
9358
9359      ;;
9360
9361    dgux*)
9362      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9363      hardcode_libdir_flag_spec='-L$libdir'
9364      hardcode_shlibpath_var=no
9365      ;;
9366
9367    freebsd1*)
9368      ld_shlibs=no
9369      ;;
9370
9371    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9372    # support.  Future versions do this automatically, but an explicit c++rt0.o
9373    # does not break anything, and helps significantly (at the cost of a little
9374    # extra space).
9375    freebsd2.2*)
9376      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9377      hardcode_libdir_flag_spec='-R$libdir'
9378      hardcode_direct=yes
9379      hardcode_shlibpath_var=no
9380      ;;
9381
9382    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9383    freebsd2*)
9384      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385      hardcode_direct=yes
9386      hardcode_minus_L=yes
9387      hardcode_shlibpath_var=no
9388      ;;
9389
9390    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9391    freebsd* | dragonfly*)
9392      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9393      hardcode_libdir_flag_spec='-R$libdir'
9394      hardcode_direct=yes
9395      hardcode_shlibpath_var=no
9396      ;;
9397
9398    hpux9*)
9399      if test "$GCC" = yes; then
9400	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'
9401      else
9402	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'
9403      fi
9404      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9405      hardcode_libdir_separator=:
9406      hardcode_direct=yes
9407
9408      # hardcode_minus_L: Not really in the search PATH,
9409      # but as the default location of the library.
9410      hardcode_minus_L=yes
9411      export_dynamic_flag_spec='${wl}-E'
9412      ;;
9413
9414    hpux10*)
9415      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9416	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9417      else
9418	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9419      fi
9420      if test "$with_gnu_ld" = no; then
9421	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9422	hardcode_libdir_flag_spec_ld='+b $libdir'
9423	hardcode_libdir_separator=:
9424	hardcode_direct=yes
9425	hardcode_direct_absolute=yes
9426	export_dynamic_flag_spec='${wl}-E'
9427	# hardcode_minus_L: Not really in the search PATH,
9428	# but as the default location of the library.
9429	hardcode_minus_L=yes
9430      fi
9431      ;;
9432
9433    hpux11*)
9434      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9435	case $host_cpu in
9436	hppa*64*)
9437	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9438	  ;;
9439	ia64*)
9440	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9441	  ;;
9442	*)
9443	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9444	  ;;
9445	esac
9446      else
9447	case $host_cpu in
9448	hppa*64*)
9449	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450	  ;;
9451	ia64*)
9452	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453	  ;;
9454	*)
9455
9456	  # Older versions of the 11.00 compiler do not understand -b yet
9457	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9458	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9459$as_echo_n "checking if $CC understands -b... " >&6; }
9460if ${lt_cv_prog_compiler__b+:} false; then :
9461  $as_echo_n "(cached) " >&6
9462else
9463  lt_cv_prog_compiler__b=no
9464   save_LDFLAGS="$LDFLAGS"
9465   LDFLAGS="$LDFLAGS -b"
9466   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9467   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9468     # The linker can only warn and ignore the option if not recognized
9469     # So say no if there are warnings
9470     if test -s conftest.err; then
9471       # Append any errors to the config.log.
9472       cat conftest.err 1>&5
9473       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9474       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475       if diff conftest.exp conftest.er2 >/dev/null; then
9476         lt_cv_prog_compiler__b=yes
9477       fi
9478     else
9479       lt_cv_prog_compiler__b=yes
9480     fi
9481   fi
9482   $RM -r conftest*
9483   LDFLAGS="$save_LDFLAGS"
9484
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9487$as_echo "$lt_cv_prog_compiler__b" >&6; }
9488
9489if test x"$lt_cv_prog_compiler__b" = xyes; then
9490    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9491else
9492    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9493fi
9494
9495	  ;;
9496	esac
9497      fi
9498      if test "$with_gnu_ld" = no; then
9499	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9500	hardcode_libdir_separator=:
9501
9502	case $host_cpu in
9503	hppa*64*|ia64*)
9504	  hardcode_direct=no
9505	  hardcode_shlibpath_var=no
9506	  ;;
9507	*)
9508	  hardcode_direct=yes
9509	  hardcode_direct_absolute=yes
9510	  export_dynamic_flag_spec='${wl}-E'
9511
9512	  # hardcode_minus_L: Not really in the search PATH,
9513	  # but as the default location of the library.
9514	  hardcode_minus_L=yes
9515	  ;;
9516	esac
9517      fi
9518      ;;
9519
9520    irix5* | irix6* | nonstopux*)
9521      if test "$GCC" = yes; then
9522	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'
9523	# Try to use the -exported_symbol ld option, if it does not
9524	# work, assume that -exports_file does not work either and
9525	# implicitly export all symbols.
9526	# This should be the same for all languages, so no per-tag cache variable.
9527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9528$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9529if ${lt_cv_irix_exported_symbol+:} false; then :
9530  $as_echo_n "(cached) " >&6
9531else
9532  save_LDFLAGS="$LDFLAGS"
9533	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9534	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h.  */
9536int foo (void) { return 0; }
9537_ACEOF
9538if ac_fn_c_try_link "$LINENO"; then :
9539  lt_cv_irix_exported_symbol=yes
9540else
9541  lt_cv_irix_exported_symbol=no
9542fi
9543rm -f core conftest.err conftest.$ac_objext \
9544    conftest$ac_exeext conftest.$ac_ext
9545           LDFLAGS="$save_LDFLAGS"
9546fi
9547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9548$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9549	if test "$lt_cv_irix_exported_symbol" = yes; then
9550          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'
9551	fi
9552      else
9553	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'
9554	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'
9555      fi
9556      archive_cmds_need_lc='no'
9557      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558      hardcode_libdir_separator=:
9559      inherit_rpath=yes
9560      link_all_deplibs=yes
9561      ;;
9562
9563    netbsd*)
9564      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9565	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9566      else
9567	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9568      fi
9569      hardcode_libdir_flag_spec='-R$libdir'
9570      hardcode_direct=yes
9571      hardcode_shlibpath_var=no
9572      ;;
9573
9574    newsos6)
9575      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9576      hardcode_direct=yes
9577      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578      hardcode_libdir_separator=:
9579      hardcode_shlibpath_var=no
9580      ;;
9581
9582    *nto* | *qnx*)
9583      ;;
9584
9585    openbsd*)
9586      if test -f /usr/libexec/ld.so; then
9587	hardcode_direct=yes
9588	hardcode_shlibpath_var=no
9589	hardcode_direct_absolute=yes
9590	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9591	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9592	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9593	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9594	  export_dynamic_flag_spec='${wl}-E'
9595	else
9596	  case $host_os in
9597	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9598	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9599	     hardcode_libdir_flag_spec='-R$libdir'
9600	     ;;
9601	   *)
9602	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9603	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9604	     ;;
9605	  esac
9606	fi
9607      else
9608	ld_shlibs=no
9609      fi
9610      ;;
9611
9612    os2*)
9613      hardcode_libdir_flag_spec='-L$libdir'
9614      hardcode_minus_L=yes
9615      allow_undefined_flag=unsupported
9616      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'
9617      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9618      ;;
9619
9620    osf3*)
9621      if test "$GCC" = yes; then
9622	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9623	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'
9624      else
9625	allow_undefined_flag=' -expect_unresolved \*'
9626	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'
9627      fi
9628      archive_cmds_need_lc='no'
9629      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9630      hardcode_libdir_separator=:
9631      ;;
9632
9633    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9634      if test "$GCC" = yes; then
9635	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9636	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'
9637	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9638      else
9639	allow_undefined_flag=' -expect_unresolved \*'
9640	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'
9641	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~
9642	$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'
9643
9644	# Both c and cxx compiler support -rpath directly
9645	hardcode_libdir_flag_spec='-rpath $libdir'
9646      fi
9647      archive_cmds_need_lc='no'
9648      hardcode_libdir_separator=:
9649      ;;
9650
9651    solaris*)
9652      no_undefined_flag=' -z defs'
9653      if test "$GCC" = yes; then
9654	wlarc='${wl}'
9655	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9656	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9657	  $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'
9658      else
9659	case `$CC -V 2>&1` in
9660	*"Compilers 5.0"*)
9661	  wlarc=''
9662	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9664	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9665	  ;;
9666	*)
9667	  wlarc='${wl}'
9668	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9669	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9670	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9671	  ;;
9672	esac
9673      fi
9674      hardcode_libdir_flag_spec='-R$libdir'
9675      hardcode_shlibpath_var=no
9676      case $host_os in
9677      solaris2.[0-5] | solaris2.[0-5].*) ;;
9678      *)
9679	# The compiler driver will combine and reorder linker options,
9680	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9681	# but is careful enough not to reorder.
9682	# Supported since Solaris 2.6 (maybe 2.5.1?)
9683	if test "$GCC" = yes; then
9684	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9685	else
9686	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9687	fi
9688	;;
9689      esac
9690      link_all_deplibs=yes
9691      ;;
9692
9693    sunos4*)
9694      if test "x$host_vendor" = xsequent; then
9695	# Use $CC to link under sequent, because it throws in some extra .o
9696	# files that make .init and .fini sections work.
9697	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9698      else
9699	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9700      fi
9701      hardcode_libdir_flag_spec='-L$libdir'
9702      hardcode_direct=yes
9703      hardcode_minus_L=yes
9704      hardcode_shlibpath_var=no
9705      ;;
9706
9707    sysv4)
9708      case $host_vendor in
9709	sni)
9710	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9711	  hardcode_direct=yes # is this really true???
9712	;;
9713	siemens)
9714	  ## LD is ld it makes a PLAMLIB
9715	  ## CC just makes a GrossModule.
9716	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9717	  reload_cmds='$CC -r -o $output$reload_objs'
9718	  hardcode_direct=no
9719        ;;
9720	motorola)
9721	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9723	;;
9724      esac
9725      runpath_var='LD_RUN_PATH'
9726      hardcode_shlibpath_var=no
9727      ;;
9728
9729    sysv4.3*)
9730      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731      hardcode_shlibpath_var=no
9732      export_dynamic_flag_spec='-Bexport'
9733      ;;
9734
9735    sysv4*MP*)
9736      if test -d /usr/nec; then
9737	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738	hardcode_shlibpath_var=no
9739	runpath_var=LD_RUN_PATH
9740	hardcode_runpath_var=yes
9741	ld_shlibs=yes
9742      fi
9743      ;;
9744
9745    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9746      no_undefined_flag='${wl}-z,text'
9747      archive_cmds_need_lc=no
9748      hardcode_shlibpath_var=no
9749      runpath_var='LD_RUN_PATH'
9750
9751      if test "$GCC" = yes; then
9752	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754      else
9755	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757      fi
9758      ;;
9759
9760    sysv5* | sco3.2v5* | sco5v6*)
9761      # Note: We can NOT use -z defs as we might desire, because we do not
9762      # link with -lc, and that would cause any symbols used from libc to
9763      # always be unresolved, which means just about no library would
9764      # ever link correctly.  If we're not using GNU ld we use -z text
9765      # though, which does catch some bad symbols but isn't as heavy-handed
9766      # as -z defs.
9767      no_undefined_flag='${wl}-z,text'
9768      allow_undefined_flag='${wl}-z,nodefs'
9769      archive_cmds_need_lc=no
9770      hardcode_shlibpath_var=no
9771      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9772      hardcode_libdir_separator=':'
9773      link_all_deplibs=yes
9774      export_dynamic_flag_spec='${wl}-Bexport'
9775      runpath_var='LD_RUN_PATH'
9776
9777      if test "$GCC" = yes; then
9778	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9780      else
9781	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783      fi
9784      ;;
9785
9786    uts4*)
9787      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9788      hardcode_libdir_flag_spec='-L$libdir'
9789      hardcode_shlibpath_var=no
9790      ;;
9791
9792    *)
9793      ld_shlibs=no
9794      ;;
9795    esac
9796
9797    if test x$host_vendor = xsni; then
9798      case $host in
9799      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9800	export_dynamic_flag_spec='${wl}-Blargedynsym'
9801	;;
9802      esac
9803    fi
9804  fi
9805
9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9807$as_echo "$ld_shlibs" >&6; }
9808test "$ld_shlibs" = no && can_build_shared=no
9809
9810with_gnu_ld=$with_gnu_ld
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826#
9827# Do we need to explicitly link libc?
9828#
9829case "x$archive_cmds_need_lc" in
9830x|xyes)
9831  # Assume -lc should be added
9832  archive_cmds_need_lc=yes
9833
9834  if test "$enable_shared" = yes && test "$GCC" = yes; then
9835    case $archive_cmds in
9836    *'~'*)
9837      # FIXME: we may have to deal with multi-command sequences.
9838      ;;
9839    '$CC '*)
9840      # Test whether the compiler implicitly links with -lc since on some
9841      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9842      # to ld, don't add -lc before -lgcc.
9843      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9844$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9845if ${lt_cv_archive_cmds_need_lc+:} false; then :
9846  $as_echo_n "(cached) " >&6
9847else
9848  $RM conftest*
9849	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9850
9851	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9852  (eval $ac_compile) 2>&5
9853  ac_status=$?
9854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9855  test $ac_status = 0; } 2>conftest.err; then
9856	  soname=conftest
9857	  lib=conftest
9858	  libobjs=conftest.$ac_objext
9859	  deplibs=
9860	  wl=$lt_prog_compiler_wl
9861	  pic_flag=$lt_prog_compiler_pic
9862	  compiler_flags=-v
9863	  linker_flags=-v
9864	  verstring=
9865	  output_objdir=.
9866	  libname=conftest
9867	  lt_save_allow_undefined_flag=$allow_undefined_flag
9868	  allow_undefined_flag=
9869	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9870  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9871  ac_status=$?
9872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9873  test $ac_status = 0; }
9874	  then
9875	    lt_cv_archive_cmds_need_lc=no
9876	  else
9877	    lt_cv_archive_cmds_need_lc=yes
9878	  fi
9879	  allow_undefined_flag=$lt_save_allow_undefined_flag
9880	else
9881	  cat conftest.err 1>&5
9882	fi
9883	$RM conftest*
9884
9885fi
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9887$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9888      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9889      ;;
9890    esac
9891  fi
9892  ;;
9893esac
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10052$as_echo_n "checking dynamic linker characteristics... " >&6; }
10053
10054if test "$GCC" = yes; then
10055  case $host_os in
10056    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10057    *) lt_awk_arg="/^libraries:/" ;;
10058  esac
10059  case $host_os in
10060    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10061    *) lt_sed_strip_eq="s,=/,/,g" ;;
10062  esac
10063  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10064  case $lt_search_path_spec in
10065  *\;*)
10066    # if the path contains ";" then we assume it to be the separator
10067    # otherwise default to the standard path separator (i.e. ":") - it is
10068    # assumed that no part of a normal pathname contains ";" but that should
10069    # okay in the real world where ";" in dirpaths is itself problematic.
10070    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10071    ;;
10072  *)
10073    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10074    ;;
10075  esac
10076  # Ok, now we have the path, separated by spaces, we can step through it
10077  # and add multilib dir if necessary.
10078  lt_tmp_lt_search_path_spec=
10079  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10080  for lt_sys_path in $lt_search_path_spec; do
10081    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10082      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10083    else
10084      test -d "$lt_sys_path" && \
10085	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10086    fi
10087  done
10088  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10089BEGIN {RS=" "; FS="/|\n";} {
10090  lt_foo="";
10091  lt_count=0;
10092  for (lt_i = NF; lt_i > 0; lt_i--) {
10093    if ($lt_i != "" && $lt_i != ".") {
10094      if ($lt_i == "..") {
10095        lt_count++;
10096      } else {
10097        if (lt_count == 0) {
10098          lt_foo="/" $lt_i lt_foo;
10099        } else {
10100          lt_count--;
10101        }
10102      }
10103    }
10104  }
10105  if (lt_foo != "") { lt_freq[lt_foo]++; }
10106  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10107}'`
10108  # AWK program above erroneously prepends '/' to C:/dos/paths
10109  # for these hosts.
10110  case $host_os in
10111    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10112      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10113  esac
10114  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10115else
10116  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10117fi
10118library_names_spec=
10119libname_spec='lib$name'
10120soname_spec=
10121shrext_cmds=".so"
10122postinstall_cmds=
10123postuninstall_cmds=
10124finish_cmds=
10125finish_eval=
10126shlibpath_var=
10127shlibpath_overrides_runpath=unknown
10128version_type=none
10129dynamic_linker="$host_os ld.so"
10130sys_lib_dlsearch_path_spec="/lib /usr/lib"
10131need_lib_prefix=unknown
10132hardcode_into_libs=no
10133
10134# when you set need_version to no, make sure it does not cause -set_version
10135# flags to be left without arguments
10136need_version=unknown
10137
10138case $host_os in
10139aix3*)
10140  version_type=linux
10141  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10142  shlibpath_var=LIBPATH
10143
10144  # AIX 3 has no versioning support, so we append a major version to the name.
10145  soname_spec='${libname}${release}${shared_ext}$major'
10146  ;;
10147
10148aix[4-9]*)
10149  version_type=linux
10150  need_lib_prefix=no
10151  need_version=no
10152  hardcode_into_libs=yes
10153  if test "$host_cpu" = ia64; then
10154    # AIX 5 supports IA64
10155    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10156    shlibpath_var=LD_LIBRARY_PATH
10157  else
10158    # With GCC up to 2.95.x, collect2 would create an import file
10159    # for dependence libraries.  The import file would start with
10160    # the line `#! .'.  This would cause the generated library to
10161    # depend on `.', always an invalid library.  This was fixed in
10162    # development snapshots of GCC prior to 3.0.
10163    case $host_os in
10164      aix4 | aix4.[01] | aix4.[01].*)
10165      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10166	   echo ' yes '
10167	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10168	:
10169      else
10170	can_build_shared=no
10171      fi
10172      ;;
10173    esac
10174    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10175    # soname into executable. Probably we can add versioning support to
10176    # collect2, so additional links can be useful in future.
10177    if test "$aix_use_runtimelinking" = yes; then
10178      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10179      # instead of lib<name>.a to let people know that these are not
10180      # typical AIX shared libraries.
10181      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182    else
10183      # We preserve .a as extension for shared libraries through AIX4.2
10184      # and later when we are not doing run time linking.
10185      library_names_spec='${libname}${release}.a $libname.a'
10186      soname_spec='${libname}${release}${shared_ext}$major'
10187    fi
10188    shlibpath_var=LIBPATH
10189  fi
10190  ;;
10191
10192amigaos*)
10193  case $host_cpu in
10194  powerpc)
10195    # Since July 2007 AmigaOS4 officially supports .so libraries.
10196    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10197    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198    ;;
10199  m68k)
10200    library_names_spec='$libname.ixlibrary $libname.a'
10201    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10202    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'
10203    ;;
10204  esac
10205  ;;
10206
10207beos*)
10208  library_names_spec='${libname}${shared_ext}'
10209  dynamic_linker="$host_os ld.so"
10210  shlibpath_var=LIBRARY_PATH
10211  ;;
10212
10213bsdi[45]*)
10214  version_type=linux
10215  need_version=no
10216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217  soname_spec='${libname}${release}${shared_ext}$major'
10218  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10219  shlibpath_var=LD_LIBRARY_PATH
10220  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10221  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10222  # the default ld.so.conf also contains /usr/contrib/lib and
10223  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10224  # libtool to hard-code these into programs
10225  ;;
10226
10227cygwin* | mingw* | pw32* | cegcc*)
10228  version_type=windows
10229  shrext_cmds=".dll"
10230  need_version=no
10231  need_lib_prefix=no
10232
10233  case $GCC,$cc_basename in
10234  yes,*)
10235    # gcc
10236    library_names_spec='$libname.dll.a'
10237    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10238    postinstall_cmds='base_file=`basename \${file}`~
10239      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10240      dldir=$destdir/`dirname \$dlpath`~
10241      test -d \$dldir || mkdir -p \$dldir~
10242      $install_prog $dir/$dlname \$dldir/$dlname~
10243      chmod a+x \$dldir/$dlname~
10244      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10245        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10246      fi'
10247    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10248      dlpath=$dir/\$dldll~
10249       $RM \$dlpath'
10250    shlibpath_overrides_runpath=yes
10251
10252    case $host_os in
10253    cygwin*)
10254      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10255      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10256
10257      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10258      ;;
10259    mingw* | cegcc*)
10260      # MinGW DLLs use traditional 'lib' prefix
10261      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10262      ;;
10263    pw32*)
10264      # pw32 DLLs use 'pw' prefix rather than 'lib'
10265      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10266      ;;
10267    esac
10268    dynamic_linker='Win32 ld.exe'
10269    ;;
10270
10271  *,cl*)
10272    # Native MSVC
10273    libname_spec='$name'
10274    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10275    library_names_spec='${libname}.dll.lib'
10276
10277    case $build_os in
10278    mingw*)
10279      sys_lib_search_path_spec=
10280      lt_save_ifs=$IFS
10281      IFS=';'
10282      for lt_path in $LIB
10283      do
10284        IFS=$lt_save_ifs
10285        # Let DOS variable expansion print the short 8.3 style file name.
10286        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10287        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10288      done
10289      IFS=$lt_save_ifs
10290      # Convert to MSYS style.
10291      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10292      ;;
10293    cygwin*)
10294      # Convert to unix form, then to dos form, then back to unix form
10295      # but this time dos style (no spaces!) so that the unix form looks
10296      # like /cygdrive/c/PROGRA~1:/cygdr...
10297      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10298      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10299      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10300      ;;
10301    *)
10302      sys_lib_search_path_spec="$LIB"
10303      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10304        # It is most probably a Windows format PATH.
10305        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10306      else
10307        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10308      fi
10309      # FIXME: find the short name or the path components, as spaces are
10310      # common. (e.g. "Program Files" -> "PROGRA~1")
10311      ;;
10312    esac
10313
10314    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10315    postinstall_cmds='base_file=`basename \${file}`~
10316      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10317      dldir=$destdir/`dirname \$dlpath`~
10318      test -d \$dldir || mkdir -p \$dldir~
10319      $install_prog $dir/$dlname \$dldir/$dlname'
10320    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10321      dlpath=$dir/\$dldll~
10322       $RM \$dlpath'
10323    shlibpath_overrides_runpath=yes
10324    dynamic_linker='Win32 link.exe'
10325    ;;
10326
10327  *)
10328    # Assume MSVC wrapper
10329    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10330    dynamic_linker='Win32 ld.exe'
10331    ;;
10332  esac
10333  # FIXME: first we should search . and the directory the executable is in
10334  shlibpath_var=PATH
10335  ;;
10336
10337darwin* | rhapsody*)
10338  dynamic_linker="$host_os dyld"
10339  version_type=darwin
10340  need_lib_prefix=no
10341  need_version=no
10342  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10343  soname_spec='${libname}${release}${major}$shared_ext'
10344  shlibpath_overrides_runpath=yes
10345  shlibpath_var=DYLD_LIBRARY_PATH
10346  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10347
10348  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10349  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10350  ;;
10351
10352dgux*)
10353  version_type=linux
10354  need_lib_prefix=no
10355  need_version=no
10356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10357  soname_spec='${libname}${release}${shared_ext}$major'
10358  shlibpath_var=LD_LIBRARY_PATH
10359  ;;
10360
10361freebsd1*)
10362  dynamic_linker=no
10363  ;;
10364
10365freebsd* | dragonfly*)
10366  # DragonFly does not have aout.  When/if they implement a new
10367  # versioning mechanism, adjust this.
10368  if test -x /usr/bin/objformat; then
10369    objformat=`/usr/bin/objformat`
10370  else
10371    case $host_os in
10372    freebsd[123]*) objformat=aout ;;
10373    *) objformat=elf ;;
10374    esac
10375  fi
10376  version_type=freebsd-$objformat
10377  case $version_type in
10378    freebsd-elf*)
10379      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10380      need_version=no
10381      need_lib_prefix=no
10382      ;;
10383    freebsd-*)
10384      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10385      need_version=yes
10386      ;;
10387  esac
10388  shlibpath_var=LD_LIBRARY_PATH
10389  case $host_os in
10390  freebsd2*)
10391    shlibpath_overrides_runpath=yes
10392    ;;
10393  freebsd3.[01]* | freebsdelf3.[01]*)
10394    shlibpath_overrides_runpath=yes
10395    hardcode_into_libs=yes
10396    ;;
10397  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10398  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10399    shlibpath_overrides_runpath=no
10400    hardcode_into_libs=yes
10401    ;;
10402  *) # from 4.6 on, and DragonFly
10403    shlibpath_overrides_runpath=yes
10404    hardcode_into_libs=yes
10405    ;;
10406  esac
10407  ;;
10408
10409gnu*)
10410  version_type=linux
10411  need_lib_prefix=no
10412  need_version=no
10413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10414  soname_spec='${libname}${release}${shared_ext}$major'
10415  shlibpath_var=LD_LIBRARY_PATH
10416  hardcode_into_libs=yes
10417  ;;
10418
10419haiku*)
10420  version_type=linux
10421  need_lib_prefix=no
10422  need_version=no
10423  dynamic_linker="$host_os runtime_loader"
10424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10425  soname_spec='${libname}${release}${shared_ext}$major'
10426  shlibpath_var=LIBRARY_PATH
10427  shlibpath_overrides_runpath=yes
10428  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10429  hardcode_into_libs=yes
10430  ;;
10431
10432hpux9* | hpux10* | hpux11*)
10433  # Give a soname corresponding to the major version so that dld.sl refuses to
10434  # link against other versions.
10435  version_type=sunos
10436  need_lib_prefix=no
10437  need_version=no
10438  case $host_cpu in
10439  ia64*)
10440    shrext_cmds='.so'
10441    hardcode_into_libs=yes
10442    dynamic_linker="$host_os dld.so"
10443    shlibpath_var=LD_LIBRARY_PATH
10444    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10445    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446    soname_spec='${libname}${release}${shared_ext}$major'
10447    if test "X$HPUX_IA64_MODE" = X32; then
10448      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10449    else
10450      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10451    fi
10452    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10453    ;;
10454  hppa*64*)
10455    shrext_cmds='.sl'
10456    hardcode_into_libs=yes
10457    dynamic_linker="$host_os dld.sl"
10458    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10459    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10460    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461    soname_spec='${libname}${release}${shared_ext}$major'
10462    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10463    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10464    ;;
10465  *)
10466    shrext_cmds='.sl'
10467    dynamic_linker="$host_os dld.sl"
10468    shlibpath_var=SHLIB_PATH
10469    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10470    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471    soname_spec='${libname}${release}${shared_ext}$major'
10472    ;;
10473  esac
10474  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10475  postinstall_cmds='chmod 555 $lib'
10476  # or fails outright, so override atomically:
10477  install_override_mode=555
10478  ;;
10479
10480interix[3-9]*)
10481  version_type=linux
10482  need_lib_prefix=no
10483  need_version=no
10484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10485  soname_spec='${libname}${release}${shared_ext}$major'
10486  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10487  shlibpath_var=LD_LIBRARY_PATH
10488  shlibpath_overrides_runpath=no
10489  hardcode_into_libs=yes
10490  ;;
10491
10492irix5* | irix6* | nonstopux*)
10493  case $host_os in
10494    nonstopux*) version_type=nonstopux ;;
10495    *)
10496	if test "$lt_cv_prog_gnu_ld" = yes; then
10497		version_type=linux
10498	else
10499		version_type=irix
10500	fi ;;
10501  esac
10502  need_lib_prefix=no
10503  need_version=no
10504  soname_spec='${libname}${release}${shared_ext}$major'
10505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10506  case $host_os in
10507  irix5* | nonstopux*)
10508    libsuff= shlibsuff=
10509    ;;
10510  *)
10511    case $LD in # libtool.m4 will add one of these switches to LD
10512    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10513      libsuff= shlibsuff= libmagic=32-bit;;
10514    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10515      libsuff=32 shlibsuff=N32 libmagic=N32;;
10516    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10517      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10518    *) libsuff= shlibsuff= libmagic=never-match;;
10519    esac
10520    ;;
10521  esac
10522  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10523  shlibpath_overrides_runpath=no
10524  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10525  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10526  hardcode_into_libs=yes
10527  ;;
10528
10529# No shared lib support for Linux oldld, aout, or coff.
10530linux*oldld* | linux*aout* | linux*coff*)
10531  dynamic_linker=no
10532  ;;
10533
10534# This must be Linux ELF.
10535linux* | k*bsd*-gnu | kopensolaris*-gnu)
10536  version_type=linux
10537  need_lib_prefix=no
10538  need_version=no
10539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540  soname_spec='${libname}${release}${shared_ext}$major'
10541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10542  shlibpath_var=LD_LIBRARY_PATH
10543  shlibpath_overrides_runpath=no
10544
10545  # Some binutils ld are patched to set DT_RUNPATH
10546  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10547  $as_echo_n "(cached) " >&6
10548else
10549  lt_cv_shlibpath_overrides_runpath=no
10550    save_LDFLAGS=$LDFLAGS
10551    save_libdir=$libdir
10552    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10553	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10554    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555/* end confdefs.h.  */
10556
10557int
10558main ()
10559{
10560
10561  ;
10562  return 0;
10563}
10564_ACEOF
10565if ac_fn_c_try_link "$LINENO"; then :
10566  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10567  lt_cv_shlibpath_overrides_runpath=yes
10568fi
10569fi
10570rm -f core conftest.err conftest.$ac_objext \
10571    conftest$ac_exeext conftest.$ac_ext
10572    LDFLAGS=$save_LDFLAGS
10573    libdir=$save_libdir
10574
10575fi
10576
10577  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10578
10579  # This implies no fast_install, which is unacceptable.
10580  # Some rework will be needed to allow for fast_install
10581  # before this can be enabled.
10582  hardcode_into_libs=yes
10583
10584  # Append ld.so.conf contents to the search path
10585  if test -f /etc/ld.so.conf; then
10586    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' ' '`
10587    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10588  fi
10589
10590  # We used to test for /lib/ld.so.1 and disable shared libraries on
10591  # powerpc, because MkLinux only supported shared libraries with the
10592  # GNU dynamic linker.  Since this was broken with cross compilers,
10593  # most powerpc-linux boxes support dynamic linking these days and
10594  # people can always --disable-shared, the test was removed, and we
10595  # assume the GNU/Linux dynamic linker is in use.
10596  dynamic_linker='GNU/Linux ld.so'
10597  ;;
10598
10599netbsd*)
10600  version_type=sunos
10601  need_lib_prefix=no
10602  need_version=no
10603  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10604    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10605    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10606    dynamic_linker='NetBSD (a.out) ld.so'
10607  else
10608    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10609    soname_spec='${libname}${release}${shared_ext}$major'
10610    dynamic_linker='NetBSD ld.elf_so'
10611  fi
10612  shlibpath_var=LD_LIBRARY_PATH
10613  shlibpath_overrides_runpath=yes
10614  hardcode_into_libs=yes
10615  ;;
10616
10617newsos6)
10618  version_type=linux
10619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620  shlibpath_var=LD_LIBRARY_PATH
10621  shlibpath_overrides_runpath=yes
10622  ;;
10623
10624*nto* | *qnx*)
10625  version_type=qnx
10626  need_lib_prefix=no
10627  need_version=no
10628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629  soname_spec='${libname}${release}${shared_ext}$major'
10630  shlibpath_var=LD_LIBRARY_PATH
10631  shlibpath_overrides_runpath=no
10632  hardcode_into_libs=yes
10633  dynamic_linker='ldqnx.so'
10634  ;;
10635
10636openbsd*)
10637  version_type=sunos
10638  sys_lib_dlsearch_path_spec="/usr/lib"
10639  need_lib_prefix=no
10640  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10641  case $host_os in
10642    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10643    *)				need_version=no  ;;
10644  esac
10645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10646  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10647  shlibpath_var=LD_LIBRARY_PATH
10648  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10649    case $host_os in
10650      openbsd2.[89] | openbsd2.[89].*)
10651	shlibpath_overrides_runpath=no
10652	;;
10653      *)
10654	shlibpath_overrides_runpath=yes
10655	;;
10656      esac
10657  else
10658    shlibpath_overrides_runpath=yes
10659  fi
10660  ;;
10661
10662os2*)
10663  libname_spec='$name'
10664  shrext_cmds=".dll"
10665  need_lib_prefix=no
10666  library_names_spec='$libname${shared_ext} $libname.a'
10667  dynamic_linker='OS/2 ld.exe'
10668  shlibpath_var=LIBPATH
10669  ;;
10670
10671osf3* | osf4* | osf5*)
10672  version_type=osf
10673  need_lib_prefix=no
10674  need_version=no
10675  soname_spec='${libname}${release}${shared_ext}$major'
10676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677  shlibpath_var=LD_LIBRARY_PATH
10678  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10679  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10680  ;;
10681
10682rdos*)
10683  dynamic_linker=no
10684  ;;
10685
10686solaris*)
10687  version_type=linux
10688  need_lib_prefix=no
10689  need_version=no
10690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691  soname_spec='${libname}${release}${shared_ext}$major'
10692  shlibpath_var=LD_LIBRARY_PATH
10693  shlibpath_overrides_runpath=yes
10694  hardcode_into_libs=yes
10695  # ldd complains unless libraries are executable
10696  postinstall_cmds='chmod +x $lib'
10697  ;;
10698
10699sunos4*)
10700  version_type=sunos
10701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10702  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10703  shlibpath_var=LD_LIBRARY_PATH
10704  shlibpath_overrides_runpath=yes
10705  if test "$with_gnu_ld" = yes; then
10706    need_lib_prefix=no
10707  fi
10708  need_version=yes
10709  ;;
10710
10711sysv4 | sysv4.3*)
10712  version_type=linux
10713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714  soname_spec='${libname}${release}${shared_ext}$major'
10715  shlibpath_var=LD_LIBRARY_PATH
10716  case $host_vendor in
10717    sni)
10718      shlibpath_overrides_runpath=no
10719      need_lib_prefix=no
10720      runpath_var=LD_RUN_PATH
10721      ;;
10722    siemens)
10723      need_lib_prefix=no
10724      ;;
10725    motorola)
10726      need_lib_prefix=no
10727      need_version=no
10728      shlibpath_overrides_runpath=no
10729      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10730      ;;
10731  esac
10732  ;;
10733
10734sysv4*MP*)
10735  if test -d /usr/nec ;then
10736    version_type=linux
10737    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10738    soname_spec='$libname${shared_ext}.$major'
10739    shlibpath_var=LD_LIBRARY_PATH
10740  fi
10741  ;;
10742
10743sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10744  version_type=freebsd-elf
10745  need_lib_prefix=no
10746  need_version=no
10747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10748  soname_spec='${libname}${release}${shared_ext}$major'
10749  shlibpath_var=LD_LIBRARY_PATH
10750  shlibpath_overrides_runpath=yes
10751  hardcode_into_libs=yes
10752  if test "$with_gnu_ld" = yes; then
10753    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10754  else
10755    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10756    case $host_os in
10757      sco3.2v5*)
10758        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10759	;;
10760    esac
10761  fi
10762  sys_lib_dlsearch_path_spec='/usr/lib'
10763  ;;
10764
10765tpf*)
10766  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10767  version_type=linux
10768  need_lib_prefix=no
10769  need_version=no
10770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771  shlibpath_var=LD_LIBRARY_PATH
10772  shlibpath_overrides_runpath=no
10773  hardcode_into_libs=yes
10774  ;;
10775
10776uts4*)
10777  version_type=linux
10778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779  soname_spec='${libname}${release}${shared_ext}$major'
10780  shlibpath_var=LD_LIBRARY_PATH
10781  ;;
10782
10783*)
10784  dynamic_linker=no
10785  ;;
10786esac
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10788$as_echo "$dynamic_linker" >&6; }
10789test "$dynamic_linker" = no && can_build_shared=no
10790
10791variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10792if test "$GCC" = yes; then
10793  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10794fi
10795
10796if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10797  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10798fi
10799if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10800  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10801fi
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10895$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10896hardcode_action=
10897if test -n "$hardcode_libdir_flag_spec" ||
10898   test -n "$runpath_var" ||
10899   test "X$hardcode_automatic" = "Xyes" ; then
10900
10901  # We can hardcode non-existent directories.
10902  if test "$hardcode_direct" != no &&
10903     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10904     # have to relink, otherwise we might link with an installed library
10905     # when we should be linking with a yet-to-be-installed one
10906     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10907     test "$hardcode_minus_L" != no; then
10908    # Linking always hardcodes the temporary library directory.
10909    hardcode_action=relink
10910  else
10911    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10912    hardcode_action=immediate
10913  fi
10914else
10915  # We cannot hardcode anything, or else we can only hardcode existing
10916  # directories.
10917  hardcode_action=unsupported
10918fi
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10920$as_echo "$hardcode_action" >&6; }
10921
10922if test "$hardcode_action" = relink ||
10923   test "$inherit_rpath" = yes; then
10924  # Fast installation is not supported
10925  enable_fast_install=no
10926elif test "$shlibpath_overrides_runpath" = yes ||
10927     test "$enable_shared" = no; then
10928  # Fast installation is not necessary
10929  enable_fast_install=needless
10930fi
10931
10932
10933
10934
10935
10936
10937  if test "x$enable_dlopen" != xyes; then
10938  enable_dlopen=unknown
10939  enable_dlopen_self=unknown
10940  enable_dlopen_self_static=unknown
10941else
10942  lt_cv_dlopen=no
10943  lt_cv_dlopen_libs=
10944
10945  case $host_os in
10946  beos*)
10947    lt_cv_dlopen="load_add_on"
10948    lt_cv_dlopen_libs=
10949    lt_cv_dlopen_self=yes
10950    ;;
10951
10952  mingw* | pw32* | cegcc*)
10953    lt_cv_dlopen="LoadLibrary"
10954    lt_cv_dlopen_libs=
10955    ;;
10956
10957  cygwin*)
10958    lt_cv_dlopen="dlopen"
10959    lt_cv_dlopen_libs=
10960    ;;
10961
10962  darwin*)
10963  # if libdl is installed we need to link against it
10964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10965$as_echo_n "checking for dlopen in -ldl... " >&6; }
10966if ${ac_cv_lib_dl_dlopen+:} false; then :
10967  $as_echo_n "(cached) " >&6
10968else
10969  ac_check_lib_save_LIBS=$LIBS
10970LIBS="-ldl  $LIBS"
10971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972/* end confdefs.h.  */
10973
10974/* Override any GCC internal prototype to avoid an error.
10975   Use char because int might match the return type of a GCC
10976   builtin and then its argument prototype would still apply.  */
10977#ifdef __cplusplus
10978extern "C"
10979#endif
10980char dlopen ();
10981int
10982main ()
10983{
10984return dlopen ();
10985  ;
10986  return 0;
10987}
10988_ACEOF
10989if ac_fn_c_try_link "$LINENO"; then :
10990  ac_cv_lib_dl_dlopen=yes
10991else
10992  ac_cv_lib_dl_dlopen=no
10993fi
10994rm -f core conftest.err conftest.$ac_objext \
10995    conftest$ac_exeext conftest.$ac_ext
10996LIBS=$ac_check_lib_save_LIBS
10997fi
10998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10999$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11000if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11001  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11002else
11003
11004    lt_cv_dlopen="dyld"
11005    lt_cv_dlopen_libs=
11006    lt_cv_dlopen_self=yes
11007
11008fi
11009
11010    ;;
11011
11012  *)
11013    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11014if test "x$ac_cv_func_shl_load" = xyes; then :
11015  lt_cv_dlopen="shl_load"
11016else
11017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11018$as_echo_n "checking for shl_load in -ldld... " >&6; }
11019if ${ac_cv_lib_dld_shl_load+:} false; then :
11020  $as_echo_n "(cached) " >&6
11021else
11022  ac_check_lib_save_LIBS=$LIBS
11023LIBS="-ldld  $LIBS"
11024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025/* end confdefs.h.  */
11026
11027/* Override any GCC internal prototype to avoid an error.
11028   Use char because int might match the return type of a GCC
11029   builtin and then its argument prototype would still apply.  */
11030#ifdef __cplusplus
11031extern "C"
11032#endif
11033char shl_load ();
11034int
11035main ()
11036{
11037return shl_load ();
11038  ;
11039  return 0;
11040}
11041_ACEOF
11042if ac_fn_c_try_link "$LINENO"; then :
11043  ac_cv_lib_dld_shl_load=yes
11044else
11045  ac_cv_lib_dld_shl_load=no
11046fi
11047rm -f core conftest.err conftest.$ac_objext \
11048    conftest$ac_exeext conftest.$ac_ext
11049LIBS=$ac_check_lib_save_LIBS
11050fi
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11052$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11053if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11054  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11055else
11056  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11057if test "x$ac_cv_func_dlopen" = xyes; then :
11058  lt_cv_dlopen="dlopen"
11059else
11060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11061$as_echo_n "checking for dlopen in -ldl... " >&6; }
11062if ${ac_cv_lib_dl_dlopen+:} false; then :
11063  $as_echo_n "(cached) " >&6
11064else
11065  ac_check_lib_save_LIBS=$LIBS
11066LIBS="-ldl  $LIBS"
11067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068/* end confdefs.h.  */
11069
11070/* Override any GCC internal prototype to avoid an error.
11071   Use char because int might match the return type of a GCC
11072   builtin and then its argument prototype would still apply.  */
11073#ifdef __cplusplus
11074extern "C"
11075#endif
11076char dlopen ();
11077int
11078main ()
11079{
11080return dlopen ();
11081  ;
11082  return 0;
11083}
11084_ACEOF
11085if ac_fn_c_try_link "$LINENO"; then :
11086  ac_cv_lib_dl_dlopen=yes
11087else
11088  ac_cv_lib_dl_dlopen=no
11089fi
11090rm -f core conftest.err conftest.$ac_objext \
11091    conftest$ac_exeext conftest.$ac_ext
11092LIBS=$ac_check_lib_save_LIBS
11093fi
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11095$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11096if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11097  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11098else
11099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11100$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11101if ${ac_cv_lib_svld_dlopen+:} false; then :
11102  $as_echo_n "(cached) " >&6
11103else
11104  ac_check_lib_save_LIBS=$LIBS
11105LIBS="-lsvld  $LIBS"
11106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107/* end confdefs.h.  */
11108
11109/* Override any GCC internal prototype to avoid an error.
11110   Use char because int might match the return type of a GCC
11111   builtin and then its argument prototype would still apply.  */
11112#ifdef __cplusplus
11113extern "C"
11114#endif
11115char dlopen ();
11116int
11117main ()
11118{
11119return dlopen ();
11120  ;
11121  return 0;
11122}
11123_ACEOF
11124if ac_fn_c_try_link "$LINENO"; then :
11125  ac_cv_lib_svld_dlopen=yes
11126else
11127  ac_cv_lib_svld_dlopen=no
11128fi
11129rm -f core conftest.err conftest.$ac_objext \
11130    conftest$ac_exeext conftest.$ac_ext
11131LIBS=$ac_check_lib_save_LIBS
11132fi
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11134$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11135if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11136  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11137else
11138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11139$as_echo_n "checking for dld_link in -ldld... " >&6; }
11140if ${ac_cv_lib_dld_dld_link+:} false; then :
11141  $as_echo_n "(cached) " >&6
11142else
11143  ac_check_lib_save_LIBS=$LIBS
11144LIBS="-ldld  $LIBS"
11145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146/* end confdefs.h.  */
11147
11148/* Override any GCC internal prototype to avoid an error.
11149   Use char because int might match the return type of a GCC
11150   builtin and then its argument prototype would still apply.  */
11151#ifdef __cplusplus
11152extern "C"
11153#endif
11154char dld_link ();
11155int
11156main ()
11157{
11158return dld_link ();
11159  ;
11160  return 0;
11161}
11162_ACEOF
11163if ac_fn_c_try_link "$LINENO"; then :
11164  ac_cv_lib_dld_dld_link=yes
11165else
11166  ac_cv_lib_dld_dld_link=no
11167fi
11168rm -f core conftest.err conftest.$ac_objext \
11169    conftest$ac_exeext conftest.$ac_ext
11170LIBS=$ac_check_lib_save_LIBS
11171fi
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11173$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11174if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11175  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11176fi
11177
11178
11179fi
11180
11181
11182fi
11183
11184
11185fi
11186
11187
11188fi
11189
11190
11191fi
11192
11193    ;;
11194  esac
11195
11196  if test "x$lt_cv_dlopen" != xno; then
11197    enable_dlopen=yes
11198  else
11199    enable_dlopen=no
11200  fi
11201
11202  case $lt_cv_dlopen in
11203  dlopen)
11204    save_CPPFLAGS="$CPPFLAGS"
11205    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11206
11207    save_LDFLAGS="$LDFLAGS"
11208    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11209
11210    save_LIBS="$LIBS"
11211    LIBS="$lt_cv_dlopen_libs $LIBS"
11212
11213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11214$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11215if ${lt_cv_dlopen_self+:} false; then :
11216  $as_echo_n "(cached) " >&6
11217else
11218  	  if test "$cross_compiling" = yes; then :
11219  lt_cv_dlopen_self=cross
11220else
11221  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11222  lt_status=$lt_dlunknown
11223  cat > conftest.$ac_ext <<_LT_EOF
11224#line $LINENO "configure"
11225#include "confdefs.h"
11226
11227#if HAVE_DLFCN_H
11228#include <dlfcn.h>
11229#endif
11230
11231#include <stdio.h>
11232
11233#ifdef RTLD_GLOBAL
11234#  define LT_DLGLOBAL		RTLD_GLOBAL
11235#else
11236#  ifdef DL_GLOBAL
11237#    define LT_DLGLOBAL		DL_GLOBAL
11238#  else
11239#    define LT_DLGLOBAL		0
11240#  endif
11241#endif
11242
11243/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11244   find out it does not work in some platform. */
11245#ifndef LT_DLLAZY_OR_NOW
11246#  ifdef RTLD_LAZY
11247#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11248#  else
11249#    ifdef DL_LAZY
11250#      define LT_DLLAZY_OR_NOW		DL_LAZY
11251#    else
11252#      ifdef RTLD_NOW
11253#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11254#      else
11255#        ifdef DL_NOW
11256#          define LT_DLLAZY_OR_NOW	DL_NOW
11257#        else
11258#          define LT_DLLAZY_OR_NOW	0
11259#        endif
11260#      endif
11261#    endif
11262#  endif
11263#endif
11264
11265/* When -fvisbility=hidden is used, assume the code has been annotated
11266   correspondingly for the symbols needed.  */
11267#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11268int fnord () __attribute__((visibility("default")));
11269#endif
11270
11271int fnord () { return 42; }
11272int main ()
11273{
11274  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11275  int status = $lt_dlunknown;
11276
11277  if (self)
11278    {
11279      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11280      else
11281        {
11282	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11283          else puts (dlerror ());
11284	}
11285      /* dlclose (self); */
11286    }
11287  else
11288    puts (dlerror ());
11289
11290  return status;
11291}
11292_LT_EOF
11293  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11294  (eval $ac_link) 2>&5
11295  ac_status=$?
11296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11297  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11298    (./conftest; exit; ) >&5 2>/dev/null
11299    lt_status=$?
11300    case x$lt_status in
11301      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11302      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11303      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11304    esac
11305  else :
11306    # compilation failed
11307    lt_cv_dlopen_self=no
11308  fi
11309fi
11310rm -fr conftest*
11311
11312
11313fi
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11315$as_echo "$lt_cv_dlopen_self" >&6; }
11316
11317    if test "x$lt_cv_dlopen_self" = xyes; then
11318      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11319      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11320$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11321if ${lt_cv_dlopen_self_static+:} false; then :
11322  $as_echo_n "(cached) " >&6
11323else
11324  	  if test "$cross_compiling" = yes; then :
11325  lt_cv_dlopen_self_static=cross
11326else
11327  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11328  lt_status=$lt_dlunknown
11329  cat > conftest.$ac_ext <<_LT_EOF
11330#line $LINENO "configure"
11331#include "confdefs.h"
11332
11333#if HAVE_DLFCN_H
11334#include <dlfcn.h>
11335#endif
11336
11337#include <stdio.h>
11338
11339#ifdef RTLD_GLOBAL
11340#  define LT_DLGLOBAL		RTLD_GLOBAL
11341#else
11342#  ifdef DL_GLOBAL
11343#    define LT_DLGLOBAL		DL_GLOBAL
11344#  else
11345#    define LT_DLGLOBAL		0
11346#  endif
11347#endif
11348
11349/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11350   find out it does not work in some platform. */
11351#ifndef LT_DLLAZY_OR_NOW
11352#  ifdef RTLD_LAZY
11353#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11354#  else
11355#    ifdef DL_LAZY
11356#      define LT_DLLAZY_OR_NOW		DL_LAZY
11357#    else
11358#      ifdef RTLD_NOW
11359#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11360#      else
11361#        ifdef DL_NOW
11362#          define LT_DLLAZY_OR_NOW	DL_NOW
11363#        else
11364#          define LT_DLLAZY_OR_NOW	0
11365#        endif
11366#      endif
11367#    endif
11368#  endif
11369#endif
11370
11371/* When -fvisbility=hidden is used, assume the code has been annotated
11372   correspondingly for the symbols needed.  */
11373#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11374int fnord () __attribute__((visibility("default")));
11375#endif
11376
11377int fnord () { return 42; }
11378int main ()
11379{
11380  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11381  int status = $lt_dlunknown;
11382
11383  if (self)
11384    {
11385      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11386      else
11387        {
11388	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11389          else puts (dlerror ());
11390	}
11391      /* dlclose (self); */
11392    }
11393  else
11394    puts (dlerror ());
11395
11396  return status;
11397}
11398_LT_EOF
11399  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11400  (eval $ac_link) 2>&5
11401  ac_status=$?
11402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11403  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11404    (./conftest; exit; ) >&5 2>/dev/null
11405    lt_status=$?
11406    case x$lt_status in
11407      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11408      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11409      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11410    esac
11411  else :
11412    # compilation failed
11413    lt_cv_dlopen_self_static=no
11414  fi
11415fi
11416rm -fr conftest*
11417
11418
11419fi
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11421$as_echo "$lt_cv_dlopen_self_static" >&6; }
11422    fi
11423
11424    CPPFLAGS="$save_CPPFLAGS"
11425    LDFLAGS="$save_LDFLAGS"
11426    LIBS="$save_LIBS"
11427    ;;
11428  esac
11429
11430  case $lt_cv_dlopen_self in
11431  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11432  *) enable_dlopen_self=unknown ;;
11433  esac
11434
11435  case $lt_cv_dlopen_self_static in
11436  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11437  *) enable_dlopen_self_static=unknown ;;
11438  esac
11439fi
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457striplib=
11458old_striplib=
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11460$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11461if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11462  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11463  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11465$as_echo "yes" >&6; }
11466else
11467# FIXME - insert some real tests, host_os isn't really good enough
11468  case $host_os in
11469  darwin*)
11470    if test -n "$STRIP" ; then
11471      striplib="$STRIP -x"
11472      old_striplib="$STRIP -S"
11473      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11474$as_echo "yes" >&6; }
11475    else
11476      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477$as_echo "no" >&6; }
11478    fi
11479    ;;
11480  *)
11481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482$as_echo "no" >&6; }
11483    ;;
11484  esac
11485fi
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498  # Report which library types will actually be built
11499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11500$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11502$as_echo "$can_build_shared" >&6; }
11503
11504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11505$as_echo_n "checking whether to build shared libraries... " >&6; }
11506  test "$can_build_shared" = "no" && enable_shared=no
11507
11508  # On AIX, shared libraries and static libraries use the same namespace, and
11509  # are all built from PIC.
11510  case $host_os in
11511  aix3*)
11512    test "$enable_shared" = yes && enable_static=no
11513    if test -n "$RANLIB"; then
11514      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11515      postinstall_cmds='$RANLIB $lib'
11516    fi
11517    ;;
11518
11519  aix[4-9]*)
11520    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11521      test "$enable_shared" = yes && enable_static=no
11522    fi
11523    ;;
11524  esac
11525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11526$as_echo "$enable_shared" >&6; }
11527
11528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11529$as_echo_n "checking whether to build static libraries... " >&6; }
11530  # Make sure either enable_shared or enable_static is yes.
11531  test "$enable_shared" = yes || enable_static=yes
11532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11533$as_echo "$enable_static" >&6; }
11534
11535
11536
11537
11538fi
11539ac_ext=c
11540ac_cpp='$CPP $CPPFLAGS'
11541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11543ac_compiler_gnu=$ac_cv_c_compiler_gnu
11544
11545CC="$lt_save_CC"
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559        ac_config_commands="$ac_config_commands libtool"
11560
11561
11562
11563
11564# Only expand once:
11565
11566
11567
11568# Require xorg-macros minimum of 1.10 for DocBook XML documentation
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11581$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11582if ${ac_cv_prog_cc_c99+:} false; then :
11583  $as_echo_n "(cached) " >&6
11584else
11585  ac_cv_prog_cc_c99=no
11586ac_save_CC=$CC
11587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588/* end confdefs.h.  */
11589#include <stdarg.h>
11590#include <stdbool.h>
11591#include <stdlib.h>
11592#include <wchar.h>
11593#include <stdio.h>
11594
11595// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11596#define debug(...) fprintf (stderr, __VA_ARGS__)
11597#define showlist(...) puts (#__VA_ARGS__)
11598#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11599static void
11600test_varargs_macros (void)
11601{
11602  int x = 1234;
11603  int y = 5678;
11604  debug ("Flag");
11605  debug ("X = %d\n", x);
11606  showlist (The first, second, and third items.);
11607  report (x>y, "x is %d but y is %d", x, y);
11608}
11609
11610// Check long long types.
11611#define BIG64 18446744073709551615ull
11612#define BIG32 4294967295ul
11613#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11614#if !BIG_OK
11615  your preprocessor is broken;
11616#endif
11617#if BIG_OK
11618#else
11619  your preprocessor is broken;
11620#endif
11621static long long int bignum = -9223372036854775807LL;
11622static unsigned long long int ubignum = BIG64;
11623
11624struct incomplete_array
11625{
11626  int datasize;
11627  double data[];
11628};
11629
11630struct named_init {
11631  int number;
11632  const wchar_t *name;
11633  double average;
11634};
11635
11636typedef const char *ccp;
11637
11638static inline int
11639test_restrict (ccp restrict text)
11640{
11641  // See if C++-style comments work.
11642  // Iterate through items via the restricted pointer.
11643  // Also check for declarations in for loops.
11644  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11645    continue;
11646  return 0;
11647}
11648
11649// Check varargs and va_copy.
11650static void
11651test_varargs (const char *format, ...)
11652{
11653  va_list args;
11654  va_start (args, format);
11655  va_list args_copy;
11656  va_copy (args_copy, args);
11657
11658  const char *str;
11659  int number;
11660  float fnumber;
11661
11662  while (*format)
11663    {
11664      switch (*format++)
11665	{
11666	case 's': // string
11667	  str = va_arg (args_copy, const char *);
11668	  break;
11669	case 'd': // int
11670	  number = va_arg (args_copy, int);
11671	  break;
11672	case 'f': // float
11673	  fnumber = va_arg (args_copy, double);
11674	  break;
11675	default:
11676	  break;
11677	}
11678    }
11679  va_end (args_copy);
11680  va_end (args);
11681}
11682
11683int
11684main ()
11685{
11686
11687  // Check bool.
11688  _Bool success = false;
11689
11690  // Check restrict.
11691  if (test_restrict ("String literal") == 0)
11692    success = true;
11693  char *restrict newvar = "Another string";
11694
11695  // Check varargs.
11696  test_varargs ("s, d' f .", "string", 65, 34.234);
11697  test_varargs_macros ();
11698
11699  // Check flexible array members.
11700  struct incomplete_array *ia =
11701    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11702  ia->datasize = 10;
11703  for (int i = 0; i < ia->datasize; ++i)
11704    ia->data[i] = i * 1.234;
11705
11706  // Check named initializers.
11707  struct named_init ni = {
11708    .number = 34,
11709    .name = L"Test wide string",
11710    .average = 543.34343,
11711  };
11712
11713  ni.number = 58;
11714
11715  int dynamic_array[ni.number];
11716  dynamic_array[ni.number - 1] = 543;
11717
11718  // work around unused variable warnings
11719  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11720	  || dynamic_array[ni.number - 1] != 543);
11721
11722  ;
11723  return 0;
11724}
11725_ACEOF
11726for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11727do
11728  CC="$ac_save_CC $ac_arg"
11729  if ac_fn_c_try_compile "$LINENO"; then :
11730  ac_cv_prog_cc_c99=$ac_arg
11731fi
11732rm -f core conftest.err conftest.$ac_objext
11733  test "x$ac_cv_prog_cc_c99" != "xno" && break
11734done
11735rm -f conftest.$ac_ext
11736CC=$ac_save_CC
11737
11738fi
11739# AC_CACHE_VAL
11740case "x$ac_cv_prog_cc_c99" in
11741  x)
11742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11743$as_echo "none needed" >&6; } ;;
11744  xno)
11745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11746$as_echo "unsupported" >&6; } ;;
11747  *)
11748    CC="$CC $ac_cv_prog_cc_c99"
11749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11750$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11751esac
11752if test "x$ac_cv_prog_cc_c99" != xno; then :
11753
11754fi
11755
11756
11757
11758
11759
11760
11761ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11762if test "x$ac_cv_have_decl___clang__" = xyes; then :
11763  CLANGCC="yes"
11764else
11765  CLANGCC="no"
11766fi
11767
11768ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11769if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11770  INTELCC="yes"
11771else
11772  INTELCC="no"
11773fi
11774
11775ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11776if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11777  SUNCC="yes"
11778else
11779  SUNCC="no"
11780fi
11781
11782
11783
11784
11785if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11786	if test -n "$ac_tool_prefix"; then
11787  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11788set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790$as_echo_n "checking for $ac_word... " >&6; }
11791if ${ac_cv_path_PKG_CONFIG+:} false; then :
11792  $as_echo_n "(cached) " >&6
11793else
11794  case $PKG_CONFIG in
11795  [\\/]* | ?:[\\/]*)
11796  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11797  ;;
11798  *)
11799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800for as_dir in $PATH
11801do
11802  IFS=$as_save_IFS
11803  test -z "$as_dir" && as_dir=.
11804    for ac_exec_ext in '' $ac_executable_extensions; do
11805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11806    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11808    break 2
11809  fi
11810done
11811  done
11812IFS=$as_save_IFS
11813
11814  ;;
11815esac
11816fi
11817PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11818if test -n "$PKG_CONFIG"; then
11819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11820$as_echo "$PKG_CONFIG" >&6; }
11821else
11822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823$as_echo "no" >&6; }
11824fi
11825
11826
11827fi
11828if test -z "$ac_cv_path_PKG_CONFIG"; then
11829  ac_pt_PKG_CONFIG=$PKG_CONFIG
11830  # Extract the first word of "pkg-config", so it can be a program name with args.
11831set dummy pkg-config; ac_word=$2
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833$as_echo_n "checking for $ac_word... " >&6; }
11834if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11835  $as_echo_n "(cached) " >&6
11836else
11837  case $ac_pt_PKG_CONFIG in
11838  [\\/]* | ?:[\\/]*)
11839  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11840  ;;
11841  *)
11842  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843for as_dir in $PATH
11844do
11845  IFS=$as_save_IFS
11846  test -z "$as_dir" && as_dir=.
11847    for ac_exec_ext in '' $ac_executable_extensions; do
11848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851    break 2
11852  fi
11853done
11854  done
11855IFS=$as_save_IFS
11856
11857  ;;
11858esac
11859fi
11860ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11861if test -n "$ac_pt_PKG_CONFIG"; then
11862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11863$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11864else
11865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866$as_echo "no" >&6; }
11867fi
11868
11869  if test "x$ac_pt_PKG_CONFIG" = x; then
11870    PKG_CONFIG=""
11871  else
11872    case $cross_compiling:$ac_tool_warned in
11873yes:)
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11876ac_tool_warned=yes ;;
11877esac
11878    PKG_CONFIG=$ac_pt_PKG_CONFIG
11879  fi
11880else
11881  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11882fi
11883
11884fi
11885if test -n "$PKG_CONFIG"; then
11886	_pkg_min_version=0.9.0
11887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11888$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11889	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11890		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11891$as_echo "yes" >&6; }
11892	else
11893		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894$as_echo "no" >&6; }
11895		PKG_CONFIG=""
11896	fi
11897
11898fi
11899
11900
11901
11902
11903
11904# Check whether --enable-selective-werror was given.
11905if test "${enable_selective_werror+set}" = set; then :
11906  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11907else
11908  SELECTIVE_WERROR=yes
11909fi
11910
11911
11912
11913
11914
11915# -v is too short to test reliably with XORG_TESTSET_CFLAG
11916if test "x$SUNCC" = "xyes"; then
11917    BASE_CFLAGS="-v"
11918else
11919    BASE_CFLAGS=""
11920fi
11921
11922# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934xorg_testset_save_CFLAGS="$CFLAGS"
11935
11936if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11939$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11940if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11941  $as_echo_n "(cached) " >&6
11942else
11943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944/* end confdefs.h.  */
11945int i;
11946_ACEOF
11947if ac_fn_c_try_compile "$LINENO"; then :
11948  xorg_cv_compiler_flag_unknown_warning_option=yes
11949else
11950  xorg_cv_compiler_flag_unknown_warning_option=no
11951fi
11952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953fi
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11955$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11956	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11957	CFLAGS="$xorg_testset_save_CFLAGS"
11958fi
11959
11960if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11961	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11963	fi
11964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11966$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11967if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11968  $as_echo_n "(cached) " >&6
11969else
11970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971/* end confdefs.h.  */
11972int i;
11973_ACEOF
11974if ac_fn_c_try_compile "$LINENO"; then :
11975  xorg_cv_compiler_flag_unused_command_line_argument=yes
11976else
11977  xorg_cv_compiler_flag_unused_command_line_argument=no
11978fi
11979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980fi
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11982$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11983	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11984	CFLAGS="$xorg_testset_save_CFLAGS"
11985fi
11986
11987found="no"
11988
11989	if test $found = "no" ; then
11990		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11992		fi
11993
11994		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11996		fi
11997
11998		CFLAGS="$CFLAGS -Wall"
11999
12000		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12001$as_echo_n "checking if $CC supports -Wall... " >&6; }
12002		cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
12003		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12004  $as_echo_n "(cached) " >&6
12005else
12006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007/* end confdefs.h.  */
12008int i;
12009int
12010main ()
12011{
12012
12013  ;
12014  return 0;
12015}
12016_ACEOF
12017if ac_fn_c_try_link "$LINENO"; then :
12018  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12019else
12020  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12021fi
12022rm -f core conftest.err conftest.$ac_objext \
12023    conftest$ac_exeext conftest.$ac_ext
12024fi
12025
12026
12027		CFLAGS="$xorg_testset_save_CFLAGS"
12028
12029		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12030		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12031$as_echo "$supported" >&6; }
12032		if test "$supported" = "yes" ; then
12033			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12034			found="yes"
12035		fi
12036	fi
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050xorg_testset_save_CFLAGS="$CFLAGS"
12051
12052if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12055$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12056if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12057  $as_echo_n "(cached) " >&6
12058else
12059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060/* end confdefs.h.  */
12061int i;
12062_ACEOF
12063if ac_fn_c_try_compile "$LINENO"; then :
12064  xorg_cv_compiler_flag_unknown_warning_option=yes
12065else
12066  xorg_cv_compiler_flag_unknown_warning_option=no
12067fi
12068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069fi
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12071$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12072	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12073	CFLAGS="$xorg_testset_save_CFLAGS"
12074fi
12075
12076if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12077	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12079	fi
12080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12082$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12083if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12084  $as_echo_n "(cached) " >&6
12085else
12086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087/* end confdefs.h.  */
12088int i;
12089_ACEOF
12090if ac_fn_c_try_compile "$LINENO"; then :
12091  xorg_cv_compiler_flag_unused_command_line_argument=yes
12092else
12093  xorg_cv_compiler_flag_unused_command_line_argument=no
12094fi
12095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096fi
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12098$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12099	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12100	CFLAGS="$xorg_testset_save_CFLAGS"
12101fi
12102
12103found="no"
12104
12105	if test $found = "no" ; then
12106		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12108		fi
12109
12110		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12112		fi
12113
12114		CFLAGS="$CFLAGS -Wpointer-arith"
12115
12116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12117$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12118		cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
12119		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12120  $as_echo_n "(cached) " >&6
12121else
12122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123/* end confdefs.h.  */
12124int i;
12125int
12126main ()
12127{
12128
12129  ;
12130  return 0;
12131}
12132_ACEOF
12133if ac_fn_c_try_link "$LINENO"; then :
12134  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12135else
12136  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12137fi
12138rm -f core conftest.err conftest.$ac_objext \
12139    conftest$ac_exeext conftest.$ac_ext
12140fi
12141
12142
12143		CFLAGS="$xorg_testset_save_CFLAGS"
12144
12145		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12147$as_echo "$supported" >&6; }
12148		if test "$supported" = "yes" ; then
12149			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12150			found="yes"
12151		fi
12152	fi
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166xorg_testset_save_CFLAGS="$CFLAGS"
12167
12168if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12171$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12172if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12173  $as_echo_n "(cached) " >&6
12174else
12175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176/* end confdefs.h.  */
12177int i;
12178_ACEOF
12179if ac_fn_c_try_compile "$LINENO"; then :
12180  xorg_cv_compiler_flag_unknown_warning_option=yes
12181else
12182  xorg_cv_compiler_flag_unknown_warning_option=no
12183fi
12184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185fi
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12187$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12188	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12189	CFLAGS="$xorg_testset_save_CFLAGS"
12190fi
12191
12192if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12193	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12195	fi
12196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12198$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12199if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12200  $as_echo_n "(cached) " >&6
12201else
12202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203/* end confdefs.h.  */
12204int i;
12205_ACEOF
12206if ac_fn_c_try_compile "$LINENO"; then :
12207  xorg_cv_compiler_flag_unused_command_line_argument=yes
12208else
12209  xorg_cv_compiler_flag_unused_command_line_argument=no
12210fi
12211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212fi
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12214$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12215	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12216	CFLAGS="$xorg_testset_save_CFLAGS"
12217fi
12218
12219found="no"
12220
12221	if test $found = "no" ; then
12222		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12224		fi
12225
12226		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12228		fi
12229
12230		CFLAGS="$CFLAGS -Wmissing-declarations"
12231
12232		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12233$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12234		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
12235		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12236  $as_echo_n "(cached) " >&6
12237else
12238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239/* end confdefs.h.  */
12240int i;
12241int
12242main ()
12243{
12244
12245  ;
12246  return 0;
12247}
12248_ACEOF
12249if ac_fn_c_try_link "$LINENO"; then :
12250  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12251else
12252  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12253fi
12254rm -f core conftest.err conftest.$ac_objext \
12255    conftest$ac_exeext conftest.$ac_ext
12256fi
12257
12258
12259		CFLAGS="$xorg_testset_save_CFLAGS"
12260
12261		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12262		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12263$as_echo "$supported" >&6; }
12264		if test "$supported" = "yes" ; then
12265			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12266			found="yes"
12267		fi
12268	fi
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282xorg_testset_save_CFLAGS="$CFLAGS"
12283
12284if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12287$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12288if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12289  $as_echo_n "(cached) " >&6
12290else
12291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292/* end confdefs.h.  */
12293int i;
12294_ACEOF
12295if ac_fn_c_try_compile "$LINENO"; then :
12296  xorg_cv_compiler_flag_unknown_warning_option=yes
12297else
12298  xorg_cv_compiler_flag_unknown_warning_option=no
12299fi
12300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301fi
12302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12303$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12304	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12305	CFLAGS="$xorg_testset_save_CFLAGS"
12306fi
12307
12308if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12309	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12311	fi
12312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12314$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12315if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12316  $as_echo_n "(cached) " >&6
12317else
12318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319/* end confdefs.h.  */
12320int i;
12321_ACEOF
12322if ac_fn_c_try_compile "$LINENO"; then :
12323  xorg_cv_compiler_flag_unused_command_line_argument=yes
12324else
12325  xorg_cv_compiler_flag_unused_command_line_argument=no
12326fi
12327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328fi
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12330$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12331	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12332	CFLAGS="$xorg_testset_save_CFLAGS"
12333fi
12334
12335found="no"
12336
12337	if test $found = "no" ; then
12338		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12340		fi
12341
12342		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12344		fi
12345
12346		CFLAGS="$CFLAGS -Wformat=2"
12347
12348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12349$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12350		cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12351		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12352  $as_echo_n "(cached) " >&6
12353else
12354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355/* end confdefs.h.  */
12356int i;
12357int
12358main ()
12359{
12360
12361  ;
12362  return 0;
12363}
12364_ACEOF
12365if ac_fn_c_try_link "$LINENO"; then :
12366  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12367else
12368  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12369fi
12370rm -f core conftest.err conftest.$ac_objext \
12371    conftest$ac_exeext conftest.$ac_ext
12372fi
12373
12374
12375		CFLAGS="$xorg_testset_save_CFLAGS"
12376
12377		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12379$as_echo "$supported" >&6; }
12380		if test "$supported" = "yes" ; then
12381			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12382			found="yes"
12383		fi
12384	fi
12385
12386	if test $found = "no" ; then
12387		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12389		fi
12390
12391		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12393		fi
12394
12395		CFLAGS="$CFLAGS -Wformat"
12396
12397		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12398$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12399		cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12400		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12401  $as_echo_n "(cached) " >&6
12402else
12403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404/* end confdefs.h.  */
12405int i;
12406int
12407main ()
12408{
12409
12410  ;
12411  return 0;
12412}
12413_ACEOF
12414if ac_fn_c_try_link "$LINENO"; then :
12415  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12416else
12417  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12418fi
12419rm -f core conftest.err conftest.$ac_objext \
12420    conftest$ac_exeext conftest.$ac_ext
12421fi
12422
12423
12424		CFLAGS="$xorg_testset_save_CFLAGS"
12425
12426		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12427		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12428$as_echo "$supported" >&6; }
12429		if test "$supported" = "yes" ; then
12430			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12431			found="yes"
12432		fi
12433	fi
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449xorg_testset_save_CFLAGS="$CFLAGS"
12450
12451if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12454$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12455if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12456  $as_echo_n "(cached) " >&6
12457else
12458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459/* end confdefs.h.  */
12460int i;
12461_ACEOF
12462if ac_fn_c_try_compile "$LINENO"; then :
12463  xorg_cv_compiler_flag_unknown_warning_option=yes
12464else
12465  xorg_cv_compiler_flag_unknown_warning_option=no
12466fi
12467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12468fi
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12470$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12471	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12472	CFLAGS="$xorg_testset_save_CFLAGS"
12473fi
12474
12475if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12476	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12477		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12478	fi
12479	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12481$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12482if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12483  $as_echo_n "(cached) " >&6
12484else
12485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h.  */
12487int i;
12488_ACEOF
12489if ac_fn_c_try_compile "$LINENO"; then :
12490  xorg_cv_compiler_flag_unused_command_line_argument=yes
12491else
12492  xorg_cv_compiler_flag_unused_command_line_argument=no
12493fi
12494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12495fi
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12497$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12498	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12499	CFLAGS="$xorg_testset_save_CFLAGS"
12500fi
12501
12502found="no"
12503
12504	if test $found = "no" ; then
12505		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12506			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12507		fi
12508
12509		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12510			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12511		fi
12512
12513		CFLAGS="$CFLAGS -Wstrict-prototypes"
12514
12515		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12516$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12517		cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12518		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12519  $as_echo_n "(cached) " >&6
12520else
12521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522/* end confdefs.h.  */
12523int i;
12524int
12525main ()
12526{
12527
12528  ;
12529  return 0;
12530}
12531_ACEOF
12532if ac_fn_c_try_link "$LINENO"; then :
12533  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12534else
12535  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12536fi
12537rm -f core conftest.err conftest.$ac_objext \
12538    conftest$ac_exeext conftest.$ac_ext
12539fi
12540
12541
12542		CFLAGS="$xorg_testset_save_CFLAGS"
12543
12544		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12546$as_echo "$supported" >&6; }
12547		if test "$supported" = "yes" ; then
12548			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12549			found="yes"
12550		fi
12551	fi
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565xorg_testset_save_CFLAGS="$CFLAGS"
12566
12567if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12570$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12571if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12572  $as_echo_n "(cached) " >&6
12573else
12574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575/* end confdefs.h.  */
12576int i;
12577_ACEOF
12578if ac_fn_c_try_compile "$LINENO"; then :
12579  xorg_cv_compiler_flag_unknown_warning_option=yes
12580else
12581  xorg_cv_compiler_flag_unknown_warning_option=no
12582fi
12583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12584fi
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12586$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12587	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12588	CFLAGS="$xorg_testset_save_CFLAGS"
12589fi
12590
12591if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12592	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12594	fi
12595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12597$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12598if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12599  $as_echo_n "(cached) " >&6
12600else
12601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602/* end confdefs.h.  */
12603int i;
12604_ACEOF
12605if ac_fn_c_try_compile "$LINENO"; then :
12606  xorg_cv_compiler_flag_unused_command_line_argument=yes
12607else
12608  xorg_cv_compiler_flag_unused_command_line_argument=no
12609fi
12610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611fi
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12613$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12614	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12615	CFLAGS="$xorg_testset_save_CFLAGS"
12616fi
12617
12618found="no"
12619
12620	if test $found = "no" ; then
12621		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12623		fi
12624
12625		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12627		fi
12628
12629		CFLAGS="$CFLAGS -Wmissing-prototypes"
12630
12631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12632$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12633		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12634		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12635  $as_echo_n "(cached) " >&6
12636else
12637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638/* end confdefs.h.  */
12639int i;
12640int
12641main ()
12642{
12643
12644  ;
12645  return 0;
12646}
12647_ACEOF
12648if ac_fn_c_try_link "$LINENO"; then :
12649  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12650else
12651  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12652fi
12653rm -f core conftest.err conftest.$ac_objext \
12654    conftest$ac_exeext conftest.$ac_ext
12655fi
12656
12657
12658		CFLAGS="$xorg_testset_save_CFLAGS"
12659
12660		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12662$as_echo "$supported" >&6; }
12663		if test "$supported" = "yes" ; then
12664			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12665			found="yes"
12666		fi
12667	fi
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681xorg_testset_save_CFLAGS="$CFLAGS"
12682
12683if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12686$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12687if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12688  $as_echo_n "(cached) " >&6
12689else
12690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691/* end confdefs.h.  */
12692int i;
12693_ACEOF
12694if ac_fn_c_try_compile "$LINENO"; then :
12695  xorg_cv_compiler_flag_unknown_warning_option=yes
12696else
12697  xorg_cv_compiler_flag_unknown_warning_option=no
12698fi
12699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700fi
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12702$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12703	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12704	CFLAGS="$xorg_testset_save_CFLAGS"
12705fi
12706
12707if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12708	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12710	fi
12711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12713$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12714if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12715  $as_echo_n "(cached) " >&6
12716else
12717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718/* end confdefs.h.  */
12719int i;
12720_ACEOF
12721if ac_fn_c_try_compile "$LINENO"; then :
12722  xorg_cv_compiler_flag_unused_command_line_argument=yes
12723else
12724  xorg_cv_compiler_flag_unused_command_line_argument=no
12725fi
12726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12727fi
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12729$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12730	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12731	CFLAGS="$xorg_testset_save_CFLAGS"
12732fi
12733
12734found="no"
12735
12736	if test $found = "no" ; then
12737		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12739		fi
12740
12741		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12743		fi
12744
12745		CFLAGS="$CFLAGS -Wnested-externs"
12746
12747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12748$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12749		cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12750		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12751  $as_echo_n "(cached) " >&6
12752else
12753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754/* end confdefs.h.  */
12755int i;
12756int
12757main ()
12758{
12759
12760  ;
12761  return 0;
12762}
12763_ACEOF
12764if ac_fn_c_try_link "$LINENO"; then :
12765  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12766else
12767  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12768fi
12769rm -f core conftest.err conftest.$ac_objext \
12770    conftest$ac_exeext conftest.$ac_ext
12771fi
12772
12773
12774		CFLAGS="$xorg_testset_save_CFLAGS"
12775
12776		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12778$as_echo "$supported" >&6; }
12779		if test "$supported" = "yes" ; then
12780			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12781			found="yes"
12782		fi
12783	fi
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797xorg_testset_save_CFLAGS="$CFLAGS"
12798
12799if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12800	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12802$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12803if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12804  $as_echo_n "(cached) " >&6
12805else
12806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807/* end confdefs.h.  */
12808int i;
12809_ACEOF
12810if ac_fn_c_try_compile "$LINENO"; then :
12811  xorg_cv_compiler_flag_unknown_warning_option=yes
12812else
12813  xorg_cv_compiler_flag_unknown_warning_option=no
12814fi
12815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816fi
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12818$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12819	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12820	CFLAGS="$xorg_testset_save_CFLAGS"
12821fi
12822
12823if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12824	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12826	fi
12827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12829$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12830if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12831  $as_echo_n "(cached) " >&6
12832else
12833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834/* end confdefs.h.  */
12835int i;
12836_ACEOF
12837if ac_fn_c_try_compile "$LINENO"; then :
12838  xorg_cv_compiler_flag_unused_command_line_argument=yes
12839else
12840  xorg_cv_compiler_flag_unused_command_line_argument=no
12841fi
12842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843fi
12844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12845$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12846	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12847	CFLAGS="$xorg_testset_save_CFLAGS"
12848fi
12849
12850found="no"
12851
12852	if test $found = "no" ; then
12853		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12855		fi
12856
12857		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12859		fi
12860
12861		CFLAGS="$CFLAGS -Wbad-function-cast"
12862
12863		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12864$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12865		cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12866		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12867  $as_echo_n "(cached) " >&6
12868else
12869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870/* end confdefs.h.  */
12871int i;
12872int
12873main ()
12874{
12875
12876  ;
12877  return 0;
12878}
12879_ACEOF
12880if ac_fn_c_try_link "$LINENO"; then :
12881  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12882else
12883  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12884fi
12885rm -f core conftest.err conftest.$ac_objext \
12886    conftest$ac_exeext conftest.$ac_ext
12887fi
12888
12889
12890		CFLAGS="$xorg_testset_save_CFLAGS"
12891
12892		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12893		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12894$as_echo "$supported" >&6; }
12895		if test "$supported" = "yes" ; then
12896			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12897			found="yes"
12898		fi
12899	fi
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913xorg_testset_save_CFLAGS="$CFLAGS"
12914
12915if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12916	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12918$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12919if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12920  $as_echo_n "(cached) " >&6
12921else
12922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923/* end confdefs.h.  */
12924int i;
12925_ACEOF
12926if ac_fn_c_try_compile "$LINENO"; then :
12927  xorg_cv_compiler_flag_unknown_warning_option=yes
12928else
12929  xorg_cv_compiler_flag_unknown_warning_option=no
12930fi
12931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932fi
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12934$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12935	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12936	CFLAGS="$xorg_testset_save_CFLAGS"
12937fi
12938
12939if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12940	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12942	fi
12943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12945$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12946if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12947  $as_echo_n "(cached) " >&6
12948else
12949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950/* end confdefs.h.  */
12951int i;
12952_ACEOF
12953if ac_fn_c_try_compile "$LINENO"; then :
12954  xorg_cv_compiler_flag_unused_command_line_argument=yes
12955else
12956  xorg_cv_compiler_flag_unused_command_line_argument=no
12957fi
12958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959fi
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12961$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12962	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12963	CFLAGS="$xorg_testset_save_CFLAGS"
12964fi
12965
12966found="no"
12967
12968	if test $found = "no" ; then
12969		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12971		fi
12972
12973		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12975		fi
12976
12977		CFLAGS="$CFLAGS -Wold-style-definition"
12978
12979		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12980$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12981		cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12982		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12983  $as_echo_n "(cached) " >&6
12984else
12985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986/* end confdefs.h.  */
12987int i;
12988int
12989main ()
12990{
12991
12992  ;
12993  return 0;
12994}
12995_ACEOF
12996if ac_fn_c_try_link "$LINENO"; then :
12997  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12998else
12999  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13000fi
13001rm -f core conftest.err conftest.$ac_objext \
13002    conftest$ac_exeext conftest.$ac_ext
13003fi
13004
13005
13006		CFLAGS="$xorg_testset_save_CFLAGS"
13007
13008		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13009		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13010$as_echo "$supported" >&6; }
13011		if test "$supported" = "yes" ; then
13012			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13013			found="yes"
13014		fi
13015	fi
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029xorg_testset_save_CFLAGS="$CFLAGS"
13030
13031if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13034$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13035if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13036  $as_echo_n "(cached) " >&6
13037else
13038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039/* end confdefs.h.  */
13040int i;
13041_ACEOF
13042if ac_fn_c_try_compile "$LINENO"; then :
13043  xorg_cv_compiler_flag_unknown_warning_option=yes
13044else
13045  xorg_cv_compiler_flag_unknown_warning_option=no
13046fi
13047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13048fi
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13050$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13051	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13052	CFLAGS="$xorg_testset_save_CFLAGS"
13053fi
13054
13055if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13056	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13058	fi
13059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13061$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13062if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13063  $as_echo_n "(cached) " >&6
13064else
13065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066/* end confdefs.h.  */
13067int i;
13068_ACEOF
13069if ac_fn_c_try_compile "$LINENO"; then :
13070  xorg_cv_compiler_flag_unused_command_line_argument=yes
13071else
13072  xorg_cv_compiler_flag_unused_command_line_argument=no
13073fi
13074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075fi
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13077$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13078	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13079	CFLAGS="$xorg_testset_save_CFLAGS"
13080fi
13081
13082found="no"
13083
13084	if test $found = "no" ; then
13085		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13087		fi
13088
13089		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13091		fi
13092
13093		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13094
13095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13096$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13097		cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
13098		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13099  $as_echo_n "(cached) " >&6
13100else
13101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102/* end confdefs.h.  */
13103int i;
13104int
13105main ()
13106{
13107
13108  ;
13109  return 0;
13110}
13111_ACEOF
13112if ac_fn_c_try_link "$LINENO"; then :
13113  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13114else
13115  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13116fi
13117rm -f core conftest.err conftest.$ac_objext \
13118    conftest$ac_exeext conftest.$ac_ext
13119fi
13120
13121
13122		CFLAGS="$xorg_testset_save_CFLAGS"
13123
13124		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13126$as_echo "$supported" >&6; }
13127		if test "$supported" = "yes" ; then
13128			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13129			found="yes"
13130		fi
13131	fi
13132
13133
13134
13135
13136
13137# This chunk adds additional warnings that could catch undesired effects.
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149xorg_testset_save_CFLAGS="$CFLAGS"
13150
13151if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13152	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13154$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13155if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13156  $as_echo_n "(cached) " >&6
13157else
13158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h.  */
13160int i;
13161_ACEOF
13162if ac_fn_c_try_compile "$LINENO"; then :
13163  xorg_cv_compiler_flag_unknown_warning_option=yes
13164else
13165  xorg_cv_compiler_flag_unknown_warning_option=no
13166fi
13167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168fi
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13170$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13171	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13172	CFLAGS="$xorg_testset_save_CFLAGS"
13173fi
13174
13175if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13176	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13178	fi
13179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13181$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13182if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13183  $as_echo_n "(cached) " >&6
13184else
13185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186/* end confdefs.h.  */
13187int i;
13188_ACEOF
13189if ac_fn_c_try_compile "$LINENO"; then :
13190  xorg_cv_compiler_flag_unused_command_line_argument=yes
13191else
13192  xorg_cv_compiler_flag_unused_command_line_argument=no
13193fi
13194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13195fi
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13197$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13198	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13199	CFLAGS="$xorg_testset_save_CFLAGS"
13200fi
13201
13202found="no"
13203
13204	if test $found = "no" ; then
13205		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13207		fi
13208
13209		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13211		fi
13212
13213		CFLAGS="$CFLAGS -Wunused"
13214
13215		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13216$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13217		cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
13218		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13219  $as_echo_n "(cached) " >&6
13220else
13221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222/* end confdefs.h.  */
13223int i;
13224int
13225main ()
13226{
13227
13228  ;
13229  return 0;
13230}
13231_ACEOF
13232if ac_fn_c_try_link "$LINENO"; then :
13233  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13234else
13235  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13236fi
13237rm -f core conftest.err conftest.$ac_objext \
13238    conftest$ac_exeext conftest.$ac_ext
13239fi
13240
13241
13242		CFLAGS="$xorg_testset_save_CFLAGS"
13243
13244		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13245		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13246$as_echo "$supported" >&6; }
13247		if test "$supported" = "yes" ; then
13248			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13249			found="yes"
13250		fi
13251	fi
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265xorg_testset_save_CFLAGS="$CFLAGS"
13266
13267if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13270$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13271if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13272  $as_echo_n "(cached) " >&6
13273else
13274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275/* end confdefs.h.  */
13276int i;
13277_ACEOF
13278if ac_fn_c_try_compile "$LINENO"; then :
13279  xorg_cv_compiler_flag_unknown_warning_option=yes
13280else
13281  xorg_cv_compiler_flag_unknown_warning_option=no
13282fi
13283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284fi
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13286$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13287	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13288	CFLAGS="$xorg_testset_save_CFLAGS"
13289fi
13290
13291if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13292	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13293		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13294	fi
13295	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13297$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13298if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13299  $as_echo_n "(cached) " >&6
13300else
13301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302/* end confdefs.h.  */
13303int i;
13304_ACEOF
13305if ac_fn_c_try_compile "$LINENO"; then :
13306  xorg_cv_compiler_flag_unused_command_line_argument=yes
13307else
13308  xorg_cv_compiler_flag_unused_command_line_argument=no
13309fi
13310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311fi
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13313$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13314	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13315	CFLAGS="$xorg_testset_save_CFLAGS"
13316fi
13317
13318found="no"
13319
13320	if test $found = "no" ; then
13321		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13323		fi
13324
13325		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13327		fi
13328
13329		CFLAGS="$CFLAGS -Wuninitialized"
13330
13331		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13332$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13333		cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13334		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13335  $as_echo_n "(cached) " >&6
13336else
13337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338/* end confdefs.h.  */
13339int i;
13340int
13341main ()
13342{
13343
13344  ;
13345  return 0;
13346}
13347_ACEOF
13348if ac_fn_c_try_link "$LINENO"; then :
13349  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13350else
13351  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13352fi
13353rm -f core conftest.err conftest.$ac_objext \
13354    conftest$ac_exeext conftest.$ac_ext
13355fi
13356
13357
13358		CFLAGS="$xorg_testset_save_CFLAGS"
13359
13360		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13361		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13362$as_echo "$supported" >&6; }
13363		if test "$supported" = "yes" ; then
13364			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13365			found="yes"
13366		fi
13367	fi
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381xorg_testset_save_CFLAGS="$CFLAGS"
13382
13383if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13386$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13387if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13388  $as_echo_n "(cached) " >&6
13389else
13390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391/* end confdefs.h.  */
13392int i;
13393_ACEOF
13394if ac_fn_c_try_compile "$LINENO"; then :
13395  xorg_cv_compiler_flag_unknown_warning_option=yes
13396else
13397  xorg_cv_compiler_flag_unknown_warning_option=no
13398fi
13399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400fi
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13402$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13403	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13404	CFLAGS="$xorg_testset_save_CFLAGS"
13405fi
13406
13407if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13408	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13409		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13410	fi
13411	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13413$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13414if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13415  $as_echo_n "(cached) " >&6
13416else
13417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418/* end confdefs.h.  */
13419int i;
13420_ACEOF
13421if ac_fn_c_try_compile "$LINENO"; then :
13422  xorg_cv_compiler_flag_unused_command_line_argument=yes
13423else
13424  xorg_cv_compiler_flag_unused_command_line_argument=no
13425fi
13426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13427fi
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13429$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13430	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13431	CFLAGS="$xorg_testset_save_CFLAGS"
13432fi
13433
13434found="no"
13435
13436	if test $found = "no" ; then
13437		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13438			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13439		fi
13440
13441		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13442			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13443		fi
13444
13445		CFLAGS="$CFLAGS -Wshadow"
13446
13447		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13448$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13449		cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13450		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13451  $as_echo_n "(cached) " >&6
13452else
13453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454/* end confdefs.h.  */
13455int i;
13456int
13457main ()
13458{
13459
13460  ;
13461  return 0;
13462}
13463_ACEOF
13464if ac_fn_c_try_link "$LINENO"; then :
13465  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13466else
13467  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13468fi
13469rm -f core conftest.err conftest.$ac_objext \
13470    conftest$ac_exeext conftest.$ac_ext
13471fi
13472
13473
13474		CFLAGS="$xorg_testset_save_CFLAGS"
13475
13476		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13477		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13478$as_echo "$supported" >&6; }
13479		if test "$supported" = "yes" ; then
13480			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13481			found="yes"
13482		fi
13483	fi
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497xorg_testset_save_CFLAGS="$CFLAGS"
13498
13499if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13502$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13503if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13504  $as_echo_n "(cached) " >&6
13505else
13506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507/* end confdefs.h.  */
13508int i;
13509_ACEOF
13510if ac_fn_c_try_compile "$LINENO"; then :
13511  xorg_cv_compiler_flag_unknown_warning_option=yes
13512else
13513  xorg_cv_compiler_flag_unknown_warning_option=no
13514fi
13515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516fi
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13518$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13519	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13520	CFLAGS="$xorg_testset_save_CFLAGS"
13521fi
13522
13523if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13524	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13526	fi
13527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13529$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13530if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13531  $as_echo_n "(cached) " >&6
13532else
13533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534/* end confdefs.h.  */
13535int i;
13536_ACEOF
13537if ac_fn_c_try_compile "$LINENO"; then :
13538  xorg_cv_compiler_flag_unused_command_line_argument=yes
13539else
13540  xorg_cv_compiler_flag_unused_command_line_argument=no
13541fi
13542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543fi
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13545$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13546	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13547	CFLAGS="$xorg_testset_save_CFLAGS"
13548fi
13549
13550found="no"
13551
13552	if test $found = "no" ; then
13553		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13555		fi
13556
13557		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13559		fi
13560
13561		CFLAGS="$CFLAGS -Wcast-qual"
13562
13563		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13564$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13565		cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13566		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13567  $as_echo_n "(cached) " >&6
13568else
13569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570/* end confdefs.h.  */
13571int i;
13572int
13573main ()
13574{
13575
13576  ;
13577  return 0;
13578}
13579_ACEOF
13580if ac_fn_c_try_link "$LINENO"; then :
13581  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13582else
13583  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13584fi
13585rm -f core conftest.err conftest.$ac_objext \
13586    conftest$ac_exeext conftest.$ac_ext
13587fi
13588
13589
13590		CFLAGS="$xorg_testset_save_CFLAGS"
13591
13592		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13593		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13594$as_echo "$supported" >&6; }
13595		if test "$supported" = "yes" ; then
13596			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13597			found="yes"
13598		fi
13599	fi
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613xorg_testset_save_CFLAGS="$CFLAGS"
13614
13615if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13618$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13619if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13620  $as_echo_n "(cached) " >&6
13621else
13622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623/* end confdefs.h.  */
13624int i;
13625_ACEOF
13626if ac_fn_c_try_compile "$LINENO"; then :
13627  xorg_cv_compiler_flag_unknown_warning_option=yes
13628else
13629  xorg_cv_compiler_flag_unknown_warning_option=no
13630fi
13631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632fi
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13634$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13635	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13636	CFLAGS="$xorg_testset_save_CFLAGS"
13637fi
13638
13639if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13640	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13642	fi
13643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13645$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13646if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13647  $as_echo_n "(cached) " >&6
13648else
13649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650/* end confdefs.h.  */
13651int i;
13652_ACEOF
13653if ac_fn_c_try_compile "$LINENO"; then :
13654  xorg_cv_compiler_flag_unused_command_line_argument=yes
13655else
13656  xorg_cv_compiler_flag_unused_command_line_argument=no
13657fi
13658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659fi
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13661$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13662	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13663	CFLAGS="$xorg_testset_save_CFLAGS"
13664fi
13665
13666found="no"
13667
13668	if test $found = "no" ; then
13669		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13671		fi
13672
13673		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13675		fi
13676
13677		CFLAGS="$CFLAGS -Wmissing-noreturn"
13678
13679		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13680$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13681		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13682		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13683  $as_echo_n "(cached) " >&6
13684else
13685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686/* end confdefs.h.  */
13687int i;
13688int
13689main ()
13690{
13691
13692  ;
13693  return 0;
13694}
13695_ACEOF
13696if ac_fn_c_try_link "$LINENO"; then :
13697  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13698else
13699  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13700fi
13701rm -f core conftest.err conftest.$ac_objext \
13702    conftest$ac_exeext conftest.$ac_ext
13703fi
13704
13705
13706		CFLAGS="$xorg_testset_save_CFLAGS"
13707
13708		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13709		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13710$as_echo "$supported" >&6; }
13711		if test "$supported" = "yes" ; then
13712			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13713			found="yes"
13714		fi
13715	fi
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729xorg_testset_save_CFLAGS="$CFLAGS"
13730
13731if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13734$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13735if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13736  $as_echo_n "(cached) " >&6
13737else
13738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739/* end confdefs.h.  */
13740int i;
13741_ACEOF
13742if ac_fn_c_try_compile "$LINENO"; then :
13743  xorg_cv_compiler_flag_unknown_warning_option=yes
13744else
13745  xorg_cv_compiler_flag_unknown_warning_option=no
13746fi
13747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748fi
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13750$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13751	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13752	CFLAGS="$xorg_testset_save_CFLAGS"
13753fi
13754
13755if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13756	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13758	fi
13759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13761$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13762if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13763  $as_echo_n "(cached) " >&6
13764else
13765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766/* end confdefs.h.  */
13767int i;
13768_ACEOF
13769if ac_fn_c_try_compile "$LINENO"; then :
13770  xorg_cv_compiler_flag_unused_command_line_argument=yes
13771else
13772  xorg_cv_compiler_flag_unused_command_line_argument=no
13773fi
13774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775fi
13776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13777$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13778	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13779	CFLAGS="$xorg_testset_save_CFLAGS"
13780fi
13781
13782found="no"
13783
13784	if test $found = "no" ; then
13785		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13787		fi
13788
13789		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13791		fi
13792
13793		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13794
13795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13796$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13797		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13798		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13799  $as_echo_n "(cached) " >&6
13800else
13801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802/* end confdefs.h.  */
13803int i;
13804int
13805main ()
13806{
13807
13808  ;
13809  return 0;
13810}
13811_ACEOF
13812if ac_fn_c_try_link "$LINENO"; then :
13813  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13814else
13815  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13816fi
13817rm -f core conftest.err conftest.$ac_objext \
13818    conftest$ac_exeext conftest.$ac_ext
13819fi
13820
13821
13822		CFLAGS="$xorg_testset_save_CFLAGS"
13823
13824		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13826$as_echo "$supported" >&6; }
13827		if test "$supported" = "yes" ; then
13828			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13829			found="yes"
13830		fi
13831	fi
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845xorg_testset_save_CFLAGS="$CFLAGS"
13846
13847if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13850$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13851if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13852  $as_echo_n "(cached) " >&6
13853else
13854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855/* end confdefs.h.  */
13856int i;
13857_ACEOF
13858if ac_fn_c_try_compile "$LINENO"; then :
13859  xorg_cv_compiler_flag_unknown_warning_option=yes
13860else
13861  xorg_cv_compiler_flag_unknown_warning_option=no
13862fi
13863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864fi
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13866$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13867	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13868	CFLAGS="$xorg_testset_save_CFLAGS"
13869fi
13870
13871if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13872	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13874	fi
13875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13877$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13878if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13879  $as_echo_n "(cached) " >&6
13880else
13881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882/* end confdefs.h.  */
13883int i;
13884_ACEOF
13885if ac_fn_c_try_compile "$LINENO"; then :
13886  xorg_cv_compiler_flag_unused_command_line_argument=yes
13887else
13888  xorg_cv_compiler_flag_unused_command_line_argument=no
13889fi
13890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891fi
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13893$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13894	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13895	CFLAGS="$xorg_testset_save_CFLAGS"
13896fi
13897
13898found="no"
13899
13900	if test $found = "no" ; then
13901		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13903		fi
13904
13905		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13907		fi
13908
13909		CFLAGS="$CFLAGS -Wredundant-decls"
13910
13911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13912$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13913		cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13914		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13915  $as_echo_n "(cached) " >&6
13916else
13917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918/* end confdefs.h.  */
13919int i;
13920int
13921main ()
13922{
13923
13924  ;
13925  return 0;
13926}
13927_ACEOF
13928if ac_fn_c_try_link "$LINENO"; then :
13929  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13930else
13931  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13932fi
13933rm -f core conftest.err conftest.$ac_objext \
13934    conftest$ac_exeext conftest.$ac_ext
13935fi
13936
13937
13938		CFLAGS="$xorg_testset_save_CFLAGS"
13939
13940		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13942$as_echo "$supported" >&6; }
13943		if test "$supported" = "yes" ; then
13944			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13945			found="yes"
13946		fi
13947	fi
13948
13949
13950
13951# These are currently disabled because they are noisy.  They will be enabled
13952# in the future once the codebase is sufficiently modernized to silence
13953# them.  For now, I don't want them to drown out the other warnings.
13954# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13955# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13956# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13957
13958# Turn some warnings into errors, so we don't accidently get successful builds
13959# when there are problems that should be fixed.
13960
13961if test "x$SELECTIVE_WERROR" = "xyes" ; then
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973xorg_testset_save_CFLAGS="$CFLAGS"
13974
13975if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13978$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13979if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13980  $as_echo_n "(cached) " >&6
13981else
13982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983/* end confdefs.h.  */
13984int i;
13985_ACEOF
13986if ac_fn_c_try_compile "$LINENO"; then :
13987  xorg_cv_compiler_flag_unknown_warning_option=yes
13988else
13989  xorg_cv_compiler_flag_unknown_warning_option=no
13990fi
13991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992fi
13993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13994$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13995	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13996	CFLAGS="$xorg_testset_save_CFLAGS"
13997fi
13998
13999if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14000	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14002	fi
14003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14005$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14006if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14007  $as_echo_n "(cached) " >&6
14008else
14009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010/* end confdefs.h.  */
14011int i;
14012_ACEOF
14013if ac_fn_c_try_compile "$LINENO"; then :
14014  xorg_cv_compiler_flag_unused_command_line_argument=yes
14015else
14016  xorg_cv_compiler_flag_unused_command_line_argument=no
14017fi
14018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019fi
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14021$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14022	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14023	CFLAGS="$xorg_testset_save_CFLAGS"
14024fi
14025
14026found="no"
14027
14028	if test $found = "no" ; then
14029		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14031		fi
14032
14033		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14035		fi
14036
14037		CFLAGS="$CFLAGS -Werror=implicit"
14038
14039		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14040$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14041		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
14042		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14043  $as_echo_n "(cached) " >&6
14044else
14045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046/* end confdefs.h.  */
14047int i;
14048int
14049main ()
14050{
14051
14052  ;
14053  return 0;
14054}
14055_ACEOF
14056if ac_fn_c_try_link "$LINENO"; then :
14057  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14058else
14059  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14060fi
14061rm -f core conftest.err conftest.$ac_objext \
14062    conftest$ac_exeext conftest.$ac_ext
14063fi
14064
14065
14066		CFLAGS="$xorg_testset_save_CFLAGS"
14067
14068		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14070$as_echo "$supported" >&6; }
14071		if test "$supported" = "yes" ; then
14072			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14073			found="yes"
14074		fi
14075	fi
14076
14077	if test $found = "no" ; then
14078		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14080		fi
14081
14082		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14084		fi
14085
14086		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14087
14088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14089$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14090		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
14091		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14092  $as_echo_n "(cached) " >&6
14093else
14094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095/* end confdefs.h.  */
14096int i;
14097int
14098main ()
14099{
14100
14101  ;
14102  return 0;
14103}
14104_ACEOF
14105if ac_fn_c_try_link "$LINENO"; then :
14106  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14107else
14108  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14109fi
14110rm -f core conftest.err conftest.$ac_objext \
14111    conftest$ac_exeext conftest.$ac_ext
14112fi
14113
14114
14115		CFLAGS="$xorg_testset_save_CFLAGS"
14116
14117		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14119$as_echo "$supported" >&6; }
14120		if test "$supported" = "yes" ; then
14121			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14122			found="yes"
14123		fi
14124	fi
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138xorg_testset_save_CFLAGS="$CFLAGS"
14139
14140if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14143$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14144if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14145  $as_echo_n "(cached) " >&6
14146else
14147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148/* end confdefs.h.  */
14149int i;
14150_ACEOF
14151if ac_fn_c_try_compile "$LINENO"; then :
14152  xorg_cv_compiler_flag_unknown_warning_option=yes
14153else
14154  xorg_cv_compiler_flag_unknown_warning_option=no
14155fi
14156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14157fi
14158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14159$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14160	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14161	CFLAGS="$xorg_testset_save_CFLAGS"
14162fi
14163
14164if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14165	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14166		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14167	fi
14168	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14170$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14171if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14172  $as_echo_n "(cached) " >&6
14173else
14174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175/* end confdefs.h.  */
14176int i;
14177_ACEOF
14178if ac_fn_c_try_compile "$LINENO"; then :
14179  xorg_cv_compiler_flag_unused_command_line_argument=yes
14180else
14181  xorg_cv_compiler_flag_unused_command_line_argument=no
14182fi
14183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184fi
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14186$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14187	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14188	CFLAGS="$xorg_testset_save_CFLAGS"
14189fi
14190
14191found="no"
14192
14193	if test $found = "no" ; then
14194		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14196		fi
14197
14198		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14200		fi
14201
14202		CFLAGS="$CFLAGS -Werror=nonnull"
14203
14204		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14205$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14206		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
14207		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14208  $as_echo_n "(cached) " >&6
14209else
14210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211/* end confdefs.h.  */
14212int i;
14213int
14214main ()
14215{
14216
14217  ;
14218  return 0;
14219}
14220_ACEOF
14221if ac_fn_c_try_link "$LINENO"; then :
14222  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14223else
14224  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14225fi
14226rm -f core conftest.err conftest.$ac_objext \
14227    conftest$ac_exeext conftest.$ac_ext
14228fi
14229
14230
14231		CFLAGS="$xorg_testset_save_CFLAGS"
14232
14233		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14234		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14235$as_echo "$supported" >&6; }
14236		if test "$supported" = "yes" ; then
14237			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14238			found="yes"
14239		fi
14240	fi
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254xorg_testset_save_CFLAGS="$CFLAGS"
14255
14256if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14257	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14259$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14260if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14261  $as_echo_n "(cached) " >&6
14262else
14263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264/* end confdefs.h.  */
14265int i;
14266_ACEOF
14267if ac_fn_c_try_compile "$LINENO"; then :
14268  xorg_cv_compiler_flag_unknown_warning_option=yes
14269else
14270  xorg_cv_compiler_flag_unknown_warning_option=no
14271fi
14272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273fi
14274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14275$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14276	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14277	CFLAGS="$xorg_testset_save_CFLAGS"
14278fi
14279
14280if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14281	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14282		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14283	fi
14284	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14286$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14287if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14288  $as_echo_n "(cached) " >&6
14289else
14290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291/* end confdefs.h.  */
14292int i;
14293_ACEOF
14294if ac_fn_c_try_compile "$LINENO"; then :
14295  xorg_cv_compiler_flag_unused_command_line_argument=yes
14296else
14297  xorg_cv_compiler_flag_unused_command_line_argument=no
14298fi
14299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300fi
14301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14302$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14303	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14304	CFLAGS="$xorg_testset_save_CFLAGS"
14305fi
14306
14307found="no"
14308
14309	if test $found = "no" ; then
14310		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14312		fi
14313
14314		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14316		fi
14317
14318		CFLAGS="$CFLAGS -Werror=init-self"
14319
14320		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14321$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14322		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
14323		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14324  $as_echo_n "(cached) " >&6
14325else
14326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327/* end confdefs.h.  */
14328int i;
14329int
14330main ()
14331{
14332
14333  ;
14334  return 0;
14335}
14336_ACEOF
14337if ac_fn_c_try_link "$LINENO"; then :
14338  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14339else
14340  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14341fi
14342rm -f core conftest.err conftest.$ac_objext \
14343    conftest$ac_exeext conftest.$ac_ext
14344fi
14345
14346
14347		CFLAGS="$xorg_testset_save_CFLAGS"
14348
14349		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14350		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14351$as_echo "$supported" >&6; }
14352		if test "$supported" = "yes" ; then
14353			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14354			found="yes"
14355		fi
14356	fi
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370xorg_testset_save_CFLAGS="$CFLAGS"
14371
14372if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14375$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14376if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14377  $as_echo_n "(cached) " >&6
14378else
14379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381int i;
14382_ACEOF
14383if ac_fn_c_try_compile "$LINENO"; then :
14384  xorg_cv_compiler_flag_unknown_warning_option=yes
14385else
14386  xorg_cv_compiler_flag_unknown_warning_option=no
14387fi
14388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389fi
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14391$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14392	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14393	CFLAGS="$xorg_testset_save_CFLAGS"
14394fi
14395
14396if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14397	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14399	fi
14400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14402$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14403if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14404  $as_echo_n "(cached) " >&6
14405else
14406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407/* end confdefs.h.  */
14408int i;
14409_ACEOF
14410if ac_fn_c_try_compile "$LINENO"; then :
14411  xorg_cv_compiler_flag_unused_command_line_argument=yes
14412else
14413  xorg_cv_compiler_flag_unused_command_line_argument=no
14414fi
14415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14416fi
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14418$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14419	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14420	CFLAGS="$xorg_testset_save_CFLAGS"
14421fi
14422
14423found="no"
14424
14425	if test $found = "no" ; then
14426		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14428		fi
14429
14430		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14432		fi
14433
14434		CFLAGS="$CFLAGS -Werror=main"
14435
14436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14437$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14438		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14439		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14440  $as_echo_n "(cached) " >&6
14441else
14442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443/* end confdefs.h.  */
14444int i;
14445int
14446main ()
14447{
14448
14449  ;
14450  return 0;
14451}
14452_ACEOF
14453if ac_fn_c_try_link "$LINENO"; then :
14454  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14455else
14456  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14457fi
14458rm -f core conftest.err conftest.$ac_objext \
14459    conftest$ac_exeext conftest.$ac_ext
14460fi
14461
14462
14463		CFLAGS="$xorg_testset_save_CFLAGS"
14464
14465		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14467$as_echo "$supported" >&6; }
14468		if test "$supported" = "yes" ; then
14469			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14470			found="yes"
14471		fi
14472	fi
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486xorg_testset_save_CFLAGS="$CFLAGS"
14487
14488if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14491$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14492if ${xorg_cv_compiler_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_compiler_flag_unknown_warning_option=yes
14501else
14502  xorg_cv_compiler_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_compiler_flag_unknown_warning_option" >&5
14507$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14508	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14509	CFLAGS="$xorg_testset_save_CFLAGS"
14510fi
14511
14512if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14513	if test "x$xorg_testset_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 compiler supports -Werror=unused-command-line-argument" >&5
14518$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14519if ${xorg_cv_compiler_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_compiler_flag_unused_command_line_argument=yes
14528else
14529  xorg_cv_compiler_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_compiler_flag_unused_command_line_argument" >&5
14534$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14535	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_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_unknown_warning_option" = "xyes" ; then
14543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14544		fi
14545
14546		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14548		fi
14549
14550		CFLAGS="$CFLAGS -Werror=missing-braces"
14551
14552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14553$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14554		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14555		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 `$as_echo "$cacheid" | $as_tr_sh`=yes
14571else
14572  eval `$as_echo "$cacheid" | $as_tr_sh`=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=$`$as_echo "$cacheid" | $as_tr_sh`
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=missing-braces"
14586			found="yes"
14587		fi
14588	fi
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602xorg_testset_save_CFLAGS="$CFLAGS"
14603
14604if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14607$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14608if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14609  $as_echo_n "(cached) " >&6
14610else
14611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612/* end confdefs.h.  */
14613int i;
14614_ACEOF
14615if ac_fn_c_try_compile "$LINENO"; then :
14616  xorg_cv_compiler_flag_unknown_warning_option=yes
14617else
14618  xorg_cv_compiler_flag_unknown_warning_option=no
14619fi
14620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621fi
14622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14623$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14624	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14625	CFLAGS="$xorg_testset_save_CFLAGS"
14626fi
14627
14628if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14629	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14631	fi
14632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14634$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14635if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14636  $as_echo_n "(cached) " >&6
14637else
14638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639/* end confdefs.h.  */
14640int i;
14641_ACEOF
14642if ac_fn_c_try_compile "$LINENO"; then :
14643  xorg_cv_compiler_flag_unused_command_line_argument=yes
14644else
14645  xorg_cv_compiler_flag_unused_command_line_argument=no
14646fi
14647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648fi
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14650$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14651	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14652	CFLAGS="$xorg_testset_save_CFLAGS"
14653fi
14654
14655found="no"
14656
14657	if test $found = "no" ; then
14658		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14660		fi
14661
14662		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14664		fi
14665
14666		CFLAGS="$CFLAGS -Werror=sequence-point"
14667
14668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14669$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14670		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14671		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14672  $as_echo_n "(cached) " >&6
14673else
14674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675/* end confdefs.h.  */
14676int i;
14677int
14678main ()
14679{
14680
14681  ;
14682  return 0;
14683}
14684_ACEOF
14685if ac_fn_c_try_link "$LINENO"; then :
14686  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14687else
14688  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14689fi
14690rm -f core conftest.err conftest.$ac_objext \
14691    conftest$ac_exeext conftest.$ac_ext
14692fi
14693
14694
14695		CFLAGS="$xorg_testset_save_CFLAGS"
14696
14697		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14699$as_echo "$supported" >&6; }
14700		if test "$supported" = "yes" ; then
14701			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14702			found="yes"
14703		fi
14704	fi
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718xorg_testset_save_CFLAGS="$CFLAGS"
14719
14720if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14722	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14723$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14724if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14725  $as_echo_n "(cached) " >&6
14726else
14727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h.  */
14729int i;
14730_ACEOF
14731if ac_fn_c_try_compile "$LINENO"; then :
14732  xorg_cv_compiler_flag_unknown_warning_option=yes
14733else
14734  xorg_cv_compiler_flag_unknown_warning_option=no
14735fi
14736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14737fi
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14739$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14740	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14741	CFLAGS="$xorg_testset_save_CFLAGS"
14742fi
14743
14744if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14745	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14746		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14747	fi
14748	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14750$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14751if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14752  $as_echo_n "(cached) " >&6
14753else
14754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755/* end confdefs.h.  */
14756int i;
14757_ACEOF
14758if ac_fn_c_try_compile "$LINENO"; then :
14759  xorg_cv_compiler_flag_unused_command_line_argument=yes
14760else
14761  xorg_cv_compiler_flag_unused_command_line_argument=no
14762fi
14763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764fi
14765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14766$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14767	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14768	CFLAGS="$xorg_testset_save_CFLAGS"
14769fi
14770
14771found="no"
14772
14773	if test $found = "no" ; then
14774		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14776		fi
14777
14778		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14780		fi
14781
14782		CFLAGS="$CFLAGS -Werror=return-type"
14783
14784		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14785$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14786		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14787		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14788  $as_echo_n "(cached) " >&6
14789else
14790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791/* end confdefs.h.  */
14792int i;
14793int
14794main ()
14795{
14796
14797  ;
14798  return 0;
14799}
14800_ACEOF
14801if ac_fn_c_try_link "$LINENO"; then :
14802  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14803else
14804  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14805fi
14806rm -f core conftest.err conftest.$ac_objext \
14807    conftest$ac_exeext conftest.$ac_ext
14808fi
14809
14810
14811		CFLAGS="$xorg_testset_save_CFLAGS"
14812
14813		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14814		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14815$as_echo "$supported" >&6; }
14816		if test "$supported" = "yes" ; then
14817			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14818			found="yes"
14819		fi
14820	fi
14821
14822	if test $found = "no" ; then
14823		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14825		fi
14826
14827		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14829		fi
14830
14831		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14832
14833		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14834$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14835		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14836		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14837  $as_echo_n "(cached) " >&6
14838else
14839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840/* end confdefs.h.  */
14841int i;
14842int
14843main ()
14844{
14845
14846  ;
14847  return 0;
14848}
14849_ACEOF
14850if ac_fn_c_try_link "$LINENO"; then :
14851  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14852else
14853  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14854fi
14855rm -f core conftest.err conftest.$ac_objext \
14856    conftest$ac_exeext conftest.$ac_ext
14857fi
14858
14859
14860		CFLAGS="$xorg_testset_save_CFLAGS"
14861
14862		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14863		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14864$as_echo "$supported" >&6; }
14865		if test "$supported" = "yes" ; then
14866			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14867			found="yes"
14868		fi
14869	fi
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883xorg_testset_save_CFLAGS="$CFLAGS"
14884
14885if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14886	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14888$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14889if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14890  $as_echo_n "(cached) " >&6
14891else
14892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893/* end confdefs.h.  */
14894int i;
14895_ACEOF
14896if ac_fn_c_try_compile "$LINENO"; then :
14897  xorg_cv_compiler_flag_unknown_warning_option=yes
14898else
14899  xorg_cv_compiler_flag_unknown_warning_option=no
14900fi
14901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902fi
14903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14904$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14905	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14906	CFLAGS="$xorg_testset_save_CFLAGS"
14907fi
14908
14909if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14910	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14912	fi
14913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14915$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14916if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14917  $as_echo_n "(cached) " >&6
14918else
14919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920/* end confdefs.h.  */
14921int i;
14922_ACEOF
14923if ac_fn_c_try_compile "$LINENO"; then :
14924  xorg_cv_compiler_flag_unused_command_line_argument=yes
14925else
14926  xorg_cv_compiler_flag_unused_command_line_argument=no
14927fi
14928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929fi
14930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14931$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14932	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14933	CFLAGS="$xorg_testset_save_CFLAGS"
14934fi
14935
14936found="no"
14937
14938	if test $found = "no" ; then
14939		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14941		fi
14942
14943		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14945		fi
14946
14947		CFLAGS="$CFLAGS -Werror=trigraphs"
14948
14949		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14950$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14951		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14952		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14953  $as_echo_n "(cached) " >&6
14954else
14955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956/* end confdefs.h.  */
14957int i;
14958int
14959main ()
14960{
14961
14962  ;
14963  return 0;
14964}
14965_ACEOF
14966if ac_fn_c_try_link "$LINENO"; then :
14967  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14968else
14969  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14970fi
14971rm -f core conftest.err conftest.$ac_objext \
14972    conftest$ac_exeext conftest.$ac_ext
14973fi
14974
14975
14976		CFLAGS="$xorg_testset_save_CFLAGS"
14977
14978		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14979		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14980$as_echo "$supported" >&6; }
14981		if test "$supported" = "yes" ; then
14982			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14983			found="yes"
14984		fi
14985	fi
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999xorg_testset_save_CFLAGS="$CFLAGS"
15000
15001if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15002	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15004$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15005if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15006  $as_echo_n "(cached) " >&6
15007else
15008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009/* end confdefs.h.  */
15010int i;
15011_ACEOF
15012if ac_fn_c_try_compile "$LINENO"; then :
15013  xorg_cv_compiler_flag_unknown_warning_option=yes
15014else
15015  xorg_cv_compiler_flag_unknown_warning_option=no
15016fi
15017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018fi
15019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15020$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15021	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15022	CFLAGS="$xorg_testset_save_CFLAGS"
15023fi
15024
15025if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15026	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15028	fi
15029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15031$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15032if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15033  $as_echo_n "(cached) " >&6
15034else
15035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036/* end confdefs.h.  */
15037int i;
15038_ACEOF
15039if ac_fn_c_try_compile "$LINENO"; then :
15040  xorg_cv_compiler_flag_unused_command_line_argument=yes
15041else
15042  xorg_cv_compiler_flag_unused_command_line_argument=no
15043fi
15044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045fi
15046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15047$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15048	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15049	CFLAGS="$xorg_testset_save_CFLAGS"
15050fi
15051
15052found="no"
15053
15054	if test $found = "no" ; then
15055		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15057		fi
15058
15059		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15061		fi
15062
15063		CFLAGS="$CFLAGS -Werror=array-bounds"
15064
15065		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15066$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15067		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
15068		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15069  $as_echo_n "(cached) " >&6
15070else
15071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072/* end confdefs.h.  */
15073int i;
15074int
15075main ()
15076{
15077
15078  ;
15079  return 0;
15080}
15081_ACEOF
15082if ac_fn_c_try_link "$LINENO"; then :
15083  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15084else
15085  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15086fi
15087rm -f core conftest.err conftest.$ac_objext \
15088    conftest$ac_exeext conftest.$ac_ext
15089fi
15090
15091
15092		CFLAGS="$xorg_testset_save_CFLAGS"
15093
15094		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15095		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15096$as_echo "$supported" >&6; }
15097		if test "$supported" = "yes" ; then
15098			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15099			found="yes"
15100		fi
15101	fi
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115xorg_testset_save_CFLAGS="$CFLAGS"
15116
15117if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15120$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15121if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15122  $as_echo_n "(cached) " >&6
15123else
15124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125/* end confdefs.h.  */
15126int i;
15127_ACEOF
15128if ac_fn_c_try_compile "$LINENO"; then :
15129  xorg_cv_compiler_flag_unknown_warning_option=yes
15130else
15131  xorg_cv_compiler_flag_unknown_warning_option=no
15132fi
15133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134fi
15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15136$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15137	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15138	CFLAGS="$xorg_testset_save_CFLAGS"
15139fi
15140
15141if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15142	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15144	fi
15145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15147$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15148if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15149  $as_echo_n "(cached) " >&6
15150else
15151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152/* end confdefs.h.  */
15153int i;
15154_ACEOF
15155if ac_fn_c_try_compile "$LINENO"; then :
15156  xorg_cv_compiler_flag_unused_command_line_argument=yes
15157else
15158  xorg_cv_compiler_flag_unused_command_line_argument=no
15159fi
15160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161fi
15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15163$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15164	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15165	CFLAGS="$xorg_testset_save_CFLAGS"
15166fi
15167
15168found="no"
15169
15170	if test $found = "no" ; then
15171		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15173		fi
15174
15175		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15177		fi
15178
15179		CFLAGS="$CFLAGS -Werror=write-strings"
15180
15181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15182$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15183		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
15184		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15185  $as_echo_n "(cached) " >&6
15186else
15187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188/* end confdefs.h.  */
15189int i;
15190int
15191main ()
15192{
15193
15194  ;
15195  return 0;
15196}
15197_ACEOF
15198if ac_fn_c_try_link "$LINENO"; then :
15199  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15200else
15201  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15202fi
15203rm -f core conftest.err conftest.$ac_objext \
15204    conftest$ac_exeext conftest.$ac_ext
15205fi
15206
15207
15208		CFLAGS="$xorg_testset_save_CFLAGS"
15209
15210		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15211		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15212$as_echo "$supported" >&6; }
15213		if test "$supported" = "yes" ; then
15214			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15215			found="yes"
15216		fi
15217	fi
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231xorg_testset_save_CFLAGS="$CFLAGS"
15232
15233if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15234	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15236$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15237if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15238  $as_echo_n "(cached) " >&6
15239else
15240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241/* end confdefs.h.  */
15242int i;
15243_ACEOF
15244if ac_fn_c_try_compile "$LINENO"; then :
15245  xorg_cv_compiler_flag_unknown_warning_option=yes
15246else
15247  xorg_cv_compiler_flag_unknown_warning_option=no
15248fi
15249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250fi
15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15252$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15253	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15254	CFLAGS="$xorg_testset_save_CFLAGS"
15255fi
15256
15257if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15258	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15259		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15260	fi
15261	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15263$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15264if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15265  $as_echo_n "(cached) " >&6
15266else
15267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268/* end confdefs.h.  */
15269int i;
15270_ACEOF
15271if ac_fn_c_try_compile "$LINENO"; then :
15272  xorg_cv_compiler_flag_unused_command_line_argument=yes
15273else
15274  xorg_cv_compiler_flag_unused_command_line_argument=no
15275fi
15276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15277fi
15278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15279$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15280	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15281	CFLAGS="$xorg_testset_save_CFLAGS"
15282fi
15283
15284found="no"
15285
15286	if test $found = "no" ; then
15287		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15289		fi
15290
15291		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15293		fi
15294
15295		CFLAGS="$CFLAGS -Werror=address"
15296
15297		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15298$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15299		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
15300		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15301  $as_echo_n "(cached) " >&6
15302else
15303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304/* end confdefs.h.  */
15305int i;
15306int
15307main ()
15308{
15309
15310  ;
15311  return 0;
15312}
15313_ACEOF
15314if ac_fn_c_try_link "$LINENO"; then :
15315  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15316else
15317  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15318fi
15319rm -f core conftest.err conftest.$ac_objext \
15320    conftest$ac_exeext conftest.$ac_ext
15321fi
15322
15323
15324		CFLAGS="$xorg_testset_save_CFLAGS"
15325
15326		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15327		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15328$as_echo "$supported" >&6; }
15329		if test "$supported" = "yes" ; then
15330			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15331			found="yes"
15332		fi
15333	fi
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347xorg_testset_save_CFLAGS="$CFLAGS"
15348
15349if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15350	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15352$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15353if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15354  $as_echo_n "(cached) " >&6
15355else
15356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h.  */
15358int i;
15359_ACEOF
15360if ac_fn_c_try_compile "$LINENO"; then :
15361  xorg_cv_compiler_flag_unknown_warning_option=yes
15362else
15363  xorg_cv_compiler_flag_unknown_warning_option=no
15364fi
15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366fi
15367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15368$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15369	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15370	CFLAGS="$xorg_testset_save_CFLAGS"
15371fi
15372
15373if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15374	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15376	fi
15377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15379$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15380if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15381  $as_echo_n "(cached) " >&6
15382else
15383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384/* end confdefs.h.  */
15385int i;
15386_ACEOF
15387if ac_fn_c_try_compile "$LINENO"; then :
15388  xorg_cv_compiler_flag_unused_command_line_argument=yes
15389else
15390  xorg_cv_compiler_flag_unused_command_line_argument=no
15391fi
15392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393fi
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15395$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15396	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15397	CFLAGS="$xorg_testset_save_CFLAGS"
15398fi
15399
15400found="no"
15401
15402	if test $found = "no" ; then
15403		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15405		fi
15406
15407		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15409		fi
15410
15411		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15412
15413		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15414$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15415		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15416		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15417  $as_echo_n "(cached) " >&6
15418else
15419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420/* end confdefs.h.  */
15421int i;
15422int
15423main ()
15424{
15425
15426  ;
15427  return 0;
15428}
15429_ACEOF
15430if ac_fn_c_try_link "$LINENO"; then :
15431  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15432else
15433  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15434fi
15435rm -f core conftest.err conftest.$ac_objext \
15436    conftest$ac_exeext conftest.$ac_ext
15437fi
15438
15439
15440		CFLAGS="$xorg_testset_save_CFLAGS"
15441
15442		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15443		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15444$as_echo "$supported" >&6; }
15445		if test "$supported" = "yes" ; then
15446			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15447			found="yes"
15448		fi
15449	fi
15450
15451	if test $found = "no" ; then
15452		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15454		fi
15455
15456		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15458		fi
15459
15460		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15461
15462		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15463$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15464		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15465		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15466  $as_echo_n "(cached) " >&6
15467else
15468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469/* end confdefs.h.  */
15470int i;
15471int
15472main ()
15473{
15474
15475  ;
15476  return 0;
15477}
15478_ACEOF
15479if ac_fn_c_try_link "$LINENO"; then :
15480  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15481else
15482  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15483fi
15484rm -f core conftest.err conftest.$ac_objext \
15485    conftest$ac_exeext conftest.$ac_ext
15486fi
15487
15488
15489		CFLAGS="$xorg_testset_save_CFLAGS"
15490
15491		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15493$as_echo "$supported" >&6; }
15494		if test "$supported" = "yes" ; then
15495			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15496			found="yes"
15497		fi
15498	fi
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512xorg_testset_save_CFLAGS="$CFLAGS"
15513
15514if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15515	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15517$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15518if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15519  $as_echo_n "(cached) " >&6
15520else
15521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522/* end confdefs.h.  */
15523int i;
15524_ACEOF
15525if ac_fn_c_try_compile "$LINENO"; then :
15526  xorg_cv_compiler_flag_unknown_warning_option=yes
15527else
15528  xorg_cv_compiler_flag_unknown_warning_option=no
15529fi
15530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531fi
15532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15533$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15534	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15535	CFLAGS="$xorg_testset_save_CFLAGS"
15536fi
15537
15538if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15539	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15540		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15541	fi
15542	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15543	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15544$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15545if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15546  $as_echo_n "(cached) " >&6
15547else
15548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549/* end confdefs.h.  */
15550int i;
15551_ACEOF
15552if ac_fn_c_try_compile "$LINENO"; then :
15553  xorg_cv_compiler_flag_unused_command_line_argument=yes
15554else
15555  xorg_cv_compiler_flag_unused_command_line_argument=no
15556fi
15557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558fi
15559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15560$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15561	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15562	CFLAGS="$xorg_testset_save_CFLAGS"
15563fi
15564
15565found="no"
15566
15567	if test $found = "no" ; then
15568		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15569			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15570		fi
15571
15572		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15573			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15574		fi
15575
15576		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15577
15578		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15579$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15580		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15581		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15582  $as_echo_n "(cached) " >&6
15583else
15584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585/* end confdefs.h.  */
15586int i;
15587int
15588main ()
15589{
15590
15591  ;
15592  return 0;
15593}
15594_ACEOF
15595if ac_fn_c_try_link "$LINENO"; then :
15596  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15597else
15598  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15599fi
15600rm -f core conftest.err conftest.$ac_objext \
15601    conftest$ac_exeext conftest.$ac_ext
15602fi
15603
15604
15605		CFLAGS="$xorg_testset_save_CFLAGS"
15606
15607		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15608		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15609$as_echo "$supported" >&6; }
15610		if test "$supported" = "yes" ; then
15611			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15612			found="yes"
15613		fi
15614	fi
15615
15616 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15617else
15618{ $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
15619$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;}
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631xorg_testset_save_CFLAGS="$CFLAGS"
15632
15633if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15634	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15636$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15637if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15638  $as_echo_n "(cached) " >&6
15639else
15640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15641/* end confdefs.h.  */
15642int i;
15643_ACEOF
15644if ac_fn_c_try_compile "$LINENO"; then :
15645  xorg_cv_compiler_flag_unknown_warning_option=yes
15646else
15647  xorg_cv_compiler_flag_unknown_warning_option=no
15648fi
15649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650fi
15651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15652$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15653	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15654	CFLAGS="$xorg_testset_save_CFLAGS"
15655fi
15656
15657if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15658	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15660	fi
15661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15663$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15664if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15665  $as_echo_n "(cached) " >&6
15666else
15667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668/* end confdefs.h.  */
15669int i;
15670_ACEOF
15671if ac_fn_c_try_compile "$LINENO"; then :
15672  xorg_cv_compiler_flag_unused_command_line_argument=yes
15673else
15674  xorg_cv_compiler_flag_unused_command_line_argument=no
15675fi
15676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677fi
15678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15679$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15680	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15681	CFLAGS="$xorg_testset_save_CFLAGS"
15682fi
15683
15684found="no"
15685
15686	if test $found = "no" ; then
15687		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15688			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15689		fi
15690
15691		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15692			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15693		fi
15694
15695		CFLAGS="$CFLAGS -Wimplicit"
15696
15697		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15698$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15699		cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15700		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15701  $as_echo_n "(cached) " >&6
15702else
15703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704/* end confdefs.h.  */
15705int i;
15706int
15707main ()
15708{
15709
15710  ;
15711  return 0;
15712}
15713_ACEOF
15714if ac_fn_c_try_link "$LINENO"; then :
15715  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15716else
15717  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15718fi
15719rm -f core conftest.err conftest.$ac_objext \
15720    conftest$ac_exeext conftest.$ac_ext
15721fi
15722
15723
15724		CFLAGS="$xorg_testset_save_CFLAGS"
15725
15726		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15727		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15728$as_echo "$supported" >&6; }
15729		if test "$supported" = "yes" ; then
15730			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15731			found="yes"
15732		fi
15733	fi
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747xorg_testset_save_CFLAGS="$CFLAGS"
15748
15749if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15752$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15753if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15754  $as_echo_n "(cached) " >&6
15755else
15756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757/* end confdefs.h.  */
15758int i;
15759_ACEOF
15760if ac_fn_c_try_compile "$LINENO"; then :
15761  xorg_cv_compiler_flag_unknown_warning_option=yes
15762else
15763  xorg_cv_compiler_flag_unknown_warning_option=no
15764fi
15765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766fi
15767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15768$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15769	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15770	CFLAGS="$xorg_testset_save_CFLAGS"
15771fi
15772
15773if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15774	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15776	fi
15777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15779$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15780if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15781  $as_echo_n "(cached) " >&6
15782else
15783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784/* end confdefs.h.  */
15785int i;
15786_ACEOF
15787if ac_fn_c_try_compile "$LINENO"; then :
15788  xorg_cv_compiler_flag_unused_command_line_argument=yes
15789else
15790  xorg_cv_compiler_flag_unused_command_line_argument=no
15791fi
15792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793fi
15794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15795$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15796	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15797	CFLAGS="$xorg_testset_save_CFLAGS"
15798fi
15799
15800found="no"
15801
15802	if test $found = "no" ; then
15803		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15805		fi
15806
15807		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15809		fi
15810
15811		CFLAGS="$CFLAGS -Wnonnull"
15812
15813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15814$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15815		cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15816		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15817  $as_echo_n "(cached) " >&6
15818else
15819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820/* end confdefs.h.  */
15821int i;
15822int
15823main ()
15824{
15825
15826  ;
15827  return 0;
15828}
15829_ACEOF
15830if ac_fn_c_try_link "$LINENO"; then :
15831  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15832else
15833  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15834fi
15835rm -f core conftest.err conftest.$ac_objext \
15836    conftest$ac_exeext conftest.$ac_ext
15837fi
15838
15839
15840		CFLAGS="$xorg_testset_save_CFLAGS"
15841
15842		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15844$as_echo "$supported" >&6; }
15845		if test "$supported" = "yes" ; then
15846			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15847			found="yes"
15848		fi
15849	fi
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863xorg_testset_save_CFLAGS="$CFLAGS"
15864
15865if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15868$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15869if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15870  $as_echo_n "(cached) " >&6
15871else
15872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873/* end confdefs.h.  */
15874int i;
15875_ACEOF
15876if ac_fn_c_try_compile "$LINENO"; then :
15877  xorg_cv_compiler_flag_unknown_warning_option=yes
15878else
15879  xorg_cv_compiler_flag_unknown_warning_option=no
15880fi
15881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882fi
15883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15884$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15885	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15886	CFLAGS="$xorg_testset_save_CFLAGS"
15887fi
15888
15889if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15890	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15892	fi
15893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15895$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15896if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15897  $as_echo_n "(cached) " >&6
15898else
15899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900/* end confdefs.h.  */
15901int i;
15902_ACEOF
15903if ac_fn_c_try_compile "$LINENO"; then :
15904  xorg_cv_compiler_flag_unused_command_line_argument=yes
15905else
15906  xorg_cv_compiler_flag_unused_command_line_argument=no
15907fi
15908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909fi
15910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15911$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15912	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15913	CFLAGS="$xorg_testset_save_CFLAGS"
15914fi
15915
15916found="no"
15917
15918	if test $found = "no" ; then
15919		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15921		fi
15922
15923		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15925		fi
15926
15927		CFLAGS="$CFLAGS -Winit-self"
15928
15929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15930$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15931		cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15932		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15933  $as_echo_n "(cached) " >&6
15934else
15935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936/* end confdefs.h.  */
15937int i;
15938int
15939main ()
15940{
15941
15942  ;
15943  return 0;
15944}
15945_ACEOF
15946if ac_fn_c_try_link "$LINENO"; then :
15947  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15948else
15949  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15950fi
15951rm -f core conftest.err conftest.$ac_objext \
15952    conftest$ac_exeext conftest.$ac_ext
15953fi
15954
15955
15956		CFLAGS="$xorg_testset_save_CFLAGS"
15957
15958		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15960$as_echo "$supported" >&6; }
15961		if test "$supported" = "yes" ; then
15962			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15963			found="yes"
15964		fi
15965	fi
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979xorg_testset_save_CFLAGS="$CFLAGS"
15980
15981if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15982	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15984$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15985if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15986  $as_echo_n "(cached) " >&6
15987else
15988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989/* end confdefs.h.  */
15990int i;
15991_ACEOF
15992if ac_fn_c_try_compile "$LINENO"; then :
15993  xorg_cv_compiler_flag_unknown_warning_option=yes
15994else
15995  xorg_cv_compiler_flag_unknown_warning_option=no
15996fi
15997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15998fi
15999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16000$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16001	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16002	CFLAGS="$xorg_testset_save_CFLAGS"
16003fi
16004
16005if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16006	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16007		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16008	fi
16009	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16011$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16012if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16013  $as_echo_n "(cached) " >&6
16014else
16015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016/* end confdefs.h.  */
16017int i;
16018_ACEOF
16019if ac_fn_c_try_compile "$LINENO"; then :
16020  xorg_cv_compiler_flag_unused_command_line_argument=yes
16021else
16022  xorg_cv_compiler_flag_unused_command_line_argument=no
16023fi
16024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025fi
16026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16027$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16028	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16029	CFLAGS="$xorg_testset_save_CFLAGS"
16030fi
16031
16032found="no"
16033
16034	if test $found = "no" ; then
16035		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16037		fi
16038
16039		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16041		fi
16042
16043		CFLAGS="$CFLAGS -Wmain"
16044
16045		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16046$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16047		cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
16048		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16049  $as_echo_n "(cached) " >&6
16050else
16051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052/* end confdefs.h.  */
16053int i;
16054int
16055main ()
16056{
16057
16058  ;
16059  return 0;
16060}
16061_ACEOF
16062if ac_fn_c_try_link "$LINENO"; then :
16063  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16064else
16065  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16066fi
16067rm -f core conftest.err conftest.$ac_objext \
16068    conftest$ac_exeext conftest.$ac_ext
16069fi
16070
16071
16072		CFLAGS="$xorg_testset_save_CFLAGS"
16073
16074		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16075		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16076$as_echo "$supported" >&6; }
16077		if test "$supported" = "yes" ; then
16078			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16079			found="yes"
16080		fi
16081	fi
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095xorg_testset_save_CFLAGS="$CFLAGS"
16096
16097if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16100$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16101if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16102  $as_echo_n "(cached) " >&6
16103else
16104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105/* end confdefs.h.  */
16106int i;
16107_ACEOF
16108if ac_fn_c_try_compile "$LINENO"; then :
16109  xorg_cv_compiler_flag_unknown_warning_option=yes
16110else
16111  xorg_cv_compiler_flag_unknown_warning_option=no
16112fi
16113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16114fi
16115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16116$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16117	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16118	CFLAGS="$xorg_testset_save_CFLAGS"
16119fi
16120
16121if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16122	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16124	fi
16125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16127$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16128if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16129  $as_echo_n "(cached) " >&6
16130else
16131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132/* end confdefs.h.  */
16133int i;
16134_ACEOF
16135if ac_fn_c_try_compile "$LINENO"; then :
16136  xorg_cv_compiler_flag_unused_command_line_argument=yes
16137else
16138  xorg_cv_compiler_flag_unused_command_line_argument=no
16139fi
16140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141fi
16142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16143$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16144	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16145	CFLAGS="$xorg_testset_save_CFLAGS"
16146fi
16147
16148found="no"
16149
16150	if test $found = "no" ; then
16151		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16153		fi
16154
16155		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16157		fi
16158
16159		CFLAGS="$CFLAGS -Wmissing-braces"
16160
16161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16162$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16163		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
16164		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16165  $as_echo_n "(cached) " >&6
16166else
16167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168/* end confdefs.h.  */
16169int i;
16170int
16171main ()
16172{
16173
16174  ;
16175  return 0;
16176}
16177_ACEOF
16178if ac_fn_c_try_link "$LINENO"; then :
16179  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16180else
16181  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16182fi
16183rm -f core conftest.err conftest.$ac_objext \
16184    conftest$ac_exeext conftest.$ac_ext
16185fi
16186
16187
16188		CFLAGS="$xorg_testset_save_CFLAGS"
16189
16190		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16192$as_echo "$supported" >&6; }
16193		if test "$supported" = "yes" ; then
16194			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16195			found="yes"
16196		fi
16197	fi
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211xorg_testset_save_CFLAGS="$CFLAGS"
16212
16213if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16216$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16217if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16218  $as_echo_n "(cached) " >&6
16219else
16220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221/* end confdefs.h.  */
16222int i;
16223_ACEOF
16224if ac_fn_c_try_compile "$LINENO"; then :
16225  xorg_cv_compiler_flag_unknown_warning_option=yes
16226else
16227  xorg_cv_compiler_flag_unknown_warning_option=no
16228fi
16229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230fi
16231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16232$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16233	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16234	CFLAGS="$xorg_testset_save_CFLAGS"
16235fi
16236
16237if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16238	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16240	fi
16241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16243$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16244if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16245  $as_echo_n "(cached) " >&6
16246else
16247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h.  */
16249int i;
16250_ACEOF
16251if ac_fn_c_try_compile "$LINENO"; then :
16252  xorg_cv_compiler_flag_unused_command_line_argument=yes
16253else
16254  xorg_cv_compiler_flag_unused_command_line_argument=no
16255fi
16256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257fi
16258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16259$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16260	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16261	CFLAGS="$xorg_testset_save_CFLAGS"
16262fi
16263
16264found="no"
16265
16266	if test $found = "no" ; then
16267		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16269		fi
16270
16271		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16273		fi
16274
16275		CFLAGS="$CFLAGS -Wsequence-point"
16276
16277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16278$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16279		cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
16280		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16281  $as_echo_n "(cached) " >&6
16282else
16283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284/* end confdefs.h.  */
16285int i;
16286int
16287main ()
16288{
16289
16290  ;
16291  return 0;
16292}
16293_ACEOF
16294if ac_fn_c_try_link "$LINENO"; then :
16295  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16296else
16297  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16298fi
16299rm -f core conftest.err conftest.$ac_objext \
16300    conftest$ac_exeext conftest.$ac_ext
16301fi
16302
16303
16304		CFLAGS="$xorg_testset_save_CFLAGS"
16305
16306		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16308$as_echo "$supported" >&6; }
16309		if test "$supported" = "yes" ; then
16310			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16311			found="yes"
16312		fi
16313	fi
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327xorg_testset_save_CFLAGS="$CFLAGS"
16328
16329if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16332$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16333if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16334  $as_echo_n "(cached) " >&6
16335else
16336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337/* end confdefs.h.  */
16338int i;
16339_ACEOF
16340if ac_fn_c_try_compile "$LINENO"; then :
16341  xorg_cv_compiler_flag_unknown_warning_option=yes
16342else
16343  xorg_cv_compiler_flag_unknown_warning_option=no
16344fi
16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346fi
16347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16348$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16349	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16350	CFLAGS="$xorg_testset_save_CFLAGS"
16351fi
16352
16353if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16354	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16356	fi
16357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16359$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16360if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16361  $as_echo_n "(cached) " >&6
16362else
16363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364/* end confdefs.h.  */
16365int i;
16366_ACEOF
16367if ac_fn_c_try_compile "$LINENO"; then :
16368  xorg_cv_compiler_flag_unused_command_line_argument=yes
16369else
16370  xorg_cv_compiler_flag_unused_command_line_argument=no
16371fi
16372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373fi
16374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16375$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16376	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16377	CFLAGS="$xorg_testset_save_CFLAGS"
16378fi
16379
16380found="no"
16381
16382	if test $found = "no" ; then
16383		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16385		fi
16386
16387		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16389		fi
16390
16391		CFLAGS="$CFLAGS -Wreturn-type"
16392
16393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16394$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16395		cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16396		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16397  $as_echo_n "(cached) " >&6
16398else
16399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400/* end confdefs.h.  */
16401int i;
16402int
16403main ()
16404{
16405
16406  ;
16407  return 0;
16408}
16409_ACEOF
16410if ac_fn_c_try_link "$LINENO"; then :
16411  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16412else
16413  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16414fi
16415rm -f core conftest.err conftest.$ac_objext \
16416    conftest$ac_exeext conftest.$ac_ext
16417fi
16418
16419
16420		CFLAGS="$xorg_testset_save_CFLAGS"
16421
16422		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16424$as_echo "$supported" >&6; }
16425		if test "$supported" = "yes" ; then
16426			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16427			found="yes"
16428		fi
16429	fi
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443xorg_testset_save_CFLAGS="$CFLAGS"
16444
16445if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16448$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16449if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16450  $as_echo_n "(cached) " >&6
16451else
16452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453/* end confdefs.h.  */
16454int i;
16455_ACEOF
16456if ac_fn_c_try_compile "$LINENO"; then :
16457  xorg_cv_compiler_flag_unknown_warning_option=yes
16458else
16459  xorg_cv_compiler_flag_unknown_warning_option=no
16460fi
16461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16462fi
16463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16464$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16465	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16466	CFLAGS="$xorg_testset_save_CFLAGS"
16467fi
16468
16469if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16470	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16471		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16472	fi
16473	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16475$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16476if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16477  $as_echo_n "(cached) " >&6
16478else
16479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480/* end confdefs.h.  */
16481int i;
16482_ACEOF
16483if ac_fn_c_try_compile "$LINENO"; then :
16484  xorg_cv_compiler_flag_unused_command_line_argument=yes
16485else
16486  xorg_cv_compiler_flag_unused_command_line_argument=no
16487fi
16488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16489fi
16490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16491$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16492	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16493	CFLAGS="$xorg_testset_save_CFLAGS"
16494fi
16495
16496found="no"
16497
16498	if test $found = "no" ; then
16499		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16501		fi
16502
16503		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16505		fi
16506
16507		CFLAGS="$CFLAGS -Wtrigraphs"
16508
16509		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16510$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16511		cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16512		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16513  $as_echo_n "(cached) " >&6
16514else
16515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516/* end confdefs.h.  */
16517int i;
16518int
16519main ()
16520{
16521
16522  ;
16523  return 0;
16524}
16525_ACEOF
16526if ac_fn_c_try_link "$LINENO"; then :
16527  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16528else
16529  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16530fi
16531rm -f core conftest.err conftest.$ac_objext \
16532    conftest$ac_exeext conftest.$ac_ext
16533fi
16534
16535
16536		CFLAGS="$xorg_testset_save_CFLAGS"
16537
16538		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16539		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16540$as_echo "$supported" >&6; }
16541		if test "$supported" = "yes" ; then
16542			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16543			found="yes"
16544		fi
16545	fi
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559xorg_testset_save_CFLAGS="$CFLAGS"
16560
16561if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16564$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16565if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16566  $as_echo_n "(cached) " >&6
16567else
16568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569/* end confdefs.h.  */
16570int i;
16571_ACEOF
16572if ac_fn_c_try_compile "$LINENO"; then :
16573  xorg_cv_compiler_flag_unknown_warning_option=yes
16574else
16575  xorg_cv_compiler_flag_unknown_warning_option=no
16576fi
16577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16578fi
16579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16580$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16581	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16582	CFLAGS="$xorg_testset_save_CFLAGS"
16583fi
16584
16585if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16586	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16588	fi
16589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16591$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16592if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16593  $as_echo_n "(cached) " >&6
16594else
16595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596/* end confdefs.h.  */
16597int i;
16598_ACEOF
16599if ac_fn_c_try_compile "$LINENO"; then :
16600  xorg_cv_compiler_flag_unused_command_line_argument=yes
16601else
16602  xorg_cv_compiler_flag_unused_command_line_argument=no
16603fi
16604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16605fi
16606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16607$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16608	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16609	CFLAGS="$xorg_testset_save_CFLAGS"
16610fi
16611
16612found="no"
16613
16614	if test $found = "no" ; then
16615		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16617		fi
16618
16619		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16621		fi
16622
16623		CFLAGS="$CFLAGS -Warray-bounds"
16624
16625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16626$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16627		cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16628		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16629  $as_echo_n "(cached) " >&6
16630else
16631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632/* end confdefs.h.  */
16633int i;
16634int
16635main ()
16636{
16637
16638  ;
16639  return 0;
16640}
16641_ACEOF
16642if ac_fn_c_try_link "$LINENO"; then :
16643  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16644else
16645  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16646fi
16647rm -f core conftest.err conftest.$ac_objext \
16648    conftest$ac_exeext conftest.$ac_ext
16649fi
16650
16651
16652		CFLAGS="$xorg_testset_save_CFLAGS"
16653
16654		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16656$as_echo "$supported" >&6; }
16657		if test "$supported" = "yes" ; then
16658			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16659			found="yes"
16660		fi
16661	fi
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675xorg_testset_save_CFLAGS="$CFLAGS"
16676
16677if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16680$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16681if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16682  $as_echo_n "(cached) " >&6
16683else
16684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685/* end confdefs.h.  */
16686int i;
16687_ACEOF
16688if ac_fn_c_try_compile "$LINENO"; then :
16689  xorg_cv_compiler_flag_unknown_warning_option=yes
16690else
16691  xorg_cv_compiler_flag_unknown_warning_option=no
16692fi
16693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16694fi
16695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16696$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16697	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16698	CFLAGS="$xorg_testset_save_CFLAGS"
16699fi
16700
16701if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16702	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16704	fi
16705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16707$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16708if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16709  $as_echo_n "(cached) " >&6
16710else
16711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712/* end confdefs.h.  */
16713int i;
16714_ACEOF
16715if ac_fn_c_try_compile "$LINENO"; then :
16716  xorg_cv_compiler_flag_unused_command_line_argument=yes
16717else
16718  xorg_cv_compiler_flag_unused_command_line_argument=no
16719fi
16720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721fi
16722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16723$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16724	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16725	CFLAGS="$xorg_testset_save_CFLAGS"
16726fi
16727
16728found="no"
16729
16730	if test $found = "no" ; then
16731		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16733		fi
16734
16735		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16737		fi
16738
16739		CFLAGS="$CFLAGS -Wwrite-strings"
16740
16741		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16742$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16743		cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16744		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16745  $as_echo_n "(cached) " >&6
16746else
16747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h.  */
16749int i;
16750int
16751main ()
16752{
16753
16754  ;
16755  return 0;
16756}
16757_ACEOF
16758if ac_fn_c_try_link "$LINENO"; then :
16759  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16760else
16761  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16762fi
16763rm -f core conftest.err conftest.$ac_objext \
16764    conftest$ac_exeext conftest.$ac_ext
16765fi
16766
16767
16768		CFLAGS="$xorg_testset_save_CFLAGS"
16769
16770		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16772$as_echo "$supported" >&6; }
16773		if test "$supported" = "yes" ; then
16774			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16775			found="yes"
16776		fi
16777	fi
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791xorg_testset_save_CFLAGS="$CFLAGS"
16792
16793if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16796$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16797if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16798  $as_echo_n "(cached) " >&6
16799else
16800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h.  */
16802int i;
16803_ACEOF
16804if ac_fn_c_try_compile "$LINENO"; then :
16805  xorg_cv_compiler_flag_unknown_warning_option=yes
16806else
16807  xorg_cv_compiler_flag_unknown_warning_option=no
16808fi
16809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16810fi
16811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16812$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16813	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16814	CFLAGS="$xorg_testset_save_CFLAGS"
16815fi
16816
16817if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16818	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16819		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16820	fi
16821	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16822	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16823$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16824if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16825  $as_echo_n "(cached) " >&6
16826else
16827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828/* end confdefs.h.  */
16829int i;
16830_ACEOF
16831if ac_fn_c_try_compile "$LINENO"; then :
16832  xorg_cv_compiler_flag_unused_command_line_argument=yes
16833else
16834  xorg_cv_compiler_flag_unused_command_line_argument=no
16835fi
16836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16837fi
16838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16839$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16840	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16841	CFLAGS="$xorg_testset_save_CFLAGS"
16842fi
16843
16844found="no"
16845
16846	if test $found = "no" ; then
16847		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16849		fi
16850
16851		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16853		fi
16854
16855		CFLAGS="$CFLAGS -Waddress"
16856
16857		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16858$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16859		cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16860		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16861  $as_echo_n "(cached) " >&6
16862else
16863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864/* end confdefs.h.  */
16865int i;
16866int
16867main ()
16868{
16869
16870  ;
16871  return 0;
16872}
16873_ACEOF
16874if ac_fn_c_try_link "$LINENO"; then :
16875  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16876else
16877  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16878fi
16879rm -f core conftest.err conftest.$ac_objext \
16880    conftest$ac_exeext conftest.$ac_ext
16881fi
16882
16883
16884		CFLAGS="$xorg_testset_save_CFLAGS"
16885
16886		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16887		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16888$as_echo "$supported" >&6; }
16889		if test "$supported" = "yes" ; then
16890			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16891			found="yes"
16892		fi
16893	fi
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907xorg_testset_save_CFLAGS="$CFLAGS"
16908
16909if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16912$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16913if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16914  $as_echo_n "(cached) " >&6
16915else
16916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917/* end confdefs.h.  */
16918int i;
16919_ACEOF
16920if ac_fn_c_try_compile "$LINENO"; then :
16921  xorg_cv_compiler_flag_unknown_warning_option=yes
16922else
16923  xorg_cv_compiler_flag_unknown_warning_option=no
16924fi
16925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926fi
16927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16928$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16929	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16930	CFLAGS="$xorg_testset_save_CFLAGS"
16931fi
16932
16933if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16934	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16936	fi
16937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16939$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16940if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16941  $as_echo_n "(cached) " >&6
16942else
16943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944/* end confdefs.h.  */
16945int i;
16946_ACEOF
16947if ac_fn_c_try_compile "$LINENO"; then :
16948  xorg_cv_compiler_flag_unused_command_line_argument=yes
16949else
16950  xorg_cv_compiler_flag_unused_command_line_argument=no
16951fi
16952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953fi
16954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16955$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16956	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16957	CFLAGS="$xorg_testset_save_CFLAGS"
16958fi
16959
16960found="no"
16961
16962	if test $found = "no" ; then
16963		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16965		fi
16966
16967		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16969		fi
16970
16971		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16972
16973		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16974$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16975		cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16976		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16977  $as_echo_n "(cached) " >&6
16978else
16979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980/* end confdefs.h.  */
16981int i;
16982int
16983main ()
16984{
16985
16986  ;
16987  return 0;
16988}
16989_ACEOF
16990if ac_fn_c_try_link "$LINENO"; then :
16991  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16992else
16993  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16994fi
16995rm -f core conftest.err conftest.$ac_objext \
16996    conftest$ac_exeext conftest.$ac_ext
16997fi
16998
16999
17000		CFLAGS="$xorg_testset_save_CFLAGS"
17001
17002		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17003		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17004$as_echo "$supported" >&6; }
17005		if test "$supported" = "yes" ; then
17006			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17007			found="yes"
17008		fi
17009	fi
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023xorg_testset_save_CFLAGS="$CFLAGS"
17024
17025if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17028$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17029if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17030  $as_echo_n "(cached) " >&6
17031else
17032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033/* end confdefs.h.  */
17034int i;
17035_ACEOF
17036if ac_fn_c_try_compile "$LINENO"; then :
17037  xorg_cv_compiler_flag_unknown_warning_option=yes
17038else
17039  xorg_cv_compiler_flag_unknown_warning_option=no
17040fi
17041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042fi
17043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17044$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17045	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17046	CFLAGS="$xorg_testset_save_CFLAGS"
17047fi
17048
17049if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17050	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17052	fi
17053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17055$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17056if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17057  $as_echo_n "(cached) " >&6
17058else
17059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060/* end confdefs.h.  */
17061int i;
17062_ACEOF
17063if ac_fn_c_try_compile "$LINENO"; then :
17064  xorg_cv_compiler_flag_unused_command_line_argument=yes
17065else
17066  xorg_cv_compiler_flag_unused_command_line_argument=no
17067fi
17068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069fi
17070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17071$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17072	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17073	CFLAGS="$xorg_testset_save_CFLAGS"
17074fi
17075
17076found="no"
17077
17078	if test $found = "no" ; then
17079		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17081		fi
17082
17083		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17085		fi
17086
17087		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17088
17089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17090$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17091		cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
17092		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17093  $as_echo_n "(cached) " >&6
17094else
17095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096/* end confdefs.h.  */
17097int i;
17098int
17099main ()
17100{
17101
17102  ;
17103  return 0;
17104}
17105_ACEOF
17106if ac_fn_c_try_link "$LINENO"; then :
17107  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17108else
17109  eval `$as_echo "$cacheid" | $as_tr_sh`=no
17110fi
17111rm -f core conftest.err conftest.$ac_objext \
17112    conftest$ac_exeext conftest.$ac_ext
17113fi
17114
17115
17116		CFLAGS="$xorg_testset_save_CFLAGS"
17117
17118		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17120$as_echo "$supported" >&6; }
17121		if test "$supported" = "yes" ; then
17122			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17123			found="yes"
17124		fi
17125	fi
17126
17127
17128fi
17129
17130
17131
17132
17133
17134
17135
17136		CWARNFLAGS="$BASE_CFLAGS"
17137		if  test "x$GCC" = xyes ; then
17138		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17139		fi
17140
17141
17142
17143
17144
17145
17146
17147
17148# Check whether --enable-strict-compilation was given.
17149if test "${enable_strict_compilation+set}" = set; then :
17150  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17151else
17152  STRICT_COMPILE=no
17153fi
17154
17155
17156
17157
17158
17159
17160STRICT_CFLAGS=""
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172xorg_testset_save_CFLAGS="$CFLAGS"
17173
17174if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17177$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17178if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17179  $as_echo_n "(cached) " >&6
17180else
17181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182/* end confdefs.h.  */
17183int i;
17184_ACEOF
17185if ac_fn_c_try_compile "$LINENO"; then :
17186  xorg_cv_compiler_flag_unknown_warning_option=yes
17187else
17188  xorg_cv_compiler_flag_unknown_warning_option=no
17189fi
17190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17191fi
17192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17193$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17194	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17195	CFLAGS="$xorg_testset_save_CFLAGS"
17196fi
17197
17198if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17199	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17201	fi
17202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17204$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17205if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17206  $as_echo_n "(cached) " >&6
17207else
17208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209/* end confdefs.h.  */
17210int i;
17211_ACEOF
17212if ac_fn_c_try_compile "$LINENO"; then :
17213  xorg_cv_compiler_flag_unused_command_line_argument=yes
17214else
17215  xorg_cv_compiler_flag_unused_command_line_argument=no
17216fi
17217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218fi
17219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17220$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17221	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17222	CFLAGS="$xorg_testset_save_CFLAGS"
17223fi
17224
17225found="no"
17226
17227	if test $found = "no" ; then
17228		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17230		fi
17231
17232		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17234		fi
17235
17236		CFLAGS="$CFLAGS -pedantic"
17237
17238		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17239$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17240		cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
17241		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17242  $as_echo_n "(cached) " >&6
17243else
17244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245/* end confdefs.h.  */
17246int i;
17247int
17248main ()
17249{
17250
17251  ;
17252  return 0;
17253}
17254_ACEOF
17255if ac_fn_c_try_link "$LINENO"; then :
17256  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17257else
17258  eval `$as_echo "$cacheid" | $as_tr_sh`=no
17259fi
17260rm -f core conftest.err conftest.$ac_objext \
17261    conftest$ac_exeext conftest.$ac_ext
17262fi
17263
17264
17265		CFLAGS="$xorg_testset_save_CFLAGS"
17266
17267		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17268		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17269$as_echo "$supported" >&6; }
17270		if test "$supported" = "yes" ; then
17271			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17272			found="yes"
17273		fi
17274	fi
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288xorg_testset_save_CFLAGS="$CFLAGS"
17289
17290if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17293$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17294if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17295  $as_echo_n "(cached) " >&6
17296else
17297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298/* end confdefs.h.  */
17299int i;
17300_ACEOF
17301if ac_fn_c_try_compile "$LINENO"; then :
17302  xorg_cv_compiler_flag_unknown_warning_option=yes
17303else
17304  xorg_cv_compiler_flag_unknown_warning_option=no
17305fi
17306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17307fi
17308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17309$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17310	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17311	CFLAGS="$xorg_testset_save_CFLAGS"
17312fi
17313
17314if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17315	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17317	fi
17318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17320$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17321if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17322  $as_echo_n "(cached) " >&6
17323else
17324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325/* end confdefs.h.  */
17326int i;
17327_ACEOF
17328if ac_fn_c_try_compile "$LINENO"; then :
17329  xorg_cv_compiler_flag_unused_command_line_argument=yes
17330else
17331  xorg_cv_compiler_flag_unused_command_line_argument=no
17332fi
17333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17334fi
17335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17336$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17337	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17338	CFLAGS="$xorg_testset_save_CFLAGS"
17339fi
17340
17341found="no"
17342
17343	if test $found = "no" ; then
17344		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17346		fi
17347
17348		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17350		fi
17351
17352		CFLAGS="$CFLAGS -Werror"
17353
17354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17355$as_echo_n "checking if $CC supports -Werror... " >&6; }
17356		cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17357		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17358  $as_echo_n "(cached) " >&6
17359else
17360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361/* end confdefs.h.  */
17362int i;
17363int
17364main ()
17365{
17366
17367  ;
17368  return 0;
17369}
17370_ACEOF
17371if ac_fn_c_try_link "$LINENO"; then :
17372  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17373else
17374  eval `$as_echo "$cacheid" | $as_tr_sh`=no
17375fi
17376rm -f core conftest.err conftest.$ac_objext \
17377    conftest$ac_exeext conftest.$ac_ext
17378fi
17379
17380
17381		CFLAGS="$xorg_testset_save_CFLAGS"
17382
17383		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17385$as_echo "$supported" >&6; }
17386		if test "$supported" = "yes" ; then
17387			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17388			found="yes"
17389		fi
17390	fi
17391
17392	if test $found = "no" ; then
17393		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17394			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17395		fi
17396
17397		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17398			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17399		fi
17400
17401		CFLAGS="$CFLAGS -errwarn"
17402
17403		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17404$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17405		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17406		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17407  $as_echo_n "(cached) " >&6
17408else
17409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410/* end confdefs.h.  */
17411int i;
17412int
17413main ()
17414{
17415
17416  ;
17417  return 0;
17418}
17419_ACEOF
17420if ac_fn_c_try_link "$LINENO"; then :
17421  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17422else
17423  eval `$as_echo "$cacheid" | $as_tr_sh`=no
17424fi
17425rm -f core conftest.err conftest.$ac_objext \
17426    conftest$ac_exeext conftest.$ac_ext
17427fi
17428
17429
17430		CFLAGS="$xorg_testset_save_CFLAGS"
17431
17432		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17433		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17434$as_echo "$supported" >&6; }
17435		if test "$supported" = "yes" ; then
17436			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17437			found="yes"
17438		fi
17439	fi
17440
17441
17442
17443# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17444# activate it with -Werror, so we add it here explicitly.
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456xorg_testset_save_CFLAGS="$CFLAGS"
17457
17458if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17461$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17462if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17463  $as_echo_n "(cached) " >&6
17464else
17465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466/* end confdefs.h.  */
17467int i;
17468_ACEOF
17469if ac_fn_c_try_compile "$LINENO"; then :
17470  xorg_cv_compiler_flag_unknown_warning_option=yes
17471else
17472  xorg_cv_compiler_flag_unknown_warning_option=no
17473fi
17474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475fi
17476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17477$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17478	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17479	CFLAGS="$xorg_testset_save_CFLAGS"
17480fi
17481
17482if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17483	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485	fi
17486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17488$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17489if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17490  $as_echo_n "(cached) " >&6
17491else
17492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493/* end confdefs.h.  */
17494int i;
17495_ACEOF
17496if ac_fn_c_try_compile "$LINENO"; then :
17497  xorg_cv_compiler_flag_unused_command_line_argument=yes
17498else
17499  xorg_cv_compiler_flag_unused_command_line_argument=no
17500fi
17501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502fi
17503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17504$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17505	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17506	CFLAGS="$xorg_testset_save_CFLAGS"
17507fi
17508
17509found="no"
17510
17511	if test $found = "no" ; then
17512		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17514		fi
17515
17516		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17518		fi
17519
17520		CFLAGS="$CFLAGS -Werror=attributes"
17521
17522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17523$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17524		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17525		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17526  $as_echo_n "(cached) " >&6
17527else
17528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529/* end confdefs.h.  */
17530int i;
17531int
17532main ()
17533{
17534
17535  ;
17536  return 0;
17537}
17538_ACEOF
17539if ac_fn_c_try_link "$LINENO"; then :
17540  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17541else
17542  eval `$as_echo "$cacheid" | $as_tr_sh`=no
17543fi
17544rm -f core conftest.err conftest.$ac_objext \
17545    conftest$ac_exeext conftest.$ac_ext
17546fi
17547
17548
17549		CFLAGS="$xorg_testset_save_CFLAGS"
17550
17551		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17553$as_echo "$supported" >&6; }
17554		if test "$supported" = "yes" ; then
17555			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17556			found="yes"
17557		fi
17558	fi
17559
17560
17561
17562if test "x$STRICT_COMPILE" = "xyes"; then
17563    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17564    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17565fi
17566
17567
17568
17569
17570
17571
17572cat >>confdefs.h <<_ACEOF
17573#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17574_ACEOF
17575
17576	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17577	if test "x$PVM" = "x"; then
17578		PVM="0"
17579	fi
17580
17581cat >>confdefs.h <<_ACEOF
17582#define PACKAGE_VERSION_MINOR $PVM
17583_ACEOF
17584
17585	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17586	if test "x$PVP" = "x"; then
17587		PVP="0"
17588	fi
17589
17590cat >>confdefs.h <<_ACEOF
17591#define PACKAGE_VERSION_PATCHLEVEL $PVP
17592_ACEOF
17593
17594
17595
17596CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17597mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17598|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17599echo 'git directory not found: installing possibly empty changelog.' >&2)"
17600
17601
17602
17603
17604macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17605INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17606mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17607|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17608echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17609
17610
17611
17612
17613
17614
17615if test x$APP_MAN_SUFFIX = x    ; then
17616    APP_MAN_SUFFIX=1
17617fi
17618if test x$APP_MAN_DIR = x    ; then
17619    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17620fi
17621
17622if test x$LIB_MAN_SUFFIX = x    ; then
17623    LIB_MAN_SUFFIX=3
17624fi
17625if test x$LIB_MAN_DIR = x    ; then
17626    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17627fi
17628
17629if test x$FILE_MAN_SUFFIX = x    ; then
17630    case $host_os in
17631	solaris*)	FILE_MAN_SUFFIX=4  ;;
17632	*)		FILE_MAN_SUFFIX=5  ;;
17633    esac
17634fi
17635if test x$FILE_MAN_DIR = x    ; then
17636    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17637fi
17638
17639if test x$MISC_MAN_SUFFIX = x    ; then
17640    case $host_os in
17641	solaris*)	MISC_MAN_SUFFIX=5  ;;
17642	*)		MISC_MAN_SUFFIX=7  ;;
17643    esac
17644fi
17645if test x$MISC_MAN_DIR = x    ; then
17646    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17647fi
17648
17649if test x$DRIVER_MAN_SUFFIX = x    ; then
17650    case $host_os in
17651	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17652	*)		DRIVER_MAN_SUFFIX=4  ;;
17653    esac
17654fi
17655if test x$DRIVER_MAN_DIR = x    ; then
17656    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17657fi
17658
17659if test x$ADMIN_MAN_SUFFIX = x    ; then
17660    case $host_os in
17661	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17662	*)		ADMIN_MAN_SUFFIX=8  ;;
17663    esac
17664fi
17665if test x$ADMIN_MAN_DIR = x    ; then
17666    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17667fi
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683XORG_MAN_PAGE="X Version 11"
17684
17685MAN_SUBSTS="\
17686	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17687	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17688	-e 's|__xservername__|Xorg|g' \
17689	-e 's|__xconfigfile__|xorg.conf|g' \
17690	-e 's|__projectroot__|\$(prefix)|g' \
17691	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17692	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17693	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17694	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17695	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17696	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17697	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17698
17699
17700
17701# Check whether --enable-silent-rules was given.
17702if test "${enable_silent_rules+set}" = set; then :
17703  enableval=$enable_silent_rules;
17704fi
17705
17706case $enable_silent_rules in
17707yes) AM_DEFAULT_VERBOSITY=0;;
17708no)  AM_DEFAULT_VERBOSITY=1;;
17709*)   AM_DEFAULT_VERBOSITY=0;;
17710esac
17711AM_BACKSLASH='\'
17712
17713
17714
17715
17716# Check whether --enable-devel-docs was given.
17717if test "${enable_devel_docs+set}" = set; then :
17718  enableval=$enable_devel_docs; build_devel_docs=$enableval
17719else
17720  build_devel_docs=yes
17721fi
17722
17723
17724 if test x$build_devel_docs = xyes; then
17725  ENABLE_DEVEL_DOCS_TRUE=
17726  ENABLE_DEVEL_DOCS_FALSE='#'
17727else
17728  ENABLE_DEVEL_DOCS_TRUE='#'
17729  ENABLE_DEVEL_DOCS_FALSE=
17730fi
17731
17732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
17733$as_echo_n "checking whether to build developer documentation... " >&6; }
17734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
17735$as_echo "$build_devel_docs" >&6; }
17736
17737
17738
17739
17740
17741# Check whether --with-xmlto was given.
17742if test "${with_xmlto+set}" = set; then :
17743  withval=$with_xmlto; use_xmlto=$withval
17744else
17745  use_xmlto=auto
17746fi
17747
17748
17749
17750if test "x$use_xmlto" = x"auto"; then
17751   # Extract the first word of "xmlto", so it can be a program name with args.
17752set dummy xmlto; ac_word=$2
17753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17754$as_echo_n "checking for $ac_word... " >&6; }
17755if ${ac_cv_path_XMLTO+:} false; then :
17756  $as_echo_n "(cached) " >&6
17757else
17758  case $XMLTO in
17759  [\\/]* | ?:[\\/]*)
17760  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17761  ;;
17762  *)
17763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17764for as_dir in $PATH
17765do
17766  IFS=$as_save_IFS
17767  test -z "$as_dir" && as_dir=.
17768    for ac_exec_ext in '' $ac_executable_extensions; do
17769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17770    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17772    break 2
17773  fi
17774done
17775  done
17776IFS=$as_save_IFS
17777
17778  ;;
17779esac
17780fi
17781XMLTO=$ac_cv_path_XMLTO
17782if test -n "$XMLTO"; then
17783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17784$as_echo "$XMLTO" >&6; }
17785else
17786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17787$as_echo "no" >&6; }
17788fi
17789
17790
17791   if test "x$XMLTO" = "x"; then
17792        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17793$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17794	have_xmlto=no
17795   else
17796        have_xmlto=yes
17797   fi
17798elif test "x$use_xmlto" = x"yes" ; then
17799   # Extract the first word of "xmlto", so it can be a program name with args.
17800set dummy xmlto; ac_word=$2
17801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17802$as_echo_n "checking for $ac_word... " >&6; }
17803if ${ac_cv_path_XMLTO+:} false; then :
17804  $as_echo_n "(cached) " >&6
17805else
17806  case $XMLTO in
17807  [\\/]* | ?:[\\/]*)
17808  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17809  ;;
17810  *)
17811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17812for as_dir in $PATH
17813do
17814  IFS=$as_save_IFS
17815  test -z "$as_dir" && as_dir=.
17816    for ac_exec_ext in '' $ac_executable_extensions; do
17817  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17818    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17820    break 2
17821  fi
17822done
17823  done
17824IFS=$as_save_IFS
17825
17826  ;;
17827esac
17828fi
17829XMLTO=$ac_cv_path_XMLTO
17830if test -n "$XMLTO"; then
17831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17832$as_echo "$XMLTO" >&6; }
17833else
17834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17835$as_echo "no" >&6; }
17836fi
17837
17838
17839   if test "x$XMLTO" = "x"; then
17840        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
17841   fi
17842   have_xmlto=yes
17843elif test "x$use_xmlto" = x"no" ; then
17844   if test "x$XMLTO" != "x"; then
17845      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
17846$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
17847   fi
17848   have_xmlto=no
17849else
17850   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
17851fi
17852
17853# Test for a minimum version of xmlto, if provided.
17854if test "$have_xmlto" = yes; then
17855    # scrape the xmlto version
17856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
17857$as_echo_n "checking the xmlto version... " >&6; }
17858    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
17859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
17860$as_echo "$xmlto_version" >&6; }
17861    as_arg_v1=$xmlto_version
17862as_arg_v2=0.0.22
17863awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17864case $? in #(
17865  1) :
17866    if test "x$use_xmlto" = xauto; then
17867            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
17868$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
17869            have_xmlto=no
17870        else
17871            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
17872        fi ;; #(
17873  0) :
17874     ;; #(
17875  2) :
17876     ;; #(
17877  *) :
17878     ;;
17879esac
17880fi
17881
17882# Test for the ability of xmlto to generate a text target
17883have_xmlto_text=no
17884cat > conftest.xml << "EOF"
17885EOF
17886if test "$have_xmlto" = yes; then :
17887  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
17888  have_xmlto_text=yes
17889else
17890  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
17891$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
17892fi
17893fi
17894rm -f conftest.xml
17895 if test $have_xmlto_text = yes; then
17896  HAVE_XMLTO_TEXT_TRUE=
17897  HAVE_XMLTO_TEXT_FALSE='#'
17898else
17899  HAVE_XMLTO_TEXT_TRUE='#'
17900  HAVE_XMLTO_TEXT_FALSE=
17901fi
17902
17903 if test "$have_xmlto" = yes; then
17904  HAVE_XMLTO_TRUE=
17905  HAVE_XMLTO_FALSE='#'
17906else
17907  HAVE_XMLTO_TRUE='#'
17908  HAVE_XMLTO_FALSE=
17909fi
17910
17911
17912
17913
17914
17915
17916# Check whether --with-fop was given.
17917if test "${with_fop+set}" = set; then :
17918  withval=$with_fop; use_fop=$withval
17919else
17920  use_fop=auto
17921fi
17922
17923
17924
17925if test "x$use_fop" = x"auto"; then
17926   # Extract the first word of "fop", so it can be a program name with args.
17927set dummy fop; ac_word=$2
17928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17929$as_echo_n "checking for $ac_word... " >&6; }
17930if ${ac_cv_path_FOP+:} false; then :
17931  $as_echo_n "(cached) " >&6
17932else
17933  case $FOP in
17934  [\\/]* | ?:[\\/]*)
17935  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17936  ;;
17937  *)
17938  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17939for as_dir in $PATH
17940do
17941  IFS=$as_save_IFS
17942  test -z "$as_dir" && as_dir=.
17943    for ac_exec_ext in '' $ac_executable_extensions; do
17944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17945    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17947    break 2
17948  fi
17949done
17950  done
17951IFS=$as_save_IFS
17952
17953  ;;
17954esac
17955fi
17956FOP=$ac_cv_path_FOP
17957if test -n "$FOP"; then
17958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17959$as_echo "$FOP" >&6; }
17960else
17961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17962$as_echo "no" >&6; }
17963fi
17964
17965
17966   if test "x$FOP" = "x"; then
17967        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
17968$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
17969	have_fop=no
17970   else
17971        have_fop=yes
17972   fi
17973elif test "x$use_fop" = x"yes" ; then
17974   # Extract the first word of "fop", so it can be a program name with args.
17975set dummy fop; ac_word=$2
17976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17977$as_echo_n "checking for $ac_word... " >&6; }
17978if ${ac_cv_path_FOP+:} false; then :
17979  $as_echo_n "(cached) " >&6
17980else
17981  case $FOP in
17982  [\\/]* | ?:[\\/]*)
17983  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17984  ;;
17985  *)
17986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17987for as_dir in $PATH
17988do
17989  IFS=$as_save_IFS
17990  test -z "$as_dir" && as_dir=.
17991    for ac_exec_ext in '' $ac_executable_extensions; do
17992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17993    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17995    break 2
17996  fi
17997done
17998  done
17999IFS=$as_save_IFS
18000
18001  ;;
18002esac
18003fi
18004FOP=$ac_cv_path_FOP
18005if test -n "$FOP"; then
18006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18007$as_echo "$FOP" >&6; }
18008else
18009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18010$as_echo "no" >&6; }
18011fi
18012
18013
18014   if test "x$FOP" = "x"; then
18015        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18016   fi
18017   have_fop=yes
18018elif test "x$use_fop" = x"no" ; then
18019   if test "x$FOP" != "x"; then
18020      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18021$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18022   fi
18023   have_fop=no
18024else
18025   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18026fi
18027
18028# Test for a minimum version of fop, if provided.
18029
18030 if test "$have_fop" = yes; then
18031  HAVE_FOP_TRUE=
18032  HAVE_FOP_FALSE='#'
18033else
18034  HAVE_FOP_TRUE='#'
18035  HAVE_FOP_FALSE=
18036fi
18037
18038
18039
18040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
18041$as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; }
18042XORG_SGML_PATH=
18043if test -n "$PKG_CONFIG" && \
18044    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
18045  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
18046  ac_status=$?
18047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18048  test $ac_status = 0; }; then
18049  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18050else
18051  :
18052
18053fi
18054
18055# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18056# the path and the name of the doc stylesheet
18057if test "x$XORG_SGML_PATH" != "x" ; then
18058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18059$as_echo "$XORG_SGML_PATH" >&6; }
18060   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18061   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18062else
18063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18064$as_echo "no" >&6; }
18065fi
18066
18067
18068
18069
18070 if test "x$XSL_STYLESHEET" != "x"; then
18071  HAVE_STYLESHEETS_TRUE=
18072  HAVE_STYLESHEETS_FALSE='#'
18073else
18074  HAVE_STYLESHEETS_TRUE='#'
18075  HAVE_STYLESHEETS_FALSE=
18076fi
18077
18078
18079
18080# Checks for header files.
18081for ac_header in endian.h poll.h sys/poll.h
18082do :
18083  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18084ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18085if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18086  cat >>confdefs.h <<_ACEOF
18087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18088_ACEOF
18089
18090fi
18091
18092done
18093
18094
18095# Checks for library functions.
18096for ac_func in poll
18097do :
18098  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
18099if test "x$ac_cv_func_poll" = xyes; then :
18100  cat >>confdefs.h <<_ACEOF
18101#define HAVE_POLL 1
18102_ACEOF
18103
18104fi
18105done
18106
18107
18108# If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config
18109# must first be located explicitly.
18110
18111
18112if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18113	if test -n "$ac_tool_prefix"; then
18114  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18115set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18117$as_echo_n "checking for $ac_word... " >&6; }
18118if ${ac_cv_path_PKG_CONFIG+:} false; then :
18119  $as_echo_n "(cached) " >&6
18120else
18121  case $PKG_CONFIG in
18122  [\\/]* | ?:[\\/]*)
18123  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18124  ;;
18125  *)
18126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18127for as_dir in $PATH
18128do
18129  IFS=$as_save_IFS
18130  test -z "$as_dir" && as_dir=.
18131    for ac_exec_ext in '' $ac_executable_extensions; do
18132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18133    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18135    break 2
18136  fi
18137done
18138  done
18139IFS=$as_save_IFS
18140
18141  ;;
18142esac
18143fi
18144PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18145if test -n "$PKG_CONFIG"; then
18146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18147$as_echo "$PKG_CONFIG" >&6; }
18148else
18149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150$as_echo "no" >&6; }
18151fi
18152
18153
18154fi
18155if test -z "$ac_cv_path_PKG_CONFIG"; then
18156  ac_pt_PKG_CONFIG=$PKG_CONFIG
18157  # Extract the first word of "pkg-config", so it can be a program name with args.
18158set dummy pkg-config; ac_word=$2
18159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18160$as_echo_n "checking for $ac_word... " >&6; }
18161if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18162  $as_echo_n "(cached) " >&6
18163else
18164  case $ac_pt_PKG_CONFIG in
18165  [\\/]* | ?:[\\/]*)
18166  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18167  ;;
18168  *)
18169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18170for as_dir in $PATH
18171do
18172  IFS=$as_save_IFS
18173  test -z "$as_dir" && as_dir=.
18174    for ac_exec_ext in '' $ac_executable_extensions; do
18175  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18176    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18178    break 2
18179  fi
18180done
18181  done
18182IFS=$as_save_IFS
18183
18184  ;;
18185esac
18186fi
18187ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18188if test -n "$ac_pt_PKG_CONFIG"; then
18189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18190$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18191else
18192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193$as_echo "no" >&6; }
18194fi
18195
18196  if test "x$ac_pt_PKG_CONFIG" = x; then
18197    PKG_CONFIG=""
18198  else
18199    case $cross_compiling:$ac_tool_warned in
18200yes:)
18201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18203ac_tool_warned=yes ;;
18204esac
18205    PKG_CONFIG=$ac_pt_PKG_CONFIG
18206  fi
18207else
18208  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18209fi
18210
18211fi
18212if test -n "$PKG_CONFIG"; then
18213	_pkg_min_version=0.9.0
18214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18215$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18216	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18218$as_echo "yes" >&6; }
18219	else
18220		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221$as_echo "no" >&6; }
18222		PKG_CONFIG=""
18223	fi
18224
18225fi
18226
18227#
18228# select libraries to include
18229#
18230
18231XFONT_FONTFILE=no
18232
18233#
18234# Scalable fonts in files:
18235# 	FreeType
18236#	Bitstream Speedo rasterizer
18237#
18238# Check whether --enable-freetype was given.
18239if test "${enable_freetype+set}" = set; then :
18240  enableval=$enable_freetype; XFONT_FREETYPE=$enableval
18241else
18242  XFONT_FREETYPE=yes
18243fi
18244
18245 if test x$XFONT_FREETYPE = xyes; then
18246  XFONT_FREETYPE_TRUE=
18247  XFONT_FREETYPE_FALSE='#'
18248else
18249  XFONT_FREETYPE_TRUE='#'
18250  XFONT_FREETYPE_FALSE=
18251fi
18252
18253if test x$XFONT_FREETYPE = xyes; then
18254
18255$as_echo "#define XFONT_FREETYPE 1" >>confdefs.h
18256
18257
18258# Check whether --with-freetype-config was given.
18259if test "${with_freetype_config+set}" = set; then :
18260  withval=$with_freetype_config; freetype_config=$withval
18261else
18262  freetype_config=auto
18263fi
18264
18265
18266	if test "$freetype_config" = "auto" ; then
18267
18268pkg_failed=no
18269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18270$as_echo_n "checking for FREETYPE... " >&6; }
18271
18272if test -n "$FREETYPE_CFLAGS"; then
18273    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18274 elif test -n "$PKG_CONFIG"; then
18275    if test -n "$PKG_CONFIG" && \
18276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18277  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18278  ac_status=$?
18279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18280  test $ac_status = 0; }; then
18281  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
18282else
18283  pkg_failed=yes
18284fi
18285 else
18286    pkg_failed=untried
18287fi
18288if test -n "$FREETYPE_LIBS"; then
18289    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18290 elif test -n "$PKG_CONFIG"; then
18291    if test -n "$PKG_CONFIG" && \
18292    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18293  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18294  ac_status=$?
18295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18296  test $ac_status = 0; }; then
18297  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
18298else
18299  pkg_failed=yes
18300fi
18301 else
18302    pkg_failed=untried
18303fi
18304
18305
18306
18307if test $pkg_failed = yes; then
18308
18309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18310        _pkg_short_errors_supported=yes
18311else
18312        _pkg_short_errors_supported=no
18313fi
18314        if test $_pkg_short_errors_supported = yes; then
18315	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
18316        else
18317	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
18318        fi
18319	# Put the nasty error message in config.log where it belongs
18320	echo "$FREETYPE_PKG_ERRORS" >&5
18321
18322	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323$as_echo "no" >&6; }
18324                freetype_config=yes
18325elif test $pkg_failed = untried; then
18326	freetype_config=yes
18327else
18328	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18329	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18330        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18331$as_echo "yes" >&6; }
18332	freetype_config=no
18333fi
18334	fi
18335
18336	if test "$freetype_config" = "yes"; then
18337		# Extract the first word of "freetype-config", so it can be a program name with args.
18338set dummy freetype-config; ac_word=$2
18339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18340$as_echo_n "checking for $ac_word... " >&6; }
18341if ${ac_cv_path_ft_config+:} false; then :
18342  $as_echo_n "(cached) " >&6
18343else
18344  case $ft_config in
18345  [\\/]* | ?:[\\/]*)
18346  ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
18347  ;;
18348  *)
18349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18350for as_dir in $PATH
18351do
18352  IFS=$as_save_IFS
18353  test -z "$as_dir" && as_dir=.
18354    for ac_exec_ext in '' $ac_executable_extensions; do
18355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18356    ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
18357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18358    break 2
18359  fi
18360done
18361  done
18362IFS=$as_save_IFS
18363
18364  test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
18365  ;;
18366esac
18367fi
18368ft_config=$ac_cv_path_ft_config
18369if test -n "$ft_config"; then
18370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
18371$as_echo "$ft_config" >&6; }
18372else
18373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18374$as_echo "no" >&6; }
18375fi
18376
18377
18378		if test "$ft_config" = "no"; then
18379			as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
18380		fi
18381	else
18382		ft_config="$freetype_config"
18383	fi
18384
18385	if test "$freetype_config" != "no"; then
18386		FREETYPE_CFLAGS="`$ft_config --cflags`"
18387		FREETYPE_LIBS="`$ft_config --libs`"
18388	fi
18389	FREETYPE_REQUIRES="freetype2"
18390	XFONT_FONTFILE=yes
18391else
18392	FREETYPE_CFLAGS=""
18393	FREETYPE_LIBS=""
18394	FREETYPE_REQUIRES=""
18395fi
18396
18397
18398
18399
18400#
18401# Bitmap fonts in files:
18402#	Builtins (gzipped pcf format in .text segment)
18403#	PCF
18404#	BDF
18405#	SNF
18406#
18407
18408
18409$as_echo "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h
18410
18411X_GZIP_FONT_COMPRESSION=1
18412
18413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18414$as_echo_n "checking for gzopen in -lz... " >&6; }
18415if ${ac_cv_lib_z_gzopen+:} false; then :
18416  $as_echo_n "(cached) " >&6
18417else
18418  ac_check_lib_save_LIBS=$LIBS
18419LIBS="-lz  $LIBS"
18420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421/* end confdefs.h.  */
18422
18423/* Override any GCC internal prototype to avoid an error.
18424   Use char because int might match the return type of a GCC
18425   builtin and then its argument prototype would still apply.  */
18426#ifdef __cplusplus
18427extern "C"
18428#endif
18429char gzopen ();
18430int
18431main ()
18432{
18433return gzopen ();
18434  ;
18435  return 0;
18436}
18437_ACEOF
18438if ac_fn_c_try_link "$LINENO"; then :
18439  ac_cv_lib_z_gzopen=yes
18440else
18441  ac_cv_lib_z_gzopen=no
18442fi
18443rm -f core conftest.err conftest.$ac_objext \
18444    conftest$ac_exeext conftest.$ac_ext
18445LIBS=$ac_check_lib_save_LIBS
18446fi
18447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18448$as_echo "$ac_cv_lib_z_gzopen" >&6; }
18449if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18450  Z_LIBS=-lz
18451else
18452  as_fn_error $? "*** zlib is required" "$LINENO" 5
18453fi
18454
18455
18456
18457# Check whether --with-bzip2 was given.
18458if test "${with_bzip2+set}" = set; then :
18459  withval=$with_bzip2;
18460else
18461  with_bzip2=no
18462fi
18463
18464if test "x$with_bzip2" = xyes; then
18465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
18466$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
18467if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
18468  $as_echo_n "(cached) " >&6
18469else
18470  ac_check_lib_save_LIBS=$LIBS
18471LIBS="-lbz2  $LIBS"
18472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473/* end confdefs.h.  */
18474
18475/* Override any GCC internal prototype to avoid an error.
18476   Use char because int might match the return type of a GCC
18477   builtin and then its argument prototype would still apply.  */
18478#ifdef __cplusplus
18479extern "C"
18480#endif
18481char BZ2_bzopen ();
18482int
18483main ()
18484{
18485return BZ2_bzopen ();
18486  ;
18487  return 0;
18488}
18489_ACEOF
18490if ac_fn_c_try_link "$LINENO"; then :
18491  ac_cv_lib_bz2_BZ2_bzopen=yes
18492else
18493  ac_cv_lib_bz2_BZ2_bzopen=no
18494fi
18495rm -f core conftest.err conftest.$ac_objext \
18496    conftest$ac_exeext conftest.$ac_ext
18497LIBS=$ac_check_lib_save_LIBS
18498fi
18499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
18500$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
18501if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
18502  Z_LIBS="$Z_LIBS -lbz2"
18503else
18504  as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
18505fi
18506
18507
18508$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
18509
18510fi
18511 if test "x$with_bzip2" = xyes ; then
18512  X_BZIP2_FONT_COMPRESSION_TRUE=
18513  X_BZIP2_FONT_COMPRESSION_FALSE='#'
18514else
18515  X_BZIP2_FONT_COMPRESSION_TRUE='#'
18516  X_BZIP2_FONT_COMPRESSION_FALSE=
18517fi
18518
18519
18520
18521# Check whether --enable-builtins was given.
18522if test "${enable_builtins+set}" = set; then :
18523  enableval=$enable_builtins; XFONT_BUILTINS=$enableval
18524else
18525  XFONT_BUILTINS=yes
18526fi
18527
18528 if test "x$XFONT_BUILTINS" = xyes ; then
18529  XFONT_BUILTINS_TRUE=
18530  XFONT_BUILTINS_FALSE='#'
18531else
18532  XFONT_BUILTINS_TRUE='#'
18533  XFONT_BUILTINS_FALSE=
18534fi
18535
18536if test "x$XFONT_BUILTINS" = xyes; then
18537
18538$as_echo "#define XFONT_BUILTINS 1" >>confdefs.h
18539
18540	XFONT_BITMAP=yes
18541fi
18542
18543# Check whether --enable-pcfformat was given.
18544if test "${enable_pcfformat+set}" = set; then :
18545  enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval
18546else
18547  XFONT_PCFFORMAT=yes
18548fi
18549
18550 if test "x$XFONT_PCFFORMAT" = xyes; then
18551  XFONT_PCFFORMAT_TRUE=
18552  XFONT_PCFFORMAT_FALSE='#'
18553else
18554  XFONT_PCFFORMAT_TRUE='#'
18555  XFONT_PCFFORMAT_FALSE=
18556fi
18557
18558if test "x$XFONT_PCFFORMAT" = xyes; then
18559
18560$as_echo "#define XFONT_PCFFORMAT 1" >>confdefs.h
18561
18562	XFONT_BITMAP=yes
18563fi
18564
18565# Check whether --enable-bdfformat was given.
18566if test "${enable_bdfformat+set}" = set; then :
18567  enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval
18568else
18569  XFONT_BDFFORMAT=yes
18570fi
18571
18572 if test "x$XFONT_BDFFORMAT" = xyes; then
18573  XFONT_BDFFORMAT_TRUE=
18574  XFONT_BDFFORMAT_FALSE='#'
18575else
18576  XFONT_BDFFORMAT_TRUE='#'
18577  XFONT_BDFFORMAT_FALSE=
18578fi
18579
18580if test "x$XFONT_BDFFORMAT" = xyes; then
18581
18582$as_echo "#define XFONT_BDFFORMAT 1" >>confdefs.h
18583
18584	XFONT_BITMAP=yes
18585fi
18586
18587# Check whether --enable-snfformat was given.
18588if test "${enable_snfformat+set}" = set; then :
18589  enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval
18590else
18591  XFONT_SNFFORMAT=yes
18592fi
18593
18594 if test "x$XFONT_SNFFORMAT" = xyes; then
18595  XFONT_SNFFORMAT_TRUE=
18596  XFONT_SNFFORMAT_FALSE='#'
18597else
18598  XFONT_SNFFORMAT_TRUE='#'
18599  XFONT_SNFFORMAT_FALSE=
18600fi
18601
18602if test "x$XFONT_SNFFORMAT" = xyes; then
18603
18604$as_echo "#define XFONT_SNFFORMAT 1" >>confdefs.h
18605
18606	XFONT_BITMAP=yes
18607fi
18608
18609 if test "x$XFONT_BITMAP" = xyes ; then
18610  XFONT_BITMAP_TRUE=
18611  XFONT_BITMAP_FALSE='#'
18612else
18613  XFONT_BITMAP_TRUE='#'
18614  XFONT_BITMAP_FALSE=
18615fi
18616
18617if test "x$XFONT_BITMAP" = xyes; then
18618
18619$as_echo "#define XFONT_BITMAP 1" >>confdefs.h
18620
18621	XFONT_FONTFILE=yes
18622fi
18623
18624 if test "x$XFONT_FONTFILE" = xyes; then
18625  XFONT_FONTFILE_TRUE=
18626  XFONT_FONTFILE_FALSE='#'
18627else
18628  XFONT_FONTFILE_TRUE='#'
18629  XFONT_FONTFILE_FALSE=
18630fi
18631
18632if test "x$XFONT_FONTFILE" = xyes; then
18633
18634$as_echo "#define XFONT_FONTFILE 1" >>confdefs.h
18635
18636fi
18637
18638#
18639# Support connection to font servers?
18640#
18641
18642# Check whether --enable-fc was given.
18643if test "${enable_fc+set}" = set; then :
18644  enableval=$enable_fc; XFONT_FC=$enableval
18645else
18646  XFONT_FC=yes
18647fi
18648
18649 if test "x$XFONT_FC" = xyes; then
18650  XFONT_FC_TRUE=
18651  XFONT_FC_FALSE='#'
18652else
18653  XFONT_FC_TRUE='#'
18654  XFONT_FC_FALSE=
18655fi
18656
18657if test "x$XFONT_FC" = xyes; then
18658
18659$as_echo "#define XFONT_FC 1" >>confdefs.h
18660
18661fi
18662
18663
18664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
18665$as_echo_n "checking for hypot in -lm... " >&6; }
18666if ${ac_cv_lib_m_hypot+:} false; then :
18667  $as_echo_n "(cached) " >&6
18668else
18669  ac_check_lib_save_LIBS=$LIBS
18670LIBS="-lm  $LIBS"
18671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18672/* end confdefs.h.  */
18673
18674/* Override any GCC internal prototype to avoid an error.
18675   Use char because int might match the return type of a GCC
18676   builtin and then its argument prototype would still apply.  */
18677#ifdef __cplusplus
18678extern "C"
18679#endif
18680char hypot ();
18681int
18682main ()
18683{
18684return hypot ();
18685  ;
18686  return 0;
18687}
18688_ACEOF
18689if ac_fn_c_try_link "$LINENO"; then :
18690  ac_cv_lib_m_hypot=yes
18691else
18692  ac_cv_lib_m_hypot=no
18693fi
18694rm -f core conftest.err conftest.$ac_objext \
18695    conftest$ac_exeext conftest.$ac_ext
18696LIBS=$ac_check_lib_save_LIBS
18697fi
18698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
18699$as_echo "$ac_cv_lib_m_hypot" >&6; }
18700if test "x$ac_cv_lib_m_hypot" = xyes; then :
18701  MATH_LIBS=-lm
18702
18703else
18704  as_fn_error $? "*** libm is required" "$LINENO" 5
18705fi
18706
18707
18708
18709pkg_failed=no
18710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5
18711$as_echo_n "checking for XFONT... " >&6; }
18712
18713if test -n "$XFONT_CFLAGS"; then
18714    pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
18715 elif test -n "$PKG_CONFIG"; then
18716    if test -n "$PKG_CONFIG" && \
18717    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto fontenc\""; } >&5
18718  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto fontenc") 2>&5
18719  ac_status=$?
18720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18721  test $ac_status = 0; }; then
18722  pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto fontenc" 2>/dev/null`
18723else
18724  pkg_failed=yes
18725fi
18726 else
18727    pkg_failed=untried
18728fi
18729if test -n "$XFONT_LIBS"; then
18730    pkg_cv_XFONT_LIBS="$XFONT_LIBS"
18731 elif test -n "$PKG_CONFIG"; then
18732    if test -n "$PKG_CONFIG" && \
18733    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto fontenc\""; } >&5
18734  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto fontenc") 2>&5
18735  ac_status=$?
18736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18737  test $ac_status = 0; }; then
18738  pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto fontenc" 2>/dev/null`
18739else
18740  pkg_failed=yes
18741fi
18742 else
18743    pkg_failed=untried
18744fi
18745
18746
18747
18748if test $pkg_failed = yes; then
18749
18750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18751        _pkg_short_errors_supported=yes
18752else
18753        _pkg_short_errors_supported=no
18754fi
18755        if test $_pkg_short_errors_supported = yes; then
18756	        XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto xtrans fontsproto fontenc" 2>&1`
18757        else
18758	        XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto xtrans fontsproto fontenc" 2>&1`
18759        fi
18760	# Put the nasty error message in config.log where it belongs
18761	echo "$XFONT_PKG_ERRORS" >&5
18762
18763	as_fn_error $? "Package requirements (xproto xtrans fontsproto fontenc) were not met:
18764
18765$XFONT_PKG_ERRORS
18766
18767Consider adjusting the PKG_CONFIG_PATH environment variable if you
18768installed software in a non-standard prefix.
18769
18770Alternatively, you may set the environment variables XFONT_CFLAGS
18771and XFONT_LIBS to avoid the need to call pkg-config.
18772See the pkg-config man page for more details.
18773" "$LINENO" 5
18774elif test $pkg_failed = untried; then
18775	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18777as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18778is in your PATH or set the PKG_CONFIG environment variable to the full
18779path to pkg-config.
18780
18781Alternatively, you may set the environment variables XFONT_CFLAGS
18782and XFONT_LIBS to avoid the need to call pkg-config.
18783See the pkg-config man page for more details.
18784
18785To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18786See \`config.log' for more details" "$LINENO" 5; }
18787else
18788	XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS
18789	XFONT_LIBS=$pkg_cv_XFONT_LIBS
18790        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18791$as_echo "yes" >&6; }
18792	:
18793fi
18794
18795# Transport selection macro from xtrans.m4
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18797$as_echo_n "checking return type of signal handlers... " >&6; }
18798if ${ac_cv_type_signal+:} false; then :
18799  $as_echo_n "(cached) " >&6
18800else
18801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802/* end confdefs.h.  */
18803#include <sys/types.h>
18804#include <signal.h>
18805
18806int
18807main ()
18808{
18809return *(signal (0, 0)) (0) == 1;
18810  ;
18811  return 0;
18812}
18813_ACEOF
18814if ac_fn_c_try_compile "$LINENO"; then :
18815  ac_cv_type_signal=int
18816else
18817  ac_cv_type_signal=void
18818fi
18819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18820fi
18821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18822$as_echo "$ac_cv_type_signal" >&6; }
18823
18824cat >>confdefs.h <<_ACEOF
18825#define RETSIGTYPE $ac_cv_type_signal
18826_ACEOF
18827
18828
18829
18830
18831
18832 case $host_os in
18833	mingw*)	unixdef="no"   ;;
18834	*)	unixdef="yes"  ;;
18835 esac
18836 # Check whether --enable-unix-transport was given.
18837if test "${enable_unix_transport+set}" = set; then :
18838  enableval=$enable_unix_transport; UNIXCONN=$enableval
18839else
18840  UNIXCONN=$unixdef
18841fi
18842
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
18844$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
18845 if test "$UNIXCONN" = "yes"; then
18846
18847$as_echo "#define UNIXCONN 1" >>confdefs.h
18848
18849 fi
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
18851$as_echo "$UNIXCONN" >&6; }
18852 # Check whether --enable-tcp-transport was given.
18853if test "${enable_tcp_transport+set}" = set; then :
18854  enableval=$enable_tcp_transport; TCPCONN=$enableval
18855else
18856  TCPCONN=yes
18857fi
18858
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
18860$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
18862$as_echo "$TCPCONN" >&6; }
18863 if test "$TCPCONN" = "yes"; then
18864
18865$as_echo "#define TCPCONN 1" >>confdefs.h
18866
18867
18868 # SVR4 hides these in libraries other than libc
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18870$as_echo_n "checking for library containing socket... " >&6; }
18871if ${ac_cv_search_socket+:} false; then :
18872  $as_echo_n "(cached) " >&6
18873else
18874  ac_func_search_save_LIBS=$LIBS
18875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876/* end confdefs.h.  */
18877
18878/* Override any GCC internal prototype to avoid an error.
18879   Use char because int might match the return type of a GCC
18880   builtin and then its argument prototype would still apply.  */
18881#ifdef __cplusplus
18882extern "C"
18883#endif
18884char socket ();
18885int
18886main ()
18887{
18888return socket ();
18889  ;
18890  return 0;
18891}
18892_ACEOF
18893for ac_lib in '' socket; do
18894  if test -z "$ac_lib"; then
18895    ac_res="none required"
18896  else
18897    ac_res=-l$ac_lib
18898    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18899  fi
18900  if ac_fn_c_try_link "$LINENO"; then :
18901  ac_cv_search_socket=$ac_res
18902fi
18903rm -f core conftest.err conftest.$ac_objext \
18904    conftest$ac_exeext
18905  if ${ac_cv_search_socket+:} false; then :
18906  break
18907fi
18908done
18909if ${ac_cv_search_socket+:} false; then :
18910
18911else
18912  ac_cv_search_socket=no
18913fi
18914rm conftest.$ac_ext
18915LIBS=$ac_func_search_save_LIBS
18916fi
18917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18918$as_echo "$ac_cv_search_socket" >&6; }
18919ac_res=$ac_cv_search_socket
18920if test "$ac_res" != no; then :
18921  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18922
18923fi
18924
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18926$as_echo_n "checking for library containing gethostbyname... " >&6; }
18927if ${ac_cv_search_gethostbyname+:} false; then :
18928  $as_echo_n "(cached) " >&6
18929else
18930  ac_func_search_save_LIBS=$LIBS
18931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932/* end confdefs.h.  */
18933
18934/* Override any GCC internal prototype to avoid an error.
18935   Use char because int might match the return type of a GCC
18936   builtin and then its argument prototype would still apply.  */
18937#ifdef __cplusplus
18938extern "C"
18939#endif
18940char gethostbyname ();
18941int
18942main ()
18943{
18944return gethostbyname ();
18945  ;
18946  return 0;
18947}
18948_ACEOF
18949for ac_lib in '' nsl; do
18950  if test -z "$ac_lib"; then
18951    ac_res="none required"
18952  else
18953    ac_res=-l$ac_lib
18954    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18955  fi
18956  if ac_fn_c_try_link "$LINENO"; then :
18957  ac_cv_search_gethostbyname=$ac_res
18958fi
18959rm -f core conftest.err conftest.$ac_objext \
18960    conftest$ac_exeext
18961  if ${ac_cv_search_gethostbyname+:} false; then :
18962  break
18963fi
18964done
18965if ${ac_cv_search_gethostbyname+:} false; then :
18966
18967else
18968  ac_cv_search_gethostbyname=no
18969fi
18970rm conftest.$ac_ext
18971LIBS=$ac_func_search_save_LIBS
18972fi
18973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18974$as_echo "$ac_cv_search_gethostbyname" >&6; }
18975ac_res=$ac_cv_search_gethostbyname
18976if test "$ac_res" != no; then :
18977  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18978
18979fi
18980
18981 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
18982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
18983$as_echo_n "checking for main in -lws2_32... " >&6; }
18984if ${ac_cv_lib_ws2_32_main+:} false; then :
18985  $as_echo_n "(cached) " >&6
18986else
18987  ac_check_lib_save_LIBS=$LIBS
18988LIBS="-lws2_32  $LIBS"
18989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990/* end confdefs.h.  */
18991
18992
18993int
18994main ()
18995{
18996return main ();
18997  ;
18998  return 0;
18999}
19000_ACEOF
19001if ac_fn_c_try_link "$LINENO"; then :
19002  ac_cv_lib_ws2_32_main=yes
19003else
19004  ac_cv_lib_ws2_32_main=no
19005fi
19006rm -f core conftest.err conftest.$ac_objext \
19007    conftest$ac_exeext conftest.$ac_ext
19008LIBS=$ac_check_lib_save_LIBS
19009fi
19010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19011$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19012if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19013  cat >>confdefs.h <<_ACEOF
19014#define HAVE_LIBWS2_32 1
19015_ACEOF
19016
19017  LIBS="-lws2_32 $LIBS"
19018
19019fi
19020ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
19021
19022 fi
19023
19024 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19025 # Check whether --enable-ipv6 was given.
19026if test "${enable_ipv6+set}" = set; then :
19027  enableval=$enable_ipv6; IPV6CONN=$enableval
19028else
19029  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19030if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19031  IPV6CONN=yes
19032else
19033  IPV6CONN=no
19034fi
19035
19036fi
19037
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
19039$as_echo_n "checking if IPv6 support should be built... " >&6; }
19040 if test "$IPV6CONN" = "yes"; then
19041
19042$as_echo "#define IPv6 1" >>confdefs.h
19043
19044 fi
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
19046$as_echo "$IPV6CONN" >&6; }
19047
19048 # 4.3BSD-Reno added a new member to struct sockaddr_in
19049 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
19050#include <sys/types.h>
19051#include <sys/socket.h>
19052#include <netinet/in.h>
19053
19054"
19055if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
19056
19057$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
19058
19059fi
19060
19061
19062 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
19063 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19064$ac_includes_default
19065#include <sys/socket.h>
19066"
19067if test "x$ac_cv_type_socklen_t" = xyes; then :
19068
19069cat >>confdefs.h <<_ACEOF
19070#define HAVE_SOCKLEN_T 1
19071_ACEOF
19072
19073
19074fi
19075
19076
19077
19078 fi
19079 case $host_os in
19080	solaris*|sco*|sysv4*)	localdef="yes" ;;
19081	*)			localdef="no"  ;;
19082 esac
19083 # Check whether --enable-local-transport was given.
19084if test "${enable_local_transport+set}" = set; then :
19085  enableval=$enable_local_transport; LOCALCONN=$enableval
19086else
19087  LOCALCONN=$localdef
19088fi
19089
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
19091$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
19093$as_echo "$LOCALCONN" >&6; }
19094 if test "$LOCALCONN" = "yes"; then
19095
19096$as_echo "#define LOCALCONN 1" >>confdefs.h
19097
19098 fi
19099
19100
19101
19102case $host_os in
19103    linux*)
19104        OS_CFLAGS="-D_XOPEN_SOURCE"
19105        ;;
19106    darwin*)
19107        OS_CFLAGS="-Wl,-flat_namespace"
19108	;;
19109    *)
19110        OS_CFLAGS=
19111        ;;
19112esac
19113
19114
19115ac_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"
19116
19117cat >confcache <<\_ACEOF
19118# This file is a shell script that caches the results of configure
19119# tests run on this system so they can be shared between configure
19120# scripts and configure runs, see configure's option --config-cache.
19121# It is not useful on other systems.  If it contains results you don't
19122# want to keep, you may remove or edit it.
19123#
19124# config.status only pays attention to the cache file if you give it
19125# the --recheck option to rerun configure.
19126#
19127# `ac_cv_env_foo' variables (set or unset) will be overridden when
19128# loading this file, other *unset* `ac_cv_foo' will be assigned the
19129# following values.
19130
19131_ACEOF
19132
19133# The following way of writing the cache mishandles newlines in values,
19134# but we know of no workaround that is simple, portable, and efficient.
19135# So, we kill variables containing newlines.
19136# Ultrix sh set writes to stderr and can't be redirected directly,
19137# and sets the high bit in the cache file unless we assign to the vars.
19138(
19139  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19140    eval ac_val=\$$ac_var
19141    case $ac_val in #(
19142    *${as_nl}*)
19143      case $ac_var in #(
19144      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19145$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19146      esac
19147      case $ac_var in #(
19148      _ | IFS | as_nl) ;; #(
19149      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19150      *) { eval $ac_var=; unset $ac_var;} ;;
19151      esac ;;
19152    esac
19153  done
19154
19155  (set) 2>&1 |
19156    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19157    *${as_nl}ac_space=\ *)
19158      # `set' does not quote correctly, so add quotes: double-quote
19159      # substitution turns \\\\ into \\, and sed turns \\ into \.
19160      sed -n \
19161	"s/'/'\\\\''/g;
19162	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19163      ;; #(
19164    *)
19165      # `set' quotes correctly as required by POSIX, so do not add quotes.
19166      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19167      ;;
19168    esac |
19169    sort
19170) |
19171  sed '
19172     /^ac_cv_env_/b end
19173     t clear
19174     :clear
19175     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19176     t end
19177     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19178     :end' >>confcache
19179if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19180  if test -w "$cache_file"; then
19181    if test "x$cache_file" != "x/dev/null"; then
19182      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19183$as_echo "$as_me: updating cache $cache_file" >&6;}
19184      if test ! -f "$cache_file" || test -h "$cache_file"; then
19185	cat confcache >"$cache_file"
19186      else
19187        case $cache_file in #(
19188        */* | ?:*)
19189	  mv -f confcache "$cache_file"$$ &&
19190	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19191        *)
19192	  mv -f confcache "$cache_file" ;;
19193	esac
19194      fi
19195    fi
19196  else
19197    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19198$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19199  fi
19200fi
19201rm -f confcache
19202
19203test "x$prefix" = xNONE && prefix=$ac_default_prefix
19204# Let make expand exec_prefix.
19205test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19206
19207DEFS=-DHAVE_CONFIG_H
19208
19209ac_libobjs=
19210ac_ltlibobjs=
19211U=
19212for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19213  # 1. Remove the extension, and $U if already installed.
19214  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19215  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19216  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19217  #    will be set to the directory where LIBOBJS objects are built.
19218  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19219  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19220done
19221LIBOBJS=$ac_libobjs
19222
19223LTLIBOBJS=$ac_ltlibobjs
19224
19225
19226 if test -n "$EXEEXT"; then
19227  am__EXEEXT_TRUE=
19228  am__EXEEXT_FALSE='#'
19229else
19230  am__EXEEXT_TRUE='#'
19231  am__EXEEXT_FALSE=
19232fi
19233
19234if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19235  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19236Usually this means the macro was only invoked conditionally." "$LINENO" 5
19237fi
19238if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19239  as_fn_error $? "conditional \"AMDEP\" was never defined.
19240Usually this means the macro was only invoked conditionally." "$LINENO" 5
19241fi
19242if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19243  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19244Usually this means the macro was only invoked conditionally." "$LINENO" 5
19245fi
19246if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
19247  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
19248Usually this means the macro was only invoked conditionally." "$LINENO" 5
19249fi
19250if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19251  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19252Usually this means the macro was only invoked conditionally." "$LINENO" 5
19253fi
19254if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19255  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19256Usually this means the macro was only invoked conditionally." "$LINENO" 5
19257fi
19258if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19259  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19260Usually this means the macro was only invoked conditionally." "$LINENO" 5
19261fi
19262if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19263  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19264Usually this means the macro was only invoked conditionally." "$LINENO" 5
19265fi
19266if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then
19267  as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined.
19268Usually this means the macro was only invoked conditionally." "$LINENO" 5
19269fi
19270if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then
19271  as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
19272Usually this means the macro was only invoked conditionally." "$LINENO" 5
19273fi
19274if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then
19275  as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined.
19276Usually this means the macro was only invoked conditionally." "$LINENO" 5
19277fi
19278if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then
19279  as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined.
19280Usually this means the macro was only invoked conditionally." "$LINENO" 5
19281fi
19282if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then
19283  as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined.
19284Usually this means the macro was only invoked conditionally." "$LINENO" 5
19285fi
19286if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then
19287  as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined.
19288Usually this means the macro was only invoked conditionally." "$LINENO" 5
19289fi
19290if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then
19291  as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined.
19292Usually this means the macro was only invoked conditionally." "$LINENO" 5
19293fi
19294if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then
19295  as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined.
19296Usually this means the macro was only invoked conditionally." "$LINENO" 5
19297fi
19298if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then
19299  as_fn_error $? "conditional \"XFONT_FC\" was never defined.
19300Usually this means the macro was only invoked conditionally." "$LINENO" 5
19301fi
19302
19303: "${CONFIG_STATUS=./config.status}"
19304ac_write_fail=0
19305ac_clean_files_save=$ac_clean_files
19306ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19307{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19308$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19309as_write_fail=0
19310cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19311#! $SHELL
19312# Generated by $as_me.
19313# Run this file to recreate the current configuration.
19314# Compiler output produced by configure, useful for debugging
19315# configure, is in config.log if it exists.
19316
19317debug=false
19318ac_cs_recheck=false
19319ac_cs_silent=false
19320
19321SHELL=\${CONFIG_SHELL-$SHELL}
19322export SHELL
19323_ASEOF
19324cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19325## -------------------- ##
19326## M4sh Initialization. ##
19327## -------------------- ##
19328
19329# Be more Bourne compatible
19330DUALCASE=1; export DUALCASE # for MKS sh
19331if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19332  emulate sh
19333  NULLCMD=:
19334  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19335  # is contrary to our usage.  Disable this feature.
19336  alias -g '${1+"$@"}'='"$@"'
19337  setopt NO_GLOB_SUBST
19338else
19339  case `(set -o) 2>/dev/null` in #(
19340  *posix*) :
19341    set -o posix ;; #(
19342  *) :
19343     ;;
19344esac
19345fi
19346
19347
19348as_nl='
19349'
19350export as_nl
19351# Printing a long string crashes Solaris 7 /usr/bin/printf.
19352as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19353as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19354as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19355# Prefer a ksh shell builtin over an external printf program on Solaris,
19356# but without wasting forks for bash or zsh.
19357if test -z "$BASH_VERSION$ZSH_VERSION" \
19358    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19359  as_echo='print -r --'
19360  as_echo_n='print -rn --'
19361elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19362  as_echo='printf %s\n'
19363  as_echo_n='printf %s'
19364else
19365  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19366    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19367    as_echo_n='/usr/ucb/echo -n'
19368  else
19369    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19370    as_echo_n_body='eval
19371      arg=$1;
19372      case $arg in #(
19373      *"$as_nl"*)
19374	expr "X$arg" : "X\\(.*\\)$as_nl";
19375	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19376      esac;
19377      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19378    '
19379    export as_echo_n_body
19380    as_echo_n='sh -c $as_echo_n_body as_echo'
19381  fi
19382  export as_echo_body
19383  as_echo='sh -c $as_echo_body as_echo'
19384fi
19385
19386# The user is always right.
19387if test "${PATH_SEPARATOR+set}" != set; then
19388  PATH_SEPARATOR=:
19389  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19390    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19391      PATH_SEPARATOR=';'
19392  }
19393fi
19394
19395
19396# IFS
19397# We need space, tab and new line, in precisely that order.  Quoting is
19398# there to prevent editors from complaining about space-tab.
19399# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19400# splitting by setting IFS to empty value.)
19401IFS=" ""	$as_nl"
19402
19403# Find who we are.  Look in the path if we contain no directory separator.
19404as_myself=
19405case $0 in #((
19406  *[\\/]* ) as_myself=$0 ;;
19407  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19408for as_dir in $PATH
19409do
19410  IFS=$as_save_IFS
19411  test -z "$as_dir" && as_dir=.
19412    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19413  done
19414IFS=$as_save_IFS
19415
19416     ;;
19417esac
19418# We did not find ourselves, most probably we were run as `sh COMMAND'
19419# in which case we are not to be found in the path.
19420if test "x$as_myself" = x; then
19421  as_myself=$0
19422fi
19423if test ! -f "$as_myself"; then
19424  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19425  exit 1
19426fi
19427
19428# Unset variables that we do not need and which cause bugs (e.g. in
19429# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19430# suppresses any "Segmentation fault" message there.  '((' could
19431# trigger a bug in pdksh 5.2.14.
19432for as_var in BASH_ENV ENV MAIL MAILPATH
19433do eval test x\${$as_var+set} = xset \
19434  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19435done
19436PS1='$ '
19437PS2='> '
19438PS4='+ '
19439
19440# NLS nuisances.
19441LC_ALL=C
19442export LC_ALL
19443LANGUAGE=C
19444export LANGUAGE
19445
19446# CDPATH.
19447(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19448
19449
19450# as_fn_error STATUS ERROR [LINENO LOG_FD]
19451# ----------------------------------------
19452# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19453# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19454# script with STATUS, using 1 if that was 0.
19455as_fn_error ()
19456{
19457  as_status=$1; test $as_status -eq 0 && as_status=1
19458  if test "$4"; then
19459    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19460    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19461  fi
19462  $as_echo "$as_me: error: $2" >&2
19463  as_fn_exit $as_status
19464} # as_fn_error
19465
19466
19467# as_fn_set_status STATUS
19468# -----------------------
19469# Set $? to STATUS, without forking.
19470as_fn_set_status ()
19471{
19472  return $1
19473} # as_fn_set_status
19474
19475# as_fn_exit STATUS
19476# -----------------
19477# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19478as_fn_exit ()
19479{
19480  set +e
19481  as_fn_set_status $1
19482  exit $1
19483} # as_fn_exit
19484
19485# as_fn_unset VAR
19486# ---------------
19487# Portably unset VAR.
19488as_fn_unset ()
19489{
19490  { eval $1=; unset $1;}
19491}
19492as_unset=as_fn_unset
19493# as_fn_append VAR VALUE
19494# ----------------------
19495# Append the text in VALUE to the end of the definition contained in VAR. Take
19496# advantage of any shell optimizations that allow amortized linear growth over
19497# repeated appends, instead of the typical quadratic growth present in naive
19498# implementations.
19499if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19500  eval 'as_fn_append ()
19501  {
19502    eval $1+=\$2
19503  }'
19504else
19505  as_fn_append ()
19506  {
19507    eval $1=\$$1\$2
19508  }
19509fi # as_fn_append
19510
19511# as_fn_arith ARG...
19512# ------------------
19513# Perform arithmetic evaluation on the ARGs, and store the result in the
19514# global $as_val. Take advantage of shells that can avoid forks. The arguments
19515# must be portable across $(()) and expr.
19516if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19517  eval 'as_fn_arith ()
19518  {
19519    as_val=$(( $* ))
19520  }'
19521else
19522  as_fn_arith ()
19523  {
19524    as_val=`expr "$@" || test $? -eq 1`
19525  }
19526fi # as_fn_arith
19527
19528
19529if expr a : '\(a\)' >/dev/null 2>&1 &&
19530   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19531  as_expr=expr
19532else
19533  as_expr=false
19534fi
19535
19536if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19537  as_basename=basename
19538else
19539  as_basename=false
19540fi
19541
19542if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19543  as_dirname=dirname
19544else
19545  as_dirname=false
19546fi
19547
19548as_me=`$as_basename -- "$0" ||
19549$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19550	 X"$0" : 'X\(//\)$' \| \
19551	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19552$as_echo X/"$0" |
19553    sed '/^.*\/\([^/][^/]*\)\/*$/{
19554	    s//\1/
19555	    q
19556	  }
19557	  /^X\/\(\/\/\)$/{
19558	    s//\1/
19559	    q
19560	  }
19561	  /^X\/\(\/\).*/{
19562	    s//\1/
19563	    q
19564	  }
19565	  s/.*/./; q'`
19566
19567# Avoid depending upon Character Ranges.
19568as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19569as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19570as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19571as_cr_digits='0123456789'
19572as_cr_alnum=$as_cr_Letters$as_cr_digits
19573
19574ECHO_C= ECHO_N= ECHO_T=
19575case `echo -n x` in #(((((
19576-n*)
19577  case `echo 'xy\c'` in
19578  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19579  xy)  ECHO_C='\c';;
19580  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19581       ECHO_T='	';;
19582  esac;;
19583*)
19584  ECHO_N='-n';;
19585esac
19586
19587rm -f conf$$ conf$$.exe conf$$.file
19588if test -d conf$$.dir; then
19589  rm -f conf$$.dir/conf$$.file
19590else
19591  rm -f conf$$.dir
19592  mkdir conf$$.dir 2>/dev/null
19593fi
19594if (echo >conf$$.file) 2>/dev/null; then
19595  if ln -s conf$$.file conf$$ 2>/dev/null; then
19596    as_ln_s='ln -s'
19597    # ... but there are two gotchas:
19598    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19599    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19600    # In both cases, we have to default to `cp -p'.
19601    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19602      as_ln_s='cp -p'
19603  elif ln conf$$.file conf$$ 2>/dev/null; then
19604    as_ln_s=ln
19605  else
19606    as_ln_s='cp -p'
19607  fi
19608else
19609  as_ln_s='cp -p'
19610fi
19611rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19612rmdir conf$$.dir 2>/dev/null
19613
19614
19615# as_fn_mkdir_p
19616# -------------
19617# Create "$as_dir" as a directory, including parents if necessary.
19618as_fn_mkdir_p ()
19619{
19620
19621  case $as_dir in #(
19622  -*) as_dir=./$as_dir;;
19623  esac
19624  test -d "$as_dir" || eval $as_mkdir_p || {
19625    as_dirs=
19626    while :; do
19627      case $as_dir in #(
19628      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19629      *) as_qdir=$as_dir;;
19630      esac
19631      as_dirs="'$as_qdir' $as_dirs"
19632      as_dir=`$as_dirname -- "$as_dir" ||
19633$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19634	 X"$as_dir" : 'X\(//\)[^/]' \| \
19635	 X"$as_dir" : 'X\(//\)$' \| \
19636	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19637$as_echo X"$as_dir" |
19638    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19639	    s//\1/
19640	    q
19641	  }
19642	  /^X\(\/\/\)[^/].*/{
19643	    s//\1/
19644	    q
19645	  }
19646	  /^X\(\/\/\)$/{
19647	    s//\1/
19648	    q
19649	  }
19650	  /^X\(\/\).*/{
19651	    s//\1/
19652	    q
19653	  }
19654	  s/.*/./; q'`
19655      test -d "$as_dir" && break
19656    done
19657    test -z "$as_dirs" || eval "mkdir $as_dirs"
19658  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19659
19660
19661} # as_fn_mkdir_p
19662if mkdir -p . 2>/dev/null; then
19663  as_mkdir_p='mkdir -p "$as_dir"'
19664else
19665  test -d ./-p && rmdir ./-p
19666  as_mkdir_p=false
19667fi
19668
19669if test -x / >/dev/null 2>&1; then
19670  as_test_x='test -x'
19671else
19672  if ls -dL / >/dev/null 2>&1; then
19673    as_ls_L_option=L
19674  else
19675    as_ls_L_option=
19676  fi
19677  as_test_x='
19678    eval sh -c '\''
19679      if test -d "$1"; then
19680	test -d "$1/.";
19681      else
19682	case $1 in #(
19683	-*)set "./$1";;
19684	esac;
19685	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19686	???[sx]*):;;*)false;;esac;fi
19687    '\'' sh
19688  '
19689fi
19690as_executable_p=$as_test_x
19691
19692# Sed expression to map a string onto a valid CPP name.
19693as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19694
19695# Sed expression to map a string onto a valid variable name.
19696as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19697
19698
19699exec 6>&1
19700## ----------------------------------- ##
19701## Main body of $CONFIG_STATUS script. ##
19702## ----------------------------------- ##
19703_ASEOF
19704test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19705
19706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19707# Save the log message, to keep $0 and so on meaningful, and to
19708# report actual input values of CONFIG_FILES etc. instead of their
19709# values after options handling.
19710ac_log="
19711This file was extended by libXfont $as_me 1.4.5, which was
19712generated by GNU Autoconf 2.68.  Invocation command line was
19713
19714  CONFIG_FILES    = $CONFIG_FILES
19715  CONFIG_HEADERS  = $CONFIG_HEADERS
19716  CONFIG_LINKS    = $CONFIG_LINKS
19717  CONFIG_COMMANDS = $CONFIG_COMMANDS
19718  $ $0 $@
19719
19720on `(hostname || uname -n) 2>/dev/null | sed 1q`
19721"
19722
19723_ACEOF
19724
19725case $ac_config_files in *"
19726"*) set x $ac_config_files; shift; ac_config_files=$*;;
19727esac
19728
19729case $ac_config_headers in *"
19730"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19731esac
19732
19733
19734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19735# Files that config.status was made for.
19736config_files="$ac_config_files"
19737config_headers="$ac_config_headers"
19738config_commands="$ac_config_commands"
19739
19740_ACEOF
19741
19742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19743ac_cs_usage="\
19744\`$as_me' instantiates files and other configuration actions
19745from templates according to the current configuration.  Unless the files
19746and actions are specified as TAGs, all are instantiated by default.
19747
19748Usage: $0 [OPTION]... [TAG]...
19749
19750  -h, --help       print this help, then exit
19751  -V, --version    print version number and configuration settings, then exit
19752      --config     print configuration, then exit
19753  -q, --quiet, --silent
19754                   do not print progress messages
19755  -d, --debug      don't remove temporary files
19756      --recheck    update $as_me by reconfiguring in the same conditions
19757      --file=FILE[:TEMPLATE]
19758                   instantiate the configuration file FILE
19759      --header=FILE[:TEMPLATE]
19760                   instantiate the configuration header FILE
19761
19762Configuration files:
19763$config_files
19764
19765Configuration headers:
19766$config_headers
19767
19768Configuration commands:
19769$config_commands
19770
19771Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19772
19773_ACEOF
19774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19775ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19776ac_cs_version="\\
19777libXfont config.status 1.4.5
19778configured by $0, generated by GNU Autoconf 2.68,
19779  with options \\"\$ac_cs_config\\"
19780
19781Copyright (C) 2010 Free Software Foundation, Inc.
19782This config.status script is free software; the Free Software Foundation
19783gives unlimited permission to copy, distribute and modify it."
19784
19785ac_pwd='$ac_pwd'
19786srcdir='$srcdir'
19787INSTALL='$INSTALL'
19788MKDIR_P='$MKDIR_P'
19789AWK='$AWK'
19790test -n "\$AWK" || AWK=awk
19791_ACEOF
19792
19793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19794# The default lists apply if the user does not specify any file.
19795ac_need_defaults=:
19796while test $# != 0
19797do
19798  case $1 in
19799  --*=?*)
19800    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19801    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19802    ac_shift=:
19803    ;;
19804  --*=)
19805    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19806    ac_optarg=
19807    ac_shift=:
19808    ;;
19809  *)
19810    ac_option=$1
19811    ac_optarg=$2
19812    ac_shift=shift
19813    ;;
19814  esac
19815
19816  case $ac_option in
19817  # Handling of the options.
19818  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19819    ac_cs_recheck=: ;;
19820  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19821    $as_echo "$ac_cs_version"; exit ;;
19822  --config | --confi | --conf | --con | --co | --c )
19823    $as_echo "$ac_cs_config"; exit ;;
19824  --debug | --debu | --deb | --de | --d | -d )
19825    debug=: ;;
19826  --file | --fil | --fi | --f )
19827    $ac_shift
19828    case $ac_optarg in
19829    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19830    '') as_fn_error $? "missing file argument" ;;
19831    esac
19832    as_fn_append CONFIG_FILES " '$ac_optarg'"
19833    ac_need_defaults=false;;
19834  --header | --heade | --head | --hea )
19835    $ac_shift
19836    case $ac_optarg in
19837    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19838    esac
19839    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19840    ac_need_defaults=false;;
19841  --he | --h)
19842    # Conflict between --help and --header
19843    as_fn_error $? "ambiguous option: \`$1'
19844Try \`$0 --help' for more information.";;
19845  --help | --hel | -h )
19846    $as_echo "$ac_cs_usage"; exit ;;
19847  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19848  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19849    ac_cs_silent=: ;;
19850
19851  # This is an error.
19852  -*) as_fn_error $? "unrecognized option: \`$1'
19853Try \`$0 --help' for more information." ;;
19854
19855  *) as_fn_append ac_config_targets " $1"
19856     ac_need_defaults=false ;;
19857
19858  esac
19859  shift
19860done
19861
19862ac_configure_extra_args=
19863
19864if $ac_cs_silent; then
19865  exec 6>/dev/null
19866  ac_configure_extra_args="$ac_configure_extra_args --silent"
19867fi
19868
19869_ACEOF
19870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19871if \$ac_cs_recheck; then
19872  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19873  shift
19874  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19875  CONFIG_SHELL='$SHELL'
19876  export CONFIG_SHELL
19877  exec "\$@"
19878fi
19879
19880_ACEOF
19881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19882exec 5>>config.log
19883{
19884  echo
19885  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19886## Running $as_me. ##
19887_ASBOX
19888  $as_echo "$ac_log"
19889} >&5
19890
19891_ACEOF
19892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19893#
19894# INIT-COMMANDS
19895#
19896AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19897
19898
19899# The HP-UX ksh and POSIX shell print the target directory to stdout
19900# if CDPATH is set.
19901(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19902
19903sed_quote_subst='$sed_quote_subst'
19904double_quote_subst='$double_quote_subst'
19905delay_variable_subst='$delay_variable_subst'
19906macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19907macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19908enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19909enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19910pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19911enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19912SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19913ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19914host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19915host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19916host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19917build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19918build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19919build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19920SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19921Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19922GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19923EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19924FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19925LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19926NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19927LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19928max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19929ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19930exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19931lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19932lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19933lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19934lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19935lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19936reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19937reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19938OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19939deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19940file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19941file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19942want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19943DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19944sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19945AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19946AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19947archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19948STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19949RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19950old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19951old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19952old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19953lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19954CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19955CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19956compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19957GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19958lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19959lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19960lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19961lt_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"`'
19962nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19963lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19964objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19965MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19966lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19967lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19968lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19969lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19970lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19971need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19972MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19973DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19974NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19975LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19976OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19977OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19978libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19979shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19980extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19981archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19982enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19983export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19984whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19985compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19986old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19987old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19988archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19989archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19990module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19991module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19992with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19993allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19994no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19995hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19996hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19997hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19998hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19999hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20000hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20001hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20002hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20003inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20004link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20005always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20006export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20007exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20008include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20009prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20010postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20011file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20012variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20013need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20014need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20015version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20016runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20017shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20018shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20019libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20020library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20021soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20022install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20023postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20024postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20025finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20026finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20027hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20028sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20029sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20030hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20031enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20032enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20033enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20034old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20035striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20036
20037LTCC='$LTCC'
20038LTCFLAGS='$LTCFLAGS'
20039compiler='$compiler_DEFAULT'
20040
20041# A function that is used when there is no print builtin or printf.
20042func_fallback_echo ()
20043{
20044  eval 'cat <<_LTECHO_EOF
20045\$1
20046_LTECHO_EOF'
20047}
20048
20049# Quote evaled strings.
20050for var in SHELL \
20051ECHO \
20052SED \
20053GREP \
20054EGREP \
20055FGREP \
20056LD \
20057NM \
20058LN_S \
20059lt_SP2NL \
20060lt_NL2SP \
20061reload_flag \
20062OBJDUMP \
20063deplibs_check_method \
20064file_magic_cmd \
20065file_magic_glob \
20066want_nocaseglob \
20067DLLTOOL \
20068sharedlib_from_linklib_cmd \
20069AR \
20070AR_FLAGS \
20071archiver_list_spec \
20072STRIP \
20073RANLIB \
20074CC \
20075CFLAGS \
20076compiler \
20077lt_cv_sys_global_symbol_pipe \
20078lt_cv_sys_global_symbol_to_cdecl \
20079lt_cv_sys_global_symbol_to_c_name_address \
20080lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20081nm_file_list_spec \
20082lt_prog_compiler_no_builtin_flag \
20083lt_prog_compiler_pic \
20084lt_prog_compiler_wl \
20085lt_prog_compiler_static \
20086lt_cv_prog_compiler_c_o \
20087need_locks \
20088MANIFEST_TOOL \
20089DSYMUTIL \
20090NMEDIT \
20091LIPO \
20092OTOOL \
20093OTOOL64 \
20094shrext_cmds \
20095export_dynamic_flag_spec \
20096whole_archive_flag_spec \
20097compiler_needs_object \
20098with_gnu_ld \
20099allow_undefined_flag \
20100no_undefined_flag \
20101hardcode_libdir_flag_spec \
20102hardcode_libdir_flag_spec_ld \
20103hardcode_libdir_separator \
20104exclude_expsyms \
20105include_expsyms \
20106file_list_spec \
20107variables_saved_for_relink \
20108libname_spec \
20109library_names_spec \
20110soname_spec \
20111install_override_mode \
20112finish_eval \
20113old_striplib \
20114striplib; do
20115    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20116    *[\\\\\\\`\\"\\\$]*)
20117      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20118      ;;
20119    *)
20120      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20121      ;;
20122    esac
20123done
20124
20125# Double-quote double-evaled strings.
20126for var in reload_cmds \
20127old_postinstall_cmds \
20128old_postuninstall_cmds \
20129old_archive_cmds \
20130extract_expsyms_cmds \
20131old_archive_from_new_cmds \
20132old_archive_from_expsyms_cmds \
20133archive_cmds \
20134archive_expsym_cmds \
20135module_cmds \
20136module_expsym_cmds \
20137export_symbols_cmds \
20138prelink_cmds \
20139postlink_cmds \
20140postinstall_cmds \
20141postuninstall_cmds \
20142finish_cmds \
20143sys_lib_search_path_spec \
20144sys_lib_dlsearch_path_spec; do
20145    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20146    *[\\\\\\\`\\"\\\$]*)
20147      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20148      ;;
20149    *)
20150      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20151      ;;
20152    esac
20153done
20154
20155ac_aux_dir='$ac_aux_dir'
20156xsi_shell='$xsi_shell'
20157lt_shell_append='$lt_shell_append'
20158
20159# See if we are running on zsh, and set the options which allow our
20160# commands through without removal of \ escapes INIT.
20161if test -n "\${ZSH_VERSION+set}" ; then
20162   setopt NO_GLOB_SUBST
20163fi
20164
20165
20166    PACKAGE='$PACKAGE'
20167    VERSION='$VERSION'
20168    TIMESTAMP='$TIMESTAMP'
20169    RM='$RM'
20170    ofile='$ofile'
20171
20172
20173
20174
20175_ACEOF
20176
20177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20178
20179# Handling of arguments.
20180for ac_config_target in $ac_config_targets
20181do
20182  case $ac_config_target in
20183    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20184    "include/X11/fonts/fontconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/fonts/fontconf.h" ;;
20185    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20186    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20187    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20188    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20189    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20190    "src/fontfile/Makefile") CONFIG_FILES="$CONFIG_FILES src/fontfile/Makefile" ;;
20191    "src/FreeType/Makefile") CONFIG_FILES="$CONFIG_FILES src/FreeType/Makefile" ;;
20192    "src/builtins/Makefile") CONFIG_FILES="$CONFIG_FILES src/builtins/Makefile" ;;
20193    "src/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/bitmap/Makefile" ;;
20194    "src/fc/Makefile") CONFIG_FILES="$CONFIG_FILES src/fc/Makefile" ;;
20195    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
20196    "src/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES src/stubs/Makefile" ;;
20197    "xfont.pc") CONFIG_FILES="$CONFIG_FILES xfont.pc" ;;
20198
20199  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20200  esac
20201done
20202
20203
20204# If the user did not use the arguments to specify the items to instantiate,
20205# then the envvar interface is used.  Set only those that are not.
20206# We use the long form for the default assignment because of an extremely
20207# bizarre bug on SunOS 4.1.3.
20208if $ac_need_defaults; then
20209  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20210  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20211  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20212fi
20213
20214# Have a temporary directory for convenience.  Make it in the build tree
20215# simply because there is no reason against having it here, and in addition,
20216# creating and moving files from /tmp can sometimes cause problems.
20217# Hook for its removal unless debugging.
20218# Note that there is a small window in which the directory will not be cleaned:
20219# after its creation but before its name has been assigned to `$tmp'.
20220$debug ||
20221{
20222  tmp= ac_tmp=
20223  trap 'exit_status=$?
20224  : "${ac_tmp:=$tmp}"
20225  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20226' 0
20227  trap 'as_fn_exit 1' 1 2 13 15
20228}
20229# Create a (secure) tmp directory for tmp files.
20230
20231{
20232  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20233  test -d "$tmp"
20234}  ||
20235{
20236  tmp=./conf$$-$RANDOM
20237  (umask 077 && mkdir "$tmp")
20238} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20239ac_tmp=$tmp
20240
20241# Set up the scripts for CONFIG_FILES section.
20242# No need to generate them if there are no CONFIG_FILES.
20243# This happens for instance with `./config.status config.h'.
20244if test -n "$CONFIG_FILES"; then
20245
20246
20247ac_cr=`echo X | tr X '\015'`
20248# On cygwin, bash can eat \r inside `` if the user requested igncr.
20249# But we know of no other shell where ac_cr would be empty at this
20250# point, so we can use a bashism as a fallback.
20251if test "x$ac_cr" = x; then
20252  eval ac_cr=\$\'\\r\'
20253fi
20254ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20255if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20256  ac_cs_awk_cr='\\r'
20257else
20258  ac_cs_awk_cr=$ac_cr
20259fi
20260
20261echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20262_ACEOF
20263
20264
20265{
20266  echo "cat >conf$$subs.awk <<_ACEOF" &&
20267  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20268  echo "_ACEOF"
20269} >conf$$subs.sh ||
20270  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20271ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20272ac_delim='%!_!# '
20273for ac_last_try in false false false false false :; do
20274  . ./conf$$subs.sh ||
20275    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20276
20277  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20278  if test $ac_delim_n = $ac_delim_num; then
20279    break
20280  elif $ac_last_try; then
20281    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20282  else
20283    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20284  fi
20285done
20286rm -f conf$$subs.sh
20287
20288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20289cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20290_ACEOF
20291sed -n '
20292h
20293s/^/S["/; s/!.*/"]=/
20294p
20295g
20296s/^[^!]*!//
20297:repl
20298t repl
20299s/'"$ac_delim"'$//
20300t delim
20301:nl
20302h
20303s/\(.\{148\}\)..*/\1/
20304t more1
20305s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20306p
20307n
20308b repl
20309:more1
20310s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20311p
20312g
20313s/.\{148\}//
20314t nl
20315:delim
20316h
20317s/\(.\{148\}\)..*/\1/
20318t more2
20319s/["\\]/\\&/g; s/^/"/; s/$/"/
20320p
20321b
20322:more2
20323s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20324p
20325g
20326s/.\{148\}//
20327t delim
20328' <conf$$subs.awk | sed '
20329/^[^""]/{
20330  N
20331  s/\n//
20332}
20333' >>$CONFIG_STATUS || ac_write_fail=1
20334rm -f conf$$subs.awk
20335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20336_ACAWK
20337cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20338  for (key in S) S_is_set[key] = 1
20339  FS = ""
20340
20341}
20342{
20343  line = $ 0
20344  nfields = split(line, field, "@")
20345  substed = 0
20346  len = length(field[1])
20347  for (i = 2; i < nfields; i++) {
20348    key = field[i]
20349    keylen = length(key)
20350    if (S_is_set[key]) {
20351      value = S[key]
20352      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20353      len += length(value) + length(field[++i])
20354      substed = 1
20355    } else
20356      len += 1 + keylen
20357  }
20358
20359  print line
20360}
20361
20362_ACAWK
20363_ACEOF
20364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20365if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20366  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20367else
20368  cat
20369fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20370  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20371_ACEOF
20372
20373# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20374# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20375# trailing colons and then remove the whole line if VPATH becomes empty
20376# (actually we leave an empty line to preserve line numbers).
20377if test "x$srcdir" = x.; then
20378  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20379h
20380s///
20381s/^/:/
20382s/[	 ]*$/:/
20383s/:\$(srcdir):/:/g
20384s/:\${srcdir}:/:/g
20385s/:@srcdir@:/:/g
20386s/^:*//
20387s/:*$//
20388x
20389s/\(=[	 ]*\).*/\1/
20390G
20391s/\n//
20392s/^[^=]*=[	 ]*$//
20393}'
20394fi
20395
20396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20397fi # test -n "$CONFIG_FILES"
20398
20399# Set up the scripts for CONFIG_HEADERS section.
20400# No need to generate them if there are no CONFIG_HEADERS.
20401# This happens for instance with `./config.status Makefile'.
20402if test -n "$CONFIG_HEADERS"; then
20403cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20404BEGIN {
20405_ACEOF
20406
20407# Transform confdefs.h into an awk script `defines.awk', embedded as
20408# here-document in config.status, that substitutes the proper values into
20409# config.h.in to produce config.h.
20410
20411# Create a delimiter string that does not exist in confdefs.h, to ease
20412# handling of long lines.
20413ac_delim='%!_!# '
20414for ac_last_try in false false :; do
20415  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20416  if test -z "$ac_tt"; then
20417    break
20418  elif $ac_last_try; then
20419    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20420  else
20421    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20422  fi
20423done
20424
20425# For the awk script, D is an array of macro values keyed by name,
20426# likewise P contains macro parameters if any.  Preserve backslash
20427# newline sequences.
20428
20429ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20430sed -n '
20431s/.\{148\}/&'"$ac_delim"'/g
20432t rset
20433:rset
20434s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20435t def
20436d
20437:def
20438s/\\$//
20439t bsnl
20440s/["\\]/\\&/g
20441s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20442D["\1"]=" \3"/p
20443s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20444d
20445:bsnl
20446s/["\\]/\\&/g
20447s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20448D["\1"]=" \3\\\\\\n"\\/p
20449t cont
20450s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20451t cont
20452d
20453:cont
20454n
20455s/.\{148\}/&'"$ac_delim"'/g
20456t clear
20457:clear
20458s/\\$//
20459t bsnlc
20460s/["\\]/\\&/g; s/^/"/; s/$/"/p
20461d
20462:bsnlc
20463s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20464b cont
20465' <confdefs.h | sed '
20466s/'"$ac_delim"'/"\\\
20467"/g' >>$CONFIG_STATUS || ac_write_fail=1
20468
20469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20470  for (key in D) D_is_set[key] = 1
20471  FS = ""
20472}
20473/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20474  line = \$ 0
20475  split(line, arg, " ")
20476  if (arg[1] == "#") {
20477    defundef = arg[2]
20478    mac1 = arg[3]
20479  } else {
20480    defundef = substr(arg[1], 2)
20481    mac1 = arg[2]
20482  }
20483  split(mac1, mac2, "(") #)
20484  macro = mac2[1]
20485  prefix = substr(line, 1, index(line, defundef) - 1)
20486  if (D_is_set[macro]) {
20487    # Preserve the white space surrounding the "#".
20488    print prefix "define", macro P[macro] D[macro]
20489    next
20490  } else {
20491    # Replace #undef with comments.  This is necessary, for example,
20492    # in the case of _POSIX_SOURCE, which is predefined and required
20493    # on some systems where configure will not decide to define it.
20494    if (defundef == "undef") {
20495      print "/*", prefix defundef, macro, "*/"
20496      next
20497    }
20498  }
20499}
20500{ print }
20501_ACAWK
20502_ACEOF
20503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20504  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20505fi # test -n "$CONFIG_HEADERS"
20506
20507
20508eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20509shift
20510for ac_tag
20511do
20512  case $ac_tag in
20513  :[FHLC]) ac_mode=$ac_tag; continue;;
20514  esac
20515  case $ac_mode$ac_tag in
20516  :[FHL]*:*);;
20517  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20518  :[FH]-) ac_tag=-:-;;
20519  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20520  esac
20521  ac_save_IFS=$IFS
20522  IFS=:
20523  set x $ac_tag
20524  IFS=$ac_save_IFS
20525  shift
20526  ac_file=$1
20527  shift
20528
20529  case $ac_mode in
20530  :L) ac_source=$1;;
20531  :[FH])
20532    ac_file_inputs=
20533    for ac_f
20534    do
20535      case $ac_f in
20536      -) ac_f="$ac_tmp/stdin";;
20537      *) # Look for the file first in the build tree, then in the source tree
20538	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20539	 # because $ac_f cannot contain `:'.
20540	 test -f "$ac_f" ||
20541	   case $ac_f in
20542	   [\\/$]*) false;;
20543	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20544	   esac ||
20545	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20546      esac
20547      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20548      as_fn_append ac_file_inputs " '$ac_f'"
20549    done
20550
20551    # Let's still pretend it is `configure' which instantiates (i.e., don't
20552    # use $as_me), people would be surprised to read:
20553    #    /* config.h.  Generated by config.status.  */
20554    configure_input='Generated from '`
20555	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20556	`' by configure.'
20557    if test x"$ac_file" != x-; then
20558      configure_input="$ac_file.  $configure_input"
20559      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20560$as_echo "$as_me: creating $ac_file" >&6;}
20561    fi
20562    # Neutralize special characters interpreted by sed in replacement strings.
20563    case $configure_input in #(
20564    *\&* | *\|* | *\\* )
20565       ac_sed_conf_input=`$as_echo "$configure_input" |
20566       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20567    *) ac_sed_conf_input=$configure_input;;
20568    esac
20569
20570    case $ac_tag in
20571    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20572      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20573    esac
20574    ;;
20575  esac
20576
20577  ac_dir=`$as_dirname -- "$ac_file" ||
20578$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20579	 X"$ac_file" : 'X\(//\)[^/]' \| \
20580	 X"$ac_file" : 'X\(//\)$' \| \
20581	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20582$as_echo X"$ac_file" |
20583    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20584	    s//\1/
20585	    q
20586	  }
20587	  /^X\(\/\/\)[^/].*/{
20588	    s//\1/
20589	    q
20590	  }
20591	  /^X\(\/\/\)$/{
20592	    s//\1/
20593	    q
20594	  }
20595	  /^X\(\/\).*/{
20596	    s//\1/
20597	    q
20598	  }
20599	  s/.*/./; q'`
20600  as_dir="$ac_dir"; as_fn_mkdir_p
20601  ac_builddir=.
20602
20603case "$ac_dir" in
20604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20605*)
20606  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20607  # A ".." for each directory in $ac_dir_suffix.
20608  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20609  case $ac_top_builddir_sub in
20610  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20611  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20612  esac ;;
20613esac
20614ac_abs_top_builddir=$ac_pwd
20615ac_abs_builddir=$ac_pwd$ac_dir_suffix
20616# for backward compatibility:
20617ac_top_builddir=$ac_top_build_prefix
20618
20619case $srcdir in
20620  .)  # We are building in place.
20621    ac_srcdir=.
20622    ac_top_srcdir=$ac_top_builddir_sub
20623    ac_abs_top_srcdir=$ac_pwd ;;
20624  [\\/]* | ?:[\\/]* )  # Absolute name.
20625    ac_srcdir=$srcdir$ac_dir_suffix;
20626    ac_top_srcdir=$srcdir
20627    ac_abs_top_srcdir=$srcdir ;;
20628  *) # Relative name.
20629    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20630    ac_top_srcdir=$ac_top_build_prefix$srcdir
20631    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20632esac
20633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20634
20635
20636  case $ac_mode in
20637  :F)
20638  #
20639  # CONFIG_FILE
20640  #
20641
20642  case $INSTALL in
20643  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20644  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20645  esac
20646  ac_MKDIR_P=$MKDIR_P
20647  case $MKDIR_P in
20648  [\\/$]* | ?:[\\/]* ) ;;
20649  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20650  esac
20651_ACEOF
20652
20653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20654# If the template does not know about datarootdir, expand it.
20655# FIXME: This hack should be removed a few years after 2.60.
20656ac_datarootdir_hack=; ac_datarootdir_seen=
20657ac_sed_dataroot='
20658/datarootdir/ {
20659  p
20660  q
20661}
20662/@datadir@/p
20663/@docdir@/p
20664/@infodir@/p
20665/@localedir@/p
20666/@mandir@/p'
20667case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20668*datarootdir*) ac_datarootdir_seen=yes;;
20669*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20670  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20671$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20672_ACEOF
20673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20674  ac_datarootdir_hack='
20675  s&@datadir@&$datadir&g
20676  s&@docdir@&$docdir&g
20677  s&@infodir@&$infodir&g
20678  s&@localedir@&$localedir&g
20679  s&@mandir@&$mandir&g
20680  s&\\\${datarootdir}&$datarootdir&g' ;;
20681esac
20682_ACEOF
20683
20684# Neutralize VPATH when `$srcdir' = `.'.
20685# Shell code in configure.ac might set extrasub.
20686# FIXME: do we really want to maintain this feature?
20687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20688ac_sed_extra="$ac_vpsub
20689$extrasub
20690_ACEOF
20691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20692:t
20693/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20694s|@configure_input@|$ac_sed_conf_input|;t t
20695s&@top_builddir@&$ac_top_builddir_sub&;t t
20696s&@top_build_prefix@&$ac_top_build_prefix&;t t
20697s&@srcdir@&$ac_srcdir&;t t
20698s&@abs_srcdir@&$ac_abs_srcdir&;t t
20699s&@top_srcdir@&$ac_top_srcdir&;t t
20700s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20701s&@builddir@&$ac_builddir&;t t
20702s&@abs_builddir@&$ac_abs_builddir&;t t
20703s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20704s&@INSTALL@&$ac_INSTALL&;t t
20705s&@MKDIR_P@&$ac_MKDIR_P&;t t
20706$ac_datarootdir_hack
20707"
20708eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20709  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20710
20711test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20712  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20713  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20714      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20715  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20716which seems to be undefined.  Please make sure it is defined" >&5
20717$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20718which seems to be undefined.  Please make sure it is defined" >&2;}
20719
20720  rm -f "$ac_tmp/stdin"
20721  case $ac_file in
20722  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20723  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20724  esac \
20725  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20726 ;;
20727  :H)
20728  #
20729  # CONFIG_HEADER
20730  #
20731  if test x"$ac_file" != x-; then
20732    {
20733      $as_echo "/* $configure_input  */" \
20734      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20735    } >"$ac_tmp/config.h" \
20736      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20737    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20738      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20739$as_echo "$as_me: $ac_file is unchanged" >&6;}
20740    else
20741      rm -f "$ac_file"
20742      mv "$ac_tmp/config.h" "$ac_file" \
20743	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20744    fi
20745  else
20746    $as_echo "/* $configure_input  */" \
20747      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20748      || as_fn_error $? "could not create -" "$LINENO" 5
20749  fi
20750# Compute "$ac_file"'s index in $config_headers.
20751_am_arg="$ac_file"
20752_am_stamp_count=1
20753for _am_header in $config_headers :; do
20754  case $_am_header in
20755    $_am_arg | $_am_arg:* )
20756      break ;;
20757    * )
20758      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20759  esac
20760done
20761echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20762$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20763	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20764	 X"$_am_arg" : 'X\(//\)$' \| \
20765	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20766$as_echo X"$_am_arg" |
20767    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20768	    s//\1/
20769	    q
20770	  }
20771	  /^X\(\/\/\)[^/].*/{
20772	    s//\1/
20773	    q
20774	  }
20775	  /^X\(\/\/\)$/{
20776	    s//\1/
20777	    q
20778	  }
20779	  /^X\(\/\).*/{
20780	    s//\1/
20781	    q
20782	  }
20783	  s/.*/./; q'`/stamp-h$_am_stamp_count
20784 ;;
20785
20786  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20787$as_echo "$as_me: executing $ac_file commands" >&6;}
20788 ;;
20789  esac
20790
20791
20792  case $ac_file$ac_mode in
20793    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20794  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20795  # are listed without --file.  Let's play safe and only enable the eval
20796  # if we detect the quoting.
20797  case $CONFIG_FILES in
20798  *\'*) eval set x "$CONFIG_FILES" ;;
20799  *)   set x $CONFIG_FILES ;;
20800  esac
20801  shift
20802  for mf
20803  do
20804    # Strip MF so we end up with the name of the file.
20805    mf=`echo "$mf" | sed -e 's/:.*$//'`
20806    # Check whether this is an Automake generated Makefile or not.
20807    # We used to match only the files named `Makefile.in', but
20808    # some people rename them; so instead we look at the file content.
20809    # Grep'ing the first line is not enough: some people post-process
20810    # each Makefile.in and add a new line on top of each file to say so.
20811    # Grep'ing the whole file is not good either: AIX grep has a line
20812    # limit of 2048, but all sed's we know have understand at least 4000.
20813    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20814      dirpart=`$as_dirname -- "$mf" ||
20815$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20816	 X"$mf" : 'X\(//\)[^/]' \| \
20817	 X"$mf" : 'X\(//\)$' \| \
20818	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20819$as_echo X"$mf" |
20820    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20821	    s//\1/
20822	    q
20823	  }
20824	  /^X\(\/\/\)[^/].*/{
20825	    s//\1/
20826	    q
20827	  }
20828	  /^X\(\/\/\)$/{
20829	    s//\1/
20830	    q
20831	  }
20832	  /^X\(\/\).*/{
20833	    s//\1/
20834	    q
20835	  }
20836	  s/.*/./; q'`
20837    else
20838      continue
20839    fi
20840    # Extract the definition of DEPDIR, am__include, and am__quote
20841    # from the Makefile without running `make'.
20842    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20843    test -z "$DEPDIR" && continue
20844    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20845    test -z "am__include" && continue
20846    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20847    # When using ansi2knr, U may be empty or an underscore; expand it
20848    U=`sed -n 's/^U = //p' < "$mf"`
20849    # Find all dependency output files, they are included files with
20850    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20851    # simplest approach to changing $(DEPDIR) to its actual value in the
20852    # expansion.
20853    for file in `sed -n "
20854      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20855	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20856      # Make sure the directory exists.
20857      test -f "$dirpart/$file" && continue
20858      fdir=`$as_dirname -- "$file" ||
20859$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20860	 X"$file" : 'X\(//\)[^/]' \| \
20861	 X"$file" : 'X\(//\)$' \| \
20862	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20863$as_echo X"$file" |
20864    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20865	    s//\1/
20866	    q
20867	  }
20868	  /^X\(\/\/\)[^/].*/{
20869	    s//\1/
20870	    q
20871	  }
20872	  /^X\(\/\/\)$/{
20873	    s//\1/
20874	    q
20875	  }
20876	  /^X\(\/\).*/{
20877	    s//\1/
20878	    q
20879	  }
20880	  s/.*/./; q'`
20881      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20882      # echo "creating $dirpart/$file"
20883      echo '# dummy' > "$dirpart/$file"
20884    done
20885  done
20886}
20887 ;;
20888    "libtool":C)
20889
20890    # See if we are running on zsh, and set the options which allow our
20891    # commands through without removal of \ escapes.
20892    if test -n "${ZSH_VERSION+set}" ; then
20893      setopt NO_GLOB_SUBST
20894    fi
20895
20896    cfgfile="${ofile}T"
20897    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20898    $RM "$cfgfile"
20899
20900    cat <<_LT_EOF >> "$cfgfile"
20901#! $SHELL
20902
20903# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20904# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20905# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20906# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20907#
20908#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20909#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20910#                 Inc.
20911#   Written by Gordon Matzigkeit, 1996
20912#
20913#   This file is part of GNU Libtool.
20914#
20915# GNU Libtool is free software; you can redistribute it and/or
20916# modify it under the terms of the GNU General Public License as
20917# published by the Free Software Foundation; either version 2 of
20918# the License, or (at your option) any later version.
20919#
20920# As a special exception to the GNU General Public License,
20921# if you distribute this file as part of a program or library that
20922# is built using GNU Libtool, you may include this file under the
20923# same distribution terms that you use for the rest of that program.
20924#
20925# GNU Libtool is distributed in the hope that it will be useful,
20926# but WITHOUT ANY WARRANTY; without even the implied warranty of
20927# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20928# GNU General Public License for more details.
20929#
20930# You should have received a copy of the GNU General Public License
20931# along with GNU Libtool; see the file COPYING.  If not, a copy
20932# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20933# obtained by writing to the Free Software Foundation, Inc.,
20934# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20935
20936
20937# The names of the tagged configurations supported by this script.
20938available_tags=""
20939
20940# ### BEGIN LIBTOOL CONFIG
20941
20942# Which release of libtool.m4 was used?
20943macro_version=$macro_version
20944macro_revision=$macro_revision
20945
20946# Whether or not to build shared libraries.
20947build_libtool_libs=$enable_shared
20948
20949# Whether or not to build static libraries.
20950build_old_libs=$enable_static
20951
20952# What type of objects to build.
20953pic_mode=$pic_mode
20954
20955# Whether or not to optimize for fast installation.
20956fast_install=$enable_fast_install
20957
20958# Shell to use when invoking shell scripts.
20959SHELL=$lt_SHELL
20960
20961# An echo program that protects backslashes.
20962ECHO=$lt_ECHO
20963
20964# The host system.
20965host_alias=$host_alias
20966host=$host
20967host_os=$host_os
20968
20969# The build system.
20970build_alias=$build_alias
20971build=$build
20972build_os=$build_os
20973
20974# A sed program that does not truncate output.
20975SED=$lt_SED
20976
20977# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20978Xsed="\$SED -e 1s/^X//"
20979
20980# A grep program that handles long lines.
20981GREP=$lt_GREP
20982
20983# An ERE matcher.
20984EGREP=$lt_EGREP
20985
20986# A literal string matcher.
20987FGREP=$lt_FGREP
20988
20989# A BSD- or MS-compatible name lister.
20990NM=$lt_NM
20991
20992# Whether we need soft or hard links.
20993LN_S=$lt_LN_S
20994
20995# What is the maximum length of a command?
20996max_cmd_len=$max_cmd_len
20997
20998# Object file suffix (normally "o").
20999objext=$ac_objext
21000
21001# Executable file suffix (normally "").
21002exeext=$exeext
21003
21004# whether the shell understands "unset".
21005lt_unset=$lt_unset
21006
21007# turn spaces into newlines.
21008SP2NL=$lt_lt_SP2NL
21009
21010# turn newlines into spaces.
21011NL2SP=$lt_lt_NL2SP
21012
21013# convert \$build file names to \$host format.
21014to_host_file_cmd=$lt_cv_to_host_file_cmd
21015
21016# convert \$build files to toolchain format.
21017to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21018
21019# An object symbol dumper.
21020OBJDUMP=$lt_OBJDUMP
21021
21022# Method to check whether dependent libraries are shared objects.
21023deplibs_check_method=$lt_deplibs_check_method
21024
21025# Command to use when deplibs_check_method = "file_magic".
21026file_magic_cmd=$lt_file_magic_cmd
21027
21028# How to find potential files when deplibs_check_method = "file_magic".
21029file_magic_glob=$lt_file_magic_glob
21030
21031# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21032want_nocaseglob=$lt_want_nocaseglob
21033
21034# DLL creation program.
21035DLLTOOL=$lt_DLLTOOL
21036
21037# Command to associate shared and link libraries.
21038sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21039
21040# The archiver.
21041AR=$lt_AR
21042
21043# Flags to create an archive.
21044AR_FLAGS=$lt_AR_FLAGS
21045
21046# How to feed a file listing to the archiver.
21047archiver_list_spec=$lt_archiver_list_spec
21048
21049# A symbol stripping program.
21050STRIP=$lt_STRIP
21051
21052# Commands used to install an old-style archive.
21053RANLIB=$lt_RANLIB
21054old_postinstall_cmds=$lt_old_postinstall_cmds
21055old_postuninstall_cmds=$lt_old_postuninstall_cmds
21056
21057# Whether to use a lock for old archive extraction.
21058lock_old_archive_extraction=$lock_old_archive_extraction
21059
21060# A C compiler.
21061LTCC=$lt_CC
21062
21063# LTCC compiler flags.
21064LTCFLAGS=$lt_CFLAGS
21065
21066# Take the output of nm and produce a listing of raw symbols and C names.
21067global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21068
21069# Transform the output of nm in a proper C declaration.
21070global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21071
21072# Transform the output of nm in a C name address pair.
21073global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21074
21075# Transform the output of nm in a C name address pair when lib prefix is needed.
21076global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21077
21078# Specify filename containing input files for \$NM.
21079nm_file_list_spec=$lt_nm_file_list_spec
21080
21081# The root where to search for dependent libraries,and in which our libraries should be installed.
21082lt_sysroot=$lt_sysroot
21083
21084# The name of the directory that contains temporary libtool files.
21085objdir=$objdir
21086
21087# Used to examine libraries when file_magic_cmd begins with "file".
21088MAGIC_CMD=$MAGIC_CMD
21089
21090# Must we lock files when doing compilation?
21091need_locks=$lt_need_locks
21092
21093# Manifest tool.
21094MANIFEST_TOOL=$lt_MANIFEST_TOOL
21095
21096# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21097DSYMUTIL=$lt_DSYMUTIL
21098
21099# Tool to change global to local symbols on Mac OS X.
21100NMEDIT=$lt_NMEDIT
21101
21102# Tool to manipulate fat objects and archives on Mac OS X.
21103LIPO=$lt_LIPO
21104
21105# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21106OTOOL=$lt_OTOOL
21107
21108# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21109OTOOL64=$lt_OTOOL64
21110
21111# Old archive suffix (normally "a").
21112libext=$libext
21113
21114# Shared library suffix (normally ".so").
21115shrext_cmds=$lt_shrext_cmds
21116
21117# The commands to extract the exported symbol list from a shared archive.
21118extract_expsyms_cmds=$lt_extract_expsyms_cmds
21119
21120# Variables whose values should be saved in libtool wrapper scripts and
21121# restored at link time.
21122variables_saved_for_relink=$lt_variables_saved_for_relink
21123
21124# Do we need the "lib" prefix for modules?
21125need_lib_prefix=$need_lib_prefix
21126
21127# Do we need a version for libraries?
21128need_version=$need_version
21129
21130# Library versioning type.
21131version_type=$version_type
21132
21133# Shared library runtime path variable.
21134runpath_var=$runpath_var
21135
21136# Shared library path variable.
21137shlibpath_var=$shlibpath_var
21138
21139# Is shlibpath searched before the hard-coded library search path?
21140shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21141
21142# Format of library name prefix.
21143libname_spec=$lt_libname_spec
21144
21145# List of archive names.  First name is the real one, the rest are links.
21146# The last name is the one that the linker finds with -lNAME
21147library_names_spec=$lt_library_names_spec
21148
21149# The coded name of the library, if different from the real name.
21150soname_spec=$lt_soname_spec
21151
21152# Permission mode override for installation of shared libraries.
21153install_override_mode=$lt_install_override_mode
21154
21155# Command to use after installation of a shared archive.
21156postinstall_cmds=$lt_postinstall_cmds
21157
21158# Command to use after uninstallation of a shared archive.
21159postuninstall_cmds=$lt_postuninstall_cmds
21160
21161# Commands used to finish a libtool library installation in a directory.
21162finish_cmds=$lt_finish_cmds
21163
21164# As "finish_cmds", except a single script fragment to be evaled but
21165# not shown.
21166finish_eval=$lt_finish_eval
21167
21168# Whether we should hardcode library paths into libraries.
21169hardcode_into_libs=$hardcode_into_libs
21170
21171# Compile-time system search path for libraries.
21172sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21173
21174# Run-time system search path for libraries.
21175sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21176
21177# Whether dlopen is supported.
21178dlopen_support=$enable_dlopen
21179
21180# Whether dlopen of programs is supported.
21181dlopen_self=$enable_dlopen_self
21182
21183# Whether dlopen of statically linked programs is supported.
21184dlopen_self_static=$enable_dlopen_self_static
21185
21186# Commands to strip libraries.
21187old_striplib=$lt_old_striplib
21188striplib=$lt_striplib
21189
21190
21191# The linker used to build libraries.
21192LD=$lt_LD
21193
21194# How to create reloadable object files.
21195reload_flag=$lt_reload_flag
21196reload_cmds=$lt_reload_cmds
21197
21198# Commands used to build an old-style archive.
21199old_archive_cmds=$lt_old_archive_cmds
21200
21201# A language specific compiler.
21202CC=$lt_compiler
21203
21204# Is the compiler the GNU compiler?
21205with_gcc=$GCC
21206
21207# Compiler flag to turn off builtin functions.
21208no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21209
21210# Additional compiler flags for building library objects.
21211pic_flag=$lt_lt_prog_compiler_pic
21212
21213# How to pass a linker flag through the compiler.
21214wl=$lt_lt_prog_compiler_wl
21215
21216# Compiler flag to prevent dynamic linking.
21217link_static_flag=$lt_lt_prog_compiler_static
21218
21219# Does compiler simultaneously support -c and -o options?
21220compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21221
21222# Whether or not to add -lc for building shared libraries.
21223build_libtool_need_lc=$archive_cmds_need_lc
21224
21225# Whether or not to disallow shared libs when runtime libs are static.
21226allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21227
21228# Compiler flag to allow reflexive dlopens.
21229export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21230
21231# Compiler flag to generate shared objects directly from archives.
21232whole_archive_flag_spec=$lt_whole_archive_flag_spec
21233
21234# Whether the compiler copes with passing no objects directly.
21235compiler_needs_object=$lt_compiler_needs_object
21236
21237# Create an old-style archive from a shared archive.
21238old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21239
21240# Create a temporary old-style archive to link instead of a shared archive.
21241old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21242
21243# Commands used to build a shared archive.
21244archive_cmds=$lt_archive_cmds
21245archive_expsym_cmds=$lt_archive_expsym_cmds
21246
21247# Commands used to build a loadable module if different from building
21248# a shared archive.
21249module_cmds=$lt_module_cmds
21250module_expsym_cmds=$lt_module_expsym_cmds
21251
21252# Whether we are building with GNU ld or not.
21253with_gnu_ld=$lt_with_gnu_ld
21254
21255# Flag that allows shared libraries with undefined symbols to be built.
21256allow_undefined_flag=$lt_allow_undefined_flag
21257
21258# Flag that enforces no undefined symbols.
21259no_undefined_flag=$lt_no_undefined_flag
21260
21261# Flag to hardcode \$libdir into a binary during linking.
21262# This must work even if \$libdir does not exist
21263hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21264
21265# If ld is used when linking, flag to hardcode \$libdir into a binary
21266# during linking.  This must work even if \$libdir does not exist.
21267hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21268
21269# Whether we need a single "-rpath" flag with a separated argument.
21270hardcode_libdir_separator=$lt_hardcode_libdir_separator
21271
21272# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21273# DIR into the resulting binary.
21274hardcode_direct=$hardcode_direct
21275
21276# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21277# DIR into the resulting binary and the resulting library dependency is
21278# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21279# library is relocated.
21280hardcode_direct_absolute=$hardcode_direct_absolute
21281
21282# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21283# into the resulting binary.
21284hardcode_minus_L=$hardcode_minus_L
21285
21286# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21287# into the resulting binary.
21288hardcode_shlibpath_var=$hardcode_shlibpath_var
21289
21290# Set to "yes" if building a shared library automatically hardcodes DIR
21291# into the library and all subsequent libraries and executables linked
21292# against it.
21293hardcode_automatic=$hardcode_automatic
21294
21295# Set to yes if linker adds runtime paths of dependent libraries
21296# to runtime path list.
21297inherit_rpath=$inherit_rpath
21298
21299# Whether libtool must link a program against all its dependency libraries.
21300link_all_deplibs=$link_all_deplibs
21301
21302# Set to "yes" if exported symbols are required.
21303always_export_symbols=$always_export_symbols
21304
21305# The commands to list exported symbols.
21306export_symbols_cmds=$lt_export_symbols_cmds
21307
21308# Symbols that should not be listed in the preloaded symbols.
21309exclude_expsyms=$lt_exclude_expsyms
21310
21311# Symbols that must always be exported.
21312include_expsyms=$lt_include_expsyms
21313
21314# Commands necessary for linking programs (against libraries) with templates.
21315prelink_cmds=$lt_prelink_cmds
21316
21317# Commands necessary for finishing linking programs.
21318postlink_cmds=$lt_postlink_cmds
21319
21320# Specify filename containing input files.
21321file_list_spec=$lt_file_list_spec
21322
21323# How to hardcode a shared library path into an executable.
21324hardcode_action=$hardcode_action
21325
21326# ### END LIBTOOL CONFIG
21327
21328_LT_EOF
21329
21330  case $host_os in
21331  aix3*)
21332    cat <<\_LT_EOF >> "$cfgfile"
21333# AIX sometimes has problems with the GCC collect2 program.  For some
21334# reason, if we set the COLLECT_NAMES environment variable, the problems
21335# vanish in a puff of smoke.
21336if test "X${COLLECT_NAMES+set}" != Xset; then
21337  COLLECT_NAMES=
21338  export COLLECT_NAMES
21339fi
21340_LT_EOF
21341    ;;
21342  esac
21343
21344
21345ltmain="$ac_aux_dir/ltmain.sh"
21346
21347
21348  # We use sed instead of cat because bash on DJGPP gets confused if
21349  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21350  # text mode, it properly converts lines to CR/LF.  This bash problem
21351  # is reportedly fixed, but why not run on old versions too?
21352  sed '$q' "$ltmain" >> "$cfgfile" \
21353     || (rm -f "$cfgfile"; exit 1)
21354
21355  if test x"$xsi_shell" = xyes; then
21356  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21357func_dirname ()\
21358{\
21359\    case ${1} in\
21360\      */*) func_dirname_result="${1%/*}${2}" ;;\
21361\      *  ) func_dirname_result="${3}" ;;\
21362\    esac\
21363} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21364  && mv -f "$cfgfile.tmp" "$cfgfile" \
21365    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21366test 0 -eq $? || _lt_function_replace_fail=:
21367
21368
21369  sed -e '/^func_basename ()$/,/^} # func_basename /c\
21370func_basename ()\
21371{\
21372\    func_basename_result="${1##*/}"\
21373} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21374  && mv -f "$cfgfile.tmp" "$cfgfile" \
21375    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21376test 0 -eq $? || _lt_function_replace_fail=:
21377
21378
21379  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21380func_dirname_and_basename ()\
21381{\
21382\    case ${1} in\
21383\      */*) func_dirname_result="${1%/*}${2}" ;;\
21384\      *  ) func_dirname_result="${3}" ;;\
21385\    esac\
21386\    func_basename_result="${1##*/}"\
21387} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21388  && mv -f "$cfgfile.tmp" "$cfgfile" \
21389    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21390test 0 -eq $? || _lt_function_replace_fail=:
21391
21392
21393  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21394func_stripname ()\
21395{\
21396\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21397\    # positional parameters, so assign one to ordinary parameter first.\
21398\    func_stripname_result=${3}\
21399\    func_stripname_result=${func_stripname_result#"${1}"}\
21400\    func_stripname_result=${func_stripname_result%"${2}"}\
21401} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21402  && mv -f "$cfgfile.tmp" "$cfgfile" \
21403    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21404test 0 -eq $? || _lt_function_replace_fail=:
21405
21406
21407  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21408func_split_long_opt ()\
21409{\
21410\    func_split_long_opt_name=${1%%=*}\
21411\    func_split_long_opt_arg=${1#*=}\
21412} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21413  && mv -f "$cfgfile.tmp" "$cfgfile" \
21414    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21415test 0 -eq $? || _lt_function_replace_fail=:
21416
21417
21418  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21419func_split_short_opt ()\
21420{\
21421\    func_split_short_opt_arg=${1#??}\
21422\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21423} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21424  && mv -f "$cfgfile.tmp" "$cfgfile" \
21425    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21426test 0 -eq $? || _lt_function_replace_fail=:
21427
21428
21429  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21430func_lo2o ()\
21431{\
21432\    case ${1} in\
21433\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21434\      *)    func_lo2o_result=${1} ;;\
21435\    esac\
21436} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21437  && mv -f "$cfgfile.tmp" "$cfgfile" \
21438    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21439test 0 -eq $? || _lt_function_replace_fail=:
21440
21441
21442  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21443func_xform ()\
21444{\
21445    func_xform_result=${1%.*}.lo\
21446} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21447  && mv -f "$cfgfile.tmp" "$cfgfile" \
21448    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21449test 0 -eq $? || _lt_function_replace_fail=:
21450
21451
21452  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21453func_arith ()\
21454{\
21455    func_arith_result=$(( $* ))\
21456} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21457  && mv -f "$cfgfile.tmp" "$cfgfile" \
21458    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21459test 0 -eq $? || _lt_function_replace_fail=:
21460
21461
21462  sed -e '/^func_len ()$/,/^} # func_len /c\
21463func_len ()\
21464{\
21465    func_len_result=${#1}\
21466} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21467  && mv -f "$cfgfile.tmp" "$cfgfile" \
21468    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21469test 0 -eq $? || _lt_function_replace_fail=:
21470
21471fi
21472
21473if test x"$lt_shell_append" = xyes; then
21474  sed -e '/^func_append ()$/,/^} # func_append /c\
21475func_append ()\
21476{\
21477    eval "${1}+=\\${2}"\
21478} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21479  && mv -f "$cfgfile.tmp" "$cfgfile" \
21480    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21481test 0 -eq $? || _lt_function_replace_fail=:
21482
21483
21484  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21485func_append_quoted ()\
21486{\
21487\    func_quote_for_eval "${2}"\
21488\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21489} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21490  && mv -f "$cfgfile.tmp" "$cfgfile" \
21491    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21492test 0 -eq $? || _lt_function_replace_fail=:
21493
21494
21495  # Save a `func_append' function call where possible by direct use of '+='
21496  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21497    && mv -f "$cfgfile.tmp" "$cfgfile" \
21498      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21499  test 0 -eq $? || _lt_function_replace_fail=:
21500else
21501  # Save a `func_append' function call even when '+=' is not available
21502  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21503    && mv -f "$cfgfile.tmp" "$cfgfile" \
21504      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21505  test 0 -eq $? || _lt_function_replace_fail=:
21506fi
21507
21508if test x"$_lt_function_replace_fail" = x":"; then
21509  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21510$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21511fi
21512
21513
21514   mv -f "$cfgfile" "$ofile" ||
21515    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21516  chmod +x "$ofile"
21517
21518 ;;
21519
21520  esac
21521done # for ac_tag
21522
21523
21524as_fn_exit 0
21525_ACEOF
21526ac_clean_files=$ac_clean_files_save
21527
21528test $ac_write_fail = 0 ||
21529  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21530
21531
21532# configure is writing to config.log, and then calls config.status.
21533# config.status does its own redirection, appending to config.log.
21534# Unfortunately, on DOS this fails, as config.log is still kept open
21535# by configure, so config.status won't be able to write to it; its
21536# output is simply discarded.  So we exec the FD to /dev/null,
21537# effectively closing config.log, so it can be properly (re)opened and
21538# appended to by config.status.  When coming back to configure, we
21539# need to make the FD available again.
21540if test "$no_create" != yes; then
21541  ac_cs_success=:
21542  ac_config_status_args=
21543  test "$silent" = yes &&
21544    ac_config_status_args="$ac_config_status_args --quiet"
21545  exec 5>/dev/null
21546  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21547  exec 5>>config.log
21548  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21549  # would make configure fail if this is the last instruction.
21550  $ac_cs_success || as_fn_exit 1
21551fi
21552if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21553  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21554$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21555fi
21556
21557