configure revision 245c37e9
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libxcb 1.13.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xcb
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libxcb'
593PACKAGE_TARNAME='libxcb'
594PACKAGE_VERSION='1.13'
595PACKAGE_STRING='libxcb 1.13'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xcb'
597PACKAGE_URL=''
598
599ac_unique_file="xcb.pc.in"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640XCB_SERVERSIDE_SUPPORT_FALSE
641XCB_SERVERSIDE_SUPPORT_TRUE
642LAUNCHD
643BUILD_XVMC_FALSE
644BUILD_XVMC_TRUE
645BUILD_XV_FALSE
646BUILD_XV_TRUE
647BUILD_XTEST_FALSE
648BUILD_XTEST_TRUE
649BUILD_SELINUX_FALSE
650BUILD_SELINUX_TRUE
651BUILD_XPRINT_FALSE
652BUILD_XPRINT_TRUE
653BUILD_XKB_FALSE
654BUILD_XKB_TRUE
655BUILD_XINPUT_FALSE
656BUILD_XINPUT_TRUE
657BUILD_XINERAMA_FALSE
658BUILD_XINERAMA_TRUE
659BUILD_XFREE86_DRI_FALSE
660BUILD_XFREE86_DRI_TRUE
661BUILD_XFIXES_FALSE
662BUILD_XFIXES_TRUE
663BUILD_XEVIE_FALSE
664BUILD_XEVIE_TRUE
665BUILD_SYNC_FALSE
666BUILD_SYNC_TRUE
667BUILD_SHM_FALSE
668BUILD_SHM_TRUE
669BUILD_SHAPE_FALSE
670BUILD_SHAPE_TRUE
671BUILD_SCREENSAVER_FALSE
672BUILD_SCREENSAVER_TRUE
673BUILD_RESOURCE_FALSE
674BUILD_RESOURCE_TRUE
675BUILD_RENDER_FALSE
676BUILD_RENDER_TRUE
677BUILD_RECORD_FALSE
678BUILD_RECORD_TRUE
679BUILD_RANDR_FALSE
680BUILD_RANDR_TRUE
681BUILD_PRESENT_FALSE
682BUILD_PRESENT_TRUE
683BUILD_GLX_FALSE
684BUILD_GLX_TRUE
685BUILD_GE_FALSE
686BUILD_GE_TRUE
687BUILD_DRI3_FALSE
688BUILD_DRI3_TRUE
689BUILD_DRI2_FALSE
690BUILD_DRI2_TRUE
691BUILD_DPMS_FALSE
692BUILD_DPMS_TRUE
693BUILD_DAMAGE_FALSE
694BUILD_DAMAGE_TRUE
695BUILD_COMPOSITE_FALSE
696BUILD_COMPOSITE_TRUE
697xcbincludedir
698XCB_HAVE_WIN32_FALSE
699XCB_HAVE_WIN32_TRUE
700lt_enable_auto_import
701XCBPROTO_XCBPYTHONDIR
702XCBPROTO_VERSION
703XCBPROTO_XCBINCLUDEDIR
704NEEDED
705XDMCP_LIBS
706XDMCP_CFLAGS
707NEEDED_LIBS
708NEEDED_CFLAGS
709XCBPROTO_LIBS
710XCBPROTO_CFLAGS
711HTML_CHECK_RESULT
712XSLTPROC
713HAVE_CHECK_FALSE
714HAVE_CHECK_TRUE
715CHECK_LIBS
716CHECK_CFLAGS
717HAVE_DOXYGEN_FALSE
718HAVE_DOXYGEN_TRUE
719HAVE_DOT_FALSE
720HAVE_DOT_TRUE
721HAVE_DOT
722DOT
723DOXYGEN
724ENABLE_DEVEL_DOCS_FALSE
725ENABLE_DEVEL_DOCS_TRUE
726MAN_SUBSTS
727XORG_MAN_PAGE
728ADMIN_MAN_DIR
729DRIVER_MAN_DIR
730MISC_MAN_DIR
731FILE_MAN_DIR
732LIB_MAN_DIR
733APP_MAN_DIR
734ADMIN_MAN_SUFFIX
735DRIVER_MAN_SUFFIX
736MISC_MAN_SUFFIX
737FILE_MAN_SUFFIX
738LIB_MAN_SUFFIX
739APP_MAN_SUFFIX
740INSTALL_CMD
741PKG_CONFIG_LIBDIR
742PKG_CONFIG_PATH
743PKG_CONFIG
744CHANGELOG_CMD
745STRICT_CFLAGS
746CWARNFLAGS
747BASE_CFLAGS
748LT_SYS_LIBRARY_PATH
749OTOOL64
750OTOOL
751LIPO
752NMEDIT
753DSYMUTIL
754MANIFEST_TOOL
755RANLIB
756ac_ct_AR
757AR
758LN_S
759NM
760ac_ct_DUMPBIN
761DUMPBIN
762LD
763FGREP
764SED
765host_os
766host_vendor
767host_cpu
768host
769build_os
770build_vendor
771build_cpu
772build
773LIBTOOL
774OBJDUMP
775DLLTOOL
776AS
777EGREP
778GREP
779CPP
780am__fastdepCC_FALSE
781am__fastdepCC_TRUE
782CCDEPMODE
783am__nodep
784AMDEPBACKSLASH
785AMDEP_FALSE
786AMDEP_TRUE
787am__quote
788am__include
789DEPDIR
790OBJEXT
791EXEEXT
792ac_ct_CC
793CPPFLAGS
794LDFLAGS
795CFLAGS
796CC
797pkgpyexecdir
798pyexecdir
799pkgpythondir
800pythondir
801PYTHON_PLATFORM
802PYTHON_EXEC_PREFIX
803PYTHON_PREFIX
804PYTHON_VERSION
805PYTHON
806AM_BACKSLASH
807AM_DEFAULT_VERBOSITY
808AM_DEFAULT_V
809AM_V
810am__untar
811am__tar
812AMTAR
813am__leading_dot
814SET_MAKE
815AWK
816mkdir_p
817MKDIR_P
818INSTALL_STRIP_PROGRAM
819STRIP
820install_sh
821MAKEINFO
822AUTOHEADER
823AUTOMAKE
824AUTOCONF
825ACLOCAL
826VERSION
827PACKAGE
828CYGPATH_W
829am__isrc
830INSTALL_DATA
831INSTALL_SCRIPT
832INSTALL_PROGRAM
833target_alias
834host_alias
835build_alias
836LIBS
837ECHO_T
838ECHO_N
839ECHO_C
840DEFS
841mandir
842localedir
843libdir
844psdir
845pdfdir
846dvidir
847htmldir
848infodir
849docdir
850oldincludedir
851includedir
852localstatedir
853sharedstatedir
854sysconfdir
855datadir
856datarootdir
857libexecdir
858sbindir
859bindir
860program_transform_name
861prefix
862exec_prefix
863PACKAGE_URL
864PACKAGE_BUGREPORT
865PACKAGE_STRING
866PACKAGE_VERSION
867PACKAGE_TARNAME
868PACKAGE_NAME
869PATH_SEPARATOR
870SHELL'
871ac_subst_files=''
872ac_user_opts='
873enable_option_checking
874enable_silent_rules
875enable_dependency_tracking
876enable_shared
877enable_static
878with_pic
879enable_fast_install
880with_aix_soname
881with_gnu_ld
882with_sysroot
883enable_libtool_lock
884enable_selective_werror
885enable_strict_compilation
886enable_devel_docs
887with_doxygen
888with_queue_size
889enable_composite
890enable_damage
891enable_dpms
892enable_dri2
893enable_dri3
894enable_ge
895enable_glx
896enable_present
897enable_randr
898enable_record
899enable_render
900enable_resource
901enable_screensaver
902enable_shape
903enable_shm
904enable_sync
905enable_xevie
906enable_xfixes
907enable_xfree86_dri
908enable_xinerama
909enable_xinput
910enable_xkb
911enable_xprint
912enable_selinux
913enable_xtest
914enable_xv
915enable_xvmc
916with_launchd
917with_serverside_support
918'
919      ac_precious_vars='build_alias
920host_alias
921target_alias
922PYTHON
923CC
924CFLAGS
925LDFLAGS
926LIBS
927CPPFLAGS
928CPP
929LT_SYS_LIBRARY_PATH
930PKG_CONFIG
931PKG_CONFIG_PATH
932PKG_CONFIG_LIBDIR
933DOXYGEN
934DOT
935CHECK_CFLAGS
936CHECK_LIBS
937XCBPROTO_CFLAGS
938XCBPROTO_LIBS
939NEEDED_CFLAGS
940NEEDED_LIBS
941XDMCP_CFLAGS
942XDMCP_LIBS'
943
944
945# Initialize some variables set by options.
946ac_init_help=
947ac_init_version=false
948ac_unrecognized_opts=
949ac_unrecognized_sep=
950# The variables have the same names as the options, with
951# dashes changed to underlines.
952cache_file=/dev/null
953exec_prefix=NONE
954no_create=
955no_recursion=
956prefix=NONE
957program_prefix=NONE
958program_suffix=NONE
959program_transform_name=s,x,x,
960silent=
961site=
962srcdir=
963verbose=
964x_includes=NONE
965x_libraries=NONE
966
967# Installation directory options.
968# These are left unexpanded so users can "make install exec_prefix=/foo"
969# and all the variables that are supposed to be based on exec_prefix
970# by default will actually change.
971# Use braces instead of parens because sh, perl, etc. also accept them.
972# (The list follows the same order as the GNU Coding Standards.)
973bindir='${exec_prefix}/bin'
974sbindir='${exec_prefix}/sbin'
975libexecdir='${exec_prefix}/libexec'
976datarootdir='${prefix}/share'
977datadir='${datarootdir}'
978sysconfdir='${prefix}/etc'
979sharedstatedir='${prefix}/com'
980localstatedir='${prefix}/var'
981includedir='${prefix}/include'
982oldincludedir='/usr/include'
983docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984infodir='${datarootdir}/info'
985htmldir='${docdir}'
986dvidir='${docdir}'
987pdfdir='${docdir}'
988psdir='${docdir}'
989libdir='${exec_prefix}/lib'
990localedir='${datarootdir}/locale'
991mandir='${datarootdir}/man'
992
993ac_prev=
994ac_dashdash=
995for ac_option
996do
997  # If the previous option needs an argument, assign it.
998  if test -n "$ac_prev"; then
999    eval $ac_prev=\$ac_option
1000    ac_prev=
1001    continue
1002  fi
1003
1004  case $ac_option in
1005  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006  *=)   ac_optarg= ;;
1007  *)    ac_optarg=yes ;;
1008  esac
1009
1010  # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012  case $ac_dashdash$ac_option in
1013  --)
1014    ac_dashdash=yes ;;
1015
1016  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017    ac_prev=bindir ;;
1018  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019    bindir=$ac_optarg ;;
1020
1021  -build | --build | --buil | --bui | --bu)
1022    ac_prev=build_alias ;;
1023  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024    build_alias=$ac_optarg ;;
1025
1026  -cache-file | --cache-file | --cache-fil | --cache-fi \
1027  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028    ac_prev=cache_file ;;
1029  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031    cache_file=$ac_optarg ;;
1032
1033  --config-cache | -C)
1034    cache_file=config.cache ;;
1035
1036  -datadir | --datadir | --datadi | --datad)
1037    ac_prev=datadir ;;
1038  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039    datadir=$ac_optarg ;;
1040
1041  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042  | --dataroo | --dataro | --datar)
1043    ac_prev=datarootdir ;;
1044  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046    datarootdir=$ac_optarg ;;
1047
1048  -disable-* | --disable-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error $? "invalid feature name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"enable_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval enable_$ac_useropt=no ;;
1063
1064  -docdir | --docdir | --docdi | --doc | --do)
1065    ac_prev=docdir ;;
1066  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067    docdir=$ac_optarg ;;
1068
1069  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070    ac_prev=dvidir ;;
1071  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072    dvidir=$ac_optarg ;;
1073
1074  -enable-* | --enable-*)
1075    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078      as_fn_error $? "invalid feature name: $ac_useropt"
1079    ac_useropt_orig=$ac_useropt
1080    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081    case $ac_user_opts in
1082      *"
1083"enable_$ac_useropt"
1084"*) ;;
1085      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086	 ac_unrecognized_sep=', ';;
1087    esac
1088    eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092  | --exec | --exe | --ex)
1093    ac_prev=exec_prefix ;;
1094  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096  | --exec=* | --exe=* | --ex=*)
1097    exec_prefix=$ac_optarg ;;
1098
1099  -gas | --gas | --ga | --g)
1100    # Obsolete; use --with-gas.
1101    with_gas=yes ;;
1102
1103  -help | --help | --hel | --he | -h)
1104    ac_init_help=long ;;
1105  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106    ac_init_help=recursive ;;
1107  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108    ac_init_help=short ;;
1109
1110  -host | --host | --hos | --ho)
1111    ac_prev=host_alias ;;
1112  -host=* | --host=* | --hos=* | --ho=*)
1113    host_alias=$ac_optarg ;;
1114
1115  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116    ac_prev=htmldir ;;
1117  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118  | --ht=*)
1119    htmldir=$ac_optarg ;;
1120
1121  -includedir | --includedir | --includedi | --included | --include \
1122  | --includ | --inclu | --incl | --inc)
1123    ac_prev=includedir ;;
1124  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125  | --includ=* | --inclu=* | --incl=* | --inc=*)
1126    includedir=$ac_optarg ;;
1127
1128  -infodir | --infodir | --infodi | --infod | --info | --inf)
1129    ac_prev=infodir ;;
1130  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131    infodir=$ac_optarg ;;
1132
1133  -libdir | --libdir | --libdi | --libd)
1134    ac_prev=libdir ;;
1135  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136    libdir=$ac_optarg ;;
1137
1138  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139  | --libexe | --libex | --libe)
1140    ac_prev=libexecdir ;;
1141  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142  | --libexe=* | --libex=* | --libe=*)
1143    libexecdir=$ac_optarg ;;
1144
1145  -localedir | --localedir | --localedi | --localed | --locale)
1146    ac_prev=localedir ;;
1147  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148    localedir=$ac_optarg ;;
1149
1150  -localstatedir | --localstatedir | --localstatedi | --localstated \
1151  | --localstate | --localstat | --localsta | --localst | --locals)
1152    ac_prev=localstatedir ;;
1153  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155    localstatedir=$ac_optarg ;;
1156
1157  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158    ac_prev=mandir ;;
1159  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160    mandir=$ac_optarg ;;
1161
1162  -nfp | --nfp | --nf)
1163    # Obsolete; use --without-fp.
1164    with_fp=no ;;
1165
1166  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167  | --no-cr | --no-c | -n)
1168    no_create=yes ;;
1169
1170  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172    no_recursion=yes ;;
1173
1174  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176  | --oldin | --oldi | --old | --ol | --o)
1177    ac_prev=oldincludedir ;;
1178  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181    oldincludedir=$ac_optarg ;;
1182
1183  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184    ac_prev=prefix ;;
1185  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186    prefix=$ac_optarg ;;
1187
1188  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189  | --program-pre | --program-pr | --program-p)
1190    ac_prev=program_prefix ;;
1191  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193    program_prefix=$ac_optarg ;;
1194
1195  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196  | --program-suf | --program-su | --program-s)
1197    ac_prev=program_suffix ;;
1198  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200    program_suffix=$ac_optarg ;;
1201
1202  -program-transform-name | --program-transform-name \
1203  | --program-transform-nam | --program-transform-na \
1204  | --program-transform-n | --program-transform- \
1205  | --program-transform | --program-transfor \
1206  | --program-transfo | --program-transf \
1207  | --program-trans | --program-tran \
1208  | --progr-tra | --program-tr | --program-t)
1209    ac_prev=program_transform_name ;;
1210  -program-transform-name=* | --program-transform-name=* \
1211  | --program-transform-nam=* | --program-transform-na=* \
1212  | --program-transform-n=* | --program-transform-=* \
1213  | --program-transform=* | --program-transfor=* \
1214  | --program-transfo=* | --program-transf=* \
1215  | --program-trans=* | --program-tran=* \
1216  | --progr-tra=* | --program-tr=* | --program-t=*)
1217    program_transform_name=$ac_optarg ;;
1218
1219  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220    ac_prev=pdfdir ;;
1221  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222    pdfdir=$ac_optarg ;;
1223
1224  -psdir | --psdir | --psdi | --psd | --ps)
1225    ac_prev=psdir ;;
1226  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227    psdir=$ac_optarg ;;
1228
1229  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230  | -silent | --silent | --silen | --sile | --sil)
1231    silent=yes ;;
1232
1233  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234    ac_prev=sbindir ;;
1235  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236  | --sbi=* | --sb=*)
1237    sbindir=$ac_optarg ;;
1238
1239  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241  | --sharedst | --shareds | --shared | --share | --shar \
1242  | --sha | --sh)
1243    ac_prev=sharedstatedir ;;
1244  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247  | --sha=* | --sh=*)
1248    sharedstatedir=$ac_optarg ;;
1249
1250  -site | --site | --sit)
1251    ac_prev=site ;;
1252  -site=* | --site=* | --sit=*)
1253    site=$ac_optarg ;;
1254
1255  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256    ac_prev=srcdir ;;
1257  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258    srcdir=$ac_optarg ;;
1259
1260  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261  | --syscon | --sysco | --sysc | --sys | --sy)
1262    ac_prev=sysconfdir ;;
1263  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265    sysconfdir=$ac_optarg ;;
1266
1267  -target | --target | --targe | --targ | --tar | --ta | --t)
1268    ac_prev=target_alias ;;
1269  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270    target_alias=$ac_optarg ;;
1271
1272  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273    verbose=yes ;;
1274
1275  -version | --version | --versio | --versi | --vers | -V)
1276    ac_init_version=: ;;
1277
1278  -with-* | --with-*)
1279    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282      as_fn_error $? "invalid package name: $ac_useropt"
1283    ac_useropt_orig=$ac_useropt
1284    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285    case $ac_user_opts in
1286      *"
1287"with_$ac_useropt"
1288"*) ;;
1289      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290	 ac_unrecognized_sep=', ';;
1291    esac
1292    eval with_$ac_useropt=\$ac_optarg ;;
1293
1294  -without-* | --without-*)
1295    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296    # Reject names that are not valid shell variable names.
1297    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298      as_fn_error $? "invalid package name: $ac_useropt"
1299    ac_useropt_orig=$ac_useropt
1300    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301    case $ac_user_opts in
1302      *"
1303"with_$ac_useropt"
1304"*) ;;
1305      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306	 ac_unrecognized_sep=', ';;
1307    esac
1308    eval with_$ac_useropt=no ;;
1309
1310  --x)
1311    # Obsolete; use --with-x.
1312    with_x=yes ;;
1313
1314  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315  | --x-incl | --x-inc | --x-in | --x-i)
1316    ac_prev=x_includes ;;
1317  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319    x_includes=$ac_optarg ;;
1320
1321  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323    ac_prev=x_libraries ;;
1324  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326    x_libraries=$ac_optarg ;;
1327
1328  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329Try \`$0 --help' for more information"
1330    ;;
1331
1332  *=*)
1333    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334    # Reject names that are not valid shell variable names.
1335    case $ac_envvar in #(
1336      '' | [0-9]* | *[!_$as_cr_alnum]* )
1337      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338    esac
1339    eval $ac_envvar=\$ac_optarg
1340    export $ac_envvar ;;
1341
1342  *)
1343    # FIXME: should be removed in autoconf 3.0.
1344    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1348    ;;
1349
1350  esac
1351done
1352
1353if test -n "$ac_prev"; then
1354  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355  as_fn_error $? "missing argument to $ac_option"
1356fi
1357
1358if test -n "$ac_unrecognized_opts"; then
1359  case $enable_option_checking in
1360    no) ;;
1361    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363  esac
1364fi
1365
1366# Check all directory arguments for consistency.
1367for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368		datadir sysconfdir sharedstatedir localstatedir includedir \
1369		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370		libdir localedir mandir
1371do
1372  eval ac_val=\$$ac_var
1373  # Remove trailing slashes.
1374  case $ac_val in
1375    */ )
1376      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377      eval $ac_var=\$ac_val;;
1378  esac
1379  # Be sure to have absolute directory names.
1380  case $ac_val in
1381    [\\/$]* | ?:[\\/]* )  continue;;
1382    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383  esac
1384  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385done
1386
1387# There might be people who depend on the old broken behavior: `$host'
1388# used to hold the argument of --host etc.
1389# FIXME: To remove some day.
1390build=$build_alias
1391host=$host_alias
1392target=$target_alias
1393
1394# FIXME: To remove some day.
1395if test "x$host_alias" != x; then
1396  if test "x$build_alias" = x; then
1397    cross_compiling=maybe
1398  elif test "x$build_alias" != "x$host_alias"; then
1399    cross_compiling=yes
1400  fi
1401fi
1402
1403ac_tool_prefix=
1404test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406test "$silent" = yes && exec 6>/dev/null
1407
1408
1409ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410ac_ls_di=`ls -di .` &&
1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412  as_fn_error $? "working directory cannot be determined"
1413test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414  as_fn_error $? "pwd does not report name of working directory"
1415
1416
1417# Find the source files, if location was not specified.
1418if test -z "$srcdir"; then
1419  ac_srcdir_defaulted=yes
1420  # Try the directory containing this script, then the parent directory.
1421  ac_confdir=`$as_dirname -- "$as_myself" ||
1422$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423	 X"$as_myself" : 'X\(//\)[^/]' \| \
1424	 X"$as_myself" : 'X\(//\)$' \| \
1425	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426$as_echo X"$as_myself" |
1427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428	    s//\1/
1429	    q
1430	  }
1431	  /^X\(\/\/\)[^/].*/{
1432	    s//\1/
1433	    q
1434	  }
1435	  /^X\(\/\/\)$/{
1436	    s//\1/
1437	    q
1438	  }
1439	  /^X\(\/\).*/{
1440	    s//\1/
1441	    q
1442	  }
1443	  s/.*/./; q'`
1444  srcdir=$ac_confdir
1445  if test ! -r "$srcdir/$ac_unique_file"; then
1446    srcdir=..
1447  fi
1448else
1449  ac_srcdir_defaulted=no
1450fi
1451if test ! -r "$srcdir/$ac_unique_file"; then
1452  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1454fi
1455ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456ac_abs_confdir=`(
1457	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458	pwd)`
1459# When building in place, set srcdir=.
1460if test "$ac_abs_confdir" = "$ac_pwd"; then
1461  srcdir=.
1462fi
1463# Remove unnecessary trailing slashes from srcdir.
1464# Double slashes in file names in object file debugging info
1465# mess up M-x gdb in Emacs.
1466case $srcdir in
1467*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468esac
1469for ac_var in $ac_precious_vars; do
1470  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471  eval ac_env_${ac_var}_value=\$${ac_var}
1472  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474done
1475
1476#
1477# Report the --help message.
1478#
1479if test "$ac_init_help" = "long"; then
1480  # Omit some internal or obsolete options to make the list less imposing.
1481  # This message is too long to be a string in the A/UX 3.1 sh.
1482  cat <<_ACEOF
1483\`configure' configures libxcb 1.13 to adapt to many kinds of systems.
1484
1485Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488VAR=VALUE.  See below for descriptions of some of the useful variables.
1489
1490Defaults for the options are specified in brackets.
1491
1492Configuration:
1493  -h, --help              display this help and exit
1494      --help=short        display options specific to this package
1495      --help=recursive    display the short help of all the included packages
1496  -V, --version           display version information and exit
1497  -q, --quiet, --silent   do not print \`checking ...' messages
1498      --cache-file=FILE   cache test results in FILE [disabled]
1499  -C, --config-cache      alias for \`--cache-file=config.cache'
1500  -n, --no-create         do not create output files
1501      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1502
1503Installation directories:
1504  --prefix=PREFIX         install architecture-independent files in PREFIX
1505                          [$ac_default_prefix]
1506  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1507                          [PREFIX]
1508
1509By default, \`make install' will install all the files in
1510\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1511an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512for instance \`--prefix=\$HOME'.
1513
1514For better control, use the options below.
1515
1516Fine tuning of the installation directories:
1517  --bindir=DIR            user executables [EPREFIX/bin]
1518  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1519  --libexecdir=DIR        program executables [EPREFIX/libexec]
1520  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1521  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1522  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1523  --libdir=DIR            object code libraries [EPREFIX/lib]
1524  --includedir=DIR        C header files [PREFIX/include]
1525  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1526  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1527  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1528  --infodir=DIR           info documentation [DATAROOTDIR/info]
1529  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1530  --mandir=DIR            man documentation [DATAROOTDIR/man]
1531  --docdir=DIR            documentation root [DATAROOTDIR/doc/libxcb]
1532  --htmldir=DIR           html documentation [DOCDIR]
1533  --dvidir=DIR            dvi documentation [DOCDIR]
1534  --pdfdir=DIR            pdf documentation [DOCDIR]
1535  --psdir=DIR             ps documentation [DOCDIR]
1536_ACEOF
1537
1538  cat <<\_ACEOF
1539
1540Program names:
1541  --program-prefix=PREFIX            prepend PREFIX to installed program names
1542  --program-suffix=SUFFIX            append SUFFIX to installed program names
1543  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1544
1545System types:
1546  --build=BUILD     configure for building on BUILD [guessed]
1547  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1548_ACEOF
1549fi
1550
1551if test -n "$ac_init_help"; then
1552  case $ac_init_help in
1553     short | recursive ) echo "Configuration of libxcb 1.13:";;
1554   esac
1555  cat <<\_ACEOF
1556
1557Optional Features:
1558  --disable-option-checking  ignore unrecognized --enable/--with options
1559  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1560  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1561  --enable-silent-rules   less verbose build output (undo: "make V=1")
1562  --disable-silent-rules  verbose build output (undo: "make V=0")
1563  --enable-dependency-tracking
1564                          do not reject slow dependency extractors
1565  --disable-dependency-tracking
1566                          speeds up one-time build
1567  --enable-shared[=PKGS]  build shared libraries [default=yes]
1568  --enable-static[=PKGS]  build static libraries [default=yes]
1569  --enable-fast-install[=PKGS]
1570                          optimize for fast installation [default=yes]
1571  --disable-libtool-lock  avoid locking (might break parallel builds)
1572  --disable-selective-werror
1573                          Turn off selective compiler errors. (default:
1574                          enabled)
1575  --enable-strict-compilation
1576                          Enable all warnings from compiler and make them
1577                          errors (default: disabled)
1578  --enable-devel-docs     Enable building the developer documentation
1579                          (default: yes)
1580  --enable-composite      Build XCB Composite Extension (default: yes)
1581  --enable-damage         Build XCB Damage Extension (default: yes)
1582  --enable-dpms           Build XCB DPMS Extension (default: yes)
1583  --enable-dri2           Build XCB DRI2 Extension (default: yes)
1584  --enable-dri3           Build XCB DRI3 Extension (default: auto)
1585  --enable-ge             Build XCB GE Extension (default: no)
1586  --enable-glx            Build XCB GLX Extension (default: yes)
1587  --enable-present        Build XCB Present Extension (default: yes)
1588  --enable-randr          Build XCB RandR Extension (default: yes)
1589  --enable-record         Build XCB Record Extension (default: yes)
1590  --enable-render         Build XCB Render Extension (default: yes)
1591  --enable-resource       Build XCB Resource Extension (default: yes)
1592  --enable-screensaver    Build XCB Screensaver Extension (default: yes)
1593  --enable-shape          Build XCB Shape Extension (default: yes)
1594  --enable-shm            Build XCB Shm Extension (default: yes)
1595  --enable-sync           Build XCB Sync Extension (default: yes)
1596  --enable-xevie          Build XCB Xevie Extension (default: no)
1597  --enable-xfixes         Build XCB XFixes Extension (default: yes)
1598  --enable-xfree86-dri    Build XCB XFree86-DRI Extension (default: yes)
1599  --enable-xinerama       Build XCB Xinerama Extension (default: yes)
1600  --enable-xinput         Build XCB XInput Extension (default: yes)
1601  --enable-xkb            Build XCB XKB Extension (default: yes)
1602  --enable-xprint         Build XCB Xprint Extension (default: no)
1603  --enable-selinux        Build XCB SELinux Extension (default: no)
1604  --enable-xtest          Build XCB XTest Extension (default: yes)
1605  --enable-xv             Build XCB Xv Extension (default: yes)
1606  --enable-xvmc           Build XCB XvMC Extension (default: yes)
1607
1608Optional Packages:
1609  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1610  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1611  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1612                          both]
1613  --with-aix-soname=aix|svr4|both
1614                          shared library versioning (aka "SONAME") variant to
1615                          provide on AIX, [default=aix].
1616  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1617  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1618                          compiler's sysroot if not specified).
1619  --with-doxygen          Use doxygen to regenerate documentation (default:
1620                          auto)
1621  --with-queue-size=SIZE  Set the XCB buffer queue size (default is 16384)
1622  --with-launchd          Build with support for Apple's launchd (default:
1623                          auto)
1624  --with-serverside-support
1625                          Build with support for server-side usage of xcb.
1626                          This is still EXPERIMENTAL! ABI/API may change!
1627                          (default: no)
1628
1629Some influential environment variables:
1630  PYTHON      the Python interpreter
1631  CC          C compiler command
1632  CFLAGS      C compiler flags
1633  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1634              nonstandard directory <lib dir>
1635  LIBS        libraries to pass to the linker, e.g. -l<library>
1636  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1637              you have headers in a nonstandard directory <include dir>
1638  CPP         C preprocessor
1639  LT_SYS_LIBRARY_PATH
1640              User-defined run-time library search path.
1641  PKG_CONFIG  path to pkg-config utility
1642  PKG_CONFIG_PATH
1643              directories to add to pkg-config's search path
1644  PKG_CONFIG_LIBDIR
1645              path overriding pkg-config's built-in search path
1646  DOXYGEN     Path to doxygen command
1647  DOT         Path to the dot graphics utility
1648  CHECK_CFLAGS
1649              C compiler flags for CHECK, overriding pkg-config
1650  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1651  XCBPROTO_CFLAGS
1652              C compiler flags for XCBPROTO, overriding pkg-config
1653  XCBPROTO_LIBS
1654              linker flags for XCBPROTO, overriding pkg-config
1655  NEEDED_CFLAGS
1656              C compiler flags for NEEDED, overriding pkg-config
1657  NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
1658  XDMCP_CFLAGS
1659              C compiler flags for XDMCP, overriding pkg-config
1660  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1661
1662Use these variables to override the choices made by `configure' or to help
1663it to find libraries and programs with nonstandard names/locations.
1664
1665Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>.
1666_ACEOF
1667ac_status=$?
1668fi
1669
1670if test "$ac_init_help" = "recursive"; then
1671  # If there are subdirs, report their specific --help.
1672  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1673    test -d "$ac_dir" ||
1674      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1675      continue
1676    ac_builddir=.
1677
1678case "$ac_dir" in
1679.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1680*)
1681  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1682  # A ".." for each directory in $ac_dir_suffix.
1683  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1684  case $ac_top_builddir_sub in
1685  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1686  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1687  esac ;;
1688esac
1689ac_abs_top_builddir=$ac_pwd
1690ac_abs_builddir=$ac_pwd$ac_dir_suffix
1691# for backward compatibility:
1692ac_top_builddir=$ac_top_build_prefix
1693
1694case $srcdir in
1695  .)  # We are building in place.
1696    ac_srcdir=.
1697    ac_top_srcdir=$ac_top_builddir_sub
1698    ac_abs_top_srcdir=$ac_pwd ;;
1699  [\\/]* | ?:[\\/]* )  # Absolute name.
1700    ac_srcdir=$srcdir$ac_dir_suffix;
1701    ac_top_srcdir=$srcdir
1702    ac_abs_top_srcdir=$srcdir ;;
1703  *) # Relative name.
1704    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1705    ac_top_srcdir=$ac_top_build_prefix$srcdir
1706    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1707esac
1708ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1709
1710    cd "$ac_dir" || { ac_status=$?; continue; }
1711    # Check for guested configure.
1712    if test -f "$ac_srcdir/configure.gnu"; then
1713      echo &&
1714      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1715    elif test -f "$ac_srcdir/configure"; then
1716      echo &&
1717      $SHELL "$ac_srcdir/configure" --help=recursive
1718    else
1719      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1720    fi || ac_status=$?
1721    cd "$ac_pwd" || { ac_status=$?; break; }
1722  done
1723fi
1724
1725test -n "$ac_init_help" && exit $ac_status
1726if $ac_init_version; then
1727  cat <<\_ACEOF
1728libxcb configure 1.13
1729generated by GNU Autoconf 2.69
1730
1731Copyright (C) 2012 Free Software Foundation, Inc.
1732This configure script is free software; the Free Software Foundation
1733gives unlimited permission to copy, distribute and modify it.
1734_ACEOF
1735  exit
1736fi
1737
1738## ------------------------ ##
1739## Autoconf initialization. ##
1740## ------------------------ ##
1741
1742# ac_fn_c_try_compile LINENO
1743# --------------------------
1744# Try to compile conftest.$ac_ext, and return whether this succeeded.
1745ac_fn_c_try_compile ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  rm -f conftest.$ac_objext
1749  if { { ac_try="$ac_compile"
1750case "(($ac_try" in
1751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752  *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756  (eval "$ac_compile") 2>conftest.err
1757  ac_status=$?
1758  if test -s conftest.err; then
1759    grep -v '^ *+' conftest.err >conftest.er1
1760    cat conftest.er1 >&5
1761    mv -f conftest.er1 conftest.err
1762  fi
1763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764  test $ac_status = 0; } && {
1765	 test -z "$ac_c_werror_flag" ||
1766	 test ! -s conftest.err
1767       } && test -s conftest.$ac_objext; then :
1768  ac_retval=0
1769else
1770  $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773	ac_retval=1
1774fi
1775  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776  as_fn_set_status $ac_retval
1777
1778} # ac_fn_c_try_compile
1779
1780# ac_fn_c_try_cpp LINENO
1781# ----------------------
1782# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1783ac_fn_c_try_cpp ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  if { { ac_try="$ac_cpp conftest.$ac_ext"
1787case "(($ac_try" in
1788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789  *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794  ac_status=$?
1795  if test -s conftest.err; then
1796    grep -v '^ *+' conftest.err >conftest.er1
1797    cat conftest.er1 >&5
1798    mv -f conftest.er1 conftest.err
1799  fi
1800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801  test $ac_status = 0; } > conftest.i && {
1802	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803	 test ! -s conftest.err
1804       }; then :
1805  ac_retval=0
1806else
1807  $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810    ac_retval=1
1811fi
1812  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813  as_fn_set_status $ac_retval
1814
1815} # ac_fn_c_try_cpp
1816
1817# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818# -------------------------------------------------------
1819# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820# the include files in INCLUDES and setting the cache variable VAR
1821# accordingly.
1822ac_fn_c_check_header_mongrel ()
1823{
1824  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825  if eval \${$3+:} false; then :
1826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if eval \${$3+:} false; then :
1829  $as_echo_n "(cached) " >&6
1830fi
1831eval ac_res=\$$3
1832	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834else
1835  # Is the header compilable?
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837$as_echo_n "checking $2 usability... " >&6; }
1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h.  */
1840$4
1841#include <$2>
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"; then :
1844  ac_header_compiler=yes
1845else
1846  ac_header_compiler=no
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850$as_echo "$ac_header_compiler" >&6; }
1851
1852# Is the header present?
1853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854$as_echo_n "checking $2 presence... " >&6; }
1855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h.  */
1857#include <$2>
1858_ACEOF
1859if ac_fn_c_try_cpp "$LINENO"; then :
1860  ac_header_preproc=yes
1861else
1862  ac_header_preproc=no
1863fi
1864rm -f conftest.err conftest.i conftest.$ac_ext
1865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866$as_echo "$ac_header_preproc" >&6; }
1867
1868# So?  What about this header?
1869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1870  yes:no: )
1871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875    ;;
1876  no:yes:* )
1877    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1880$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1881    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1884$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1885    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887( $as_echo "## --------------------------------------------------------------------- ##
1888## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xcb ##
1889## --------------------------------------------------------------------- ##"
1890     ) | sed "s/^/$as_me: WARNING:     /" >&2
1891    ;;
1892esac
1893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval \${$3+:} false; then :
1896  $as_echo_n "(cached) " >&6
1897else
1898  eval "$3=\$ac_header_compiler"
1899fi
1900eval ac_res=\$$3
1901	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
1903fi
1904  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906} # ac_fn_c_check_header_mongrel
1907
1908# ac_fn_c_try_run LINENO
1909# ----------------------
1910# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1911# that executables *can* be run.
1912ac_fn_c_try_run ()
1913{
1914  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915  if { { ac_try="$ac_link"
1916case "(($ac_try" in
1917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918  *) ac_try_echo=$ac_try;;
1919esac
1920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921$as_echo "$ac_try_echo"; } >&5
1922  (eval "$ac_link") 2>&5
1923  ac_status=$?
1924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1926  { { case "(($ac_try" in
1927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928  *) ac_try_echo=$ac_try;;
1929esac
1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931$as_echo "$ac_try_echo"; } >&5
1932  (eval "$ac_try") 2>&5
1933  ac_status=$?
1934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935  test $ac_status = 0; }; }; then :
1936  ac_retval=0
1937else
1938  $as_echo "$as_me: program exited with status $ac_status" >&5
1939       $as_echo "$as_me: failed program was:" >&5
1940sed 's/^/| /' conftest.$ac_ext >&5
1941
1942       ac_retval=$ac_status
1943fi
1944  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946  as_fn_set_status $ac_retval
1947
1948} # ac_fn_c_try_run
1949
1950# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1951# -------------------------------------------------------
1952# Tests whether HEADER exists and can be compiled using the include files in
1953# INCLUDES, setting the cache variable VAR accordingly.
1954ac_fn_c_check_header_compile ()
1955{
1956  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval \${$3+:} false; then :
1960  $as_echo_n "(cached) " >&6
1961else
1962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h.  */
1964$4
1965#include <$2>
1966_ACEOF
1967if ac_fn_c_try_compile "$LINENO"; then :
1968  eval "$3=yes"
1969else
1970  eval "$3=no"
1971fi
1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973fi
1974eval ac_res=\$$3
1975	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976$as_echo "$ac_res" >&6; }
1977  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979} # ac_fn_c_check_header_compile
1980
1981# ac_fn_c_try_link LINENO
1982# -----------------------
1983# Try to link conftest.$ac_ext, and return whether this succeeded.
1984ac_fn_c_try_link ()
1985{
1986  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987  rm -f conftest.$ac_objext conftest$ac_exeext
1988  if { { ac_try="$ac_link"
1989case "(($ac_try" in
1990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991  *) ac_try_echo=$ac_try;;
1992esac
1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994$as_echo "$ac_try_echo"; } >&5
1995  (eval "$ac_link") 2>conftest.err
1996  ac_status=$?
1997  if test -s conftest.err; then
1998    grep -v '^ *+' conftest.err >conftest.er1
1999    cat conftest.er1 >&5
2000    mv -f conftest.er1 conftest.err
2001  fi
2002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003  test $ac_status = 0; } && {
2004	 test -z "$ac_c_werror_flag" ||
2005	 test ! -s conftest.err
2006       } && test -s conftest$ac_exeext && {
2007	 test "$cross_compiling" = yes ||
2008	 test -x conftest$ac_exeext
2009       }; then :
2010  ac_retval=0
2011else
2012  $as_echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015	ac_retval=1
2016fi
2017  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019  # interfere with the next link command; also delete a directory that is
2020  # left behind by Apple's compiler.  We do this before executing the actions.
2021  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023  as_fn_set_status $ac_retval
2024
2025} # ac_fn_c_try_link
2026
2027# ac_fn_c_check_func LINENO FUNC VAR
2028# ----------------------------------
2029# Tests whether FUNC exists, setting the cache variable VAR accordingly
2030ac_fn_c_check_func ()
2031{
2032  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034$as_echo_n "checking for $2... " >&6; }
2035if eval \${$3+:} false; then :
2036  $as_echo_n "(cached) " >&6
2037else
2038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2041   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2042#define $2 innocuous_$2
2043
2044/* System header to define __stub macros and hopefully few prototypes,
2045    which can conflict with char $2 (); below.
2046    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2047    <limits.h> exists even on freestanding compilers.  */
2048
2049#ifdef __STDC__
2050# include <limits.h>
2051#else
2052# include <assert.h>
2053#endif
2054
2055#undef $2
2056
2057/* Override any GCC internal prototype to avoid an error.
2058   Use char because int might match the return type of a GCC
2059   builtin and then its argument prototype would still apply.  */
2060#ifdef __cplusplus
2061extern "C"
2062#endif
2063char $2 ();
2064/* The GNU C library defines this for functions which it implements
2065    to always fail with ENOSYS.  Some functions are actually named
2066    something starting with __ and the normal name is an alias.  */
2067#if defined __stub_$2 || defined __stub___$2
2068choke me
2069#endif
2070
2071int
2072main ()
2073{
2074return $2 ();
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_link "$LINENO"; then :
2080  eval "$3=yes"
2081else
2082  eval "$3=no"
2083fi
2084rm -f core conftest.err conftest.$ac_objext \
2085    conftest$ac_exeext conftest.$ac_ext
2086fi
2087eval ac_res=\$$3
2088	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089$as_echo "$ac_res" >&6; }
2090  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092} # ac_fn_c_check_func
2093
2094# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2095# ---------------------------------------------
2096# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2097# accordingly.
2098ac_fn_c_check_decl ()
2099{
2100  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101  as_decl_name=`echo $2|sed 's/ *(.*//'`
2102  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2104$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2105if eval \${$3+:} false; then :
2106  $as_echo_n "(cached) " >&6
2107else
2108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h.  */
2110$4
2111int
2112main ()
2113{
2114#ifndef $as_decl_name
2115#ifdef __cplusplus
2116  (void) $as_decl_use;
2117#else
2118  (void) $as_decl_name;
2119#endif
2120#endif
2121
2122  ;
2123  return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_compile "$LINENO"; then :
2127  eval "$3=yes"
2128else
2129  eval "$3=no"
2130fi
2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132fi
2133eval ac_res=\$$3
2134	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135$as_echo "$ac_res" >&6; }
2136  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138} # ac_fn_c_check_decl
2139
2140# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2141# ----------------------------------------------------
2142# Tries to find if the field MEMBER exists in type AGGR, after including
2143# INCLUDES, setting cache variable VAR accordingly.
2144ac_fn_c_check_member ()
2145{
2146  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2148$as_echo_n "checking for $2.$3... " >&6; }
2149if eval \${$4+:} false; then :
2150  $as_echo_n "(cached) " >&6
2151else
2152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$5
2155int
2156main ()
2157{
2158static $2 ac_aggr;
2159if (ac_aggr.$3)
2160return 0;
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166  eval "$4=yes"
2167else
2168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170$5
2171int
2172main ()
2173{
2174static $2 ac_aggr;
2175if (sizeof ac_aggr.$3)
2176return 0;
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182  eval "$4=yes"
2183else
2184  eval "$4=no"
2185fi
2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189fi
2190eval ac_res=\$$4
2191	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192$as_echo "$ac_res" >&6; }
2193  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194
2195} # ac_fn_c_check_member
2196cat >config.log <<_ACEOF
2197This file contains any messages produced by compilers while
2198running configure, to aid debugging if configure makes a mistake.
2199
2200It was created by libxcb $as_me 1.13, which was
2201generated by GNU Autoconf 2.69.  Invocation command line was
2202
2203  $ $0 $@
2204
2205_ACEOF
2206exec 5>>config.log
2207{
2208cat <<_ASUNAME
2209## --------- ##
2210## Platform. ##
2211## --------- ##
2212
2213hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2214uname -m = `(uname -m) 2>/dev/null || echo unknown`
2215uname -r = `(uname -r) 2>/dev/null || echo unknown`
2216uname -s = `(uname -s) 2>/dev/null || echo unknown`
2217uname -v = `(uname -v) 2>/dev/null || echo unknown`
2218
2219/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2220/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2221
2222/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2223/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2224/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2225/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2226/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2227/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2228/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2229
2230_ASUNAME
2231
2232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233for as_dir in $PATH
2234do
2235  IFS=$as_save_IFS
2236  test -z "$as_dir" && as_dir=.
2237    $as_echo "PATH: $as_dir"
2238  done
2239IFS=$as_save_IFS
2240
2241} >&5
2242
2243cat >&5 <<_ACEOF
2244
2245
2246## ----------- ##
2247## Core tests. ##
2248## ----------- ##
2249
2250_ACEOF
2251
2252
2253# Keep a trace of the command line.
2254# Strip out --no-create and --no-recursion so they do not pile up.
2255# Strip out --silent because we don't want to record it for future runs.
2256# Also quote any args containing shell meta-characters.
2257# Make two passes to allow for proper duplicate-argument suppression.
2258ac_configure_args=
2259ac_configure_args0=
2260ac_configure_args1=
2261ac_must_keep_next=false
2262for ac_pass in 1 2
2263do
2264  for ac_arg
2265  do
2266    case $ac_arg in
2267    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2268    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2269    | -silent | --silent | --silen | --sile | --sil)
2270      continue ;;
2271    *\'*)
2272      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2273    esac
2274    case $ac_pass in
2275    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2276    2)
2277      as_fn_append ac_configure_args1 " '$ac_arg'"
2278      if test $ac_must_keep_next = true; then
2279	ac_must_keep_next=false # Got value, back to normal.
2280      else
2281	case $ac_arg in
2282	  *=* | --config-cache | -C | -disable-* | --disable-* \
2283	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2284	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2285	  | -with-* | --with-* | -without-* | --without-* | --x)
2286	    case "$ac_configure_args0 " in
2287	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2288	    esac
2289	    ;;
2290	  -* ) ac_must_keep_next=true ;;
2291	esac
2292      fi
2293      as_fn_append ac_configure_args " '$ac_arg'"
2294      ;;
2295    esac
2296  done
2297done
2298{ ac_configure_args0=; unset ac_configure_args0;}
2299{ ac_configure_args1=; unset ac_configure_args1;}
2300
2301# When interrupted or exit'd, cleanup temporary files, and complete
2302# config.log.  We remove comments because anyway the quotes in there
2303# would cause problems or look ugly.
2304# WARNING: Use '\'' to represent an apostrophe within the trap.
2305# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2306trap 'exit_status=$?
2307  # Save into config.log some information that might help in debugging.
2308  {
2309    echo
2310
2311    $as_echo "## ---------------- ##
2312## Cache variables. ##
2313## ---------------- ##"
2314    echo
2315    # The following way of writing the cache mishandles newlines in values,
2316(
2317  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2318    eval ac_val=\$$ac_var
2319    case $ac_val in #(
2320    *${as_nl}*)
2321      case $ac_var in #(
2322      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2323$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2324      esac
2325      case $ac_var in #(
2326      _ | IFS | as_nl) ;; #(
2327      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2328      *) { eval $ac_var=; unset $ac_var;} ;;
2329      esac ;;
2330    esac
2331  done
2332  (set) 2>&1 |
2333    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2334    *${as_nl}ac_space=\ *)
2335      sed -n \
2336	"s/'\''/'\''\\\\'\'''\''/g;
2337	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2338      ;; #(
2339    *)
2340      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2341      ;;
2342    esac |
2343    sort
2344)
2345    echo
2346
2347    $as_echo "## ----------------- ##
2348## Output variables. ##
2349## ----------------- ##"
2350    echo
2351    for ac_var in $ac_subst_vars
2352    do
2353      eval ac_val=\$$ac_var
2354      case $ac_val in
2355      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2356      esac
2357      $as_echo "$ac_var='\''$ac_val'\''"
2358    done | sort
2359    echo
2360
2361    if test -n "$ac_subst_files"; then
2362      $as_echo "## ------------------- ##
2363## File substitutions. ##
2364## ------------------- ##"
2365      echo
2366      for ac_var in $ac_subst_files
2367      do
2368	eval ac_val=\$$ac_var
2369	case $ac_val in
2370	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2371	esac
2372	$as_echo "$ac_var='\''$ac_val'\''"
2373      done | sort
2374      echo
2375    fi
2376
2377    if test -s confdefs.h; then
2378      $as_echo "## ----------- ##
2379## confdefs.h. ##
2380## ----------- ##"
2381      echo
2382      cat confdefs.h
2383      echo
2384    fi
2385    test "$ac_signal" != 0 &&
2386      $as_echo "$as_me: caught signal $ac_signal"
2387    $as_echo "$as_me: exit $exit_status"
2388  } >&5
2389  rm -f core *.core core.conftest.* &&
2390    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2391    exit $exit_status
2392' 0
2393for ac_signal in 1 2 13 15; do
2394  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2395done
2396ac_signal=0
2397
2398# confdefs.h avoids OS command line length limits that DEFS can exceed.
2399rm -f -r conftest* confdefs.h
2400
2401$as_echo "/* confdefs.h */" > confdefs.h
2402
2403# Predefined preprocessor variables.
2404
2405cat >>confdefs.h <<_ACEOF
2406#define PACKAGE_NAME "$PACKAGE_NAME"
2407_ACEOF
2408
2409cat >>confdefs.h <<_ACEOF
2410#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2411_ACEOF
2412
2413cat >>confdefs.h <<_ACEOF
2414#define PACKAGE_VERSION "$PACKAGE_VERSION"
2415_ACEOF
2416
2417cat >>confdefs.h <<_ACEOF
2418#define PACKAGE_STRING "$PACKAGE_STRING"
2419_ACEOF
2420
2421cat >>confdefs.h <<_ACEOF
2422#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2423_ACEOF
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_URL "$PACKAGE_URL"
2427_ACEOF
2428
2429
2430# Let the site file select an alternate cache file if it wants to.
2431# Prefer an explicitly selected file to automatically selected ones.
2432ac_site_file1=NONE
2433ac_site_file2=NONE
2434if test -n "$CONFIG_SITE"; then
2435  # We do not want a PATH search for config.site.
2436  case $CONFIG_SITE in #((
2437    -*)  ac_site_file1=./$CONFIG_SITE;;
2438    */*) ac_site_file1=$CONFIG_SITE;;
2439    *)   ac_site_file1=./$CONFIG_SITE;;
2440  esac
2441elif test "x$prefix" != xNONE; then
2442  ac_site_file1=$prefix/share/config.site
2443  ac_site_file2=$prefix/etc/config.site
2444else
2445  ac_site_file1=$ac_default_prefix/share/config.site
2446  ac_site_file2=$ac_default_prefix/etc/config.site
2447fi
2448for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2449do
2450  test "x$ac_site_file" = xNONE && continue
2451  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2452    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2453$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2454    sed 's/^/| /' "$ac_site_file" >&5
2455    . "$ac_site_file" \
2456      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2458as_fn_error $? "failed to load site script $ac_site_file
2459See \`config.log' for more details" "$LINENO" 5; }
2460  fi
2461done
2462
2463if test -r "$cache_file"; then
2464  # Some versions of bash will fail to source /dev/null (special files
2465  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2466  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2467    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2468$as_echo "$as_me: loading cache $cache_file" >&6;}
2469    case $cache_file in
2470      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2471      *)                      . "./$cache_file";;
2472    esac
2473  fi
2474else
2475  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2476$as_echo "$as_me: creating cache $cache_file" >&6;}
2477  >$cache_file
2478fi
2479
2480# Check that the precious variables saved in the cache have kept the same
2481# value.
2482ac_cache_corrupted=false
2483for ac_var in $ac_precious_vars; do
2484  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2485  eval ac_new_set=\$ac_env_${ac_var}_set
2486  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2487  eval ac_new_val=\$ac_env_${ac_var}_value
2488  case $ac_old_set,$ac_new_set in
2489    set,)
2490      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2491$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2492      ac_cache_corrupted=: ;;
2493    ,set)
2494      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2495$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2496      ac_cache_corrupted=: ;;
2497    ,);;
2498    *)
2499      if test "x$ac_old_val" != "x$ac_new_val"; then
2500	# differences in whitespace do not lead to failure.
2501	ac_old_val_w=`echo x $ac_old_val`
2502	ac_new_val_w=`echo x $ac_new_val`
2503	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2504	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2505$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2506	  ac_cache_corrupted=:
2507	else
2508	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2509$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2510	  eval $ac_var=\$ac_old_val
2511	fi
2512	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2513$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2514	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2515$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2516      fi;;
2517  esac
2518  # Pass precious variables to config.status.
2519  if test "$ac_new_set" = set; then
2520    case $ac_new_val in
2521    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2522    *) ac_arg=$ac_var=$ac_new_val ;;
2523    esac
2524    case " $ac_configure_args " in
2525      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2526      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2527    esac
2528  fi
2529done
2530if $ac_cache_corrupted; then
2531  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2533  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2534$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2535  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2536fi
2537## -------------------- ##
2538## Main body of script. ##
2539## -------------------- ##
2540
2541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546
2547
2548ac_aux_dir=
2549for ac_dir in build-aux "$srcdir"/build-aux; do
2550  if test -f "$ac_dir/install-sh"; then
2551    ac_aux_dir=$ac_dir
2552    ac_install_sh="$ac_aux_dir/install-sh -c"
2553    break
2554  elif test -f "$ac_dir/install.sh"; then
2555    ac_aux_dir=$ac_dir
2556    ac_install_sh="$ac_aux_dir/install.sh -c"
2557    break
2558  elif test -f "$ac_dir/shtool"; then
2559    ac_aux_dir=$ac_dir
2560    ac_install_sh="$ac_aux_dir/shtool install -c"
2561    break
2562  fi
2563done
2564if test -z "$ac_aux_dir"; then
2565  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2566fi
2567
2568# These three variables are undocumented and unsupported,
2569# and are intended to be withdrawn in a future Autoconf release.
2570# They can cause serious problems if a builder's source tree is in a directory
2571# whose full name contains unusual characters.
2572ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2573ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2574ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2575
2576
2577
2578
2579ac_config_headers="$ac_config_headers src/config.h"
2580
2581
2582# Initialize Automake
2583am__api_version='1.15'
2584
2585# Find a good install program.  We prefer a C program (faster),
2586# so one script is as good as another.  But avoid the broken or
2587# incompatible versions:
2588# SysV /etc/install, /usr/sbin/install
2589# SunOS /usr/etc/install
2590# IRIX /sbin/install
2591# AIX /bin/install
2592# AmigaOS /C/install, which installs bootblocks on floppy discs
2593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2594# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2596# OS/2's system install, which has a completely different semantic
2597# ./install, which can be erroneously created by make from ./install.sh.
2598# Reject install programs that cannot install multiple files.
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2600$as_echo_n "checking for a BSD-compatible install... " >&6; }
2601if test -z "$INSTALL"; then
2602if ${ac_cv_path_install+:} false; then :
2603  $as_echo_n "(cached) " >&6
2604else
2605  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608  IFS=$as_save_IFS
2609  test -z "$as_dir" && as_dir=.
2610    # Account for people who put trailing slashes in PATH elements.
2611case $as_dir/ in #((
2612  ./ | .// | /[cC]/* | \
2613  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2614  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2615  /usr/ucb/* ) ;;
2616  *)
2617    # OSF1 and SCO ODT 3.0 have their own names for install.
2618    # Don't use installbsd from OSF since it installs stuff as root
2619    # by default.
2620    for ac_prog in ginstall scoinst install; do
2621      for ac_exec_ext in '' $ac_executable_extensions; do
2622	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2623	  if test $ac_prog = install &&
2624	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2625	    # AIX install.  It has an incompatible calling convention.
2626	    :
2627	  elif test $ac_prog = install &&
2628	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2629	    # program-specific install script used by HP pwplus--don't use.
2630	    :
2631	  else
2632	    rm -rf conftest.one conftest.two conftest.dir
2633	    echo one > conftest.one
2634	    echo two > conftest.two
2635	    mkdir conftest.dir
2636	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2637	      test -s conftest.one && test -s conftest.two &&
2638	      test -s conftest.dir/conftest.one &&
2639	      test -s conftest.dir/conftest.two
2640	    then
2641	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2642	      break 3
2643	    fi
2644	  fi
2645	fi
2646      done
2647    done
2648    ;;
2649esac
2650
2651  done
2652IFS=$as_save_IFS
2653
2654rm -rf conftest.one conftest.two conftest.dir
2655
2656fi
2657  if test "${ac_cv_path_install+set}" = set; then
2658    INSTALL=$ac_cv_path_install
2659  else
2660    # As a last resort, use the slow shell script.  Don't cache a
2661    # value for INSTALL within a source directory, because that will
2662    # break other packages using the cache if that directory is
2663    # removed, or if the value is a relative name.
2664    INSTALL=$ac_install_sh
2665  fi
2666fi
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2668$as_echo "$INSTALL" >&6; }
2669
2670# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2671# It thinks the first close brace ends the variable substitution.
2672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2673
2674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2675
2676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2677
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2679$as_echo_n "checking whether build environment is sane... " >&6; }
2680# Reject unsafe characters in $srcdir or the absolute working directory
2681# name.  Accept space and tab only in the latter.
2682am_lf='
2683'
2684case `pwd` in
2685  *[\\\"\#\$\&\'\`$am_lf]*)
2686    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2687esac
2688case $srcdir in
2689  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2690    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2691esac
2692
2693# Do 'set' in a subshell so we don't clobber the current shell's
2694# arguments.  Must try -L first in case configure is actually a
2695# symlink; some systems play weird games with the mod time of symlinks
2696# (eg FreeBSD returns the mod time of the symlink's containing
2697# directory).
2698if (
2699   am_has_slept=no
2700   for am_try in 1 2; do
2701     echo "timestamp, slept: $am_has_slept" > conftest.file
2702     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2703     if test "$*" = "X"; then
2704	# -L didn't work.
2705	set X `ls -t "$srcdir/configure" conftest.file`
2706     fi
2707     if test "$*" != "X $srcdir/configure conftest.file" \
2708	&& test "$*" != "X conftest.file $srcdir/configure"; then
2709
2710	# If neither matched, then we have a broken ls.  This can happen
2711	# if, for instance, CONFIG_SHELL is bash and it inherits a
2712	# broken ls alias from the environment.  This has actually
2713	# happened.  Such a system could not be considered "sane".
2714	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2715  alias in your environment" "$LINENO" 5
2716     fi
2717     if test "$2" = conftest.file || test $am_try -eq 2; then
2718       break
2719     fi
2720     # Just in case.
2721     sleep 1
2722     am_has_slept=yes
2723   done
2724   test "$2" = conftest.file
2725   )
2726then
2727   # Ok.
2728   :
2729else
2730   as_fn_error $? "newly created file is older than distributed files!
2731Check your system clock" "$LINENO" 5
2732fi
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734$as_echo "yes" >&6; }
2735# If we didn't sleep, we still need to ensure time stamps of config.status and
2736# generated files are strictly newer.
2737am_sleep_pid=
2738if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2739  ( sleep 1 ) &
2740  am_sleep_pid=$!
2741fi
2742
2743rm -f conftest.file
2744
2745test "$program_prefix" != NONE &&
2746  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2747# Use a double $ so make ignores it.
2748test "$program_suffix" != NONE &&
2749  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2750# Double any \ or $.
2751# By default was `s,x,x', remove it if useless.
2752ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2753program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2754
2755# Expand $ac_aux_dir to an absolute path.
2756am_aux_dir=`cd "$ac_aux_dir" && pwd`
2757
2758if test x"${MISSING+set}" != xset; then
2759  case $am_aux_dir in
2760  *\ * | *\	*)
2761    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2762  *)
2763    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2764  esac
2765fi
2766# Use eval to expand $SHELL
2767if eval "$MISSING --is-lightweight"; then
2768  am_missing_run="$MISSING "
2769else
2770  am_missing_run=
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2772$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2773fi
2774
2775if test x"${install_sh+set}" != xset; then
2776  case $am_aux_dir in
2777  *\ * | *\	*)
2778    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2779  *)
2780    install_sh="\${SHELL} $am_aux_dir/install-sh"
2781  esac
2782fi
2783
2784# Installed binaries are usually stripped using 'strip' when the user
2785# run "make install-strip".  However 'strip' might not be the right
2786# tool to use in cross-compilation environments, therefore Automake
2787# will honor the 'STRIP' environment variable to overrule this program.
2788if test "$cross_compiling" != no; then
2789  if test -n "$ac_tool_prefix"; then
2790  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2791set dummy ${ac_tool_prefix}strip; ac_word=$2
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793$as_echo_n "checking for $ac_word... " >&6; }
2794if ${ac_cv_prog_STRIP+:} false; then :
2795  $as_echo_n "(cached) " >&6
2796else
2797  if test -n "$STRIP"; then
2798  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803  IFS=$as_save_IFS
2804  test -z "$as_dir" && as_dir=.
2805    for ac_exec_ext in '' $ac_executable_extensions; do
2806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809    break 2
2810  fi
2811done
2812  done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817STRIP=$ac_cv_prog_STRIP
2818if test -n "$STRIP"; then
2819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2820$as_echo "$STRIP" >&6; }
2821else
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
2824fi
2825
2826
2827fi
2828if test -z "$ac_cv_prog_STRIP"; then
2829  ac_ct_STRIP=$STRIP
2830  # Extract the first word of "strip", so it can be a program name with args.
2831set dummy strip; ac_word=$2
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833$as_echo_n "checking for $ac_word... " >&6; }
2834if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  if test -n "$ac_ct_STRIP"; then
2838  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  test -z "$as_dir" && as_dir=.
2845    for ac_exec_ext in '' $ac_executable_extensions; do
2846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847    ac_cv_prog_ac_ct_STRIP="strip"
2848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852  done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2858if test -n "$ac_ct_STRIP"; then
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2860$as_echo "$ac_ct_STRIP" >&6; }
2861else
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866  if test "x$ac_ct_STRIP" = x; then
2867    STRIP=":"
2868  else
2869    case $cross_compiling:$ac_tool_warned in
2870yes:)
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873ac_tool_warned=yes ;;
2874esac
2875    STRIP=$ac_ct_STRIP
2876  fi
2877else
2878  STRIP="$ac_cv_prog_STRIP"
2879fi
2880
2881fi
2882INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2883
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2885$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2886if test -z "$MKDIR_P"; then
2887  if ${ac_cv_path_mkdir+:} false; then :
2888  $as_echo_n "(cached) " >&6
2889else
2890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2892do
2893  IFS=$as_save_IFS
2894  test -z "$as_dir" && as_dir=.
2895    for ac_prog in mkdir gmkdir; do
2896	 for ac_exec_ext in '' $ac_executable_extensions; do
2897	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2898	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2899	     'mkdir (GNU coreutils) '* | \
2900	     'mkdir (coreutils) '* | \
2901	     'mkdir (fileutils) '4.1*)
2902	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2903	       break 3;;
2904	   esac
2905	 done
2906       done
2907  done
2908IFS=$as_save_IFS
2909
2910fi
2911
2912  test -d ./--version && rmdir ./--version
2913  if test "${ac_cv_path_mkdir+set}" = set; then
2914    MKDIR_P="$ac_cv_path_mkdir -p"
2915  else
2916    # As a last resort, use the slow shell script.  Don't cache a
2917    # value for MKDIR_P within a source directory, because that will
2918    # break other packages using the cache if that directory is
2919    # removed, or if the value is a relative name.
2920    MKDIR_P="$ac_install_sh -d"
2921  fi
2922fi
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2924$as_echo "$MKDIR_P" >&6; }
2925
2926for ac_prog in gawk mawk nawk awk
2927do
2928  # Extract the first word of "$ac_prog", so it can be a program name with args.
2929set dummy $ac_prog; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if ${ac_cv_prog_AWK+:} false; then :
2933  $as_echo_n "(cached) " >&6
2934else
2935  if test -n "$AWK"; then
2936  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941  IFS=$as_save_IFS
2942  test -z "$as_dir" && as_dir=.
2943    for ac_exec_ext in '' $ac_executable_extensions; do
2944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945    ac_cv_prog_AWK="$ac_prog"
2946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947    break 2
2948  fi
2949done
2950  done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955AWK=$ac_cv_prog_AWK
2956if test -n "$AWK"; then
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2958$as_echo "$AWK" >&6; }
2959else
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
2965  test -n "$AWK" && break
2966done
2967
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2969$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2970set x ${MAKE-make}
2971ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2972if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  cat >conftest.make <<\_ACEOF
2976SHELL = /bin/sh
2977all:
2978	@echo '@@@%%%=$(MAKE)=@@@%%%'
2979_ACEOF
2980# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2981case `${MAKE-make} -f conftest.make 2>/dev/null` in
2982  *@@@%%%=?*=@@@%%%*)
2983    eval ac_cv_prog_make_${ac_make}_set=yes;;
2984  *)
2985    eval ac_cv_prog_make_${ac_make}_set=no;;
2986esac
2987rm -f conftest.make
2988fi
2989if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2991$as_echo "yes" >&6; }
2992  SET_MAKE=
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996  SET_MAKE="MAKE=${MAKE-make}"
2997fi
2998
2999rm -rf .tst 2>/dev/null
3000mkdir .tst 2>/dev/null
3001if test -d .tst; then
3002  am__leading_dot=.
3003else
3004  am__leading_dot=_
3005fi
3006rmdir .tst 2>/dev/null
3007
3008# Check whether --enable-silent-rules was given.
3009if test "${enable_silent_rules+set}" = set; then :
3010  enableval=$enable_silent_rules;
3011fi
3012
3013case $enable_silent_rules in # (((
3014  yes) AM_DEFAULT_VERBOSITY=0;;
3015   no) AM_DEFAULT_VERBOSITY=1;;
3016    *) AM_DEFAULT_VERBOSITY=1;;
3017esac
3018am_make=${MAKE-make}
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3020$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3021if ${am_cv_make_support_nested_variables+:} false; then :
3022  $as_echo_n "(cached) " >&6
3023else
3024  if $as_echo 'TRUE=$(BAR$(V))
3025BAR0=false
3026BAR1=true
3027V=1
3028am__doit:
3029	@$(TRUE)
3030.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3031  am_cv_make_support_nested_variables=yes
3032else
3033  am_cv_make_support_nested_variables=no
3034fi
3035fi
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3037$as_echo "$am_cv_make_support_nested_variables" >&6; }
3038if test $am_cv_make_support_nested_variables = yes; then
3039    AM_V='$(V)'
3040  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3041else
3042  AM_V=$AM_DEFAULT_VERBOSITY
3043  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3044fi
3045AM_BACKSLASH='\'
3046
3047if test "`cd $srcdir && pwd`" != "`pwd`"; then
3048  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3049  # is not polluted with repeated "-I."
3050  am__isrc=' -I$(srcdir)'
3051  # test to see if srcdir already configured
3052  if test -f $srcdir/config.status; then
3053    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3054  fi
3055fi
3056
3057# test whether we have cygpath
3058if test -z "$CYGPATH_W"; then
3059  if (cygpath --version) >/dev/null 2>/dev/null; then
3060    CYGPATH_W='cygpath -w'
3061  else
3062    CYGPATH_W=echo
3063  fi
3064fi
3065
3066
3067# Define the identity of the package.
3068 PACKAGE='libxcb'
3069 VERSION='1.13'
3070
3071
3072cat >>confdefs.h <<_ACEOF
3073#define PACKAGE "$PACKAGE"
3074_ACEOF
3075
3076
3077cat >>confdefs.h <<_ACEOF
3078#define VERSION "$VERSION"
3079_ACEOF
3080
3081# Some tools Automake needs.
3082
3083ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3084
3085
3086AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3087
3088
3089AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3090
3091
3092AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3093
3094
3095MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3096
3097# For better backward compatibility.  To be removed once Automake 1.9.x
3098# dies out for good.  For more background, see:
3099# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3100# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3101mkdir_p='$(MKDIR_P)'
3102
3103# We need awk for the "check" target (and possibly the TAP driver).  The
3104# system "awk" is bad on some platforms.
3105# Always define AMTAR for backward compatibility.  Yes, it's still used
3106# in the wild :-(  We should find a proper way to deprecate it ...
3107AMTAR='$${TAR-tar}'
3108
3109
3110# We'll loop over all known methods to create a tar archive until one works.
3111_am_tools='gnutar  pax cpio none'
3112
3113am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3114
3115
3116
3117
3118
3119
3120# POSIX will say in a future version that running "rm -f" with no argument
3121# is OK; and we want to be able to make that assumption in our Makefile
3122# recipes.  So use an aggressive probe to check that the usage we want is
3123# actually supported "in the wild" to an acceptable degree.
3124# See automake bug#10828.
3125# To make any issue more visible, cause the running configure to be aborted
3126# by default if the 'rm' program in use doesn't match our expectations; the
3127# user can still override this though.
3128if rm -f && rm -fr && rm -rf; then : OK; else
3129  cat >&2 <<'END'
3130Oops!
3131
3132Your 'rm' program seems unable to run without file operands specified
3133on the command line, even when the '-f' option is present.  This is contrary
3134to the behaviour of most rm programs out there, and not conforming with
3135the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3136
3137Please tell bug-automake@gnu.org about your system, including the value
3138of your $PATH and any error possibly output before this message.  This
3139can help us improve future automake versions.
3140
3141END
3142  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3143    echo 'Configuration will proceed anyway, since you have set the' >&2
3144    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3145    echo >&2
3146  else
3147    cat >&2 <<'END'
3148Aborting the configuration process, to ensure you take notice of the issue.
3149
3150You can download and install GNU coreutils to get an 'rm' implementation
3151that behaves properly: <http://www.gnu.org/software/coreutils/>.
3152
3153If you want to complete the configuration process using your problematic
3154'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3155to "yes", and re-run configure.
3156
3157END
3158    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3159  fi
3160fi
3161
3162
3163
3164
3165
3166
3167
3168        if test -n "$PYTHON"; then
3169      # If the user set $PYTHON, use it and don't search something else.
3170      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
3171$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
3172      prog="import sys
3173# split strings by '.' and convert to numeric.  Append some zeros
3174# because we need at least 4 digits for the hex conversion.
3175# map returns an iterator in Python 3.0 and a list in 2.x
3176minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3177minverhex = 0
3178# xrange is not present in Python 3.0 and range returns an iterator
3179for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3180sys.exit(sys.hexversion < minverhex)"
3181  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3182   ($PYTHON -c "$prog") >&5 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; then :
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187$as_echo "yes" >&6; }
3188else
3189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
3192fi
3193      am_display_PYTHON=$PYTHON
3194    else
3195      # Otherwise, try each interpreter until we find one that satisfies
3196      # VERSION.
3197      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
3198$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
3199if ${am_cv_pathless_PYTHON+:} false; then :
3200  $as_echo_n "(cached) " >&6
3201else
3202
3203	for am_cv_pathless_PYTHON in python python2 python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
3204	  test "$am_cv_pathless_PYTHON" = none && break
3205	  prog="import sys
3206# split strings by '.' and convert to numeric.  Append some zeros
3207# because we need at least 4 digits for the hex conversion.
3208# map returns an iterator in Python 3.0 and a list in 2.x
3209minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3210minverhex = 0
3211# xrange is not present in Python 3.0 and range returns an iterator
3212for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3213sys.exit(sys.hexversion < minverhex)"
3214  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3215   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; then :
3219  break
3220fi
3221	done
3222fi
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
3224$as_echo "$am_cv_pathless_PYTHON" >&6; }
3225      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3226      if test "$am_cv_pathless_PYTHON" = none; then
3227	PYTHON=:
3228      else
3229        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3230set dummy $am_cv_pathless_PYTHON; ac_word=$2
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232$as_echo_n "checking for $ac_word... " >&6; }
3233if ${ac_cv_path_PYTHON+:} false; then :
3234  $as_echo_n "(cached) " >&6
3235else
3236  case $PYTHON in
3237  [\\/]* | ?:[\\/]*)
3238  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3239  ;;
3240  *)
3241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246    for ac_exec_ext in '' $ac_executable_extensions; do
3247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250    break 2
3251  fi
3252done
3253  done
3254IFS=$as_save_IFS
3255
3256  ;;
3257esac
3258fi
3259PYTHON=$ac_cv_path_PYTHON
3260if test -n "$PYTHON"; then
3261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3262$as_echo "$PYTHON" >&6; }
3263else
3264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265$as_echo "no" >&6; }
3266fi
3267
3268
3269      fi
3270      am_display_PYTHON=$am_cv_pathless_PYTHON
3271    fi
3272
3273
3274  if test "$PYTHON" = :; then
3275      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
3276  else
3277
3278
3279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
3280$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
3281if ${am_cv_python_version+:} false; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
3285fi
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
3287$as_echo "$am_cv_python_version" >&6; }
3288  PYTHON_VERSION=$am_cv_python_version
3289
3290
3291
3292  PYTHON_PREFIX='${prefix}'
3293
3294  PYTHON_EXEC_PREFIX='${exec_prefix}'
3295
3296
3297
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
3299$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
3300if ${am_cv_python_platform+:} false; then :
3301  $as_echo_n "(cached) " >&6
3302else
3303  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
3306$as_echo "$am_cv_python_platform" >&6; }
3307  PYTHON_PLATFORM=$am_cv_python_platform
3308
3309
3310  # Just factor out some code duplication.
3311  am_python_setup_sysconfig="\
3312import sys
3313# Prefer sysconfig over distutils.sysconfig, for better compatibility
3314# with python 3.x.  See automake bug#10227.
3315try:
3316    import sysconfig
3317except ImportError:
3318    can_use_sysconfig = 0
3319else:
3320    can_use_sysconfig = 1
3321# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
3322# <https://github.com/pypa/virtualenv/issues/118>
3323try:
3324    from platform import python_implementation
3325    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
3326        can_use_sysconfig = 0
3327except ImportError:
3328    pass"
3329
3330
3331            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
3332$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
3333if ${am_cv_python_pythondir+:} false; then :
3334  $as_echo_n "(cached) " >&6
3335else
3336  if test "x$prefix" = xNONE
3337     then
3338       am_py_prefix=$ac_default_prefix
3339     else
3340       am_py_prefix=$prefix
3341     fi
3342     am_cv_python_pythondir=`$PYTHON -c "
3343$am_python_setup_sysconfig
3344if can_use_sysconfig:
3345    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
3346else:
3347    from distutils import sysconfig
3348    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
3349sys.stdout.write(sitedir)"`
3350     case $am_cv_python_pythondir in
3351     $am_py_prefix*)
3352       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3353       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
3354       ;;
3355     *)
3356       case $am_py_prefix in
3357         /usr|/System*) ;;
3358         *)
3359	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
3360	  ;;
3361       esac
3362       ;;
3363     esac
3364
3365fi
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
3367$as_echo "$am_cv_python_pythondir" >&6; }
3368  pythondir=$am_cv_python_pythondir
3369
3370
3371
3372  pkgpythondir=\${pythondir}/$PACKAGE
3373
3374
3375        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
3376$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
3377if ${am_cv_python_pyexecdir+:} false; then :
3378  $as_echo_n "(cached) " >&6
3379else
3380  if test "x$exec_prefix" = xNONE
3381     then
3382       am_py_exec_prefix=$am_py_prefix
3383     else
3384       am_py_exec_prefix=$exec_prefix
3385     fi
3386     am_cv_python_pyexecdir=`$PYTHON -c "
3387$am_python_setup_sysconfig
3388if can_use_sysconfig:
3389    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
3390else:
3391    from distutils import sysconfig
3392    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
3393sys.stdout.write(sitedir)"`
3394     case $am_cv_python_pyexecdir in
3395     $am_py_exec_prefix*)
3396       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3397       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
3398       ;;
3399     *)
3400       case $am_py_exec_prefix in
3401         /usr|/System*) ;;
3402         *)
3403	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
3404	   ;;
3405       esac
3406       ;;
3407     esac
3408
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
3411$as_echo "$am_cv_python_pyexecdir" >&6; }
3412  pyexecdir=$am_cv_python_pyexecdir
3413
3414
3415
3416  pkgpyexecdir=\${pyexecdir}/$PACKAGE
3417
3418
3419
3420  fi
3421
3422
3423
3424# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3425# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3426# to avoid autoconf errors.
3427DEPDIR="${am__leading_dot}deps"
3428
3429ac_config_commands="$ac_config_commands depfiles"
3430
3431
3432am_make=${MAKE-make}
3433cat > confinc << 'END'
3434am__doit:
3435	@echo this is the am__doit target
3436.PHONY: am__doit
3437END
3438# If we don't find an include directive, just comment out the code.
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3440$as_echo_n "checking for style of include used by $am_make... " >&6; }
3441am__include="#"
3442am__quote=
3443_am_result=none
3444# First try GNU make style include.
3445echo "include confinc" > confmf
3446# Ignore all kinds of additional output from 'make'.
3447case `$am_make -s -f confmf 2> /dev/null` in #(
3448*the\ am__doit\ target*)
3449  am__include=include
3450  am__quote=
3451  _am_result=GNU
3452  ;;
3453esac
3454# Now try BSD make style include.
3455if test "$am__include" = "#"; then
3456   echo '.include "confinc"' > confmf
3457   case `$am_make -s -f confmf 2> /dev/null` in #(
3458   *the\ am__doit\ target*)
3459     am__include=.include
3460     am__quote="\""
3461     _am_result=BSD
3462     ;;
3463   esac
3464fi
3465
3466
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3468$as_echo "$_am_result" >&6; }
3469rm -f confinc confmf
3470
3471# Check whether --enable-dependency-tracking was given.
3472if test "${enable_dependency_tracking+set}" = set; then :
3473  enableval=$enable_dependency_tracking;
3474fi
3475
3476if test "x$enable_dependency_tracking" != xno; then
3477  am_depcomp="$ac_aux_dir/depcomp"
3478  AMDEPBACKSLASH='\'
3479  am__nodep='_no'
3480fi
3481 if test "x$enable_dependency_tracking" != xno; then
3482  AMDEP_TRUE=
3483  AMDEP_FALSE='#'
3484else
3485  AMDEP_TRUE='#'
3486  AMDEP_FALSE=
3487fi
3488
3489
3490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495if test -n "$ac_tool_prefix"; then
3496  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3497set dummy ${ac_tool_prefix}gcc; ac_word=$2
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499$as_echo_n "checking for $ac_word... " >&6; }
3500if ${ac_cv_prog_CC+:} false; then :
3501  $as_echo_n "(cached) " >&6
3502else
3503  if test -n "$CC"; then
3504  ac_cv_prog_CC="$CC" # Let the user override the test.
3505else
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509  IFS=$as_save_IFS
3510  test -z "$as_dir" && as_dir=.
3511    for ac_exec_ext in '' $ac_executable_extensions; do
3512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515    break 2
3516  fi
3517done
3518  done
3519IFS=$as_save_IFS
3520
3521fi
3522fi
3523CC=$ac_cv_prog_CC
3524if test -n "$CC"; then
3525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526$as_echo "$CC" >&6; }
3527else
3528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529$as_echo "no" >&6; }
3530fi
3531
3532
3533fi
3534if test -z "$ac_cv_prog_CC"; then
3535  ac_ct_CC=$CC
3536  # Extract the first word of "gcc", so it can be a program name with args.
3537set dummy gcc; ac_word=$2
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539$as_echo_n "checking for $ac_word... " >&6; }
3540if ${ac_cv_prog_ac_ct_CC+:} false; then :
3541  $as_echo_n "(cached) " >&6
3542else
3543  if test -n "$ac_ct_CC"; then
3544  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549  IFS=$as_save_IFS
3550  test -z "$as_dir" && as_dir=.
3551    for ac_exec_ext in '' $ac_executable_extensions; do
3552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553    ac_cv_prog_ac_ct_CC="gcc"
3554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555    break 2
3556  fi
3557done
3558  done
3559IFS=$as_save_IFS
3560
3561fi
3562fi
3563ac_ct_CC=$ac_cv_prog_ac_ct_CC
3564if test -n "$ac_ct_CC"; then
3565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3566$as_echo "$ac_ct_CC" >&6; }
3567else
3568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569$as_echo "no" >&6; }
3570fi
3571
3572  if test "x$ac_ct_CC" = x; then
3573    CC=""
3574  else
3575    case $cross_compiling:$ac_tool_warned in
3576yes:)
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579ac_tool_warned=yes ;;
3580esac
3581    CC=$ac_ct_CC
3582  fi
3583else
3584  CC="$ac_cv_prog_CC"
3585fi
3586
3587if test -z "$CC"; then
3588          if test -n "$ac_tool_prefix"; then
3589    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3590set dummy ${ac_tool_prefix}cc; ac_word=$2
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592$as_echo_n "checking for $ac_word... " >&6; }
3593if ${ac_cv_prog_CC+:} false; then :
3594  $as_echo_n "(cached) " >&6
3595else
3596  if test -n "$CC"; then
3597  ac_cv_prog_CC="$CC" # Let the user override the test.
3598else
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602  IFS=$as_save_IFS
3603  test -z "$as_dir" && as_dir=.
3604    for ac_exec_ext in '' $ac_executable_extensions; do
3605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606    ac_cv_prog_CC="${ac_tool_prefix}cc"
3607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608    break 2
3609  fi
3610done
3611  done
3612IFS=$as_save_IFS
3613
3614fi
3615fi
3616CC=$ac_cv_prog_CC
3617if test -n "$CC"; then
3618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619$as_echo "$CC" >&6; }
3620else
3621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622$as_echo "no" >&6; }
3623fi
3624
3625
3626  fi
3627fi
3628if test -z "$CC"; then
3629  # Extract the first word of "cc", so it can be a program name with args.
3630set dummy cc; ac_word=$2
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632$as_echo_n "checking for $ac_word... " >&6; }
3633if ${ac_cv_prog_CC+:} false; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  if test -n "$CC"; then
3637  ac_cv_prog_CC="$CC" # Let the user override the test.
3638else
3639  ac_prog_rejected=no
3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643  IFS=$as_save_IFS
3644  test -z "$as_dir" && as_dir=.
3645    for ac_exec_ext in '' $ac_executable_extensions; do
3646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3648       ac_prog_rejected=yes
3649       continue
3650     fi
3651    ac_cv_prog_CC="cc"
3652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653    break 2
3654  fi
3655done
3656  done
3657IFS=$as_save_IFS
3658
3659if test $ac_prog_rejected = yes; then
3660  # We found a bogon in the path, so make sure we never use it.
3661  set dummy $ac_cv_prog_CC
3662  shift
3663  if test $# != 0; then
3664    # We chose a different compiler from the bogus one.
3665    # However, it has the same basename, so the bogon will be chosen
3666    # first if we set CC to just the basename; use the full file name.
3667    shift
3668    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3669  fi
3670fi
3671fi
3672fi
3673CC=$ac_cv_prog_CC
3674if test -n "$CC"; then
3675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676$as_echo "$CC" >&6; }
3677else
3678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679$as_echo "no" >&6; }
3680fi
3681
3682
3683fi
3684if test -z "$CC"; then
3685  if test -n "$ac_tool_prefix"; then
3686  for ac_prog in cl.exe
3687  do
3688    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691$as_echo_n "checking for $ac_word... " >&6; }
3692if ${ac_cv_prog_CC+:} false; then :
3693  $as_echo_n "(cached) " >&6
3694else
3695  if test -n "$CC"; then
3696  ac_cv_prog_CC="$CC" # Let the user override the test.
3697else
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH
3700do
3701  IFS=$as_save_IFS
3702  test -z "$as_dir" && as_dir=.
3703    for ac_exec_ext in '' $ac_executable_extensions; do
3704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707    break 2
3708  fi
3709done
3710  done
3711IFS=$as_save_IFS
3712
3713fi
3714fi
3715CC=$ac_cv_prog_CC
3716if test -n "$CC"; then
3717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718$as_echo "$CC" >&6; }
3719else
3720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721$as_echo "no" >&6; }
3722fi
3723
3724
3725    test -n "$CC" && break
3726  done
3727fi
3728if test -z "$CC"; then
3729  ac_ct_CC=$CC
3730  for ac_prog in cl.exe
3731do
3732  # Extract the first word of "$ac_prog", so it can be a program name with args.
3733set dummy $ac_prog; ac_word=$2
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735$as_echo_n "checking for $ac_word... " >&6; }
3736if ${ac_cv_prog_ac_ct_CC+:} false; then :
3737  $as_echo_n "(cached) " >&6
3738else
3739  if test -n "$ac_ct_CC"; then
3740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745  IFS=$as_save_IFS
3746  test -z "$as_dir" && as_dir=.
3747    for ac_exec_ext in '' $ac_executable_extensions; do
3748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749    ac_cv_prog_ac_ct_CC="$ac_prog"
3750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751    break 2
3752  fi
3753done
3754  done
3755IFS=$as_save_IFS
3756
3757fi
3758fi
3759ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760if test -n "$ac_ct_CC"; then
3761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3762$as_echo "$ac_ct_CC" >&6; }
3763else
3764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765$as_echo "no" >&6; }
3766fi
3767
3768
3769  test -n "$ac_ct_CC" && break
3770done
3771
3772  if test "x$ac_ct_CC" = x; then
3773    CC=""
3774  else
3775    case $cross_compiling:$ac_tool_warned in
3776yes:)
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3779ac_tool_warned=yes ;;
3780esac
3781    CC=$ac_ct_CC
3782  fi
3783fi
3784
3785fi
3786
3787
3788test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790as_fn_error $? "no acceptable C compiler found in \$PATH
3791See \`config.log' for more details" "$LINENO" 5; }
3792
3793# Provide some information about the compiler.
3794$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3795set X $ac_compile
3796ac_compiler=$2
3797for ac_option in --version -v -V -qversion; do
3798  { { ac_try="$ac_compiler $ac_option >&5"
3799case "(($ac_try" in
3800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801  *) ac_try_echo=$ac_try;;
3802esac
3803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804$as_echo "$ac_try_echo"; } >&5
3805  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3806  ac_status=$?
3807  if test -s conftest.err; then
3808    sed '10a\
3809... rest of stderr output deleted ...
3810         10q' conftest.err >conftest.er1
3811    cat conftest.er1 >&5
3812  fi
3813  rm -f conftest.er1 conftest.err
3814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815  test $ac_status = 0; }
3816done
3817
3818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h.  */
3820
3821int
3822main ()
3823{
3824
3825  ;
3826  return 0;
3827}
3828_ACEOF
3829ac_clean_files_save=$ac_clean_files
3830ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3831# Try to create an executable without -o first, disregard a.out.
3832# It will help us diagnose broken compilers, and finding out an intuition
3833# of exeext.
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3835$as_echo_n "checking whether the C compiler works... " >&6; }
3836ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3837
3838# The possible output files:
3839ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3840
3841ac_rmfiles=
3842for ac_file in $ac_files
3843do
3844  case $ac_file in
3845    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3846    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3847  esac
3848done
3849rm -f $ac_rmfiles
3850
3851if { { ac_try="$ac_link_default"
3852case "(($ac_try" in
3853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854  *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857$as_echo "$ac_try_echo"; } >&5
3858  (eval "$ac_link_default") 2>&5
3859  ac_status=$?
3860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861  test $ac_status = 0; }; then :
3862  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3863# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3864# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3865# so that the user can short-circuit this test for compilers unknown to
3866# Autoconf.
3867for ac_file in $ac_files ''
3868do
3869  test -f "$ac_file" || continue
3870  case $ac_file in
3871    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3872	;;
3873    [ab].out )
3874	# We found the default executable, but exeext='' is most
3875	# certainly right.
3876	break;;
3877    *.* )
3878	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3879	then :; else
3880	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881	fi
3882	# We set ac_cv_exeext here because the later test for it is not
3883	# safe: cross compilers may not add the suffix if given an `-o'
3884	# argument, so we may need to know it at that point already.
3885	# Even if this section looks crufty: it has the advantage of
3886	# actually working.
3887	break;;
3888    * )
3889	break;;
3890  esac
3891done
3892test "$ac_cv_exeext" = no && ac_cv_exeext=
3893
3894else
3895  ac_file=''
3896fi
3897if test -z "$ac_file"; then :
3898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899$as_echo "no" >&6; }
3900$as_echo "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
3903{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905as_fn_error 77 "C compiler cannot create executables
3906See \`config.log' for more details" "$LINENO" 5; }
3907else
3908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3909$as_echo "yes" >&6; }
3910fi
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3912$as_echo_n "checking for C compiler default output file name... " >&6; }
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3914$as_echo "$ac_file" >&6; }
3915ac_exeext=$ac_cv_exeext
3916
3917rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3918ac_clean_files=$ac_clean_files_save
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3920$as_echo_n "checking for suffix of executables... " >&6; }
3921if { { ac_try="$ac_link"
3922case "(($ac_try" in
3923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924  *) ac_try_echo=$ac_try;;
3925esac
3926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927$as_echo "$ac_try_echo"; } >&5
3928  (eval "$ac_link") 2>&5
3929  ac_status=$?
3930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931  test $ac_status = 0; }; then :
3932  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3933# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3934# work properly (i.e., refer to `conftest.exe'), while it won't with
3935# `rm'.
3936for ac_file in conftest.exe conftest conftest.*; do
3937  test -f "$ac_file" || continue
3938  case $ac_file in
3939    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3940    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3941	  break;;
3942    * ) break;;
3943  esac
3944done
3945else
3946  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3949See \`config.log' for more details" "$LINENO" 5; }
3950fi
3951rm -f conftest conftest$ac_cv_exeext
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3953$as_echo "$ac_cv_exeext" >&6; }
3954
3955rm -f conftest.$ac_ext
3956EXEEXT=$ac_cv_exeext
3957ac_exeext=$EXEEXT
3958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959/* end confdefs.h.  */
3960#include <stdio.h>
3961int
3962main ()
3963{
3964FILE *f = fopen ("conftest.out", "w");
3965 return ferror (f) || fclose (f) != 0;
3966
3967  ;
3968  return 0;
3969}
3970_ACEOF
3971ac_clean_files="$ac_clean_files conftest.out"
3972# Check that the compiler produces executables we can run.  If not, either
3973# the compiler is broken, or we cross compile.
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3975$as_echo_n "checking whether we are cross compiling... " >&6; }
3976if test "$cross_compiling" != yes; then
3977  { { ac_try="$ac_link"
3978case "(($ac_try" in
3979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980  *) ac_try_echo=$ac_try;;
3981esac
3982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983$as_echo "$ac_try_echo"; } >&5
3984  (eval "$ac_link") 2>&5
3985  ac_status=$?
3986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987  test $ac_status = 0; }
3988  if { ac_try='./conftest$ac_cv_exeext'
3989  { { case "(($ac_try" in
3990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991  *) ac_try_echo=$ac_try;;
3992esac
3993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994$as_echo "$ac_try_echo"; } >&5
3995  (eval "$ac_try") 2>&5
3996  ac_status=$?
3997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998  test $ac_status = 0; }; }; then
3999    cross_compiling=no
4000  else
4001    if test "$cross_compiling" = maybe; then
4002	cross_compiling=yes
4003    else
4004	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006as_fn_error $? "cannot run C compiled programs.
4007If you meant to cross compile, use \`--host'.
4008See \`config.log' for more details" "$LINENO" 5; }
4009    fi
4010  fi
4011fi
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4013$as_echo "$cross_compiling" >&6; }
4014
4015rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4016ac_clean_files=$ac_clean_files_save
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4018$as_echo_n "checking for suffix of object files... " >&6; }
4019if ${ac_cv_objext+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h.  */
4024
4025int
4026main ()
4027{
4028
4029  ;
4030  return 0;
4031}
4032_ACEOF
4033rm -f conftest.o conftest.obj
4034if { { ac_try="$ac_compile"
4035case "(($ac_try" in
4036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037  *) ac_try_echo=$ac_try;;
4038esac
4039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040$as_echo "$ac_try_echo"; } >&5
4041  (eval "$ac_compile") 2>&5
4042  ac_status=$?
4043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044  test $ac_status = 0; }; then :
4045  for ac_file in conftest.o conftest.obj conftest.*; do
4046  test -f "$ac_file" || continue;
4047  case $ac_file in
4048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4049    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4050       break;;
4051  esac
4052done
4053else
4054  $as_echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
4056
4057{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059as_fn_error $? "cannot compute suffix of object files: cannot compile
4060See \`config.log' for more details" "$LINENO" 5; }
4061fi
4062rm -f conftest.$ac_cv_objext conftest.$ac_ext
4063fi
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4065$as_echo "$ac_cv_objext" >&6; }
4066OBJEXT=$ac_cv_objext
4067ac_objext=$OBJEXT
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4069$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4070if ${ac_cv_c_compiler_gnu+:} false; then :
4071  $as_echo_n "(cached) " >&6
4072else
4073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074/* end confdefs.h.  */
4075
4076int
4077main ()
4078{
4079#ifndef __GNUC__
4080       choke me
4081#endif
4082
4083  ;
4084  return 0;
4085}
4086_ACEOF
4087if ac_fn_c_try_compile "$LINENO"; then :
4088  ac_compiler_gnu=yes
4089else
4090  ac_compiler_gnu=no
4091fi
4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093ac_cv_c_compiler_gnu=$ac_compiler_gnu
4094
4095fi
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4097$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4098if test $ac_compiler_gnu = yes; then
4099  GCC=yes
4100else
4101  GCC=
4102fi
4103ac_test_CFLAGS=${CFLAGS+set}
4104ac_save_CFLAGS=$CFLAGS
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4106$as_echo_n "checking whether $CC accepts -g... " >&6; }
4107if ${ac_cv_prog_cc_g+:} false; then :
4108  $as_echo_n "(cached) " >&6
4109else
4110  ac_save_c_werror_flag=$ac_c_werror_flag
4111   ac_c_werror_flag=yes
4112   ac_cv_prog_cc_g=no
4113   CFLAGS="-g"
4114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h.  */
4116
4117int
4118main ()
4119{
4120
4121  ;
4122  return 0;
4123}
4124_ACEOF
4125if ac_fn_c_try_compile "$LINENO"; then :
4126  ac_cv_prog_cc_g=yes
4127else
4128  CFLAGS=""
4129      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130/* end confdefs.h.  */
4131
4132int
4133main ()
4134{
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141
4142else
4143  ac_c_werror_flag=$ac_save_c_werror_flag
4144	 CFLAGS="-g"
4145	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147
4148int
4149main ()
4150{
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156if ac_fn_c_try_compile "$LINENO"; then :
4157  ac_cv_prog_cc_g=yes
4158fi
4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160fi
4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162fi
4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164   ac_c_werror_flag=$ac_save_c_werror_flag
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4167$as_echo "$ac_cv_prog_cc_g" >&6; }
4168if test "$ac_test_CFLAGS" = set; then
4169  CFLAGS=$ac_save_CFLAGS
4170elif test $ac_cv_prog_cc_g = yes; then
4171  if test "$GCC" = yes; then
4172    CFLAGS="-g -O2"
4173  else
4174    CFLAGS="-g"
4175  fi
4176else
4177  if test "$GCC" = yes; then
4178    CFLAGS="-O2"
4179  else
4180    CFLAGS=
4181  fi
4182fi
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4184$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4185if ${ac_cv_prog_cc_c89+:} false; then :
4186  $as_echo_n "(cached) " >&6
4187else
4188  ac_cv_prog_cc_c89=no
4189ac_save_CC=$CC
4190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h.  */
4192#include <stdarg.h>
4193#include <stdio.h>
4194struct stat;
4195/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4196struct buf { int x; };
4197FILE * (*rcsopen) (struct buf *, struct stat *, int);
4198static char *e (p, i)
4199     char **p;
4200     int i;
4201{
4202  return p[i];
4203}
4204static char *f (char * (*g) (char **, int), char **p, ...)
4205{
4206  char *s;
4207  va_list v;
4208  va_start (v,p);
4209  s = g (p, va_arg (v,int));
4210  va_end (v);
4211  return s;
4212}
4213
4214/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4215   function prototypes and stuff, but not '\xHH' hex character constants.
4216   These don't provoke an error unfortunately, instead are silently treated
4217   as 'x'.  The following induces an error, until -std is added to get
4218   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4219   array size at least.  It's necessary to write '\x00'==0 to get something
4220   that's true only with -std.  */
4221int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4222
4223/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4224   inside strings and character constants.  */
4225#define FOO(x) 'x'
4226int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4227
4228int test (int i, double x);
4229struct s1 {int (*f) (int a);};
4230struct s2 {int (*f) (double a);};
4231int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4232int argc;
4233char **argv;
4234int
4235main ()
4236{
4237return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4238  ;
4239  return 0;
4240}
4241_ACEOF
4242for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4243	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4244do
4245  CC="$ac_save_CC $ac_arg"
4246  if ac_fn_c_try_compile "$LINENO"; then :
4247  ac_cv_prog_cc_c89=$ac_arg
4248fi
4249rm -f core conftest.err conftest.$ac_objext
4250  test "x$ac_cv_prog_cc_c89" != "xno" && break
4251done
4252rm -f conftest.$ac_ext
4253CC=$ac_save_CC
4254
4255fi
4256# AC_CACHE_VAL
4257case "x$ac_cv_prog_cc_c89" in
4258  x)
4259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4260$as_echo "none needed" >&6; } ;;
4261  xno)
4262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4263$as_echo "unsupported" >&6; } ;;
4264  *)
4265    CC="$CC $ac_cv_prog_cc_c89"
4266    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4267$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4268esac
4269if test "x$ac_cv_prog_cc_c89" != xno; then :
4270
4271fi
4272
4273ac_ext=c
4274ac_cpp='$CPP $CPPFLAGS'
4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
4279ac_ext=c
4280ac_cpp='$CPP $CPPFLAGS'
4281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4285$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4286if ${am_cv_prog_cc_c_o+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290/* end confdefs.h.  */
4291
4292int
4293main ()
4294{
4295
4296  ;
4297  return 0;
4298}
4299_ACEOF
4300  # Make sure it works both with $CC and with simple cc.
4301  # Following AC_PROG_CC_C_O, we do the test twice because some
4302  # compilers refuse to overwrite an existing .o file with -o,
4303  # though they will create one.
4304  am_cv_prog_cc_c_o=yes
4305  for am_i in 1 2; do
4306    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4307   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } \
4311         && test -f conftest2.$ac_objext; then
4312      : OK
4313    else
4314      am_cv_prog_cc_c_o=no
4315      break
4316    fi
4317  done
4318  rm -f core conftest*
4319  unset am_i
4320fi
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4322$as_echo "$am_cv_prog_cc_c_o" >&6; }
4323if test "$am_cv_prog_cc_c_o" != yes; then
4324   # Losing compiler, so override with the script.
4325   # FIXME: It is wrong to rewrite CC.
4326   # But if we don't then we get into trouble of one sort or another.
4327   # A longer-term fix would be to have automake use am__CC in this case,
4328   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4329   CC="$am_aux_dir/compile $CC"
4330fi
4331ac_ext=c
4332ac_cpp='$CPP $CPPFLAGS'
4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336
4337
4338depcc="$CC"   am_compiler_list=
4339
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4341$as_echo_n "checking dependency style of $depcc... " >&6; }
4342if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4346  # We make a subdir and do the tests there.  Otherwise we can end up
4347  # making bogus files that we don't know about and never remove.  For
4348  # instance it was reported that on HP-UX the gcc test will end up
4349  # making a dummy file named 'D' -- because '-MD' means "put the output
4350  # in D".
4351  rm -rf conftest.dir
4352  mkdir conftest.dir
4353  # Copy depcomp to subdir because otherwise we won't find it if we're
4354  # using a relative directory.
4355  cp "$am_depcomp" conftest.dir
4356  cd conftest.dir
4357  # We will build objects and dependencies in a subdirectory because
4358  # it helps to detect inapplicable dependency modes.  For instance
4359  # both Tru64's cc and ICC support -MD to output dependencies as a
4360  # side effect of compilation, but ICC will put the dependencies in
4361  # the current directory while Tru64 will put them in the object
4362  # directory.
4363  mkdir sub
4364
4365  am_cv_CC_dependencies_compiler_type=none
4366  if test "$am_compiler_list" = ""; then
4367     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4368  fi
4369  am__universal=false
4370  case " $depcc " in #(
4371     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4372     esac
4373
4374  for depmode in $am_compiler_list; do
4375    # Setup a source with many dependencies, because some compilers
4376    # like to wrap large dependency lists on column 80 (with \), and
4377    # we should not choose a depcomp mode which is confused by this.
4378    #
4379    # We need to recreate these files for each test, as the compiler may
4380    # overwrite some of them when testing with obscure command lines.
4381    # This happens at least with the AIX C compiler.
4382    : > sub/conftest.c
4383    for i in 1 2 3 4 5 6; do
4384      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4385      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4386      # Solaris 10 /bin/sh.
4387      echo '/* dummy */' > sub/conftst$i.h
4388    done
4389    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4390
4391    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4392    # mode.  It turns out that the SunPro C++ compiler does not properly
4393    # handle '-M -o', and we need to detect this.  Also, some Intel
4394    # versions had trouble with output in subdirs.
4395    am__obj=sub/conftest.${OBJEXT-o}
4396    am__minus_obj="-o $am__obj"
4397    case $depmode in
4398    gcc)
4399      # This depmode causes a compiler race in universal mode.
4400      test "$am__universal" = false || continue
4401      ;;
4402    nosideeffect)
4403      # After this tag, mechanisms are not by side-effect, so they'll
4404      # only be used when explicitly requested.
4405      if test "x$enable_dependency_tracking" = xyes; then
4406	continue
4407      else
4408	break
4409      fi
4410      ;;
4411    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4412      # This compiler won't grok '-c -o', but also, the minuso test has
4413      # not run yet.  These depmodes are late enough in the game, and
4414      # so weak that their functioning should not be impacted.
4415      am__obj=conftest.${OBJEXT-o}
4416      am__minus_obj=
4417      ;;
4418    none) break ;;
4419    esac
4420    if depmode=$depmode \
4421       source=sub/conftest.c object=$am__obj \
4422       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4423       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4424         >/dev/null 2>conftest.err &&
4425       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4426       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4427       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4428       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4429      # icc doesn't choke on unknown options, it will just issue warnings
4430      # or remarks (even with -Werror).  So we grep stderr for any message
4431      # that says an option was ignored or not supported.
4432      # When given -MP, icc 7.0 and 7.1 complain thusly:
4433      #   icc: Command line warning: ignoring option '-M'; no argument required
4434      # The diagnosis changed in icc 8.0:
4435      #   icc: Command line remark: option '-MP' not supported
4436      if (grep 'ignoring option' conftest.err ||
4437          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4438        am_cv_CC_dependencies_compiler_type=$depmode
4439        break
4440      fi
4441    fi
4442  done
4443
4444  cd ..
4445  rm -rf conftest.dir
4446else
4447  am_cv_CC_dependencies_compiler_type=none
4448fi
4449
4450fi
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4452$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4453CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4454
4455 if
4456  test "x$enable_dependency_tracking" != xno \
4457  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4458  am__fastdepCC_TRUE=
4459  am__fastdepCC_FALSE='#'
4460else
4461  am__fastdepCC_TRUE='#'
4462  am__fastdepCC_FALSE=
4463fi
4464
4465
4466
4467ac_ext=c
4468ac_cpp='$CPP $CPPFLAGS'
4469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4473$as_echo_n "checking how to run the C preprocessor... " >&6; }
4474# On Suns, sometimes $CPP names a directory.
4475if test -n "$CPP" && test -d "$CPP"; then
4476  CPP=
4477fi
4478if test -z "$CPP"; then
4479  if ${ac_cv_prog_CPP+:} false; then :
4480  $as_echo_n "(cached) " >&6
4481else
4482      # Double quotes because CPP needs to be expanded
4483    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4484    do
4485      ac_preproc_ok=false
4486for ac_c_preproc_warn_flag in '' yes
4487do
4488  # Use a header file that comes with gcc, so configuring glibc
4489  # with a fresh cross-compiler works.
4490  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4491  # <limits.h> exists even on freestanding compilers.
4492  # On the NeXT, cc -E runs the code through the compiler's parser,
4493  # not just through cpp. "Syntax error" is here to catch this case.
4494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h.  */
4496#ifdef __STDC__
4497# include <limits.h>
4498#else
4499# include <assert.h>
4500#endif
4501		     Syntax error
4502_ACEOF
4503if ac_fn_c_try_cpp "$LINENO"; then :
4504
4505else
4506  # Broken: fails on valid input.
4507continue
4508fi
4509rm -f conftest.err conftest.i conftest.$ac_ext
4510
4511  # OK, works on sane cases.  Now check whether nonexistent headers
4512  # can be detected and how.
4513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514/* end confdefs.h.  */
4515#include <ac_nonexistent.h>
4516_ACEOF
4517if ac_fn_c_try_cpp "$LINENO"; then :
4518  # Broken: success on invalid input.
4519continue
4520else
4521  # Passes both tests.
4522ac_preproc_ok=:
4523break
4524fi
4525rm -f conftest.err conftest.i conftest.$ac_ext
4526
4527done
4528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4529rm -f conftest.i conftest.err conftest.$ac_ext
4530if $ac_preproc_ok; then :
4531  break
4532fi
4533
4534    done
4535    ac_cv_prog_CPP=$CPP
4536
4537fi
4538  CPP=$ac_cv_prog_CPP
4539else
4540  ac_cv_prog_CPP=$CPP
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4543$as_echo "$CPP" >&6; }
4544ac_preproc_ok=false
4545for ac_c_preproc_warn_flag in '' yes
4546do
4547  # Use a header file that comes with gcc, so configuring glibc
4548  # with a fresh cross-compiler works.
4549  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4550  # <limits.h> exists even on freestanding compilers.
4551  # On the NeXT, cc -E runs the code through the compiler's parser,
4552  # not just through cpp. "Syntax error" is here to catch this case.
4553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554/* end confdefs.h.  */
4555#ifdef __STDC__
4556# include <limits.h>
4557#else
4558# include <assert.h>
4559#endif
4560		     Syntax error
4561_ACEOF
4562if ac_fn_c_try_cpp "$LINENO"; then :
4563
4564else
4565  # Broken: fails on valid input.
4566continue
4567fi
4568rm -f conftest.err conftest.i conftest.$ac_ext
4569
4570  # OK, works on sane cases.  Now check whether nonexistent headers
4571  # can be detected and how.
4572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574#include <ac_nonexistent.h>
4575_ACEOF
4576if ac_fn_c_try_cpp "$LINENO"; then :
4577  # Broken: success on invalid input.
4578continue
4579else
4580  # Passes both tests.
4581ac_preproc_ok=:
4582break
4583fi
4584rm -f conftest.err conftest.i conftest.$ac_ext
4585
4586done
4587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4588rm -f conftest.i conftest.err conftest.$ac_ext
4589if $ac_preproc_ok; then :
4590
4591else
4592  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4595See \`config.log' for more details" "$LINENO" 5; }
4596fi
4597
4598ac_ext=c
4599ac_cpp='$CPP $CPPFLAGS'
4600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4606$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4607if ${ac_cv_path_GREP+:} false; then :
4608  $as_echo_n "(cached) " >&6
4609else
4610  if test -z "$GREP"; then
4611  ac_path_GREP_found=false
4612  # Loop through the user's path and test for each of PROGNAME-LIST
4613  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4615do
4616  IFS=$as_save_IFS
4617  test -z "$as_dir" && as_dir=.
4618    for ac_prog in grep ggrep; do
4619    for ac_exec_ext in '' $ac_executable_extensions; do
4620      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4621      as_fn_executable_p "$ac_path_GREP" || continue
4622# Check for GNU ac_path_GREP and select it if it is found.
4623  # Check for GNU $ac_path_GREP
4624case `"$ac_path_GREP" --version 2>&1` in
4625*GNU*)
4626  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4627*)
4628  ac_count=0
4629  $as_echo_n 0123456789 >"conftest.in"
4630  while :
4631  do
4632    cat "conftest.in" "conftest.in" >"conftest.tmp"
4633    mv "conftest.tmp" "conftest.in"
4634    cp "conftest.in" "conftest.nl"
4635    $as_echo 'GREP' >> "conftest.nl"
4636    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4637    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4638    as_fn_arith $ac_count + 1 && ac_count=$as_val
4639    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4640      # Best one so far, save it but keep looking for a better one
4641      ac_cv_path_GREP="$ac_path_GREP"
4642      ac_path_GREP_max=$ac_count
4643    fi
4644    # 10*(2^10) chars as input seems more than enough
4645    test $ac_count -gt 10 && break
4646  done
4647  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4648esac
4649
4650      $ac_path_GREP_found && break 3
4651    done
4652  done
4653  done
4654IFS=$as_save_IFS
4655  if test -z "$ac_cv_path_GREP"; then
4656    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4657  fi
4658else
4659  ac_cv_path_GREP=$GREP
4660fi
4661
4662fi
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4664$as_echo "$ac_cv_path_GREP" >&6; }
4665 GREP="$ac_cv_path_GREP"
4666
4667
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4669$as_echo_n "checking for egrep... " >&6; }
4670if ${ac_cv_path_EGREP+:} false; then :
4671  $as_echo_n "(cached) " >&6
4672else
4673  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4674   then ac_cv_path_EGREP="$GREP -E"
4675   else
4676     if test -z "$EGREP"; then
4677  ac_path_EGREP_found=false
4678  # Loop through the user's path and test for each of PROGNAME-LIST
4679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4681do
4682  IFS=$as_save_IFS
4683  test -z "$as_dir" && as_dir=.
4684    for ac_prog in egrep; do
4685    for ac_exec_ext in '' $ac_executable_extensions; do
4686      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4687      as_fn_executable_p "$ac_path_EGREP" || continue
4688# Check for GNU ac_path_EGREP and select it if it is found.
4689  # Check for GNU $ac_path_EGREP
4690case `"$ac_path_EGREP" --version 2>&1` in
4691*GNU*)
4692  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4693*)
4694  ac_count=0
4695  $as_echo_n 0123456789 >"conftest.in"
4696  while :
4697  do
4698    cat "conftest.in" "conftest.in" >"conftest.tmp"
4699    mv "conftest.tmp" "conftest.in"
4700    cp "conftest.in" "conftest.nl"
4701    $as_echo 'EGREP' >> "conftest.nl"
4702    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4703    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4704    as_fn_arith $ac_count + 1 && ac_count=$as_val
4705    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4706      # Best one so far, save it but keep looking for a better one
4707      ac_cv_path_EGREP="$ac_path_EGREP"
4708      ac_path_EGREP_max=$ac_count
4709    fi
4710    # 10*(2^10) chars as input seems more than enough
4711    test $ac_count -gt 10 && break
4712  done
4713  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4714esac
4715
4716      $ac_path_EGREP_found && break 3
4717    done
4718  done
4719  done
4720IFS=$as_save_IFS
4721  if test -z "$ac_cv_path_EGREP"; then
4722    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4723  fi
4724else
4725  ac_cv_path_EGREP=$EGREP
4726fi
4727
4728   fi
4729fi
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4731$as_echo "$ac_cv_path_EGREP" >&6; }
4732 EGREP="$ac_cv_path_EGREP"
4733
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4736$as_echo_n "checking for ANSI C header files... " >&6; }
4737if ${ac_cv_header_stdc+:} false; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741/* end confdefs.h.  */
4742#include <stdlib.h>
4743#include <stdarg.h>
4744#include <string.h>
4745#include <float.h>
4746
4747int
4748main ()
4749{
4750
4751  ;
4752  return 0;
4753}
4754_ACEOF
4755if ac_fn_c_try_compile "$LINENO"; then :
4756  ac_cv_header_stdc=yes
4757else
4758  ac_cv_header_stdc=no
4759fi
4760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761
4762if test $ac_cv_header_stdc = yes; then
4763  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h.  */
4766#include <string.h>
4767
4768_ACEOF
4769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770  $EGREP "memchr" >/dev/null 2>&1; then :
4771
4772else
4773  ac_cv_header_stdc=no
4774fi
4775rm -f conftest*
4776
4777fi
4778
4779if test $ac_cv_header_stdc = yes; then
4780  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h.  */
4783#include <stdlib.h>
4784
4785_ACEOF
4786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4787  $EGREP "free" >/dev/null 2>&1; then :
4788
4789else
4790  ac_cv_header_stdc=no
4791fi
4792rm -f conftest*
4793
4794fi
4795
4796if test $ac_cv_header_stdc = yes; then
4797  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4798  if test "$cross_compiling" = yes; then :
4799  :
4800else
4801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h.  */
4803#include <ctype.h>
4804#include <stdlib.h>
4805#if ((' ' & 0x0FF) == 0x020)
4806# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4807# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4808#else
4809# define ISLOWER(c) \
4810		   (('a' <= (c) && (c) <= 'i') \
4811		     || ('j' <= (c) && (c) <= 'r') \
4812		     || ('s' <= (c) && (c) <= 'z'))
4813# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4814#endif
4815
4816#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4817int
4818main ()
4819{
4820  int i;
4821  for (i = 0; i < 256; i++)
4822    if (XOR (islower (i), ISLOWER (i))
4823	|| toupper (i) != TOUPPER (i))
4824      return 2;
4825  return 0;
4826}
4827_ACEOF
4828if ac_fn_c_try_run "$LINENO"; then :
4829
4830else
4831  ac_cv_header_stdc=no
4832fi
4833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4834  conftest.$ac_objext conftest.beam conftest.$ac_ext
4835fi
4836
4837fi
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4840$as_echo "$ac_cv_header_stdc" >&6; }
4841if test $ac_cv_header_stdc = yes; then
4842
4843$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4844
4845fi
4846
4847# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4848for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4849		  inttypes.h stdint.h unistd.h
4850do :
4851  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4852ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4853"
4854if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4855  cat >>confdefs.h <<_ACEOF
4856#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4857_ACEOF
4858
4859fi
4860
4861done
4862
4863
4864
4865  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4866if test "x$ac_cv_header_minix_config_h" = xyes; then :
4867  MINIX=yes
4868else
4869  MINIX=
4870fi
4871
4872
4873  if test "$MINIX" = yes; then
4874
4875$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4876
4877
4878$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4879
4880
4881$as_echo "#define _MINIX 1" >>confdefs.h
4882
4883  fi
4884
4885
4886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4887$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4888if ${ac_cv_safe_to_define___extensions__+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h.  */
4893
4894#         define __EXTENSIONS__ 1
4895          $ac_includes_default
4896int
4897main ()
4898{
4899
4900  ;
4901  return 0;
4902}
4903_ACEOF
4904if ac_fn_c_try_compile "$LINENO"; then :
4905  ac_cv_safe_to_define___extensions__=yes
4906else
4907  ac_cv_safe_to_define___extensions__=no
4908fi
4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4912$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4913  test $ac_cv_safe_to_define___extensions__ = yes &&
4914    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4915
4916  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4917
4918  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4919
4920  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4921
4922  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4923
4924
4925
4926# Initialize libtool
4927
4928case `pwd` in
4929  *\ * | *\	*)
4930    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4931$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4932esac
4933
4934
4935
4936macro_version='2.4.6'
4937macro_revision='2.4.6'
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951ltmain=$ac_aux_dir/ltmain.sh
4952
4953# Make sure we can run config.sub.
4954$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4955  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4956
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4958$as_echo_n "checking build system type... " >&6; }
4959if ${ac_cv_build+:} false; then :
4960  $as_echo_n "(cached) " >&6
4961else
4962  ac_build_alias=$build_alias
4963test "x$ac_build_alias" = x &&
4964  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4965test "x$ac_build_alias" = x &&
4966  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4967ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4968  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4969
4970fi
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4972$as_echo "$ac_cv_build" >&6; }
4973case $ac_cv_build in
4974*-*-*) ;;
4975*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4976esac
4977build=$ac_cv_build
4978ac_save_IFS=$IFS; IFS='-'
4979set x $ac_cv_build
4980shift
4981build_cpu=$1
4982build_vendor=$2
4983shift; shift
4984# Remember, the first character of IFS is used to create $*,
4985# except with old shells:
4986build_os=$*
4987IFS=$ac_save_IFS
4988case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4989
4990
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4992$as_echo_n "checking host system type... " >&6; }
4993if ${ac_cv_host+:} false; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  if test "x$host_alias" = x; then
4997  ac_cv_host=$ac_cv_build
4998else
4999  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5000    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5001fi
5002
5003fi
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5005$as_echo "$ac_cv_host" >&6; }
5006case $ac_cv_host in
5007*-*-*) ;;
5008*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5009esac
5010host=$ac_cv_host
5011ac_save_IFS=$IFS; IFS='-'
5012set x $ac_cv_host
5013shift
5014host_cpu=$1
5015host_vendor=$2
5016shift; shift
5017# Remember, the first character of IFS is used to create $*,
5018# except with old shells:
5019host_os=$*
5020IFS=$ac_save_IFS
5021case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5022
5023
5024# Backslashify metacharacters that are still active within
5025# double-quoted strings.
5026sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5027
5028# Same as above, but do not quote variable references.
5029double_quote_subst='s/\(["`\\]\)/\\\1/g'
5030
5031# Sed substitution to delay expansion of an escaped shell variable in a
5032# double_quote_subst'ed string.
5033delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5034
5035# Sed substitution to delay expansion of an escaped single quote.
5036delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5037
5038# Sed substitution to avoid accidental globbing in evaled expressions
5039no_glob_subst='s/\*/\\\*/g'
5040
5041ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5042ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5043ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5044
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5046$as_echo_n "checking how to print strings... " >&6; }
5047# Test print first, because it will be a builtin if present.
5048if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5049   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5050  ECHO='print -r --'
5051elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5052  ECHO='printf %s\n'
5053else
5054  # Use this function as a fallback that always works.
5055  func_fallback_echo ()
5056  {
5057    eval 'cat <<_LTECHO_EOF
5058$1
5059_LTECHO_EOF'
5060  }
5061  ECHO='func_fallback_echo'
5062fi
5063
5064# func_echo_all arg...
5065# Invoke $ECHO with all args, space-separated.
5066func_echo_all ()
5067{
5068    $ECHO ""
5069}
5070
5071case $ECHO in
5072  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5073$as_echo "printf" >&6; } ;;
5074  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5075$as_echo "print -r" >&6; } ;;
5076  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5077$as_echo "cat" >&6; } ;;
5078esac
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5094$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5095if ${ac_cv_path_SED+:} false; then :
5096  $as_echo_n "(cached) " >&6
5097else
5098            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5099     for ac_i in 1 2 3 4 5 6 7; do
5100       ac_script="$ac_script$as_nl$ac_script"
5101     done
5102     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5103     { ac_script=; unset ac_script;}
5104     if test -z "$SED"; then
5105  ac_path_SED_found=false
5106  # Loop through the user's path and test for each of PROGNAME-LIST
5107  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110  IFS=$as_save_IFS
5111  test -z "$as_dir" && as_dir=.
5112    for ac_prog in sed gsed; do
5113    for ac_exec_ext in '' $ac_executable_extensions; do
5114      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5115      as_fn_executable_p "$ac_path_SED" || continue
5116# Check for GNU ac_path_SED and select it if it is found.
5117  # Check for GNU $ac_path_SED
5118case `"$ac_path_SED" --version 2>&1` in
5119*GNU*)
5120  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5121*)
5122  ac_count=0
5123  $as_echo_n 0123456789 >"conftest.in"
5124  while :
5125  do
5126    cat "conftest.in" "conftest.in" >"conftest.tmp"
5127    mv "conftest.tmp" "conftest.in"
5128    cp "conftest.in" "conftest.nl"
5129    $as_echo '' >> "conftest.nl"
5130    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132    as_fn_arith $ac_count + 1 && ac_count=$as_val
5133    if test $ac_count -gt ${ac_path_SED_max-0}; then
5134      # Best one so far, save it but keep looking for a better one
5135      ac_cv_path_SED="$ac_path_SED"
5136      ac_path_SED_max=$ac_count
5137    fi
5138    # 10*(2^10) chars as input seems more than enough
5139    test $ac_count -gt 10 && break
5140  done
5141  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142esac
5143
5144      $ac_path_SED_found && break 3
5145    done
5146  done
5147  done
5148IFS=$as_save_IFS
5149  if test -z "$ac_cv_path_SED"; then
5150    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5151  fi
5152else
5153  ac_cv_path_SED=$SED
5154fi
5155
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5158$as_echo "$ac_cv_path_SED" >&6; }
5159 SED="$ac_cv_path_SED"
5160  rm -f conftest.sed
5161
5162test -z "$SED" && SED=sed
5163Xsed="$SED -e 1s/^X//"
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5176$as_echo_n "checking for fgrep... " >&6; }
5177if ${ac_cv_path_FGREP+:} false; then :
5178  $as_echo_n "(cached) " >&6
5179else
5180  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5181   then ac_cv_path_FGREP="$GREP -F"
5182   else
5183     if test -z "$FGREP"; then
5184  ac_path_FGREP_found=false
5185  # Loop through the user's path and test for each of PROGNAME-LIST
5186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5188do
5189  IFS=$as_save_IFS
5190  test -z "$as_dir" && as_dir=.
5191    for ac_prog in fgrep; do
5192    for ac_exec_ext in '' $ac_executable_extensions; do
5193      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5194      as_fn_executable_p "$ac_path_FGREP" || continue
5195# Check for GNU ac_path_FGREP and select it if it is found.
5196  # Check for GNU $ac_path_FGREP
5197case `"$ac_path_FGREP" --version 2>&1` in
5198*GNU*)
5199  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5200*)
5201  ac_count=0
5202  $as_echo_n 0123456789 >"conftest.in"
5203  while :
5204  do
5205    cat "conftest.in" "conftest.in" >"conftest.tmp"
5206    mv "conftest.tmp" "conftest.in"
5207    cp "conftest.in" "conftest.nl"
5208    $as_echo 'FGREP' >> "conftest.nl"
5209    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5210    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5211    as_fn_arith $ac_count + 1 && ac_count=$as_val
5212    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5213      # Best one so far, save it but keep looking for a better one
5214      ac_cv_path_FGREP="$ac_path_FGREP"
5215      ac_path_FGREP_max=$ac_count
5216    fi
5217    # 10*(2^10) chars as input seems more than enough
5218    test $ac_count -gt 10 && break
5219  done
5220  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221esac
5222
5223      $ac_path_FGREP_found && break 3
5224    done
5225  done
5226  done
5227IFS=$as_save_IFS
5228  if test -z "$ac_cv_path_FGREP"; then
5229    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5230  fi
5231else
5232  ac_cv_path_FGREP=$FGREP
5233fi
5234
5235   fi
5236fi
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5238$as_echo "$ac_cv_path_FGREP" >&6; }
5239 FGREP="$ac_cv_path_FGREP"
5240
5241
5242test -z "$GREP" && GREP=grep
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262# Check whether --with-gnu-ld was given.
5263if test "${with_gnu_ld+set}" = set; then :
5264  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5265else
5266  with_gnu_ld=no
5267fi
5268
5269ac_prog=ld
5270if test yes = "$GCC"; then
5271  # Check if gcc -print-prog-name=ld gives a path.
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5273$as_echo_n "checking for ld used by $CC... " >&6; }
5274  case $host in
5275  *-*-mingw*)
5276    # gcc leaves a trailing carriage return, which upsets mingw
5277    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5278  *)
5279    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5280  esac
5281  case $ac_prog in
5282    # Accept absolute paths.
5283    [\\/]* | ?:[\\/]*)
5284      re_direlt='/[^/][^/]*/\.\./'
5285      # Canonicalize the pathname of ld
5286      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5287      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5288	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5289      done
5290      test -z "$LD" && LD=$ac_prog
5291      ;;
5292  "")
5293    # If it fails, then pretend we aren't using GCC.
5294    ac_prog=ld
5295    ;;
5296  *)
5297    # If it is relative, then search for the first ld in PATH.
5298    with_gnu_ld=unknown
5299    ;;
5300  esac
5301elif test yes = "$with_gnu_ld"; then
5302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5303$as_echo_n "checking for GNU ld... " >&6; }
5304else
5305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5306$as_echo_n "checking for non-GNU ld... " >&6; }
5307fi
5308if ${lt_cv_path_LD+:} false; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  if test -z "$LD"; then
5312  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5313  for ac_dir in $PATH; do
5314    IFS=$lt_save_ifs
5315    test -z "$ac_dir" && ac_dir=.
5316    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5317      lt_cv_path_LD=$ac_dir/$ac_prog
5318      # Check to see if the program is GNU ld.  I'd rather use --version,
5319      # but apparently some variants of GNU ld only accept -v.
5320      # Break only if it was the GNU/non-GNU ld that we prefer.
5321      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5322      *GNU* | *'with BFD'*)
5323	test no != "$with_gnu_ld" && break
5324	;;
5325      *)
5326	test yes != "$with_gnu_ld" && break
5327	;;
5328      esac
5329    fi
5330  done
5331  IFS=$lt_save_ifs
5332else
5333  lt_cv_path_LD=$LD # Let the user override the test with a path.
5334fi
5335fi
5336
5337LD=$lt_cv_path_LD
5338if test -n "$LD"; then
5339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5340$as_echo "$LD" >&6; }
5341else
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344fi
5345test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5347$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5348if ${lt_cv_prog_gnu_ld+:} false; then :
5349  $as_echo_n "(cached) " >&6
5350else
5351  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5352case `$LD -v 2>&1 </dev/null` in
5353*GNU* | *'with BFD'*)
5354  lt_cv_prog_gnu_ld=yes
5355  ;;
5356*)
5357  lt_cv_prog_gnu_ld=no
5358  ;;
5359esac
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5362$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5363with_gnu_ld=$lt_cv_prog_gnu_ld
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5374$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5375if ${lt_cv_path_NM+:} false; then :
5376  $as_echo_n "(cached) " >&6
5377else
5378  if test -n "$NM"; then
5379  # Let the user override the test.
5380  lt_cv_path_NM=$NM
5381else
5382  lt_nm_to_check=${ac_tool_prefix}nm
5383  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5384    lt_nm_to_check="$lt_nm_to_check nm"
5385  fi
5386  for lt_tmp_nm in $lt_nm_to_check; do
5387    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5388    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5389      IFS=$lt_save_ifs
5390      test -z "$ac_dir" && ac_dir=.
5391      tmp_nm=$ac_dir/$lt_tmp_nm
5392      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5393	# Check to see if the nm accepts a BSD-compat flag.
5394	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5395	#   nm: unknown option "B" ignored
5396	# Tru64's nm complains that /dev/null is an invalid object file
5397	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5398	case $build_os in
5399	mingw*) lt_bad_file=conftest.nm/nofile ;;
5400	*) lt_bad_file=/dev/null ;;
5401	esac
5402	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5403	*$lt_bad_file* | *'Invalid file or object type'*)
5404	  lt_cv_path_NM="$tmp_nm -B"
5405	  break 2
5406	  ;;
5407	*)
5408	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5409	  */dev/null*)
5410	    lt_cv_path_NM="$tmp_nm -p"
5411	    break 2
5412	    ;;
5413	  *)
5414	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5415	    continue # so that we can try to find one that supports BSD flags
5416	    ;;
5417	  esac
5418	  ;;
5419	esac
5420      fi
5421    done
5422    IFS=$lt_save_ifs
5423  done
5424  : ${lt_cv_path_NM=no}
5425fi
5426fi
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5428$as_echo "$lt_cv_path_NM" >&6; }
5429if test no != "$lt_cv_path_NM"; then
5430  NM=$lt_cv_path_NM
5431else
5432  # Didn't find any BSD compatible name lister, look for dumpbin.
5433  if test -n "$DUMPBIN"; then :
5434    # Let the user override the test.
5435  else
5436    if test -n "$ac_tool_prefix"; then
5437  for ac_prog in dumpbin "link -dump"
5438  do
5439    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
5443if ${ac_cv_prog_DUMPBIN+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  if test -n "$DUMPBIN"; then
5447  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452  IFS=$as_save_IFS
5453  test -z "$as_dir" && as_dir=.
5454    for ac_exec_ext in '' $ac_executable_extensions; do
5455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458    break 2
5459  fi
5460done
5461  done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466DUMPBIN=$ac_cv_prog_DUMPBIN
5467if test -n "$DUMPBIN"; then
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5469$as_echo "$DUMPBIN" >&6; }
5470else
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
5473fi
5474
5475
5476    test -n "$DUMPBIN" && break
5477  done
5478fi
5479if test -z "$DUMPBIN"; then
5480  ac_ct_DUMPBIN=$DUMPBIN
5481  for ac_prog in dumpbin "link -dump"
5482do
5483  # Extract the first word of "$ac_prog", so it can be a program name with args.
5484set dummy $ac_prog; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
5487if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5488  $as_echo_n "(cached) " >&6
5489else
5490  if test -n "$ac_ct_DUMPBIN"; then
5491  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496  IFS=$as_save_IFS
5497  test -z "$as_dir" && as_dir=.
5498    for ac_exec_ext in '' $ac_executable_extensions; do
5499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502    break 2
5503  fi
5504done
5505  done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5511if test -n "$ac_ct_DUMPBIN"; then
5512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5513$as_echo "$ac_ct_DUMPBIN" >&6; }
5514else
5515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
5517fi
5518
5519
5520  test -n "$ac_ct_DUMPBIN" && break
5521done
5522
5523  if test "x$ac_ct_DUMPBIN" = x; then
5524    DUMPBIN=":"
5525  else
5526    case $cross_compiling:$ac_tool_warned in
5527yes:)
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530ac_tool_warned=yes ;;
5531esac
5532    DUMPBIN=$ac_ct_DUMPBIN
5533  fi
5534fi
5535
5536    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5537    *COFF*)
5538      DUMPBIN="$DUMPBIN -symbols -headers"
5539      ;;
5540    *)
5541      DUMPBIN=:
5542      ;;
5543    esac
5544  fi
5545
5546  if test : != "$DUMPBIN"; then
5547    NM=$DUMPBIN
5548  fi
5549fi
5550test -z "$NM" && NM=nm
5551
5552
5553
5554
5555
5556
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5558$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5559if ${lt_cv_nm_interface+:} false; then :
5560  $as_echo_n "(cached) " >&6
5561else
5562  lt_cv_nm_interface="BSD nm"
5563  echo "int some_variable = 0;" > conftest.$ac_ext
5564  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5565  (eval "$ac_compile" 2>conftest.err)
5566  cat conftest.err >&5
5567  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5568  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5569  cat conftest.err >&5
5570  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5571  cat conftest.out >&5
5572  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5573    lt_cv_nm_interface="MS dumpbin"
5574  fi
5575  rm -f conftest*
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5578$as_echo "$lt_cv_nm_interface" >&6; }
5579
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5581$as_echo_n "checking whether ln -s works... " >&6; }
5582LN_S=$as_ln_s
5583if test "$LN_S" = "ln -s"; then
5584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5585$as_echo "yes" >&6; }
5586else
5587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5588$as_echo "no, using $LN_S" >&6; }
5589fi
5590
5591# find the maximum length of command line arguments
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5593$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5594if ${lt_cv_sys_max_cmd_len+:} false; then :
5595  $as_echo_n "(cached) " >&6
5596else
5597    i=0
5598  teststring=ABCD
5599
5600  case $build_os in
5601  msdosdjgpp*)
5602    # On DJGPP, this test can blow up pretty badly due to problems in libc
5603    # (any single argument exceeding 2000 bytes causes a buffer overrun
5604    # during glob expansion).  Even if it were fixed, the result of this
5605    # check would be larger than it should be.
5606    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5607    ;;
5608
5609  gnu*)
5610    # Under GNU Hurd, this test is not required because there is
5611    # no limit to the length of command line arguments.
5612    # Libtool will interpret -1 as no limit whatsoever
5613    lt_cv_sys_max_cmd_len=-1;
5614    ;;
5615
5616  cygwin* | mingw* | cegcc*)
5617    # On Win9x/ME, this test blows up -- it succeeds, but takes
5618    # about 5 minutes as the teststring grows exponentially.
5619    # Worse, since 9x/ME are not pre-emptively multitasking,
5620    # you end up with a "frozen" computer, even though with patience
5621    # the test eventually succeeds (with a max line length of 256k).
5622    # Instead, let's just punt: use the minimum linelength reported by
5623    # all of the supported platforms: 8192 (on NT/2K/XP).
5624    lt_cv_sys_max_cmd_len=8192;
5625    ;;
5626
5627  mint*)
5628    # On MiNT this can take a long time and run out of memory.
5629    lt_cv_sys_max_cmd_len=8192;
5630    ;;
5631
5632  amigaos*)
5633    # On AmigaOS with pdksh, this test takes hours, literally.
5634    # So we just punt and use a minimum line length of 8192.
5635    lt_cv_sys_max_cmd_len=8192;
5636    ;;
5637
5638  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5639    # This has been around since 386BSD, at least.  Likely further.
5640    if test -x /sbin/sysctl; then
5641      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5642    elif test -x /usr/sbin/sysctl; then
5643      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5644    else
5645      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5646    fi
5647    # And add a safety zone
5648    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5649    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5650    ;;
5651
5652  interix*)
5653    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5654    lt_cv_sys_max_cmd_len=196608
5655    ;;
5656
5657  os2*)
5658    # The test takes a long time on OS/2.
5659    lt_cv_sys_max_cmd_len=8192
5660    ;;
5661
5662  osf*)
5663    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5664    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5665    # nice to cause kernel panics so lets avoid the loop below.
5666    # First set a reasonable default.
5667    lt_cv_sys_max_cmd_len=16384
5668    #
5669    if test -x /sbin/sysconfig; then
5670      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5671        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5672      esac
5673    fi
5674    ;;
5675  sco3.2v5*)
5676    lt_cv_sys_max_cmd_len=102400
5677    ;;
5678  sysv5* | sco5v6* | sysv4.2uw2*)
5679    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5680    if test -n "$kargmax"; then
5681      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5682    else
5683      lt_cv_sys_max_cmd_len=32768
5684    fi
5685    ;;
5686  *)
5687    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5688    if test -n "$lt_cv_sys_max_cmd_len" && \
5689       test undefined != "$lt_cv_sys_max_cmd_len"; then
5690      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5691      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5692    else
5693      # Make teststring a little bigger before we do anything with it.
5694      # a 1K string should be a reasonable start.
5695      for i in 1 2 3 4 5 6 7 8; do
5696        teststring=$teststring$teststring
5697      done
5698      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5699      # If test is not a shell built-in, we'll probably end up computing a
5700      # maximum length that is only half of the actual maximum length, but
5701      # we can't tell.
5702      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5703	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5704	      test 17 != "$i" # 1/2 MB should be enough
5705      do
5706        i=`expr $i + 1`
5707        teststring=$teststring$teststring
5708      done
5709      # Only check the string length outside the loop.
5710      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5711      teststring=
5712      # Add a significant safety factor because C++ compilers can tack on
5713      # massive amounts of additional arguments before passing them to the
5714      # linker.  It appears as though 1/2 is a usable value.
5715      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5716    fi
5717    ;;
5718  esac
5719
5720fi
5721
5722if test -n "$lt_cv_sys_max_cmd_len"; then
5723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5724$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5725else
5726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5727$as_echo "none" >&6; }
5728fi
5729max_cmd_len=$lt_cv_sys_max_cmd_len
5730
5731
5732
5733
5734
5735
5736: ${CP="cp -f"}
5737: ${MV="mv -f"}
5738: ${RM="rm -f"}
5739
5740if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5741  lt_unset=unset
5742else
5743  lt_unset=false
5744fi
5745
5746
5747
5748
5749
5750# test EBCDIC or ASCII
5751case `echo X|tr X '\101'` in
5752 A) # ASCII based system
5753    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5754  lt_SP2NL='tr \040 \012'
5755  lt_NL2SP='tr \015\012 \040\040'
5756  ;;
5757 *) # EBCDIC based system
5758  lt_SP2NL='tr \100 \n'
5759  lt_NL2SP='tr \r\n \100\100'
5760  ;;
5761esac
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5772$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5773if ${lt_cv_to_host_file_cmd+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  case $host in
5777  *-*-mingw* )
5778    case $build in
5779      *-*-mingw* ) # actually msys
5780        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5781        ;;
5782      *-*-cygwin* )
5783        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5784        ;;
5785      * ) # otherwise, assume *nix
5786        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5787        ;;
5788    esac
5789    ;;
5790  *-*-cygwin* )
5791    case $build in
5792      *-*-mingw* ) # actually msys
5793        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5794        ;;
5795      *-*-cygwin* )
5796        lt_cv_to_host_file_cmd=func_convert_file_noop
5797        ;;
5798      * ) # otherwise, assume *nix
5799        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5800        ;;
5801    esac
5802    ;;
5803  * ) # unhandled hosts (and "normal" native builds)
5804    lt_cv_to_host_file_cmd=func_convert_file_noop
5805    ;;
5806esac
5807
5808fi
5809
5810to_host_file_cmd=$lt_cv_to_host_file_cmd
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5812$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5813
5814
5815
5816
5817
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5819$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5820if ${lt_cv_to_tool_file_cmd+:} false; then :
5821  $as_echo_n "(cached) " >&6
5822else
5823  #assume ordinary cross tools, or native build.
5824lt_cv_to_tool_file_cmd=func_convert_file_noop
5825case $host in
5826  *-*-mingw* )
5827    case $build in
5828      *-*-mingw* ) # actually msys
5829        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5830        ;;
5831    esac
5832    ;;
5833esac
5834
5835fi
5836
5837to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5839$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5840
5841
5842
5843
5844
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5846$as_echo_n "checking for $LD option to reload object files... " >&6; }
5847if ${lt_cv_ld_reload_flag+:} false; then :
5848  $as_echo_n "(cached) " >&6
5849else
5850  lt_cv_ld_reload_flag='-r'
5851fi
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5853$as_echo "$lt_cv_ld_reload_flag" >&6; }
5854reload_flag=$lt_cv_ld_reload_flag
5855case $reload_flag in
5856"" | " "*) ;;
5857*) reload_flag=" $reload_flag" ;;
5858esac
5859reload_cmds='$LD$reload_flag -o $output$reload_objs'
5860case $host_os in
5861  cygwin* | mingw* | pw32* | cegcc*)
5862    if test yes != "$GCC"; then
5863      reload_cmds=false
5864    fi
5865    ;;
5866  darwin*)
5867    if test yes = "$GCC"; then
5868      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5869    else
5870      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5871    fi
5872    ;;
5873esac
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883if test -n "$ac_tool_prefix"; then
5884  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5885set dummy ${ac_tool_prefix}objdump; ac_word=$2
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887$as_echo_n "checking for $ac_word... " >&6; }
5888if ${ac_cv_prog_OBJDUMP+:} false; then :
5889  $as_echo_n "(cached) " >&6
5890else
5891  if test -n "$OBJDUMP"; then
5892  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897  IFS=$as_save_IFS
5898  test -z "$as_dir" && as_dir=.
5899    for ac_exec_ext in '' $ac_executable_extensions; do
5900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903    break 2
5904  fi
5905done
5906  done
5907IFS=$as_save_IFS
5908
5909fi
5910fi
5911OBJDUMP=$ac_cv_prog_OBJDUMP
5912if test -n "$OBJDUMP"; then
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5914$as_echo "$OBJDUMP" >&6; }
5915else
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917$as_echo "no" >&6; }
5918fi
5919
5920
5921fi
5922if test -z "$ac_cv_prog_OBJDUMP"; then
5923  ac_ct_OBJDUMP=$OBJDUMP
5924  # Extract the first word of "objdump", so it can be a program name with args.
5925set dummy objdump; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
5928if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  if test -n "$ac_ct_OBJDUMP"; then
5932  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937  IFS=$as_save_IFS
5938  test -z "$as_dir" && as_dir=.
5939    for ac_exec_ext in '' $ac_executable_extensions; do
5940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943    break 2
5944  fi
5945done
5946  done
5947IFS=$as_save_IFS
5948
5949fi
5950fi
5951ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5952if test -n "$ac_ct_OBJDUMP"; then
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5954$as_echo "$ac_ct_OBJDUMP" >&6; }
5955else
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
5959
5960  if test "x$ac_ct_OBJDUMP" = x; then
5961    OBJDUMP="false"
5962  else
5963    case $cross_compiling:$ac_tool_warned in
5964yes:)
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5967ac_tool_warned=yes ;;
5968esac
5969    OBJDUMP=$ac_ct_OBJDUMP
5970  fi
5971else
5972  OBJDUMP="$ac_cv_prog_OBJDUMP"
5973fi
5974
5975test -z "$OBJDUMP" && OBJDUMP=objdump
5976
5977
5978
5979
5980
5981
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5983$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5984if ${lt_cv_deplibs_check_method+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  lt_cv_file_magic_cmd='$MAGIC_CMD'
5988lt_cv_file_magic_test_file=
5989lt_cv_deplibs_check_method='unknown'
5990# Need to set the preceding variable on all platforms that support
5991# interlibrary dependencies.
5992# 'none' -- dependencies not supported.
5993# 'unknown' -- same as none, but documents that we really don't know.
5994# 'pass_all' -- all dependencies passed with no checks.
5995# 'test_compile' -- check by making test program.
5996# 'file_magic [[regex]]' -- check by looking for files in library path
5997# that responds to the $file_magic_cmd with a given extended regex.
5998# If you have 'file' or equivalent on your system and you're not sure
5999# whether 'pass_all' will *always* work, you probably want this one.
6000
6001case $host_os in
6002aix[4-9]*)
6003  lt_cv_deplibs_check_method=pass_all
6004  ;;
6005
6006beos*)
6007  lt_cv_deplibs_check_method=pass_all
6008  ;;
6009
6010bsdi[45]*)
6011  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6012  lt_cv_file_magic_cmd='/usr/bin/file -L'
6013  lt_cv_file_magic_test_file=/shlib/libc.so
6014  ;;
6015
6016cygwin*)
6017  # func_win32_libid is a shell function defined in ltmain.sh
6018  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6019  lt_cv_file_magic_cmd='func_win32_libid'
6020  ;;
6021
6022mingw* | pw32*)
6023  # Base MSYS/MinGW do not provide the 'file' command needed by
6024  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6025  # unless we find 'file', for example because we are cross-compiling.
6026  if ( file / ) >/dev/null 2>&1; then
6027    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6028    lt_cv_file_magic_cmd='func_win32_libid'
6029  else
6030    # Keep this pattern in sync with the one in func_win32_libid.
6031    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6032    lt_cv_file_magic_cmd='$OBJDUMP -f'
6033  fi
6034  ;;
6035
6036cegcc*)
6037  # use the weaker test based on 'objdump'. See mingw*.
6038  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6039  lt_cv_file_magic_cmd='$OBJDUMP -f'
6040  ;;
6041
6042darwin* | rhapsody*)
6043  lt_cv_deplibs_check_method=pass_all
6044  ;;
6045
6046freebsd* | dragonfly*)
6047  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6048    case $host_cpu in
6049    i*86 )
6050      # Not sure whether the presence of OpenBSD here was a mistake.
6051      # Let's accept both of them until this is cleared up.
6052      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6053      lt_cv_file_magic_cmd=/usr/bin/file
6054      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6055      ;;
6056    esac
6057  else
6058    lt_cv_deplibs_check_method=pass_all
6059  fi
6060  ;;
6061
6062haiku*)
6063  lt_cv_deplibs_check_method=pass_all
6064  ;;
6065
6066hpux10.20* | hpux11*)
6067  lt_cv_file_magic_cmd=/usr/bin/file
6068  case $host_cpu in
6069  ia64*)
6070    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6071    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6072    ;;
6073  hppa*64*)
6074    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]'
6075    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6076    ;;
6077  *)
6078    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6079    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6080    ;;
6081  esac
6082  ;;
6083
6084interix[3-9]*)
6085  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6086  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6087  ;;
6088
6089irix5* | irix6* | nonstopux*)
6090  case $LD in
6091  *-32|*"-32 ") libmagic=32-bit;;
6092  *-n32|*"-n32 ") libmagic=N32;;
6093  *-64|*"-64 ") libmagic=64-bit;;
6094  *) libmagic=never-match;;
6095  esac
6096  lt_cv_deplibs_check_method=pass_all
6097  ;;
6098
6099# This must be glibc/ELF.
6100linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6101  lt_cv_deplibs_check_method=pass_all
6102  ;;
6103
6104netbsd*)
6105  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6106    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6107  else
6108    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6109  fi
6110  ;;
6111
6112newos6*)
6113  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6114  lt_cv_file_magic_cmd=/usr/bin/file
6115  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6116  ;;
6117
6118*nto* | *qnx*)
6119  lt_cv_deplibs_check_method=pass_all
6120  ;;
6121
6122openbsd* | bitrig*)
6123  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6124    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6125  else
6126    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6127  fi
6128  ;;
6129
6130osf3* | osf4* | osf5*)
6131  lt_cv_deplibs_check_method=pass_all
6132  ;;
6133
6134rdos*)
6135  lt_cv_deplibs_check_method=pass_all
6136  ;;
6137
6138solaris*)
6139  lt_cv_deplibs_check_method=pass_all
6140  ;;
6141
6142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6143  lt_cv_deplibs_check_method=pass_all
6144  ;;
6145
6146sysv4 | sysv4.3*)
6147  case $host_vendor in
6148  motorola)
6149    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]'
6150    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6151    ;;
6152  ncr)
6153    lt_cv_deplibs_check_method=pass_all
6154    ;;
6155  sequent)
6156    lt_cv_file_magic_cmd='/bin/file'
6157    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6158    ;;
6159  sni)
6160    lt_cv_file_magic_cmd='/bin/file'
6161    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6162    lt_cv_file_magic_test_file=/lib/libc.so
6163    ;;
6164  siemens)
6165    lt_cv_deplibs_check_method=pass_all
6166    ;;
6167  pc)
6168    lt_cv_deplibs_check_method=pass_all
6169    ;;
6170  esac
6171  ;;
6172
6173tpf*)
6174  lt_cv_deplibs_check_method=pass_all
6175  ;;
6176os2*)
6177  lt_cv_deplibs_check_method=pass_all
6178  ;;
6179esac
6180
6181fi
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6183$as_echo "$lt_cv_deplibs_check_method" >&6; }
6184
6185file_magic_glob=
6186want_nocaseglob=no
6187if test "$build" = "$host"; then
6188  case $host_os in
6189  mingw* | pw32*)
6190    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6191      want_nocaseglob=yes
6192    else
6193      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6194    fi
6195    ;;
6196  esac
6197fi
6198
6199file_magic_cmd=$lt_cv_file_magic_cmd
6200deplibs_check_method=$lt_cv_deplibs_check_method
6201test -z "$deplibs_check_method" && deplibs_check_method=unknown
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224if test -n "$ac_tool_prefix"; then
6225  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6226set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228$as_echo_n "checking for $ac_word... " >&6; }
6229if ${ac_cv_prog_DLLTOOL+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232  if test -n "$DLLTOOL"; then
6233  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6234else
6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236for as_dir in $PATH
6237do
6238  IFS=$as_save_IFS
6239  test -z "$as_dir" && as_dir=.
6240    for ac_exec_ext in '' $ac_executable_extensions; do
6241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244    break 2
6245  fi
6246done
6247  done
6248IFS=$as_save_IFS
6249
6250fi
6251fi
6252DLLTOOL=$ac_cv_prog_DLLTOOL
6253if test -n "$DLLTOOL"; then
6254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6255$as_echo "$DLLTOOL" >&6; }
6256else
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258$as_echo "no" >&6; }
6259fi
6260
6261
6262fi
6263if test -z "$ac_cv_prog_DLLTOOL"; then
6264  ac_ct_DLLTOOL=$DLLTOOL
6265  # Extract the first word of "dlltool", so it can be a program name with args.
6266set dummy dlltool; ac_word=$2
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268$as_echo_n "checking for $ac_word... " >&6; }
6269if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272  if test -n "$ac_ct_DLLTOOL"; then
6273  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6274else
6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276for as_dir in $PATH
6277do
6278  IFS=$as_save_IFS
6279  test -z "$as_dir" && as_dir=.
6280    for ac_exec_ext in '' $ac_executable_extensions; do
6281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284    break 2
6285  fi
6286done
6287  done
6288IFS=$as_save_IFS
6289
6290fi
6291fi
6292ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6293if test -n "$ac_ct_DLLTOOL"; then
6294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6295$as_echo "$ac_ct_DLLTOOL" >&6; }
6296else
6297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298$as_echo "no" >&6; }
6299fi
6300
6301  if test "x$ac_ct_DLLTOOL" = x; then
6302    DLLTOOL="false"
6303  else
6304    case $cross_compiling:$ac_tool_warned in
6305yes:)
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6308ac_tool_warned=yes ;;
6309esac
6310    DLLTOOL=$ac_ct_DLLTOOL
6311  fi
6312else
6313  DLLTOOL="$ac_cv_prog_DLLTOOL"
6314fi
6315
6316test -z "$DLLTOOL" && DLLTOOL=dlltool
6317
6318
6319
6320
6321
6322
6323
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6325$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6326if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6327  $as_echo_n "(cached) " >&6
6328else
6329  lt_cv_sharedlib_from_linklib_cmd='unknown'
6330
6331case $host_os in
6332cygwin* | mingw* | pw32* | cegcc*)
6333  # two different shell functions defined in ltmain.sh;
6334  # decide which one to use based on capabilities of $DLLTOOL
6335  case `$DLLTOOL --help 2>&1` in
6336  *--identify-strict*)
6337    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6338    ;;
6339  *)
6340    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6341    ;;
6342  esac
6343  ;;
6344*)
6345  # fallback: assume linklib IS sharedlib
6346  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6347  ;;
6348esac
6349
6350fi
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6352$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6353sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6354test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6355
6356
6357
6358
6359
6360
6361
6362if test -n "$ac_tool_prefix"; then
6363  for ac_prog in ar
6364  do
6365    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6366set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368$as_echo_n "checking for $ac_word... " >&6; }
6369if ${ac_cv_prog_AR+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  if test -n "$AR"; then
6373  ac_cv_prog_AR="$AR" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378  IFS=$as_save_IFS
6379  test -z "$as_dir" && as_dir=.
6380    for ac_exec_ext in '' $ac_executable_extensions; do
6381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384    break 2
6385  fi
6386done
6387  done
6388IFS=$as_save_IFS
6389
6390fi
6391fi
6392AR=$ac_cv_prog_AR
6393if test -n "$AR"; then
6394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6395$as_echo "$AR" >&6; }
6396else
6397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398$as_echo "no" >&6; }
6399fi
6400
6401
6402    test -n "$AR" && break
6403  done
6404fi
6405if test -z "$AR"; then
6406  ac_ct_AR=$AR
6407  for ac_prog in ar
6408do
6409  # Extract the first word of "$ac_prog", so it can be a program name with args.
6410set dummy $ac_prog; ac_word=$2
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412$as_echo_n "checking for $ac_word... " >&6; }
6413if ${ac_cv_prog_ac_ct_AR+:} false; then :
6414  $as_echo_n "(cached) " >&6
6415else
6416  if test -n "$ac_ct_AR"; then
6417  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6418else
6419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420for as_dir in $PATH
6421do
6422  IFS=$as_save_IFS
6423  test -z "$as_dir" && as_dir=.
6424    for ac_exec_ext in '' $ac_executable_extensions; do
6425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426    ac_cv_prog_ac_ct_AR="$ac_prog"
6427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428    break 2
6429  fi
6430done
6431  done
6432IFS=$as_save_IFS
6433
6434fi
6435fi
6436ac_ct_AR=$ac_cv_prog_ac_ct_AR
6437if test -n "$ac_ct_AR"; then
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6439$as_echo "$ac_ct_AR" >&6; }
6440else
6441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442$as_echo "no" >&6; }
6443fi
6444
6445
6446  test -n "$ac_ct_AR" && break
6447done
6448
6449  if test "x$ac_ct_AR" = x; then
6450    AR="false"
6451  else
6452    case $cross_compiling:$ac_tool_warned in
6453yes:)
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456ac_tool_warned=yes ;;
6457esac
6458    AR=$ac_ct_AR
6459  fi
6460fi
6461
6462: ${AR=ar}
6463: ${AR_FLAGS=cru}
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6476$as_echo_n "checking for archiver @FILE support... " >&6; }
6477if ${lt_cv_ar_at_file+:} false; then :
6478  $as_echo_n "(cached) " >&6
6479else
6480  lt_cv_ar_at_file=no
6481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h.  */
6483
6484int
6485main ()
6486{
6487
6488  ;
6489  return 0;
6490}
6491_ACEOF
6492if ac_fn_c_try_compile "$LINENO"; then :
6493  echo conftest.$ac_objext > conftest.lst
6494      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6495      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6496  (eval $lt_ar_try) 2>&5
6497  ac_status=$?
6498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6499  test $ac_status = 0; }
6500      if test 0 -eq "$ac_status"; then
6501	# Ensure the archiver fails upon bogus file names.
6502	rm -f conftest.$ac_objext libconftest.a
6503	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6504  (eval $lt_ar_try) 2>&5
6505  ac_status=$?
6506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507  test $ac_status = 0; }
6508	if test 0 -ne "$ac_status"; then
6509          lt_cv_ar_at_file=@
6510        fi
6511      fi
6512      rm -f conftest.* libconftest.a
6513
6514fi
6515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516
6517fi
6518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6519$as_echo "$lt_cv_ar_at_file" >&6; }
6520
6521if test no = "$lt_cv_ar_at_file"; then
6522  archiver_list_spec=
6523else
6524  archiver_list_spec=$lt_cv_ar_at_file
6525fi
6526
6527
6528
6529
6530
6531
6532
6533if test -n "$ac_tool_prefix"; then
6534  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6535set dummy ${ac_tool_prefix}strip; ac_word=$2
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537$as_echo_n "checking for $ac_word... " >&6; }
6538if ${ac_cv_prog_STRIP+:} false; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  if test -n "$STRIP"; then
6542  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6543else
6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in $PATH
6546do
6547  IFS=$as_save_IFS
6548  test -z "$as_dir" && as_dir=.
6549    for ac_exec_ext in '' $ac_executable_extensions; do
6550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553    break 2
6554  fi
6555done
6556  done
6557IFS=$as_save_IFS
6558
6559fi
6560fi
6561STRIP=$ac_cv_prog_STRIP
6562if test -n "$STRIP"; then
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6564$as_echo "$STRIP" >&6; }
6565else
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567$as_echo "no" >&6; }
6568fi
6569
6570
6571fi
6572if test -z "$ac_cv_prog_STRIP"; then
6573  ac_ct_STRIP=$STRIP
6574  # Extract the first word of "strip", so it can be a program name with args.
6575set dummy strip; ac_word=$2
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577$as_echo_n "checking for $ac_word... " >&6; }
6578if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581  if test -n "$ac_ct_STRIP"; then
6582  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6583else
6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587  IFS=$as_save_IFS
6588  test -z "$as_dir" && as_dir=.
6589    for ac_exec_ext in '' $ac_executable_extensions; do
6590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591    ac_cv_prog_ac_ct_STRIP="strip"
6592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593    break 2
6594  fi
6595done
6596  done
6597IFS=$as_save_IFS
6598
6599fi
6600fi
6601ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6602if test -n "$ac_ct_STRIP"; then
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6604$as_echo "$ac_ct_STRIP" >&6; }
6605else
6606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607$as_echo "no" >&6; }
6608fi
6609
6610  if test "x$ac_ct_STRIP" = x; then
6611    STRIP=":"
6612  else
6613    case $cross_compiling:$ac_tool_warned in
6614yes:)
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617ac_tool_warned=yes ;;
6618esac
6619    STRIP=$ac_ct_STRIP
6620  fi
6621else
6622  STRIP="$ac_cv_prog_STRIP"
6623fi
6624
6625test -z "$STRIP" && STRIP=:
6626
6627
6628
6629
6630
6631
6632if test -n "$ac_tool_prefix"; then
6633  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6634set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636$as_echo_n "checking for $ac_word... " >&6; }
6637if ${ac_cv_prog_RANLIB+:} false; then :
6638  $as_echo_n "(cached) " >&6
6639else
6640  if test -n "$RANLIB"; then
6641  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6642else
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646  IFS=$as_save_IFS
6647  test -z "$as_dir" && as_dir=.
6648    for ac_exec_ext in '' $ac_executable_extensions; do
6649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652    break 2
6653  fi
6654done
6655  done
6656IFS=$as_save_IFS
6657
6658fi
6659fi
6660RANLIB=$ac_cv_prog_RANLIB
6661if test -n "$RANLIB"; then
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6663$as_echo "$RANLIB" >&6; }
6664else
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666$as_echo "no" >&6; }
6667fi
6668
6669
6670fi
6671if test -z "$ac_cv_prog_RANLIB"; then
6672  ac_ct_RANLIB=$RANLIB
6673  # Extract the first word of "ranlib", so it can be a program name with args.
6674set dummy ranlib; ac_word=$2
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676$as_echo_n "checking for $ac_word... " >&6; }
6677if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6678  $as_echo_n "(cached) " >&6
6679else
6680  if test -n "$ac_ct_RANLIB"; then
6681  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686  IFS=$as_save_IFS
6687  test -z "$as_dir" && as_dir=.
6688    for ac_exec_ext in '' $ac_executable_extensions; do
6689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690    ac_cv_prog_ac_ct_RANLIB="ranlib"
6691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692    break 2
6693  fi
6694done
6695  done
6696IFS=$as_save_IFS
6697
6698fi
6699fi
6700ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6701if test -n "$ac_ct_RANLIB"; then
6702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6703$as_echo "$ac_ct_RANLIB" >&6; }
6704else
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706$as_echo "no" >&6; }
6707fi
6708
6709  if test "x$ac_ct_RANLIB" = x; then
6710    RANLIB=":"
6711  else
6712    case $cross_compiling:$ac_tool_warned in
6713yes:)
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716ac_tool_warned=yes ;;
6717esac
6718    RANLIB=$ac_ct_RANLIB
6719  fi
6720else
6721  RANLIB="$ac_cv_prog_RANLIB"
6722fi
6723
6724test -z "$RANLIB" && RANLIB=:
6725
6726
6727
6728
6729
6730
6731# Determine commands to create old-style static archives.
6732old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6733old_postinstall_cmds='chmod 644 $oldlib'
6734old_postuninstall_cmds=
6735
6736if test -n "$RANLIB"; then
6737  case $host_os in
6738  bitrig* | openbsd*)
6739    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6740    ;;
6741  *)
6742    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6743    ;;
6744  esac
6745  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6746fi
6747
6748case $host_os in
6749  darwin*)
6750    lock_old_archive_extraction=yes ;;
6751  *)
6752    lock_old_archive_extraction=no ;;
6753esac
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793# If no C compiler was specified, use CC.
6794LTCC=${LTCC-"$CC"}
6795
6796# If no C compiler flags were specified, use CFLAGS.
6797LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6798
6799# Allow CC to be a program name with arguments.
6800compiler=$CC
6801
6802
6803# Check for command to grab the raw symbol name followed by C symbol from nm.
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6805$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6806if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6807  $as_echo_n "(cached) " >&6
6808else
6809
6810# These are sane defaults that work on at least a few old systems.
6811# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6812
6813# Character class describing NM global symbol codes.
6814symcode='[BCDEGRST]'
6815
6816# Regexp to match symbols that can be accessed directly from C.
6817sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6818
6819# Define system-specific variables.
6820case $host_os in
6821aix*)
6822  symcode='[BCDT]'
6823  ;;
6824cygwin* | mingw* | pw32* | cegcc*)
6825  symcode='[ABCDGISTW]'
6826  ;;
6827hpux*)
6828  if test ia64 = "$host_cpu"; then
6829    symcode='[ABCDEGRST]'
6830  fi
6831  ;;
6832irix* | nonstopux*)
6833  symcode='[BCDEGRST]'
6834  ;;
6835osf*)
6836  symcode='[BCDEGQRST]'
6837  ;;
6838solaris*)
6839  symcode='[BDRT]'
6840  ;;
6841sco3.2v5*)
6842  symcode='[DT]'
6843  ;;
6844sysv4.2uw2*)
6845  symcode='[DT]'
6846  ;;
6847sysv5* | sco5v6* | unixware* | OpenUNIX*)
6848  symcode='[ABDT]'
6849  ;;
6850sysv4)
6851  symcode='[DFNSTU]'
6852  ;;
6853esac
6854
6855# If we're using GNU nm, then use its standard symbol codes.
6856case `$NM -V 2>&1` in
6857*GNU* | *'with BFD'*)
6858  symcode='[ABCDGIRSTW]' ;;
6859esac
6860
6861if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6862  # Gets list of data symbols to import.
6863  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6864  # Adjust the below global symbol transforms to fixup imported variables.
6865  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6866  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6867  lt_c_name_lib_hook="\
6868  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6869  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6870else
6871  # Disable hooks by default.
6872  lt_cv_sys_global_symbol_to_import=
6873  lt_cdecl_hook=
6874  lt_c_name_hook=
6875  lt_c_name_lib_hook=
6876fi
6877
6878# Transform an extracted symbol line into a proper C declaration.
6879# Some systems (esp. on ia64) link data and code symbols differently,
6880# so use this general approach.
6881lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6882$lt_cdecl_hook\
6883" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6884" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6885
6886# Transform an extracted symbol line into symbol name and symbol address
6887lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6888$lt_c_name_hook\
6889" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6890" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6891
6892# Transform an extracted symbol line into symbol name with lib prefix and
6893# symbol address.
6894lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6895$lt_c_name_lib_hook\
6896" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6897" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6898" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6899
6900# Handle CRLF in mingw tool chain
6901opt_cr=
6902case $build_os in
6903mingw*)
6904  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6905  ;;
6906esac
6907
6908# Try without a prefix underscore, then with it.
6909for ac_symprfx in "" "_"; do
6910
6911  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6912  symxfrm="\\1 $ac_symprfx\\2 \\2"
6913
6914  # Write the raw and C identifiers.
6915  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6916    # Fake it for dumpbin and say T for any non-static function,
6917    # D for any global variable and I for any imported variable.
6918    # Also find C++ and __fastcall symbols from MSVC++,
6919    # which start with @ or ?.
6920    lt_cv_sys_global_symbol_pipe="$AWK '"\
6921"     {last_section=section; section=\$ 3};"\
6922"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6923"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6924"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6925"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6926"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6927"     \$ 0!~/External *\|/{next};"\
6928"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6929"     {if(hide[section]) next};"\
6930"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6931"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6932"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6933"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6934"     ' prfx=^$ac_symprfx"
6935  else
6936    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6937  fi
6938  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6939
6940  # Check to see that the pipe works correctly.
6941  pipe_works=no
6942
6943  rm -f conftest*
6944  cat > conftest.$ac_ext <<_LT_EOF
6945#ifdef __cplusplus
6946extern "C" {
6947#endif
6948char nm_test_var;
6949void nm_test_func(void);
6950void nm_test_func(void){}
6951#ifdef __cplusplus
6952}
6953#endif
6954int main(){nm_test_var='a';nm_test_func();return(0);}
6955_LT_EOF
6956
6957  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6958  (eval $ac_compile) 2>&5
6959  ac_status=$?
6960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961  test $ac_status = 0; }; then
6962    # Now try to grab the symbols.
6963    nlist=conftest.nm
6964    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6965  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6966  ac_status=$?
6967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968  test $ac_status = 0; } && test -s "$nlist"; then
6969      # Try sorting and uniquifying the output.
6970      if sort "$nlist" | uniq > "$nlist"T; then
6971	mv -f "$nlist"T "$nlist"
6972      else
6973	rm -f "$nlist"T
6974      fi
6975
6976      # Make sure that we snagged all the symbols we need.
6977      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6978	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6979	  cat <<_LT_EOF > conftest.$ac_ext
6980/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6981#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6982/* DATA imports from DLLs on WIN32 can't be const, because runtime
6983   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6984# define LT_DLSYM_CONST
6985#elif defined __osf__
6986/* This system does not cope well with relocations in const data.  */
6987# define LT_DLSYM_CONST
6988#else
6989# define LT_DLSYM_CONST const
6990#endif
6991
6992#ifdef __cplusplus
6993extern "C" {
6994#endif
6995
6996_LT_EOF
6997	  # Now generate the symbol file.
6998	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6999
7000	  cat <<_LT_EOF >> conftest.$ac_ext
7001
7002/* The mapping between symbol names and symbols.  */
7003LT_DLSYM_CONST struct {
7004  const char *name;
7005  void       *address;
7006}
7007lt__PROGRAM__LTX_preloaded_symbols[] =
7008{
7009  { "@PROGRAM@", (void *) 0 },
7010_LT_EOF
7011	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7012	  cat <<\_LT_EOF >> conftest.$ac_ext
7013  {0, (void *) 0}
7014};
7015
7016/* This works around a problem in FreeBSD linker */
7017#ifdef FREEBSD_WORKAROUND
7018static const void *lt_preloaded_setup() {
7019  return lt__PROGRAM__LTX_preloaded_symbols;
7020}
7021#endif
7022
7023#ifdef __cplusplus
7024}
7025#endif
7026_LT_EOF
7027	  # Now try linking the two files.
7028	  mv conftest.$ac_objext conftstm.$ac_objext
7029	  lt_globsym_save_LIBS=$LIBS
7030	  lt_globsym_save_CFLAGS=$CFLAGS
7031	  LIBS=conftstm.$ac_objext
7032	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7033	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7034  (eval $ac_link) 2>&5
7035  ac_status=$?
7036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7037  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7038	    pipe_works=yes
7039	  fi
7040	  LIBS=$lt_globsym_save_LIBS
7041	  CFLAGS=$lt_globsym_save_CFLAGS
7042	else
7043	  echo "cannot find nm_test_func in $nlist" >&5
7044	fi
7045      else
7046	echo "cannot find nm_test_var in $nlist" >&5
7047      fi
7048    else
7049      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7050    fi
7051  else
7052    echo "$progname: failed program was:" >&5
7053    cat conftest.$ac_ext >&5
7054  fi
7055  rm -rf conftest* conftst*
7056
7057  # Do not use the global_symbol_pipe unless it works.
7058  if test yes = "$pipe_works"; then
7059    break
7060  else
7061    lt_cv_sys_global_symbol_pipe=
7062  fi
7063done
7064
7065fi
7066
7067if test -z "$lt_cv_sys_global_symbol_pipe"; then
7068  lt_cv_sys_global_symbol_to_cdecl=
7069fi
7070if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7072$as_echo "failed" >&6; }
7073else
7074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7075$as_echo "ok" >&6; }
7076fi
7077
7078# Response file support.
7079if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7080  nm_file_list_spec='@'
7081elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7082  nm_file_list_spec='@'
7083fi
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7122$as_echo_n "checking for sysroot... " >&6; }
7123
7124# Check whether --with-sysroot was given.
7125if test "${with_sysroot+set}" = set; then :
7126  withval=$with_sysroot;
7127else
7128  with_sysroot=no
7129fi
7130
7131
7132lt_sysroot=
7133case $with_sysroot in #(
7134 yes)
7135   if test yes = "$GCC"; then
7136     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7137   fi
7138   ;; #(
7139 /*)
7140   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7141   ;; #(
7142 no|'')
7143   ;; #(
7144 *)
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7146$as_echo "$with_sysroot" >&6; }
7147   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7148   ;;
7149esac
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7152$as_echo "${lt_sysroot:-no}" >&6; }
7153
7154
7155
7156
7157
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7159$as_echo_n "checking for a working dd... " >&6; }
7160if ${ac_cv_path_lt_DD+:} false; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163  printf 0123456789abcdef0123456789abcdef >conftest.i
7164cat conftest.i conftest.i >conftest2.i
7165: ${lt_DD:=$DD}
7166if test -z "$lt_DD"; then
7167  ac_path_lt_DD_found=false
7168  # Loop through the user's path and test for each of PROGNAME-LIST
7169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172  IFS=$as_save_IFS
7173  test -z "$as_dir" && as_dir=.
7174    for ac_prog in dd; do
7175    for ac_exec_ext in '' $ac_executable_extensions; do
7176      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7177      as_fn_executable_p "$ac_path_lt_DD" || continue
7178if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7179  cmp -s conftest.i conftest.out \
7180  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7181fi
7182      $ac_path_lt_DD_found && break 3
7183    done
7184  done
7185  done
7186IFS=$as_save_IFS
7187  if test -z "$ac_cv_path_lt_DD"; then
7188    :
7189  fi
7190else
7191  ac_cv_path_lt_DD=$lt_DD
7192fi
7193
7194rm -f conftest.i conftest2.i conftest.out
7195fi
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7197$as_echo "$ac_cv_path_lt_DD" >&6; }
7198
7199
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7201$as_echo_n "checking how to truncate binary pipes... " >&6; }
7202if ${lt_cv_truncate_bin+:} false; then :
7203  $as_echo_n "(cached) " >&6
7204else
7205  printf 0123456789abcdef0123456789abcdef >conftest.i
7206cat conftest.i conftest.i >conftest2.i
7207lt_cv_truncate_bin=
7208if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7209  cmp -s conftest.i conftest.out \
7210  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7211fi
7212rm -f conftest.i conftest2.i conftest.out
7213test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7214fi
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7216$as_echo "$lt_cv_truncate_bin" >&6; }
7217
7218
7219
7220
7221
7222
7223
7224# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7225func_cc_basename ()
7226{
7227    for cc_temp in $*""; do
7228      case $cc_temp in
7229        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7230        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7231        \-*) ;;
7232        *) break;;
7233      esac
7234    done
7235    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7236}
7237
7238# Check whether --enable-libtool-lock was given.
7239if test "${enable_libtool_lock+set}" = set; then :
7240  enableval=$enable_libtool_lock;
7241fi
7242
7243test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7244
7245# Some flags need to be propagated to the compiler or linker for good
7246# libtool support.
7247case $host in
7248ia64-*-hpux*)
7249  # Find out what ABI is being produced by ac_compile, and set mode
7250  # options accordingly.
7251  echo 'int i;' > conftest.$ac_ext
7252  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253  (eval $ac_compile) 2>&5
7254  ac_status=$?
7255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256  test $ac_status = 0; }; then
7257    case `/usr/bin/file conftest.$ac_objext` in
7258      *ELF-32*)
7259	HPUX_IA64_MODE=32
7260	;;
7261      *ELF-64*)
7262	HPUX_IA64_MODE=64
7263	;;
7264    esac
7265  fi
7266  rm -rf conftest*
7267  ;;
7268*-*-irix6*)
7269  # Find out what ABI is being produced by ac_compile, and set linker
7270  # options accordingly.
7271  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7272  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7273  (eval $ac_compile) 2>&5
7274  ac_status=$?
7275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276  test $ac_status = 0; }; then
7277    if test yes = "$lt_cv_prog_gnu_ld"; then
7278      case `/usr/bin/file conftest.$ac_objext` in
7279	*32-bit*)
7280	  LD="${LD-ld} -melf32bsmip"
7281	  ;;
7282	*N32*)
7283	  LD="${LD-ld} -melf32bmipn32"
7284	  ;;
7285	*64-bit*)
7286	  LD="${LD-ld} -melf64bmip"
7287	;;
7288      esac
7289    else
7290      case `/usr/bin/file conftest.$ac_objext` in
7291	*32-bit*)
7292	  LD="${LD-ld} -32"
7293	  ;;
7294	*N32*)
7295	  LD="${LD-ld} -n32"
7296	  ;;
7297	*64-bit*)
7298	  LD="${LD-ld} -64"
7299	  ;;
7300      esac
7301    fi
7302  fi
7303  rm -rf conftest*
7304  ;;
7305
7306mips64*-*linux*)
7307  # Find out what ABI is being produced by ac_compile, and set linker
7308  # options accordingly.
7309  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7310  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7311  (eval $ac_compile) 2>&5
7312  ac_status=$?
7313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7314  test $ac_status = 0; }; then
7315    emul=elf
7316    case `/usr/bin/file conftest.$ac_objext` in
7317      *32-bit*)
7318	emul="${emul}32"
7319	;;
7320      *64-bit*)
7321	emul="${emul}64"
7322	;;
7323    esac
7324    case `/usr/bin/file conftest.$ac_objext` in
7325      *MSB*)
7326	emul="${emul}btsmip"
7327	;;
7328      *LSB*)
7329	emul="${emul}ltsmip"
7330	;;
7331    esac
7332    case `/usr/bin/file conftest.$ac_objext` in
7333      *N32*)
7334	emul="${emul}n32"
7335	;;
7336    esac
7337    LD="${LD-ld} -m $emul"
7338  fi
7339  rm -rf conftest*
7340  ;;
7341
7342x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7343s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7344  # Find out what ABI is being produced by ac_compile, and set linker
7345  # options accordingly.  Note that the listed cases only cover the
7346  # situations where additional linker options are needed (such as when
7347  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7348  # vice versa); the common cases where no linker options are needed do
7349  # not appear in the list.
7350  echo 'int i;' > conftest.$ac_ext
7351  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352  (eval $ac_compile) 2>&5
7353  ac_status=$?
7354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355  test $ac_status = 0; }; then
7356    case `/usr/bin/file conftest.o` in
7357      *32-bit*)
7358	case $host in
7359	  x86_64-*kfreebsd*-gnu)
7360	    LD="${LD-ld} -m elf_i386_fbsd"
7361	    ;;
7362	  x86_64-*linux*)
7363	    case `/usr/bin/file conftest.o` in
7364	      *x86-64*)
7365		LD="${LD-ld} -m elf32_x86_64"
7366		;;
7367	      *)
7368		LD="${LD-ld} -m elf_i386"
7369		;;
7370	    esac
7371	    ;;
7372	  powerpc64le-*linux*)
7373	    LD="${LD-ld} -m elf32lppclinux"
7374	    ;;
7375	  powerpc64-*linux*)
7376	    LD="${LD-ld} -m elf32ppclinux"
7377	    ;;
7378	  s390x-*linux*)
7379	    LD="${LD-ld} -m elf_s390"
7380	    ;;
7381	  sparc64-*linux*)
7382	    LD="${LD-ld} -m elf32_sparc"
7383	    ;;
7384	esac
7385	;;
7386      *64-bit*)
7387	case $host in
7388	  x86_64-*kfreebsd*-gnu)
7389	    LD="${LD-ld} -m elf_x86_64_fbsd"
7390	    ;;
7391	  x86_64-*linux*)
7392	    LD="${LD-ld} -m elf_x86_64"
7393	    ;;
7394	  powerpcle-*linux*)
7395	    LD="${LD-ld} -m elf64lppc"
7396	    ;;
7397	  powerpc-*linux*)
7398	    LD="${LD-ld} -m elf64ppc"
7399	    ;;
7400	  s390*-*linux*|s390*-*tpf*)
7401	    LD="${LD-ld} -m elf64_s390"
7402	    ;;
7403	  sparc*-*linux*)
7404	    LD="${LD-ld} -m elf64_sparc"
7405	    ;;
7406	esac
7407	;;
7408    esac
7409  fi
7410  rm -rf conftest*
7411  ;;
7412
7413*-*-sco3.2v5*)
7414  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7415  SAVE_CFLAGS=$CFLAGS
7416  CFLAGS="$CFLAGS -belf"
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7418$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7419if ${lt_cv_cc_needs_belf+:} false; then :
7420  $as_echo_n "(cached) " >&6
7421else
7422  ac_ext=c
7423ac_cpp='$CPP $CPPFLAGS'
7424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7426ac_compiler_gnu=$ac_cv_c_compiler_gnu
7427
7428     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h.  */
7430
7431int
7432main ()
7433{
7434
7435  ;
7436  return 0;
7437}
7438_ACEOF
7439if ac_fn_c_try_link "$LINENO"; then :
7440  lt_cv_cc_needs_belf=yes
7441else
7442  lt_cv_cc_needs_belf=no
7443fi
7444rm -f core conftest.err conftest.$ac_objext \
7445    conftest$ac_exeext conftest.$ac_ext
7446     ac_ext=c
7447ac_cpp='$CPP $CPPFLAGS'
7448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7450ac_compiler_gnu=$ac_cv_c_compiler_gnu
7451
7452fi
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7454$as_echo "$lt_cv_cc_needs_belf" >&6; }
7455  if test yes != "$lt_cv_cc_needs_belf"; then
7456    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7457    CFLAGS=$SAVE_CFLAGS
7458  fi
7459  ;;
7460*-*solaris*)
7461  # Find out what ABI is being produced by ac_compile, and set linker
7462  # options accordingly.
7463  echo 'int i;' > conftest.$ac_ext
7464  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7465  (eval $ac_compile) 2>&5
7466  ac_status=$?
7467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468  test $ac_status = 0; }; then
7469    case `/usr/bin/file conftest.o` in
7470    *64-bit*)
7471      case $lt_cv_prog_gnu_ld in
7472      yes*)
7473        case $host in
7474        i?86-*-solaris*|x86_64-*-solaris*)
7475          LD="${LD-ld} -m elf_x86_64"
7476          ;;
7477        sparc*-*-solaris*)
7478          LD="${LD-ld} -m elf64_sparc"
7479          ;;
7480        esac
7481        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7482        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7483          LD=${LD-ld}_sol2
7484        fi
7485        ;;
7486      *)
7487	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7488	  LD="${LD-ld} -64"
7489	fi
7490	;;
7491      esac
7492      ;;
7493    esac
7494  fi
7495  rm -rf conftest*
7496  ;;
7497esac
7498
7499need_locks=$enable_libtool_lock
7500
7501if test -n "$ac_tool_prefix"; then
7502  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7503set dummy ${ac_tool_prefix}mt; ac_word=$2
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505$as_echo_n "checking for $ac_word... " >&6; }
7506if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509  if test -n "$MANIFEST_TOOL"; then
7510  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515  IFS=$as_save_IFS
7516  test -z "$as_dir" && as_dir=.
7517    for ac_exec_ext in '' $ac_executable_extensions; do
7518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521    break 2
7522  fi
7523done
7524  done
7525IFS=$as_save_IFS
7526
7527fi
7528fi
7529MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7530if test -n "$MANIFEST_TOOL"; then
7531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7532$as_echo "$MANIFEST_TOOL" >&6; }
7533else
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
7536fi
7537
7538
7539fi
7540if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7541  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7542  # Extract the first word of "mt", so it can be a program name with args.
7543set dummy mt; ac_word=$2
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545$as_echo_n "checking for $ac_word... " >&6; }
7546if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  if test -n "$ac_ct_MANIFEST_TOOL"; then
7550  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7551else
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555  IFS=$as_save_IFS
7556  test -z "$as_dir" && as_dir=.
7557    for ac_exec_ext in '' $ac_executable_extensions; do
7558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561    break 2
7562  fi
7563done
7564  done
7565IFS=$as_save_IFS
7566
7567fi
7568fi
7569ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7570if test -n "$ac_ct_MANIFEST_TOOL"; then
7571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7572$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7573else
7574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575$as_echo "no" >&6; }
7576fi
7577
7578  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7579    MANIFEST_TOOL=":"
7580  else
7581    case $cross_compiling:$ac_tool_warned in
7582yes:)
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585ac_tool_warned=yes ;;
7586esac
7587    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7588  fi
7589else
7590  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7591fi
7592
7593test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7595$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7596if ${lt_cv_path_mainfest_tool+:} false; then :
7597  $as_echo_n "(cached) " >&6
7598else
7599  lt_cv_path_mainfest_tool=no
7600  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7601  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7602  cat conftest.err >&5
7603  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7604    lt_cv_path_mainfest_tool=yes
7605  fi
7606  rm -f conftest*
7607fi
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7609$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7610if test yes != "$lt_cv_path_mainfest_tool"; then
7611  MANIFEST_TOOL=:
7612fi
7613
7614
7615
7616
7617
7618
7619  case $host_os in
7620    rhapsody* | darwin*)
7621    if test -n "$ac_tool_prefix"; then
7622  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7623set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625$as_echo_n "checking for $ac_word... " >&6; }
7626if ${ac_cv_prog_DSYMUTIL+:} false; then :
7627  $as_echo_n "(cached) " >&6
7628else
7629  if test -n "$DSYMUTIL"; then
7630  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7631else
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635  IFS=$as_save_IFS
7636  test -z "$as_dir" && as_dir=.
7637    for ac_exec_ext in '' $ac_executable_extensions; do
7638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641    break 2
7642  fi
7643done
7644  done
7645IFS=$as_save_IFS
7646
7647fi
7648fi
7649DSYMUTIL=$ac_cv_prog_DSYMUTIL
7650if test -n "$DSYMUTIL"; then
7651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7652$as_echo "$DSYMUTIL" >&6; }
7653else
7654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
7656fi
7657
7658
7659fi
7660if test -z "$ac_cv_prog_DSYMUTIL"; then
7661  ac_ct_DSYMUTIL=$DSYMUTIL
7662  # Extract the first word of "dsymutil", so it can be a program name with args.
7663set dummy dsymutil; ac_word=$2
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665$as_echo_n "checking for $ac_word... " >&6; }
7666if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7667  $as_echo_n "(cached) " >&6
7668else
7669  if test -n "$ac_ct_DSYMUTIL"; then
7670  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7671else
7672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675  IFS=$as_save_IFS
7676  test -z "$as_dir" && as_dir=.
7677    for ac_exec_ext in '' $ac_executable_extensions; do
7678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681    break 2
7682  fi
7683done
7684  done
7685IFS=$as_save_IFS
7686
7687fi
7688fi
7689ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7690if test -n "$ac_ct_DSYMUTIL"; then
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7692$as_echo "$ac_ct_DSYMUTIL" >&6; }
7693else
7694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695$as_echo "no" >&6; }
7696fi
7697
7698  if test "x$ac_ct_DSYMUTIL" = x; then
7699    DSYMUTIL=":"
7700  else
7701    case $cross_compiling:$ac_tool_warned in
7702yes:)
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7705ac_tool_warned=yes ;;
7706esac
7707    DSYMUTIL=$ac_ct_DSYMUTIL
7708  fi
7709else
7710  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7711fi
7712
7713    if test -n "$ac_tool_prefix"; then
7714  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7715set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717$as_echo_n "checking for $ac_word... " >&6; }
7718if ${ac_cv_prog_NMEDIT+:} false; then :
7719  $as_echo_n "(cached) " >&6
7720else
7721  if test -n "$NMEDIT"; then
7722  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7723else
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727  IFS=$as_save_IFS
7728  test -z "$as_dir" && as_dir=.
7729    for ac_exec_ext in '' $ac_executable_extensions; do
7730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736  done
7737IFS=$as_save_IFS
7738
7739fi
7740fi
7741NMEDIT=$ac_cv_prog_NMEDIT
7742if test -n "$NMEDIT"; then
7743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7744$as_echo "$NMEDIT" >&6; }
7745else
7746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747$as_echo "no" >&6; }
7748fi
7749
7750
7751fi
7752if test -z "$ac_cv_prog_NMEDIT"; then
7753  ac_ct_NMEDIT=$NMEDIT
7754  # Extract the first word of "nmedit", so it can be a program name with args.
7755set dummy nmedit; ac_word=$2
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757$as_echo_n "checking for $ac_word... " >&6; }
7758if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7759  $as_echo_n "(cached) " >&6
7760else
7761  if test -n "$ac_ct_NMEDIT"; then
7762  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7763else
7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767  IFS=$as_save_IFS
7768  test -z "$as_dir" && as_dir=.
7769    for ac_exec_ext in '' $ac_executable_extensions; do
7770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773    break 2
7774  fi
7775done
7776  done
7777IFS=$as_save_IFS
7778
7779fi
7780fi
7781ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7782if test -n "$ac_ct_NMEDIT"; then
7783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7784$as_echo "$ac_ct_NMEDIT" >&6; }
7785else
7786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787$as_echo "no" >&6; }
7788fi
7789
7790  if test "x$ac_ct_NMEDIT" = x; then
7791    NMEDIT=":"
7792  else
7793    case $cross_compiling:$ac_tool_warned in
7794yes:)
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7797ac_tool_warned=yes ;;
7798esac
7799    NMEDIT=$ac_ct_NMEDIT
7800  fi
7801else
7802  NMEDIT="$ac_cv_prog_NMEDIT"
7803fi
7804
7805    if test -n "$ac_tool_prefix"; then
7806  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7807set dummy ${ac_tool_prefix}lipo; ac_word=$2
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809$as_echo_n "checking for $ac_word... " >&6; }
7810if ${ac_cv_prog_LIPO+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  if test -n "$LIPO"; then
7814  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819  IFS=$as_save_IFS
7820  test -z "$as_dir" && as_dir=.
7821    for ac_exec_ext in '' $ac_executable_extensions; do
7822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825    break 2
7826  fi
7827done
7828  done
7829IFS=$as_save_IFS
7830
7831fi
7832fi
7833LIPO=$ac_cv_prog_LIPO
7834if test -n "$LIPO"; then
7835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7836$as_echo "$LIPO" >&6; }
7837else
7838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
7840fi
7841
7842
7843fi
7844if test -z "$ac_cv_prog_LIPO"; then
7845  ac_ct_LIPO=$LIPO
7846  # Extract the first word of "lipo", so it can be a program name with args.
7847set dummy lipo; ac_word=$2
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849$as_echo_n "checking for $ac_word... " >&6; }
7850if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7851  $as_echo_n "(cached) " >&6
7852else
7853  if test -n "$ac_ct_LIPO"; then
7854  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7855else
7856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857for as_dir in $PATH
7858do
7859  IFS=$as_save_IFS
7860  test -z "$as_dir" && as_dir=.
7861    for ac_exec_ext in '' $ac_executable_extensions; do
7862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7863    ac_cv_prog_ac_ct_LIPO="lipo"
7864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865    break 2
7866  fi
7867done
7868  done
7869IFS=$as_save_IFS
7870
7871fi
7872fi
7873ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7874if test -n "$ac_ct_LIPO"; then
7875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7876$as_echo "$ac_ct_LIPO" >&6; }
7877else
7878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879$as_echo "no" >&6; }
7880fi
7881
7882  if test "x$ac_ct_LIPO" = x; then
7883    LIPO=":"
7884  else
7885    case $cross_compiling:$ac_tool_warned in
7886yes:)
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7889ac_tool_warned=yes ;;
7890esac
7891    LIPO=$ac_ct_LIPO
7892  fi
7893else
7894  LIPO="$ac_cv_prog_LIPO"
7895fi
7896
7897    if test -n "$ac_tool_prefix"; then
7898  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7899set dummy ${ac_tool_prefix}otool; ac_word=$2
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901$as_echo_n "checking for $ac_word... " >&6; }
7902if ${ac_cv_prog_OTOOL+:} false; then :
7903  $as_echo_n "(cached) " >&6
7904else
7905  if test -n "$OTOOL"; then
7906  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7907else
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911  IFS=$as_save_IFS
7912  test -z "$as_dir" && as_dir=.
7913    for ac_exec_ext in '' $ac_executable_extensions; do
7914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917    break 2
7918  fi
7919done
7920  done
7921IFS=$as_save_IFS
7922
7923fi
7924fi
7925OTOOL=$ac_cv_prog_OTOOL
7926if test -n "$OTOOL"; then
7927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7928$as_echo "$OTOOL" >&6; }
7929else
7930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
7932fi
7933
7934
7935fi
7936if test -z "$ac_cv_prog_OTOOL"; then
7937  ac_ct_OTOOL=$OTOOL
7938  # Extract the first word of "otool", so it can be a program name with args.
7939set dummy otool; ac_word=$2
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941$as_echo_n "checking for $ac_word... " >&6; }
7942if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7943  $as_echo_n "(cached) " >&6
7944else
7945  if test -n "$ac_ct_OTOOL"; then
7946  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7947else
7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951  IFS=$as_save_IFS
7952  test -z "$as_dir" && as_dir=.
7953    for ac_exec_ext in '' $ac_executable_extensions; do
7954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955    ac_cv_prog_ac_ct_OTOOL="otool"
7956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957    break 2
7958  fi
7959done
7960  done
7961IFS=$as_save_IFS
7962
7963fi
7964fi
7965ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7966if test -n "$ac_ct_OTOOL"; then
7967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7968$as_echo "$ac_ct_OTOOL" >&6; }
7969else
7970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971$as_echo "no" >&6; }
7972fi
7973
7974  if test "x$ac_ct_OTOOL" = x; then
7975    OTOOL=":"
7976  else
7977    case $cross_compiling:$ac_tool_warned in
7978yes:)
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981ac_tool_warned=yes ;;
7982esac
7983    OTOOL=$ac_ct_OTOOL
7984  fi
7985else
7986  OTOOL="$ac_cv_prog_OTOOL"
7987fi
7988
7989    if test -n "$ac_tool_prefix"; then
7990  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7991set dummy ${ac_tool_prefix}otool64; ac_word=$2
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993$as_echo_n "checking for $ac_word... " >&6; }
7994if ${ac_cv_prog_OTOOL64+:} false; then :
7995  $as_echo_n "(cached) " >&6
7996else
7997  if test -n "$OTOOL64"; then
7998  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7999else
8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003  IFS=$as_save_IFS
8004  test -z "$as_dir" && as_dir=.
8005    for ac_exec_ext in '' $ac_executable_extensions; do
8006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8007    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009    break 2
8010  fi
8011done
8012  done
8013IFS=$as_save_IFS
8014
8015fi
8016fi
8017OTOOL64=$ac_cv_prog_OTOOL64
8018if test -n "$OTOOL64"; then
8019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8020$as_echo "$OTOOL64" >&6; }
8021else
8022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023$as_echo "no" >&6; }
8024fi
8025
8026
8027fi
8028if test -z "$ac_cv_prog_OTOOL64"; then
8029  ac_ct_OTOOL64=$OTOOL64
8030  # Extract the first word of "otool64", so it can be a program name with args.
8031set dummy otool64; ac_word=$2
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033$as_echo_n "checking for $ac_word... " >&6; }
8034if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037  if test -n "$ac_ct_OTOOL64"; then
8038  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8039else
8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041for as_dir in $PATH
8042do
8043  IFS=$as_save_IFS
8044  test -z "$as_dir" && as_dir=.
8045    for ac_exec_ext in '' $ac_executable_extensions; do
8046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8047    ac_cv_prog_ac_ct_OTOOL64="otool64"
8048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049    break 2
8050  fi
8051done
8052  done
8053IFS=$as_save_IFS
8054
8055fi
8056fi
8057ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8058if test -n "$ac_ct_OTOOL64"; then
8059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8060$as_echo "$ac_ct_OTOOL64" >&6; }
8061else
8062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
8064fi
8065
8066  if test "x$ac_ct_OTOOL64" = x; then
8067    OTOOL64=":"
8068  else
8069    case $cross_compiling:$ac_tool_warned in
8070yes:)
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8073ac_tool_warned=yes ;;
8074esac
8075    OTOOL64=$ac_ct_OTOOL64
8076  fi
8077else
8078  OTOOL64="$ac_cv_prog_OTOOL64"
8079fi
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8108$as_echo_n "checking for -single_module linker flag... " >&6; }
8109if ${lt_cv_apple_cc_single_mod+:} false; then :
8110  $as_echo_n "(cached) " >&6
8111else
8112  lt_cv_apple_cc_single_mod=no
8113      if test -z "$LT_MULTI_MODULE"; then
8114	# By default we will add the -single_module flag. You can override
8115	# by either setting the environment variable LT_MULTI_MODULE
8116	# non-empty at configure time, or by adding -multi_module to the
8117	# link flags.
8118	rm -rf libconftest.dylib*
8119	echo "int foo(void){return 1;}" > conftest.c
8120	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8121-dynamiclib -Wl,-single_module conftest.c" >&5
8122	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8123	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8124        _lt_result=$?
8125	# If there is a non-empty error log, and "single_module"
8126	# appears in it, assume the flag caused a linker warning
8127        if test -s conftest.err && $GREP single_module conftest.err; then
8128	  cat conftest.err >&5
8129	# Otherwise, if the output was created with a 0 exit code from
8130	# the compiler, it worked.
8131	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8132	  lt_cv_apple_cc_single_mod=yes
8133	else
8134	  cat conftest.err >&5
8135	fi
8136	rm -rf libconftest.dylib*
8137	rm -f conftest.*
8138      fi
8139fi
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8141$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8142
8143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8144$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8145if ${lt_cv_ld_exported_symbols_list+:} false; then :
8146  $as_echo_n "(cached) " >&6
8147else
8148  lt_cv_ld_exported_symbols_list=no
8149      save_LDFLAGS=$LDFLAGS
8150      echo "_main" > conftest.sym
8151      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8152      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153/* end confdefs.h.  */
8154
8155int
8156main ()
8157{
8158
8159  ;
8160  return 0;
8161}
8162_ACEOF
8163if ac_fn_c_try_link "$LINENO"; then :
8164  lt_cv_ld_exported_symbols_list=yes
8165else
8166  lt_cv_ld_exported_symbols_list=no
8167fi
8168rm -f core conftest.err conftest.$ac_objext \
8169    conftest$ac_exeext conftest.$ac_ext
8170	LDFLAGS=$save_LDFLAGS
8171
8172fi
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8174$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8175
8176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8177$as_echo_n "checking for -force_load linker flag... " >&6; }
8178if ${lt_cv_ld_force_load+:} false; then :
8179  $as_echo_n "(cached) " >&6
8180else
8181  lt_cv_ld_force_load=no
8182      cat > conftest.c << _LT_EOF
8183int forced_loaded() { return 2;}
8184_LT_EOF
8185      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8186      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8187      echo "$AR cru libconftest.a conftest.o" >&5
8188      $AR cru libconftest.a conftest.o 2>&5
8189      echo "$RANLIB libconftest.a" >&5
8190      $RANLIB libconftest.a 2>&5
8191      cat > conftest.c << _LT_EOF
8192int main() { return 0;}
8193_LT_EOF
8194      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8195      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8196      _lt_result=$?
8197      if test -s conftest.err && $GREP force_load conftest.err; then
8198	cat conftest.err >&5
8199      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8200	lt_cv_ld_force_load=yes
8201      else
8202	cat conftest.err >&5
8203      fi
8204        rm -f conftest.err libconftest.a conftest conftest.c
8205        rm -rf conftest.dSYM
8206
8207fi
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8209$as_echo "$lt_cv_ld_force_load" >&6; }
8210    case $host_os in
8211    rhapsody* | darwin1.[012])
8212      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8213    darwin1.*)
8214      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8215    darwin*) # darwin 5.x on
8216      # if running on 10.5 or later, the deployment target defaults
8217      # to the OS version, if on x86, and 10.4, the deployment
8218      # target defaults to 10.4. Don't you love it?
8219      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8220	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8221	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8222	10.[012][,.]*)
8223	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8224	10.*)
8225	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8226      esac
8227    ;;
8228  esac
8229    if test yes = "$lt_cv_apple_cc_single_mod"; then
8230      _lt_dar_single_mod='$single_module'
8231    fi
8232    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8233      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8234    else
8235      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8236    fi
8237    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8238      _lt_dsymutil='~$DSYMUTIL $lib || :'
8239    else
8240      _lt_dsymutil=
8241    fi
8242    ;;
8243  esac
8244
8245# func_munge_path_list VARIABLE PATH
8246# -----------------------------------
8247# VARIABLE is name of variable containing _space_ separated list of
8248# directories to be munged by the contents of PATH, which is string
8249# having a format:
8250# "DIR[:DIR]:"
8251#       string "DIR[ DIR]" will be prepended to VARIABLE
8252# ":DIR[:DIR]"
8253#       string "DIR[ DIR]" will be appended to VARIABLE
8254# "DIRP[:DIRP]::[DIRA:]DIRA"
8255#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8256#       "DIRA[ DIRA]" will be appended to VARIABLE
8257# "DIR[:DIR]"
8258#       VARIABLE will be replaced by "DIR[ DIR]"
8259func_munge_path_list ()
8260{
8261    case x$2 in
8262    x)
8263        ;;
8264    *:)
8265        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8266        ;;
8267    x:*)
8268        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8269        ;;
8270    *::*)
8271        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8272        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8273        ;;
8274    *)
8275        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8276        ;;
8277    esac
8278}
8279
8280for ac_header in dlfcn.h
8281do :
8282  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8283"
8284if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8285  cat >>confdefs.h <<_ACEOF
8286#define HAVE_DLFCN_H 1
8287_ACEOF
8288
8289fi
8290
8291done
8292
8293
8294
8295
8296
8297# Set options
8298enable_win32_dll=yes
8299
8300case $host in
8301*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8302  if test -n "$ac_tool_prefix"; then
8303  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8304set dummy ${ac_tool_prefix}as; ac_word=$2
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
8307if ${ac_cv_prog_AS+:} false; then :
8308  $as_echo_n "(cached) " >&6
8309else
8310  if test -n "$AS"; then
8311  ac_cv_prog_AS="$AS" # Let the user override the test.
8312else
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316  IFS=$as_save_IFS
8317  test -z "$as_dir" && as_dir=.
8318    for ac_exec_ext in '' $ac_executable_extensions; do
8319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320    ac_cv_prog_AS="${ac_tool_prefix}as"
8321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322    break 2
8323  fi
8324done
8325  done
8326IFS=$as_save_IFS
8327
8328fi
8329fi
8330AS=$ac_cv_prog_AS
8331if test -n "$AS"; then
8332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8333$as_echo "$AS" >&6; }
8334else
8335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
8337fi
8338
8339
8340fi
8341if test -z "$ac_cv_prog_AS"; then
8342  ac_ct_AS=$AS
8343  # Extract the first word of "as", so it can be a program name with args.
8344set dummy as; ac_word=$2
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346$as_echo_n "checking for $ac_word... " >&6; }
8347if ${ac_cv_prog_ac_ct_AS+:} false; then :
8348  $as_echo_n "(cached) " >&6
8349else
8350  if test -n "$ac_ct_AS"; then
8351  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8352else
8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354for as_dir in $PATH
8355do
8356  IFS=$as_save_IFS
8357  test -z "$as_dir" && as_dir=.
8358    for ac_exec_ext in '' $ac_executable_extensions; do
8359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360    ac_cv_prog_ac_ct_AS="as"
8361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362    break 2
8363  fi
8364done
8365  done
8366IFS=$as_save_IFS
8367
8368fi
8369fi
8370ac_ct_AS=$ac_cv_prog_ac_ct_AS
8371if test -n "$ac_ct_AS"; then
8372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8373$as_echo "$ac_ct_AS" >&6; }
8374else
8375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
8377fi
8378
8379  if test "x$ac_ct_AS" = x; then
8380    AS="false"
8381  else
8382    case $cross_compiling:$ac_tool_warned in
8383yes:)
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8386ac_tool_warned=yes ;;
8387esac
8388    AS=$ac_ct_AS
8389  fi
8390else
8391  AS="$ac_cv_prog_AS"
8392fi
8393
8394  if test -n "$ac_tool_prefix"; then
8395  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8396set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398$as_echo_n "checking for $ac_word... " >&6; }
8399if ${ac_cv_prog_DLLTOOL+:} false; then :
8400  $as_echo_n "(cached) " >&6
8401else
8402  if test -n "$DLLTOOL"; then
8403  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8404else
8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408  IFS=$as_save_IFS
8409  test -z "$as_dir" && as_dir=.
8410    for ac_exec_ext in '' $ac_executable_extensions; do
8411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414    break 2
8415  fi
8416done
8417  done
8418IFS=$as_save_IFS
8419
8420fi
8421fi
8422DLLTOOL=$ac_cv_prog_DLLTOOL
8423if test -n "$DLLTOOL"; then
8424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8425$as_echo "$DLLTOOL" >&6; }
8426else
8427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428$as_echo "no" >&6; }
8429fi
8430
8431
8432fi
8433if test -z "$ac_cv_prog_DLLTOOL"; then
8434  ac_ct_DLLTOOL=$DLLTOOL
8435  # Extract the first word of "dlltool", so it can be a program name with args.
8436set dummy dlltool; ac_word=$2
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438$as_echo_n "checking for $ac_word... " >&6; }
8439if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8440  $as_echo_n "(cached) " >&6
8441else
8442  if test -n "$ac_ct_DLLTOOL"; then
8443  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8444else
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448  IFS=$as_save_IFS
8449  test -z "$as_dir" && as_dir=.
8450    for ac_exec_ext in '' $ac_executable_extensions; do
8451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8452    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454    break 2
8455  fi
8456done
8457  done
8458IFS=$as_save_IFS
8459
8460fi
8461fi
8462ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8463if test -n "$ac_ct_DLLTOOL"; then
8464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8465$as_echo "$ac_ct_DLLTOOL" >&6; }
8466else
8467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
8469fi
8470
8471  if test "x$ac_ct_DLLTOOL" = x; then
8472    DLLTOOL="false"
8473  else
8474    case $cross_compiling:$ac_tool_warned in
8475yes:)
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8478ac_tool_warned=yes ;;
8479esac
8480    DLLTOOL=$ac_ct_DLLTOOL
8481  fi
8482else
8483  DLLTOOL="$ac_cv_prog_DLLTOOL"
8484fi
8485
8486  if test -n "$ac_tool_prefix"; then
8487  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8488set dummy ${ac_tool_prefix}objdump; ac_word=$2
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490$as_echo_n "checking for $ac_word... " >&6; }
8491if ${ac_cv_prog_OBJDUMP+:} false; then :
8492  $as_echo_n "(cached) " >&6
8493else
8494  if test -n "$OBJDUMP"; then
8495  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8496else
8497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498for as_dir in $PATH
8499do
8500  IFS=$as_save_IFS
8501  test -z "$as_dir" && as_dir=.
8502    for ac_exec_ext in '' $ac_executable_extensions; do
8503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506    break 2
8507  fi
8508done
8509  done
8510IFS=$as_save_IFS
8511
8512fi
8513fi
8514OBJDUMP=$ac_cv_prog_OBJDUMP
8515if test -n "$OBJDUMP"; then
8516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8517$as_echo "$OBJDUMP" >&6; }
8518else
8519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520$as_echo "no" >&6; }
8521fi
8522
8523
8524fi
8525if test -z "$ac_cv_prog_OBJDUMP"; then
8526  ac_ct_OBJDUMP=$OBJDUMP
8527  # Extract the first word of "objdump", so it can be a program name with args.
8528set dummy objdump; ac_word=$2
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530$as_echo_n "checking for $ac_word... " >&6; }
8531if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8532  $as_echo_n "(cached) " >&6
8533else
8534  if test -n "$ac_ct_OBJDUMP"; then
8535  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8536else
8537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $PATH
8539do
8540  IFS=$as_save_IFS
8541  test -z "$as_dir" && as_dir=.
8542    for ac_exec_ext in '' $ac_executable_extensions; do
8543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546    break 2
8547  fi
8548done
8549  done
8550IFS=$as_save_IFS
8551
8552fi
8553fi
8554ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8555if test -n "$ac_ct_OBJDUMP"; then
8556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8557$as_echo "$ac_ct_OBJDUMP" >&6; }
8558else
8559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560$as_echo "no" >&6; }
8561fi
8562
8563  if test "x$ac_ct_OBJDUMP" = x; then
8564    OBJDUMP="false"
8565  else
8566    case $cross_compiling:$ac_tool_warned in
8567yes:)
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570ac_tool_warned=yes ;;
8571esac
8572    OBJDUMP=$ac_ct_OBJDUMP
8573  fi
8574else
8575  OBJDUMP="$ac_cv_prog_OBJDUMP"
8576fi
8577
8578  ;;
8579esac
8580
8581test -z "$AS" && AS=as
8582
8583
8584
8585
8586
8587test -z "$DLLTOOL" && DLLTOOL=dlltool
8588
8589
8590
8591
8592
8593test -z "$OBJDUMP" && OBJDUMP=objdump
8594
8595
8596
8597
8598
8599
8600
8601        enable_dlopen=no
8602
8603
8604
8605            # Check whether --enable-shared was given.
8606if test "${enable_shared+set}" = set; then :
8607  enableval=$enable_shared; p=${PACKAGE-default}
8608    case $enableval in
8609    yes) enable_shared=yes ;;
8610    no) enable_shared=no ;;
8611    *)
8612      enable_shared=no
8613      # Look at the argument we got.  We use all the common list separators.
8614      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8615      for pkg in $enableval; do
8616	IFS=$lt_save_ifs
8617	if test "X$pkg" = "X$p"; then
8618	  enable_shared=yes
8619	fi
8620      done
8621      IFS=$lt_save_ifs
8622      ;;
8623    esac
8624else
8625  enable_shared=yes
8626fi
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636  # Check whether --enable-static was given.
8637if test "${enable_static+set}" = set; then :
8638  enableval=$enable_static; p=${PACKAGE-default}
8639    case $enableval in
8640    yes) enable_static=yes ;;
8641    no) enable_static=no ;;
8642    *)
8643     enable_static=no
8644      # Look at the argument we got.  We use all the common list separators.
8645      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8646      for pkg in $enableval; do
8647	IFS=$lt_save_ifs
8648	if test "X$pkg" = "X$p"; then
8649	  enable_static=yes
8650	fi
8651      done
8652      IFS=$lt_save_ifs
8653      ;;
8654    esac
8655else
8656  enable_static=yes
8657fi
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668# Check whether --with-pic was given.
8669if test "${with_pic+set}" = set; then :
8670  withval=$with_pic; lt_p=${PACKAGE-default}
8671    case $withval in
8672    yes|no) pic_mode=$withval ;;
8673    *)
8674      pic_mode=default
8675      # Look at the argument we got.  We use all the common list separators.
8676      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8677      for lt_pkg in $withval; do
8678	IFS=$lt_save_ifs
8679	if test "X$lt_pkg" = "X$lt_p"; then
8680	  pic_mode=yes
8681	fi
8682      done
8683      IFS=$lt_save_ifs
8684      ;;
8685    esac
8686else
8687  pic_mode=default
8688fi
8689
8690
8691
8692
8693
8694
8695
8696
8697  # Check whether --enable-fast-install was given.
8698if test "${enable_fast_install+set}" = set; then :
8699  enableval=$enable_fast_install; p=${PACKAGE-default}
8700    case $enableval in
8701    yes) enable_fast_install=yes ;;
8702    no) enable_fast_install=no ;;
8703    *)
8704      enable_fast_install=no
8705      # Look at the argument we got.  We use all the common list separators.
8706      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8707      for pkg in $enableval; do
8708	IFS=$lt_save_ifs
8709	if test "X$pkg" = "X$p"; then
8710	  enable_fast_install=yes
8711	fi
8712      done
8713      IFS=$lt_save_ifs
8714      ;;
8715    esac
8716else
8717  enable_fast_install=yes
8718fi
8719
8720
8721
8722
8723
8724
8725
8726
8727  shared_archive_member_spec=
8728case $host,$enable_shared in
8729power*-*-aix[5-9]*,yes)
8730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8731$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8732
8733# Check whether --with-aix-soname was given.
8734if test "${with_aix_soname+set}" = set; then :
8735  withval=$with_aix_soname; case $withval in
8736    aix|svr4|both)
8737      ;;
8738    *)
8739      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8740      ;;
8741    esac
8742    lt_cv_with_aix_soname=$with_aix_soname
8743else
8744  if ${lt_cv_with_aix_soname+:} false; then :
8745  $as_echo_n "(cached) " >&6
8746else
8747  lt_cv_with_aix_soname=aix
8748fi
8749
8750    with_aix_soname=$lt_cv_with_aix_soname
8751fi
8752
8753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8754$as_echo "$with_aix_soname" >&6; }
8755  if test aix != "$with_aix_soname"; then
8756    # For the AIX way of multilib, we name the shared archive member
8757    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8758    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8759    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8760    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8761    if test 64 = "${OBJECT_MODE-32}"; then
8762      shared_archive_member_spec=shr_64
8763    else
8764      shared_archive_member_spec=shr
8765    fi
8766  fi
8767  ;;
8768*)
8769  with_aix_soname=aix
8770  ;;
8771esac
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782# This can be used to rebuild libtool when needed
8783LIBTOOL_DEPS=$ltmain
8784
8785# Always use our own libtool.
8786LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817test -z "$LN_S" && LN_S="ln -s"
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832if test -n "${ZSH_VERSION+set}"; then
8833   setopt NO_GLOB_SUBST
8834fi
8835
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8837$as_echo_n "checking for objdir... " >&6; }
8838if ${lt_cv_objdir+:} false; then :
8839  $as_echo_n "(cached) " >&6
8840else
8841  rm -f .libs 2>/dev/null
8842mkdir .libs 2>/dev/null
8843if test -d .libs; then
8844  lt_cv_objdir=.libs
8845else
8846  # MS-DOS does not allow filenames that begin with a dot.
8847  lt_cv_objdir=_libs
8848fi
8849rmdir .libs 2>/dev/null
8850fi
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8852$as_echo "$lt_cv_objdir" >&6; }
8853objdir=$lt_cv_objdir
8854
8855
8856
8857
8858
8859cat >>confdefs.h <<_ACEOF
8860#define LT_OBJDIR "$lt_cv_objdir/"
8861_ACEOF
8862
8863
8864
8865
8866case $host_os in
8867aix3*)
8868  # AIX sometimes has problems with the GCC collect2 program.  For some
8869  # reason, if we set the COLLECT_NAMES environment variable, the problems
8870  # vanish in a puff of smoke.
8871  if test set != "${COLLECT_NAMES+set}"; then
8872    COLLECT_NAMES=
8873    export COLLECT_NAMES
8874  fi
8875  ;;
8876esac
8877
8878# Global variables:
8879ofile=libtool
8880can_build_shared=yes
8881
8882# All known linkers require a '.a' archive for static linking (except MSVC,
8883# which needs '.lib').
8884libext=a
8885
8886with_gnu_ld=$lt_cv_prog_gnu_ld
8887
8888old_CC=$CC
8889old_CFLAGS=$CFLAGS
8890
8891# Set sane defaults for various variables
8892test -z "$CC" && CC=cc
8893test -z "$LTCC" && LTCC=$CC
8894test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8895test -z "$LD" && LD=ld
8896test -z "$ac_objext" && ac_objext=o
8897
8898func_cc_basename $compiler
8899cc_basename=$func_cc_basename_result
8900
8901
8902# Only perform the check for file, if the check method requires it
8903test -z "$MAGIC_CMD" && MAGIC_CMD=file
8904case $deplibs_check_method in
8905file_magic*)
8906  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8908$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8909if ${lt_cv_path_MAGIC_CMD+:} false; then :
8910  $as_echo_n "(cached) " >&6
8911else
8912  case $MAGIC_CMD in
8913[\\/*] |  ?:[\\/]*)
8914  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8915  ;;
8916*)
8917  lt_save_MAGIC_CMD=$MAGIC_CMD
8918  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8919  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8920  for ac_dir in $ac_dummy; do
8921    IFS=$lt_save_ifs
8922    test -z "$ac_dir" && ac_dir=.
8923    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8924      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8925      if test -n "$file_magic_test_file"; then
8926	case $deplibs_check_method in
8927	"file_magic "*)
8928	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8929	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8930	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8931	    $EGREP "$file_magic_regex" > /dev/null; then
8932	    :
8933	  else
8934	    cat <<_LT_EOF 1>&2
8935
8936*** Warning: the command libtool uses to detect shared libraries,
8937*** $file_magic_cmd, produces output that libtool cannot recognize.
8938*** The result is that libtool may fail to recognize shared libraries
8939*** as such.  This will affect the creation of libtool libraries that
8940*** depend on shared libraries, but programs linked with such libtool
8941*** libraries will work regardless of this problem.  Nevertheless, you
8942*** may want to report the problem to your system manager and/or to
8943*** bug-libtool@gnu.org
8944
8945_LT_EOF
8946	  fi ;;
8947	esac
8948      fi
8949      break
8950    fi
8951  done
8952  IFS=$lt_save_ifs
8953  MAGIC_CMD=$lt_save_MAGIC_CMD
8954  ;;
8955esac
8956fi
8957
8958MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8959if test -n "$MAGIC_CMD"; then
8960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8961$as_echo "$MAGIC_CMD" >&6; }
8962else
8963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964$as_echo "no" >&6; }
8965fi
8966
8967
8968
8969
8970
8971if test -z "$lt_cv_path_MAGIC_CMD"; then
8972  if test -n "$ac_tool_prefix"; then
8973    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8974$as_echo_n "checking for file... " >&6; }
8975if ${lt_cv_path_MAGIC_CMD+:} false; then :
8976  $as_echo_n "(cached) " >&6
8977else
8978  case $MAGIC_CMD in
8979[\\/*] |  ?:[\\/]*)
8980  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8981  ;;
8982*)
8983  lt_save_MAGIC_CMD=$MAGIC_CMD
8984  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8985  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8986  for ac_dir in $ac_dummy; do
8987    IFS=$lt_save_ifs
8988    test -z "$ac_dir" && ac_dir=.
8989    if test -f "$ac_dir/file"; then
8990      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8991      if test -n "$file_magic_test_file"; then
8992	case $deplibs_check_method in
8993	"file_magic "*)
8994	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8995	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8996	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8997	    $EGREP "$file_magic_regex" > /dev/null; then
8998	    :
8999	  else
9000	    cat <<_LT_EOF 1>&2
9001
9002*** Warning: the command libtool uses to detect shared libraries,
9003*** $file_magic_cmd, produces output that libtool cannot recognize.
9004*** The result is that libtool may fail to recognize shared libraries
9005*** as such.  This will affect the creation of libtool libraries that
9006*** depend on shared libraries, but programs linked with such libtool
9007*** libraries will work regardless of this problem.  Nevertheless, you
9008*** may want to report the problem to your system manager and/or to
9009*** bug-libtool@gnu.org
9010
9011_LT_EOF
9012	  fi ;;
9013	esac
9014      fi
9015      break
9016    fi
9017  done
9018  IFS=$lt_save_ifs
9019  MAGIC_CMD=$lt_save_MAGIC_CMD
9020  ;;
9021esac
9022fi
9023
9024MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9025if test -n "$MAGIC_CMD"; then
9026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9027$as_echo "$MAGIC_CMD" >&6; }
9028else
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030$as_echo "no" >&6; }
9031fi
9032
9033
9034  else
9035    MAGIC_CMD=:
9036  fi
9037fi
9038
9039  fi
9040  ;;
9041esac
9042
9043# Use C for the default configuration in the libtool script
9044
9045lt_save_CC=$CC
9046ac_ext=c
9047ac_cpp='$CPP $CPPFLAGS'
9048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050ac_compiler_gnu=$ac_cv_c_compiler_gnu
9051
9052
9053# Source file extension for C test sources.
9054ac_ext=c
9055
9056# Object file extension for compiled C test sources.
9057objext=o
9058objext=$objext
9059
9060# Code to be used in simple compile tests
9061lt_simple_compile_test_code="int some_variable = 0;"
9062
9063# Code to be used in simple link tests
9064lt_simple_link_test_code='int main(){return(0);}'
9065
9066
9067
9068
9069
9070
9071
9072# If no C compiler was specified, use CC.
9073LTCC=${LTCC-"$CC"}
9074
9075# If no C compiler flags were specified, use CFLAGS.
9076LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9077
9078# Allow CC to be a program name with arguments.
9079compiler=$CC
9080
9081# Save the default compiler, since it gets overwritten when the other
9082# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9083compiler_DEFAULT=$CC
9084
9085# save warnings/boilerplate of simple test code
9086ac_outfile=conftest.$ac_objext
9087echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9088eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9089_lt_compiler_boilerplate=`cat conftest.err`
9090$RM conftest*
9091
9092ac_outfile=conftest.$ac_objext
9093echo "$lt_simple_link_test_code" >conftest.$ac_ext
9094eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9095_lt_linker_boilerplate=`cat conftest.err`
9096$RM -r conftest*
9097
9098
9099## CAVEAT EMPTOR:
9100## There is no encapsulation within the following macros, do not change
9101## the running order or otherwise move them around unless you know exactly
9102## what you are doing...
9103if test -n "$compiler"; then
9104
9105lt_prog_compiler_no_builtin_flag=
9106
9107if test yes = "$GCC"; then
9108  case $cc_basename in
9109  nvcc*)
9110    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9111  *)
9112    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9113  esac
9114
9115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9116$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9117if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9118  $as_echo_n "(cached) " >&6
9119else
9120  lt_cv_prog_compiler_rtti_exceptions=no
9121   ac_outfile=conftest.$ac_objext
9122   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9123   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9124   # Insert the option either (1) after the last *FLAGS variable, or
9125   # (2) before a word containing "conftest.", or (3) at the end.
9126   # Note that $ac_compile itself does not contain backslashes and begins
9127   # with a dollar sign (not a hyphen), so the echo should work correctly.
9128   # The option is referenced via a variable to avoid confusing sed.
9129   lt_compile=`echo "$ac_compile" | $SED \
9130   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9131   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9132   -e 's:$: $lt_compiler_flag:'`
9133   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9134   (eval "$lt_compile" 2>conftest.err)
9135   ac_status=$?
9136   cat conftest.err >&5
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   if (exit $ac_status) && test -s "$ac_outfile"; then
9139     # The compiler can only warn and ignore the option if not recognized
9140     # So say no if there are warnings other than the usual output.
9141     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9142     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9143     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9144       lt_cv_prog_compiler_rtti_exceptions=yes
9145     fi
9146   fi
9147   $RM conftest*
9148
9149fi
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9151$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9152
9153if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9154    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9155else
9156    :
9157fi
9158
9159fi
9160
9161
9162
9163
9164
9165
9166  lt_prog_compiler_wl=
9167lt_prog_compiler_pic=
9168lt_prog_compiler_static=
9169
9170
9171  if test yes = "$GCC"; then
9172    lt_prog_compiler_wl='-Wl,'
9173    lt_prog_compiler_static='-static'
9174
9175    case $host_os in
9176      aix*)
9177      # All AIX code is PIC.
9178      if test ia64 = "$host_cpu"; then
9179	# AIX 5 now supports IA64 processor
9180	lt_prog_compiler_static='-Bstatic'
9181      fi
9182      lt_prog_compiler_pic='-fPIC'
9183      ;;
9184
9185    amigaos*)
9186      case $host_cpu in
9187      powerpc)
9188            # see comment about AmigaOS4 .so support
9189            lt_prog_compiler_pic='-fPIC'
9190        ;;
9191      m68k)
9192            # FIXME: we need at least 68020 code to build shared libraries, but
9193            # adding the '-m68020' flag to GCC prevents building anything better,
9194            # like '-m68040'.
9195            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9196        ;;
9197      esac
9198      ;;
9199
9200    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9201      # PIC is the default for these OSes.
9202      ;;
9203
9204    mingw* | cygwin* | pw32* | os2* | cegcc*)
9205      # This hack is so that the source file can tell whether it is being
9206      # built for inclusion in a dll (and should export symbols for example).
9207      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9208      # (--disable-auto-import) libraries
9209      lt_prog_compiler_pic='-DDLL_EXPORT'
9210      case $host_os in
9211      os2*)
9212	lt_prog_compiler_static='$wl-static'
9213	;;
9214      esac
9215      ;;
9216
9217    darwin* | rhapsody*)
9218      # PIC is the default on this platform
9219      # Common symbols not allowed in MH_DYLIB files
9220      lt_prog_compiler_pic='-fno-common'
9221      ;;
9222
9223    haiku*)
9224      # PIC is the default for Haiku.
9225      # The "-static" flag exists, but is broken.
9226      lt_prog_compiler_static=
9227      ;;
9228
9229    hpux*)
9230      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9231      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9232      # sets the default TLS model and affects inlining.
9233      case $host_cpu in
9234      hppa*64*)
9235	# +Z the default
9236	;;
9237      *)
9238	lt_prog_compiler_pic='-fPIC'
9239	;;
9240      esac
9241      ;;
9242
9243    interix[3-9]*)
9244      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9245      # Instead, we relocate shared libraries at runtime.
9246      ;;
9247
9248    msdosdjgpp*)
9249      # Just because we use GCC doesn't mean we suddenly get shared libraries
9250      # on systems that don't support them.
9251      lt_prog_compiler_can_build_shared=no
9252      enable_shared=no
9253      ;;
9254
9255    *nto* | *qnx*)
9256      # QNX uses GNU C++, but need to define -shared option too, otherwise
9257      # it will coredump.
9258      lt_prog_compiler_pic='-fPIC -shared'
9259      ;;
9260
9261    sysv4*MP*)
9262      if test -d /usr/nec; then
9263	lt_prog_compiler_pic=-Kconform_pic
9264      fi
9265      ;;
9266
9267    *)
9268      lt_prog_compiler_pic='-fPIC'
9269      ;;
9270    esac
9271
9272    case $cc_basename in
9273    nvcc*) # Cuda Compiler Driver 2.2
9274      lt_prog_compiler_wl='-Xlinker '
9275      if test -n "$lt_prog_compiler_pic"; then
9276        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9277      fi
9278      ;;
9279    esac
9280  else
9281    # PORTME Check for flag to pass linker flags through the system compiler.
9282    case $host_os in
9283    aix*)
9284      lt_prog_compiler_wl='-Wl,'
9285      if test ia64 = "$host_cpu"; then
9286	# AIX 5 now supports IA64 processor
9287	lt_prog_compiler_static='-Bstatic'
9288      else
9289	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9290      fi
9291      ;;
9292
9293    darwin* | rhapsody*)
9294      # PIC is the default on this platform
9295      # Common symbols not allowed in MH_DYLIB files
9296      lt_prog_compiler_pic='-fno-common'
9297      case $cc_basename in
9298      nagfor*)
9299        # NAG Fortran compiler
9300        lt_prog_compiler_wl='-Wl,-Wl,,'
9301        lt_prog_compiler_pic='-PIC'
9302        lt_prog_compiler_static='-Bstatic'
9303        ;;
9304      esac
9305      ;;
9306
9307    mingw* | cygwin* | pw32* | os2* | cegcc*)
9308      # This hack is so that the source file can tell whether it is being
9309      # built for inclusion in a dll (and should export symbols for example).
9310      lt_prog_compiler_pic='-DDLL_EXPORT'
9311      case $host_os in
9312      os2*)
9313	lt_prog_compiler_static='$wl-static'
9314	;;
9315      esac
9316      ;;
9317
9318    hpux9* | hpux10* | hpux11*)
9319      lt_prog_compiler_wl='-Wl,'
9320      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9321      # not for PA HP-UX.
9322      case $host_cpu in
9323      hppa*64*|ia64*)
9324	# +Z the default
9325	;;
9326      *)
9327	lt_prog_compiler_pic='+Z'
9328	;;
9329      esac
9330      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9331      lt_prog_compiler_static='$wl-a ${wl}archive'
9332      ;;
9333
9334    irix5* | irix6* | nonstopux*)
9335      lt_prog_compiler_wl='-Wl,'
9336      # PIC (with -KPIC) is the default.
9337      lt_prog_compiler_static='-non_shared'
9338      ;;
9339
9340    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9341      case $cc_basename in
9342      # old Intel for x86_64, which still supported -KPIC.
9343      ecc*)
9344	lt_prog_compiler_wl='-Wl,'
9345	lt_prog_compiler_pic='-KPIC'
9346	lt_prog_compiler_static='-static'
9347        ;;
9348      # icc used to be incompatible with GCC.
9349      # ICC 10 doesn't accept -KPIC any more.
9350      icc* | ifort*)
9351	lt_prog_compiler_wl='-Wl,'
9352	lt_prog_compiler_pic='-fPIC'
9353	lt_prog_compiler_static='-static'
9354        ;;
9355      # Lahey Fortran 8.1.
9356      lf95*)
9357	lt_prog_compiler_wl='-Wl,'
9358	lt_prog_compiler_pic='--shared'
9359	lt_prog_compiler_static='--static'
9360	;;
9361      nagfor*)
9362	# NAG Fortran compiler
9363	lt_prog_compiler_wl='-Wl,-Wl,,'
9364	lt_prog_compiler_pic='-PIC'
9365	lt_prog_compiler_static='-Bstatic'
9366	;;
9367      tcc*)
9368	# Fabrice Bellard et al's Tiny C Compiler
9369	lt_prog_compiler_wl='-Wl,'
9370	lt_prog_compiler_pic='-fPIC'
9371	lt_prog_compiler_static='-static'
9372	;;
9373      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9374        # Portland Group compilers (*not* the Pentium gcc compiler,
9375	# which looks to be a dead project)
9376	lt_prog_compiler_wl='-Wl,'
9377	lt_prog_compiler_pic='-fpic'
9378	lt_prog_compiler_static='-Bstatic'
9379        ;;
9380      ccc*)
9381        lt_prog_compiler_wl='-Wl,'
9382        # All Alpha code is PIC.
9383        lt_prog_compiler_static='-non_shared'
9384        ;;
9385      xl* | bgxl* | bgf* | mpixl*)
9386	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9387	lt_prog_compiler_wl='-Wl,'
9388	lt_prog_compiler_pic='-qpic'
9389	lt_prog_compiler_static='-qstaticlink'
9390	;;
9391      *)
9392	case `$CC -V 2>&1 | sed 5q` in
9393	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9394	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9395	  lt_prog_compiler_pic='-KPIC'
9396	  lt_prog_compiler_static='-Bstatic'
9397	  lt_prog_compiler_wl=''
9398	  ;;
9399	*Sun\ F* | *Sun*Fortran*)
9400	  lt_prog_compiler_pic='-KPIC'
9401	  lt_prog_compiler_static='-Bstatic'
9402	  lt_prog_compiler_wl='-Qoption ld '
9403	  ;;
9404	*Sun\ C*)
9405	  # Sun C 5.9
9406	  lt_prog_compiler_pic='-KPIC'
9407	  lt_prog_compiler_static='-Bstatic'
9408	  lt_prog_compiler_wl='-Wl,'
9409	  ;;
9410        *Intel*\ [CF]*Compiler*)
9411	  lt_prog_compiler_wl='-Wl,'
9412	  lt_prog_compiler_pic='-fPIC'
9413	  lt_prog_compiler_static='-static'
9414	  ;;
9415	*Portland\ Group*)
9416	  lt_prog_compiler_wl='-Wl,'
9417	  lt_prog_compiler_pic='-fpic'
9418	  lt_prog_compiler_static='-Bstatic'
9419	  ;;
9420	esac
9421	;;
9422      esac
9423      ;;
9424
9425    newsos6)
9426      lt_prog_compiler_pic='-KPIC'
9427      lt_prog_compiler_static='-Bstatic'
9428      ;;
9429
9430    *nto* | *qnx*)
9431      # QNX uses GNU C++, but need to define -shared option too, otherwise
9432      # it will coredump.
9433      lt_prog_compiler_pic='-fPIC -shared'
9434      ;;
9435
9436    osf3* | osf4* | osf5*)
9437      lt_prog_compiler_wl='-Wl,'
9438      # All OSF/1 code is PIC.
9439      lt_prog_compiler_static='-non_shared'
9440      ;;
9441
9442    rdos*)
9443      lt_prog_compiler_static='-non_shared'
9444      ;;
9445
9446    solaris*)
9447      lt_prog_compiler_pic='-KPIC'
9448      lt_prog_compiler_static='-Bstatic'
9449      case $cc_basename in
9450      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9451	lt_prog_compiler_wl='-Qoption ld ';;
9452      *)
9453	lt_prog_compiler_wl='-Wl,';;
9454      esac
9455      ;;
9456
9457    sunos4*)
9458      lt_prog_compiler_wl='-Qoption ld '
9459      lt_prog_compiler_pic='-PIC'
9460      lt_prog_compiler_static='-Bstatic'
9461      ;;
9462
9463    sysv4 | sysv4.2uw2* | sysv4.3*)
9464      lt_prog_compiler_wl='-Wl,'
9465      lt_prog_compiler_pic='-KPIC'
9466      lt_prog_compiler_static='-Bstatic'
9467      ;;
9468
9469    sysv4*MP*)
9470      if test -d /usr/nec; then
9471	lt_prog_compiler_pic='-Kconform_pic'
9472	lt_prog_compiler_static='-Bstatic'
9473      fi
9474      ;;
9475
9476    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9477      lt_prog_compiler_wl='-Wl,'
9478      lt_prog_compiler_pic='-KPIC'
9479      lt_prog_compiler_static='-Bstatic'
9480      ;;
9481
9482    unicos*)
9483      lt_prog_compiler_wl='-Wl,'
9484      lt_prog_compiler_can_build_shared=no
9485      ;;
9486
9487    uts4*)
9488      lt_prog_compiler_pic='-pic'
9489      lt_prog_compiler_static='-Bstatic'
9490      ;;
9491
9492    *)
9493      lt_prog_compiler_can_build_shared=no
9494      ;;
9495    esac
9496  fi
9497
9498case $host_os in
9499  # For platforms that do not support PIC, -DPIC is meaningless:
9500  *djgpp*)
9501    lt_prog_compiler_pic=
9502    ;;
9503  *)
9504    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9505    ;;
9506esac
9507
9508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9509$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9510if ${lt_cv_prog_compiler_pic+:} false; then :
9511  $as_echo_n "(cached) " >&6
9512else
9513  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9514fi
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9516$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9517lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9518
9519#
9520# Check to make sure the PIC flag actually works.
9521#
9522if test -n "$lt_prog_compiler_pic"; then
9523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9524$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9525if ${lt_cv_prog_compiler_pic_works+:} false; then :
9526  $as_echo_n "(cached) " >&6
9527else
9528  lt_cv_prog_compiler_pic_works=no
9529   ac_outfile=conftest.$ac_objext
9530   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9532   # Insert the option either (1) after the last *FLAGS variable, or
9533   # (2) before a word containing "conftest.", or (3) at the end.
9534   # Note that $ac_compile itself does not contain backslashes and begins
9535   # with a dollar sign (not a hyphen), so the echo should work correctly.
9536   # The option is referenced via a variable to avoid confusing sed.
9537   lt_compile=`echo "$ac_compile" | $SED \
9538   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540   -e 's:$: $lt_compiler_flag:'`
9541   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9542   (eval "$lt_compile" 2>conftest.err)
9543   ac_status=$?
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   if (exit $ac_status) && test -s "$ac_outfile"; then
9547     # The compiler can only warn and ignore the option if not recognized
9548     # So say no if there are warnings other than the usual output.
9549     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9550     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9551     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9552       lt_cv_prog_compiler_pic_works=yes
9553     fi
9554   fi
9555   $RM conftest*
9556
9557fi
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9559$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9560
9561if test yes = "$lt_cv_prog_compiler_pic_works"; then
9562    case $lt_prog_compiler_pic in
9563     "" | " "*) ;;
9564     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9565     esac
9566else
9567    lt_prog_compiler_pic=
9568     lt_prog_compiler_can_build_shared=no
9569fi
9570
9571fi
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583#
9584# Check to make sure the static flag actually works.
9585#
9586wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9588$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9589if ${lt_cv_prog_compiler_static_works+:} false; then :
9590  $as_echo_n "(cached) " >&6
9591else
9592  lt_cv_prog_compiler_static_works=no
9593   save_LDFLAGS=$LDFLAGS
9594   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9595   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9596   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9597     # The linker can only warn and ignore the option if not recognized
9598     # So say no if there are warnings
9599     if test -s conftest.err; then
9600       # Append any errors to the config.log.
9601       cat conftest.err 1>&5
9602       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9603       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9604       if diff conftest.exp conftest.er2 >/dev/null; then
9605         lt_cv_prog_compiler_static_works=yes
9606       fi
9607     else
9608       lt_cv_prog_compiler_static_works=yes
9609     fi
9610   fi
9611   $RM -r conftest*
9612   LDFLAGS=$save_LDFLAGS
9613
9614fi
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9616$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9617
9618if test yes = "$lt_cv_prog_compiler_static_works"; then
9619    :
9620else
9621    lt_prog_compiler_static=
9622fi
9623
9624
9625
9626
9627
9628
9629
9630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9631$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9632if ${lt_cv_prog_compiler_c_o+:} false; then :
9633  $as_echo_n "(cached) " >&6
9634else
9635  lt_cv_prog_compiler_c_o=no
9636   $RM -r conftest 2>/dev/null
9637   mkdir conftest
9638   cd conftest
9639   mkdir out
9640   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9641
9642   lt_compiler_flag="-o out/conftest2.$ac_objext"
9643   # Insert the option either (1) after the last *FLAGS variable, or
9644   # (2) before a word containing "conftest.", or (3) at the end.
9645   # Note that $ac_compile itself does not contain backslashes and begins
9646   # with a dollar sign (not a hyphen), so the echo should work correctly.
9647   lt_compile=`echo "$ac_compile" | $SED \
9648   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9649   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9650   -e 's:$: $lt_compiler_flag:'`
9651   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9652   (eval "$lt_compile" 2>out/conftest.err)
9653   ac_status=$?
9654   cat out/conftest.err >&5
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9657   then
9658     # The compiler can only warn and ignore the option if not recognized
9659     # So say no if there are warnings
9660     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9661     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9662     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9663       lt_cv_prog_compiler_c_o=yes
9664     fi
9665   fi
9666   chmod u+w . 2>&5
9667   $RM conftest*
9668   # SGI C++ compiler will create directory out/ii_files/ for
9669   # template instantiation
9670   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9671   $RM out/* && rmdir out
9672   cd ..
9673   $RM -r conftest
9674   $RM conftest*
9675
9676fi
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9678$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9679
9680
9681
9682
9683
9684
9685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9686$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9687if ${lt_cv_prog_compiler_c_o+:} false; then :
9688  $as_echo_n "(cached) " >&6
9689else
9690  lt_cv_prog_compiler_c_o=no
9691   $RM -r conftest 2>/dev/null
9692   mkdir conftest
9693   cd conftest
9694   mkdir out
9695   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9696
9697   lt_compiler_flag="-o out/conftest2.$ac_objext"
9698   # Insert the option either (1) after the last *FLAGS variable, or
9699   # (2) before a word containing "conftest.", or (3) at the end.
9700   # Note that $ac_compile itself does not contain backslashes and begins
9701   # with a dollar sign (not a hyphen), so the echo should work correctly.
9702   lt_compile=`echo "$ac_compile" | $SED \
9703   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9704   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9705   -e 's:$: $lt_compiler_flag:'`
9706   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9707   (eval "$lt_compile" 2>out/conftest.err)
9708   ac_status=$?
9709   cat out/conftest.err >&5
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9712   then
9713     # The compiler can only warn and ignore the option if not recognized
9714     # So say no if there are warnings
9715     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9716     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9717     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9718       lt_cv_prog_compiler_c_o=yes
9719     fi
9720   fi
9721   chmod u+w . 2>&5
9722   $RM conftest*
9723   # SGI C++ compiler will create directory out/ii_files/ for
9724   # template instantiation
9725   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9726   $RM out/* && rmdir out
9727   cd ..
9728   $RM -r conftest
9729   $RM conftest*
9730
9731fi
9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9733$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9734
9735
9736
9737
9738hard_links=nottested
9739if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9740  # do not overwrite the value of need_locks provided by the user
9741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9742$as_echo_n "checking if we can lock with hard links... " >&6; }
9743  hard_links=yes
9744  $RM conftest*
9745  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9746  touch conftest.a
9747  ln conftest.a conftest.b 2>&5 || hard_links=no
9748  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9750$as_echo "$hard_links" >&6; }
9751  if test no = "$hard_links"; then
9752    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9753$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9754    need_locks=warn
9755  fi
9756else
9757  need_locks=no
9758fi
9759
9760
9761
9762
9763
9764
9765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9766$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9767
9768  runpath_var=
9769  allow_undefined_flag=
9770  always_export_symbols=no
9771  archive_cmds=
9772  archive_expsym_cmds=
9773  compiler_needs_object=no
9774  enable_shared_with_static_runtimes=no
9775  export_dynamic_flag_spec=
9776  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9777  hardcode_automatic=no
9778  hardcode_direct=no
9779  hardcode_direct_absolute=no
9780  hardcode_libdir_flag_spec=
9781  hardcode_libdir_separator=
9782  hardcode_minus_L=no
9783  hardcode_shlibpath_var=unsupported
9784  inherit_rpath=no
9785  link_all_deplibs=unknown
9786  module_cmds=
9787  module_expsym_cmds=
9788  old_archive_from_new_cmds=
9789  old_archive_from_expsyms_cmds=
9790  thread_safe_flag_spec=
9791  whole_archive_flag_spec=
9792  # include_expsyms should be a list of space-separated symbols to be *always*
9793  # included in the symbol list
9794  include_expsyms=
9795  # exclude_expsyms can be an extended regexp of symbols to exclude
9796  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9797  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9798  # as well as any symbol that contains 'd'.
9799  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9800  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9801  # platforms (ab)use it in PIC code, but their linkers get confused if
9802  # the symbol is explicitly referenced.  Since portable code cannot
9803  # rely on this symbol name, it's probably fine to never include it in
9804  # preloaded symbol tables.
9805  # Exclude shared library initialization/finalization symbols.
9806  extract_expsyms_cmds=
9807
9808  case $host_os in
9809  cygwin* | mingw* | pw32* | cegcc*)
9810    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9811    # When not using gcc, we currently assume that we are using
9812    # Microsoft Visual C++.
9813    if test yes != "$GCC"; then
9814      with_gnu_ld=no
9815    fi
9816    ;;
9817  interix*)
9818    # we just hope/assume this is gcc and not c89 (= MSVC++)
9819    with_gnu_ld=yes
9820    ;;
9821  openbsd* | bitrig*)
9822    with_gnu_ld=no
9823    ;;
9824  esac
9825
9826  ld_shlibs=yes
9827
9828  # On some targets, GNU ld is compatible enough with the native linker
9829  # that we're better off using the native interface for both.
9830  lt_use_gnu_ld_interface=no
9831  if test yes = "$with_gnu_ld"; then
9832    case $host_os in
9833      aix*)
9834	# The AIX port of GNU ld has always aspired to compatibility
9835	# with the native linker.  However, as the warning in the GNU ld
9836	# block says, versions before 2.19.5* couldn't really create working
9837	# shared libraries, regardless of the interface used.
9838	case `$LD -v 2>&1` in
9839	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9840	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9841	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9842	  *)
9843	    lt_use_gnu_ld_interface=yes
9844	    ;;
9845	esac
9846	;;
9847      *)
9848	lt_use_gnu_ld_interface=yes
9849	;;
9850    esac
9851  fi
9852
9853  if test yes = "$lt_use_gnu_ld_interface"; then
9854    # If archive_cmds runs LD, not CC, wlarc should be empty
9855    wlarc='$wl'
9856
9857    # Set some defaults for GNU ld with shared library support. These
9858    # are reset later if shared libraries are not supported. Putting them
9859    # here allows them to be overridden if necessary.
9860    runpath_var=LD_RUN_PATH
9861    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9862    export_dynamic_flag_spec='$wl--export-dynamic'
9863    # ancient GNU ld didn't support --whole-archive et. al.
9864    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9865      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9866    else
9867      whole_archive_flag_spec=
9868    fi
9869    supports_anon_versioning=no
9870    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9871      *GNU\ gold*) supports_anon_versioning=yes ;;
9872      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9873      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9874      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9875      *\ 2.11.*) ;; # other 2.11 versions
9876      *) supports_anon_versioning=yes ;;
9877    esac
9878
9879    # See if GNU ld supports shared libraries.
9880    case $host_os in
9881    aix[3-9]*)
9882      # On AIX/PPC, the GNU linker is very broken
9883      if test ia64 != "$host_cpu"; then
9884	ld_shlibs=no
9885	cat <<_LT_EOF 1>&2
9886
9887*** Warning: the GNU linker, at least up to release 2.19, is reported
9888*** to be unable to reliably create shared libraries on AIX.
9889*** Therefore, libtool is disabling shared libraries support.  If you
9890*** really care for shared libraries, you may want to install binutils
9891*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9892*** You will then need to restart the configuration process.
9893
9894_LT_EOF
9895      fi
9896      ;;
9897
9898    amigaos*)
9899      case $host_cpu in
9900      powerpc)
9901            # see comment about AmigaOS4 .so support
9902            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9903            archive_expsym_cmds=''
9904        ;;
9905      m68k)
9906            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)'
9907            hardcode_libdir_flag_spec='-L$libdir'
9908            hardcode_minus_L=yes
9909        ;;
9910      esac
9911      ;;
9912
9913    beos*)
9914      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9915	allow_undefined_flag=unsupported
9916	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9917	# support --undefined.  This deserves some investigation.  FIXME
9918	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9919      else
9920	ld_shlibs=no
9921      fi
9922      ;;
9923
9924    cygwin* | mingw* | pw32* | cegcc*)
9925      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9926      # as there is no search path for DLLs.
9927      hardcode_libdir_flag_spec='-L$libdir'
9928      export_dynamic_flag_spec='$wl--export-all-symbols'
9929      allow_undefined_flag=unsupported
9930      always_export_symbols=no
9931      enable_shared_with_static_runtimes=yes
9932      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'
9933      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9934
9935      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9936        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9937	# If the export-symbols file already is a .def file, use it as
9938	# is; otherwise, prepend EXPORTS...
9939	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9940          cp $export_symbols $output_objdir/$soname.def;
9941        else
9942          echo EXPORTS > $output_objdir/$soname.def;
9943          cat $export_symbols >> $output_objdir/$soname.def;
9944        fi~
9945        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9946      else
9947	ld_shlibs=no
9948      fi
9949      ;;
9950
9951    haiku*)
9952      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9953      link_all_deplibs=yes
9954      ;;
9955
9956    os2*)
9957      hardcode_libdir_flag_spec='-L$libdir'
9958      hardcode_minus_L=yes
9959      allow_undefined_flag=unsupported
9960      shrext_cmds=.dll
9961      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9962	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9963	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9964	$ECHO EXPORTS >> $output_objdir/$libname.def~
9965	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9966	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9967	emximp -o $lib $output_objdir/$libname.def'
9968      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9969	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9970	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9971	$ECHO EXPORTS >> $output_objdir/$libname.def~
9972	prefix_cmds="$SED"~
9973	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9974	  prefix_cmds="$prefix_cmds -e 1d";
9975	fi~
9976	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9977	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9978	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9979	emximp -o $lib $output_objdir/$libname.def'
9980      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9981      enable_shared_with_static_runtimes=yes
9982      ;;
9983
9984    interix[3-9]*)
9985      hardcode_direct=no
9986      hardcode_shlibpath_var=no
9987      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9988      export_dynamic_flag_spec='$wl-E'
9989      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9990      # Instead, shared libraries are loaded at an image base (0x10000000 by
9991      # default) and relocated if they conflict, which is a slow very memory
9992      # consuming and fragmenting process.  To avoid this, we pick a random,
9993      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9994      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9995      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9996      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'
9997      ;;
9998
9999    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10000      tmp_diet=no
10001      if test linux-dietlibc = "$host_os"; then
10002	case $cc_basename in
10003	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10004	esac
10005      fi
10006      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10007	 && test no = "$tmp_diet"
10008      then
10009	tmp_addflag=' $pic_flag'
10010	tmp_sharedflag='-shared'
10011	case $cc_basename,$host_cpu in
10012        pgcc*)				# Portland Group C compiler
10013	  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'
10014	  tmp_addflag=' $pic_flag'
10015	  ;;
10016	pgf77* | pgf90* | pgf95* | pgfortran*)
10017					# Portland Group f77 and f90 compilers
10018	  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'
10019	  tmp_addflag=' $pic_flag -Mnomain' ;;
10020	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10021	  tmp_addflag=' -i_dynamic' ;;
10022	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10023	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10024	ifc* | ifort*)			# Intel Fortran compiler
10025	  tmp_addflag=' -nofor_main' ;;
10026	lf95*)				# Lahey Fortran 8.1
10027	  whole_archive_flag_spec=
10028	  tmp_sharedflag='--shared' ;;
10029        nagfor*)                        # NAGFOR 5.3
10030          tmp_sharedflag='-Wl,-shared' ;;
10031	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10032	  tmp_sharedflag='-qmkshrobj'
10033	  tmp_addflag= ;;
10034	nvcc*)	# Cuda Compiler Driver 2.2
10035	  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'
10036	  compiler_needs_object=yes
10037	  ;;
10038	esac
10039	case `$CC -V 2>&1 | sed 5q` in
10040	*Sun\ C*)			# Sun C 5.9
10041	  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'
10042	  compiler_needs_object=yes
10043	  tmp_sharedflag='-G' ;;
10044	*Sun\ F*)			# Sun Fortran 8.3
10045	  tmp_sharedflag='-G' ;;
10046	esac
10047	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10048
10049        if test yes = "$supports_anon_versioning"; then
10050          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10051            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10052            echo "local: *; };" >> $output_objdir/$libname.ver~
10053            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10054        fi
10055
10056	case $cc_basename in
10057	tcc*)
10058	  export_dynamic_flag_spec='-rdynamic'
10059	  ;;
10060	xlf* | bgf* | bgxlf* | mpixlf*)
10061	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10062	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10063	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10064	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10065	  if test yes = "$supports_anon_versioning"; then
10066	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10067              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10068              echo "local: *; };" >> $output_objdir/$libname.ver~
10069              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10070	  fi
10071	  ;;
10072	esac
10073      else
10074        ld_shlibs=no
10075      fi
10076      ;;
10077
10078    netbsd*)
10079      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10080	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10081	wlarc=
10082      else
10083	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10084	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10085      fi
10086      ;;
10087
10088    solaris*)
10089      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10090	ld_shlibs=no
10091	cat <<_LT_EOF 1>&2
10092
10093*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10094*** create shared libraries on Solaris systems.  Therefore, libtool
10095*** is disabling shared libraries support.  We urge you to upgrade GNU
10096*** binutils to release 2.9.1 or newer.  Another option is to modify
10097*** your PATH or compiler configuration so that the native linker is
10098*** used, and then restart.
10099
10100_LT_EOF
10101      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10102	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10103	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10104      else
10105	ld_shlibs=no
10106      fi
10107      ;;
10108
10109    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10110      case `$LD -v 2>&1` in
10111        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10112	ld_shlibs=no
10113	cat <<_LT_EOF 1>&2
10114
10115*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10116*** reliably create shared libraries on SCO systems.  Therefore, libtool
10117*** is disabling shared libraries support.  We urge you to upgrade GNU
10118*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10119*** your PATH or compiler configuration so that the native linker is
10120*** used, and then restart.
10121
10122_LT_EOF
10123	;;
10124	*)
10125	  # For security reasons, it is highly recommended that you always
10126	  # use absolute paths for naming shared libraries, and exclude the
10127	  # DT_RUNPATH tag from executables and libraries.  But doing so
10128	  # requires that you compile everything twice, which is a pain.
10129	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10130	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10131	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10132	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10133	  else
10134	    ld_shlibs=no
10135	  fi
10136	;;
10137      esac
10138      ;;
10139
10140    sunos4*)
10141      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10142      wlarc=
10143      hardcode_direct=yes
10144      hardcode_shlibpath_var=no
10145      ;;
10146
10147    *)
10148      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10149	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10150	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10151      else
10152	ld_shlibs=no
10153      fi
10154      ;;
10155    esac
10156
10157    if test no = "$ld_shlibs"; then
10158      runpath_var=
10159      hardcode_libdir_flag_spec=
10160      export_dynamic_flag_spec=
10161      whole_archive_flag_spec=
10162    fi
10163  else
10164    # PORTME fill in a description of your system's linker (not GNU ld)
10165    case $host_os in
10166    aix3*)
10167      allow_undefined_flag=unsupported
10168      always_export_symbols=yes
10169      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'
10170      # Note: this linker hardcodes the directories in LIBPATH if there
10171      # are no directories specified by -L.
10172      hardcode_minus_L=yes
10173      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10174	# Neither direct hardcoding nor static linking is supported with a
10175	# broken collect2.
10176	hardcode_direct=unsupported
10177      fi
10178      ;;
10179
10180    aix[4-9]*)
10181      if test ia64 = "$host_cpu"; then
10182	# On IA64, the linker does run time linking by default, so we don't
10183	# have to do anything special.
10184	aix_use_runtimelinking=no
10185	exp_sym_flag='-Bexport'
10186	no_entry_flag=
10187      else
10188	# If we're using GNU nm, then we don't want the "-C" option.
10189	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10190	# Without the "-l" option, or with the "-B" option, AIX nm treats
10191	# weak defined symbols like other global defined symbols, whereas
10192	# GNU nm marks them as "W".
10193	# While the 'weak' keyword is ignored in the Export File, we need
10194	# it in the Import File for the 'aix-soname' feature, so we have
10195	# to replace the "-B" option with "-P" for AIX nm.
10196	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10197	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10198	else
10199	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10200	fi
10201	aix_use_runtimelinking=no
10202
10203	# Test if we are trying to use run time linking or normal
10204	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10205	# have runtime linking enabled, and use it for executables.
10206	# For shared libraries, we enable/disable runtime linking
10207	# depending on the kind of the shared library created -
10208	# when "with_aix_soname,aix_use_runtimelinking" is:
10209	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10210	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10211	#            lib.a           static archive
10212	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10213	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10214	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10215	#            lib.a(lib.so.V) shared, rtl:no
10216	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10217	#            lib.a           static archive
10218	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10219	  for ld_flag in $LDFLAGS; do
10220	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10221	    aix_use_runtimelinking=yes
10222	    break
10223	  fi
10224	  done
10225	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10226	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10227	    # so we don't have lib.a shared libs to link our executables.
10228	    # We have to force runtime linking in this case.
10229	    aix_use_runtimelinking=yes
10230	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10231	  fi
10232	  ;;
10233	esac
10234
10235	exp_sym_flag='-bexport'
10236	no_entry_flag='-bnoentry'
10237      fi
10238
10239      # When large executables or shared objects are built, AIX ld can
10240      # have problems creating the table of contents.  If linking a library
10241      # or program results in "error TOC overflow" add -mminimal-toc to
10242      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10243      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10244
10245      archive_cmds=''
10246      hardcode_direct=yes
10247      hardcode_direct_absolute=yes
10248      hardcode_libdir_separator=':'
10249      link_all_deplibs=yes
10250      file_list_spec='$wl-f,'
10251      case $with_aix_soname,$aix_use_runtimelinking in
10252      aix,*) ;; # traditional, no import file
10253      svr4,* | *,yes) # use import file
10254	# The Import File defines what to hardcode.
10255	hardcode_direct=no
10256	hardcode_direct_absolute=no
10257	;;
10258      esac
10259
10260      if test yes = "$GCC"; then
10261	case $host_os in aix4.[012]|aix4.[012].*)
10262	# We only want to do this on AIX 4.2 and lower, the check
10263	# below for broken collect2 doesn't work under 4.3+
10264	  collect2name=`$CC -print-prog-name=collect2`
10265	  if test -f "$collect2name" &&
10266	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10267	  then
10268	  # We have reworked collect2
10269	  :
10270	  else
10271	  # We have old collect2
10272	  hardcode_direct=unsupported
10273	  # It fails to find uninstalled libraries when the uninstalled
10274	  # path is not listed in the libpath.  Setting hardcode_minus_L
10275	  # to unsupported forces relinking
10276	  hardcode_minus_L=yes
10277	  hardcode_libdir_flag_spec='-L$libdir'
10278	  hardcode_libdir_separator=
10279	  fi
10280	  ;;
10281	esac
10282	shared_flag='-shared'
10283	if test yes = "$aix_use_runtimelinking"; then
10284	  shared_flag="$shared_flag "'$wl-G'
10285	fi
10286	# Need to ensure runtime linking is disabled for the traditional
10287	# shared library, or the linker may eventually find shared libraries
10288	# /with/ Import File - we do not want to mix them.
10289	shared_flag_aix='-shared'
10290	shared_flag_svr4='-shared $wl-G'
10291      else
10292	# not using gcc
10293	if test ia64 = "$host_cpu"; then
10294	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10295	# chokes on -Wl,-G. The following line is correct:
10296	  shared_flag='-G'
10297	else
10298	  if test yes = "$aix_use_runtimelinking"; then
10299	    shared_flag='$wl-G'
10300	  else
10301	    shared_flag='$wl-bM:SRE'
10302	  fi
10303	  shared_flag_aix='$wl-bM:SRE'
10304	  shared_flag_svr4='$wl-G'
10305	fi
10306      fi
10307
10308      export_dynamic_flag_spec='$wl-bexpall'
10309      # It seems that -bexpall does not export symbols beginning with
10310      # underscore (_), so it is better to generate a list of symbols to export.
10311      always_export_symbols=yes
10312      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10313	# Warning - without using the other runtime loading flags (-brtl),
10314	# -berok will link without error, but may produce a broken library.
10315	allow_undefined_flag='-berok'
10316        # Determine the default libpath from the value encoded in an
10317        # empty executable.
10318        if test set = "${lt_cv_aix_libpath+set}"; then
10319  aix_libpath=$lt_cv_aix_libpath
10320else
10321  if ${lt_cv_aix_libpath_+:} false; then :
10322  $as_echo_n "(cached) " >&6
10323else
10324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325/* end confdefs.h.  */
10326
10327int
10328main ()
10329{
10330
10331  ;
10332  return 0;
10333}
10334_ACEOF
10335if ac_fn_c_try_link "$LINENO"; then :
10336
10337  lt_aix_libpath_sed='
10338      /Import File Strings/,/^$/ {
10339	  /^0/ {
10340	      s/^0  *\([^ ]*\) *$/\1/
10341	      p
10342	  }
10343      }'
10344  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10345  # Check for a 64-bit object if we didn't find anything.
10346  if test -z "$lt_cv_aix_libpath_"; then
10347    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10348  fi
10349fi
10350rm -f core conftest.err conftest.$ac_objext \
10351    conftest$ac_exeext conftest.$ac_ext
10352  if test -z "$lt_cv_aix_libpath_"; then
10353    lt_cv_aix_libpath_=/usr/lib:/lib
10354  fi
10355
10356fi
10357
10358  aix_libpath=$lt_cv_aix_libpath_
10359fi
10360
10361        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10362        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10363      else
10364	if test ia64 = "$host_cpu"; then
10365	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10366	  allow_undefined_flag="-z nodefs"
10367	  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"
10368	else
10369	 # Determine the default libpath from the value encoded in an
10370	 # empty executable.
10371	 if test set = "${lt_cv_aix_libpath+set}"; then
10372  aix_libpath=$lt_cv_aix_libpath
10373else
10374  if ${lt_cv_aix_libpath_+:} false; then :
10375  $as_echo_n "(cached) " >&6
10376else
10377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h.  */
10379
10380int
10381main ()
10382{
10383
10384  ;
10385  return 0;
10386}
10387_ACEOF
10388if ac_fn_c_try_link "$LINENO"; then :
10389
10390  lt_aix_libpath_sed='
10391      /Import File Strings/,/^$/ {
10392	  /^0/ {
10393	      s/^0  *\([^ ]*\) *$/\1/
10394	      p
10395	  }
10396      }'
10397  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10398  # Check for a 64-bit object if we didn't find anything.
10399  if test -z "$lt_cv_aix_libpath_"; then
10400    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10401  fi
10402fi
10403rm -f core conftest.err conftest.$ac_objext \
10404    conftest$ac_exeext conftest.$ac_ext
10405  if test -z "$lt_cv_aix_libpath_"; then
10406    lt_cv_aix_libpath_=/usr/lib:/lib
10407  fi
10408
10409fi
10410
10411  aix_libpath=$lt_cv_aix_libpath_
10412fi
10413
10414	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10415	  # Warning - without using the other run time loading flags,
10416	  # -berok will link without error, but may produce a broken library.
10417	  no_undefined_flag=' $wl-bernotok'
10418	  allow_undefined_flag=' $wl-berok'
10419	  if test yes = "$with_gnu_ld"; then
10420	    # We only use this code for GNU lds that support --whole-archive.
10421	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10422	  else
10423	    # Exported symbols can be pulled into shared objects from archives
10424	    whole_archive_flag_spec='$convenience'
10425	  fi
10426	  archive_cmds_need_lc=yes
10427	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10428	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10429	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10430	  if test svr4 != "$with_aix_soname"; then
10431	    # This is similar to how AIX traditionally builds its shared libraries.
10432	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10433	  fi
10434	  if test aix != "$with_aix_soname"; then
10435	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10436	  else
10437	    # used by -dlpreopen to get the symbols
10438	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10439	  fi
10440	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10441	fi
10442      fi
10443      ;;
10444
10445    amigaos*)
10446      case $host_cpu in
10447      powerpc)
10448            # see comment about AmigaOS4 .so support
10449            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10450            archive_expsym_cmds=''
10451        ;;
10452      m68k)
10453            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)'
10454            hardcode_libdir_flag_spec='-L$libdir'
10455            hardcode_minus_L=yes
10456        ;;
10457      esac
10458      ;;
10459
10460    bsdi[45]*)
10461      export_dynamic_flag_spec=-rdynamic
10462      ;;
10463
10464    cygwin* | mingw* | pw32* | cegcc*)
10465      # When not using gcc, we currently assume that we are using
10466      # Microsoft Visual C++.
10467      # hardcode_libdir_flag_spec is actually meaningless, as there is
10468      # no search path for DLLs.
10469      case $cc_basename in
10470      cl*)
10471	# Native MSVC
10472	hardcode_libdir_flag_spec=' '
10473	allow_undefined_flag=unsupported
10474	always_export_symbols=yes
10475	file_list_spec='@'
10476	# Tell ltmain to make .lib files, not .a files.
10477	libext=lib
10478	# Tell ltmain to make .dll files, not .so files.
10479	shrext_cmds=.dll
10480	# FIXME: Setting linknames here is a bad hack.
10481	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10482	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10483            cp "$export_symbols" "$output_objdir/$soname.def";
10484            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10485          else
10486            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10487          fi~
10488          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10489          linknames='
10490	# The linker will not automatically build a static lib if we build a DLL.
10491	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10492	enable_shared_with_static_runtimes=yes
10493	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10494	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10495	# Don't use ranlib
10496	old_postinstall_cmds='chmod 644 $oldlib'
10497	postlink_cmds='lt_outputfile="@OUTPUT@"~
10498          lt_tool_outputfile="@TOOL_OUTPUT@"~
10499          case $lt_outputfile in
10500            *.exe|*.EXE) ;;
10501            *)
10502              lt_outputfile=$lt_outputfile.exe
10503              lt_tool_outputfile=$lt_tool_outputfile.exe
10504              ;;
10505          esac~
10506          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10507            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10508            $RM "$lt_outputfile.manifest";
10509          fi'
10510	;;
10511      *)
10512	# Assume MSVC wrapper
10513	hardcode_libdir_flag_spec=' '
10514	allow_undefined_flag=unsupported
10515	# Tell ltmain to make .lib files, not .a files.
10516	libext=lib
10517	# Tell ltmain to make .dll files, not .so files.
10518	shrext_cmds=.dll
10519	# FIXME: Setting linknames here is a bad hack.
10520	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10521	# The linker will automatically build a .lib file if we build a DLL.
10522	old_archive_from_new_cmds='true'
10523	# FIXME: Should let the user specify the lib program.
10524	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10525	enable_shared_with_static_runtimes=yes
10526	;;
10527      esac
10528      ;;
10529
10530    darwin* | rhapsody*)
10531
10532
10533  archive_cmds_need_lc=no
10534  hardcode_direct=no
10535  hardcode_automatic=yes
10536  hardcode_shlibpath_var=unsupported
10537  if test yes = "$lt_cv_ld_force_load"; then
10538    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\"`'
10539
10540  else
10541    whole_archive_flag_spec=''
10542  fi
10543  link_all_deplibs=yes
10544  allow_undefined_flag=$_lt_dar_allow_undefined
10545  case $cc_basename in
10546     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10547     *) _lt_dar_can_shared=$GCC ;;
10548  esac
10549  if test yes = "$_lt_dar_can_shared"; then
10550    output_verbose_link_cmd=func_echo_all
10551    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10552    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10553    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"
10554    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"
10555
10556  else
10557  ld_shlibs=no
10558  fi
10559
10560      ;;
10561
10562    dgux*)
10563      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10564      hardcode_libdir_flag_spec='-L$libdir'
10565      hardcode_shlibpath_var=no
10566      ;;
10567
10568    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10569    # support.  Future versions do this automatically, but an explicit c++rt0.o
10570    # does not break anything, and helps significantly (at the cost of a little
10571    # extra space).
10572    freebsd2.2*)
10573      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10574      hardcode_libdir_flag_spec='-R$libdir'
10575      hardcode_direct=yes
10576      hardcode_shlibpath_var=no
10577      ;;
10578
10579    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10580    freebsd2.*)
10581      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10582      hardcode_direct=yes
10583      hardcode_minus_L=yes
10584      hardcode_shlibpath_var=no
10585      ;;
10586
10587    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10588    freebsd* | dragonfly*)
10589      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10590      hardcode_libdir_flag_spec='-R$libdir'
10591      hardcode_direct=yes
10592      hardcode_shlibpath_var=no
10593      ;;
10594
10595    hpux9*)
10596      if test yes = "$GCC"; then
10597	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10598      else
10599	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10600      fi
10601      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10602      hardcode_libdir_separator=:
10603      hardcode_direct=yes
10604
10605      # hardcode_minus_L: Not really in the search PATH,
10606      # but as the default location of the library.
10607      hardcode_minus_L=yes
10608      export_dynamic_flag_spec='$wl-E'
10609      ;;
10610
10611    hpux10*)
10612      if test yes,no = "$GCC,$with_gnu_ld"; then
10613	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10614      else
10615	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10616      fi
10617      if test no = "$with_gnu_ld"; then
10618	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10619	hardcode_libdir_separator=:
10620	hardcode_direct=yes
10621	hardcode_direct_absolute=yes
10622	export_dynamic_flag_spec='$wl-E'
10623	# hardcode_minus_L: Not really in the search PATH,
10624	# but as the default location of the library.
10625	hardcode_minus_L=yes
10626      fi
10627      ;;
10628
10629    hpux11*)
10630      if test yes,no = "$GCC,$with_gnu_ld"; then
10631	case $host_cpu in
10632	hppa*64*)
10633	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10634	  ;;
10635	ia64*)
10636	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10637	  ;;
10638	*)
10639	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10640	  ;;
10641	esac
10642      else
10643	case $host_cpu in
10644	hppa*64*)
10645	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10646	  ;;
10647	ia64*)
10648	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10649	  ;;
10650	*)
10651
10652	  # Older versions of the 11.00 compiler do not understand -b yet
10653	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10654	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10655$as_echo_n "checking if $CC understands -b... " >&6; }
10656if ${lt_cv_prog_compiler__b+:} false; then :
10657  $as_echo_n "(cached) " >&6
10658else
10659  lt_cv_prog_compiler__b=no
10660   save_LDFLAGS=$LDFLAGS
10661   LDFLAGS="$LDFLAGS -b"
10662   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10663   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10664     # The linker can only warn and ignore the option if not recognized
10665     # So say no if there are warnings
10666     if test -s conftest.err; then
10667       # Append any errors to the config.log.
10668       cat conftest.err 1>&5
10669       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10670       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10671       if diff conftest.exp conftest.er2 >/dev/null; then
10672         lt_cv_prog_compiler__b=yes
10673       fi
10674     else
10675       lt_cv_prog_compiler__b=yes
10676     fi
10677   fi
10678   $RM -r conftest*
10679   LDFLAGS=$save_LDFLAGS
10680
10681fi
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10683$as_echo "$lt_cv_prog_compiler__b" >&6; }
10684
10685if test yes = "$lt_cv_prog_compiler__b"; then
10686    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10687else
10688    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10689fi
10690
10691	  ;;
10692	esac
10693      fi
10694      if test no = "$with_gnu_ld"; then
10695	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10696	hardcode_libdir_separator=:
10697
10698	case $host_cpu in
10699	hppa*64*|ia64*)
10700	  hardcode_direct=no
10701	  hardcode_shlibpath_var=no
10702	  ;;
10703	*)
10704	  hardcode_direct=yes
10705	  hardcode_direct_absolute=yes
10706	  export_dynamic_flag_spec='$wl-E'
10707
10708	  # hardcode_minus_L: Not really in the search PATH,
10709	  # but as the default location of the library.
10710	  hardcode_minus_L=yes
10711	  ;;
10712	esac
10713      fi
10714      ;;
10715
10716    irix5* | irix6* | nonstopux*)
10717      if test yes = "$GCC"; then
10718	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'
10719	# Try to use the -exported_symbol ld option, if it does not
10720	# work, assume that -exports_file does not work either and
10721	# implicitly export all symbols.
10722	# This should be the same for all languages, so no per-tag cache variable.
10723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10724$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10725if ${lt_cv_irix_exported_symbol+:} false; then :
10726  $as_echo_n "(cached) " >&6
10727else
10728  save_LDFLAGS=$LDFLAGS
10729	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10730	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731/* end confdefs.h.  */
10732int foo (void) { return 0; }
10733_ACEOF
10734if ac_fn_c_try_link "$LINENO"; then :
10735  lt_cv_irix_exported_symbol=yes
10736else
10737  lt_cv_irix_exported_symbol=no
10738fi
10739rm -f core conftest.err conftest.$ac_objext \
10740    conftest$ac_exeext conftest.$ac_ext
10741           LDFLAGS=$save_LDFLAGS
10742fi
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10744$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10745	if test yes = "$lt_cv_irix_exported_symbol"; then
10746          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'
10747	fi
10748      else
10749	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'
10750	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'
10751      fi
10752      archive_cmds_need_lc='no'
10753      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10754      hardcode_libdir_separator=:
10755      inherit_rpath=yes
10756      link_all_deplibs=yes
10757      ;;
10758
10759    linux*)
10760      case $cc_basename in
10761      tcc*)
10762	# Fabrice Bellard et al's Tiny C Compiler
10763	ld_shlibs=yes
10764	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10765	;;
10766      esac
10767      ;;
10768
10769    netbsd*)
10770      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10771	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10772      else
10773	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10774      fi
10775      hardcode_libdir_flag_spec='-R$libdir'
10776      hardcode_direct=yes
10777      hardcode_shlibpath_var=no
10778      ;;
10779
10780    newsos6)
10781      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782      hardcode_direct=yes
10783      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10784      hardcode_libdir_separator=:
10785      hardcode_shlibpath_var=no
10786      ;;
10787
10788    *nto* | *qnx*)
10789      ;;
10790
10791    openbsd* | bitrig*)
10792      if test -f /usr/libexec/ld.so; then
10793	hardcode_direct=yes
10794	hardcode_shlibpath_var=no
10795	hardcode_direct_absolute=yes
10796	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10797	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10798	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10799	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10800	  export_dynamic_flag_spec='$wl-E'
10801	else
10802	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10803	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10804	fi
10805      else
10806	ld_shlibs=no
10807      fi
10808      ;;
10809
10810    os2*)
10811      hardcode_libdir_flag_spec='-L$libdir'
10812      hardcode_minus_L=yes
10813      allow_undefined_flag=unsupported
10814      shrext_cmds=.dll
10815      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10816	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10817	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10818	$ECHO EXPORTS >> $output_objdir/$libname.def~
10819	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10820	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10821	emximp -o $lib $output_objdir/$libname.def'
10822      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10823	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10824	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10825	$ECHO EXPORTS >> $output_objdir/$libname.def~
10826	prefix_cmds="$SED"~
10827	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10828	  prefix_cmds="$prefix_cmds -e 1d";
10829	fi~
10830	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10831	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10832	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10833	emximp -o $lib $output_objdir/$libname.def'
10834      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10835      enable_shared_with_static_runtimes=yes
10836      ;;
10837
10838    osf3*)
10839      if test yes = "$GCC"; then
10840	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10841	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'
10842      else
10843	allow_undefined_flag=' -expect_unresolved \*'
10844	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'
10845      fi
10846      archive_cmds_need_lc='no'
10847      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10848      hardcode_libdir_separator=:
10849      ;;
10850
10851    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10852      if test yes = "$GCC"; then
10853	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10854	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'
10855	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10856      else
10857	allow_undefined_flag=' -expect_unresolved \*'
10858	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'
10859	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~
10860          $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'
10861
10862	# Both c and cxx compiler support -rpath directly
10863	hardcode_libdir_flag_spec='-rpath $libdir'
10864      fi
10865      archive_cmds_need_lc='no'
10866      hardcode_libdir_separator=:
10867      ;;
10868
10869    solaris*)
10870      no_undefined_flag=' -z defs'
10871      if test yes = "$GCC"; then
10872	wlarc='$wl'
10873	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10874	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10875          $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'
10876      else
10877	case `$CC -V 2>&1` in
10878	*"Compilers 5.0"*)
10879	  wlarc=''
10880	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10881	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10882            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10883	  ;;
10884	*)
10885	  wlarc='$wl'
10886	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10887	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10888            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10889	  ;;
10890	esac
10891      fi
10892      hardcode_libdir_flag_spec='-R$libdir'
10893      hardcode_shlibpath_var=no
10894      case $host_os in
10895      solaris2.[0-5] | solaris2.[0-5].*) ;;
10896      *)
10897	# The compiler driver will combine and reorder linker options,
10898	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10899	# but is careful enough not to reorder.
10900	# Supported since Solaris 2.6 (maybe 2.5.1?)
10901	if test yes = "$GCC"; then
10902	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10903	else
10904	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10905	fi
10906	;;
10907      esac
10908      link_all_deplibs=yes
10909      ;;
10910
10911    sunos4*)
10912      if test sequent = "$host_vendor"; then
10913	# Use $CC to link under sequent, because it throws in some extra .o
10914	# files that make .init and .fini sections work.
10915	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10916      else
10917	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10918      fi
10919      hardcode_libdir_flag_spec='-L$libdir'
10920      hardcode_direct=yes
10921      hardcode_minus_L=yes
10922      hardcode_shlibpath_var=no
10923      ;;
10924
10925    sysv4)
10926      case $host_vendor in
10927	sni)
10928	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10929	  hardcode_direct=yes # is this really true???
10930	;;
10931	siemens)
10932	  ## LD is ld it makes a PLAMLIB
10933	  ## CC just makes a GrossModule.
10934	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10935	  reload_cmds='$CC -r -o $output$reload_objs'
10936	  hardcode_direct=no
10937        ;;
10938	motorola)
10939	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10940	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10941	;;
10942      esac
10943      runpath_var='LD_RUN_PATH'
10944      hardcode_shlibpath_var=no
10945      ;;
10946
10947    sysv4.3*)
10948      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10949      hardcode_shlibpath_var=no
10950      export_dynamic_flag_spec='-Bexport'
10951      ;;
10952
10953    sysv4*MP*)
10954      if test -d /usr/nec; then
10955	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956	hardcode_shlibpath_var=no
10957	runpath_var=LD_RUN_PATH
10958	hardcode_runpath_var=yes
10959	ld_shlibs=yes
10960      fi
10961      ;;
10962
10963    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10964      no_undefined_flag='$wl-z,text'
10965      archive_cmds_need_lc=no
10966      hardcode_shlibpath_var=no
10967      runpath_var='LD_RUN_PATH'
10968
10969      if test yes = "$GCC"; then
10970	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972      else
10973	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975      fi
10976      ;;
10977
10978    sysv5* | sco3.2v5* | sco5v6*)
10979      # Note: We CANNOT use -z defs as we might desire, because we do not
10980      # link with -lc, and that would cause any symbols used from libc to
10981      # always be unresolved, which means just about no library would
10982      # ever link correctly.  If we're not using GNU ld we use -z text
10983      # though, which does catch some bad symbols but isn't as heavy-handed
10984      # as -z defs.
10985      no_undefined_flag='$wl-z,text'
10986      allow_undefined_flag='$wl-z,nodefs'
10987      archive_cmds_need_lc=no
10988      hardcode_shlibpath_var=no
10989      hardcode_libdir_flag_spec='$wl-R,$libdir'
10990      hardcode_libdir_separator=':'
10991      link_all_deplibs=yes
10992      export_dynamic_flag_spec='$wl-Bexport'
10993      runpath_var='LD_RUN_PATH'
10994
10995      if test yes = "$GCC"; then
10996	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10997	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998      else
10999	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001      fi
11002      ;;
11003
11004    uts4*)
11005      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11006      hardcode_libdir_flag_spec='-L$libdir'
11007      hardcode_shlibpath_var=no
11008      ;;
11009
11010    *)
11011      ld_shlibs=no
11012      ;;
11013    esac
11014
11015    if test sni = "$host_vendor"; then
11016      case $host in
11017      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11018	export_dynamic_flag_spec='$wl-Blargedynsym'
11019	;;
11020      esac
11021    fi
11022  fi
11023
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11025$as_echo "$ld_shlibs" >&6; }
11026test no = "$ld_shlibs" && can_build_shared=no
11027
11028with_gnu_ld=$with_gnu_ld
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044#
11045# Do we need to explicitly link libc?
11046#
11047case "x$archive_cmds_need_lc" in
11048x|xyes)
11049  # Assume -lc should be added
11050  archive_cmds_need_lc=yes
11051
11052  if test yes,yes = "$GCC,$enable_shared"; then
11053    case $archive_cmds in
11054    *'~'*)
11055      # FIXME: we may have to deal with multi-command sequences.
11056      ;;
11057    '$CC '*)
11058      # Test whether the compiler implicitly links with -lc since on some
11059      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11060      # to ld, don't add -lc before -lgcc.
11061      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11062$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11063if ${lt_cv_archive_cmds_need_lc+:} false; then :
11064  $as_echo_n "(cached) " >&6
11065else
11066  $RM conftest*
11067	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11068
11069	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11070  (eval $ac_compile) 2>&5
11071  ac_status=$?
11072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11073  test $ac_status = 0; } 2>conftest.err; then
11074	  soname=conftest
11075	  lib=conftest
11076	  libobjs=conftest.$ac_objext
11077	  deplibs=
11078	  wl=$lt_prog_compiler_wl
11079	  pic_flag=$lt_prog_compiler_pic
11080	  compiler_flags=-v
11081	  linker_flags=-v
11082	  verstring=
11083	  output_objdir=.
11084	  libname=conftest
11085	  lt_save_allow_undefined_flag=$allow_undefined_flag
11086	  allow_undefined_flag=
11087	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11088  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11089  ac_status=$?
11090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11091  test $ac_status = 0; }
11092	  then
11093	    lt_cv_archive_cmds_need_lc=no
11094	  else
11095	    lt_cv_archive_cmds_need_lc=yes
11096	  fi
11097	  allow_undefined_flag=$lt_save_allow_undefined_flag
11098	else
11099	  cat conftest.err 1>&5
11100	fi
11101	$RM conftest*
11102
11103fi
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11105$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11106      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11107      ;;
11108    esac
11109  fi
11110  ;;
11111esac
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11265$as_echo_n "checking dynamic linker characteristics... " >&6; }
11266
11267if test yes = "$GCC"; then
11268  case $host_os in
11269    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11270    *) lt_awk_arg='/^libraries:/' ;;
11271  esac
11272  case $host_os in
11273    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11274    *) lt_sed_strip_eq='s|=/|/|g' ;;
11275  esac
11276  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11277  case $lt_search_path_spec in
11278  *\;*)
11279    # if the path contains ";" then we assume it to be the separator
11280    # otherwise default to the standard path separator (i.e. ":") - it is
11281    # assumed that no part of a normal pathname contains ";" but that should
11282    # okay in the real world where ";" in dirpaths is itself problematic.
11283    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11284    ;;
11285  *)
11286    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11287    ;;
11288  esac
11289  # Ok, now we have the path, separated by spaces, we can step through it
11290  # and add multilib dir if necessary...
11291  lt_tmp_lt_search_path_spec=
11292  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11293  # ...but if some path component already ends with the multilib dir we assume
11294  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11295  case "$lt_multi_os_dir; $lt_search_path_spec " in
11296  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11297    lt_multi_os_dir=
11298    ;;
11299  esac
11300  for lt_sys_path in $lt_search_path_spec; do
11301    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11302      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11303    elif test -n "$lt_multi_os_dir"; then
11304      test -d "$lt_sys_path" && \
11305	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11306    fi
11307  done
11308  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11309BEGIN {RS = " "; FS = "/|\n";} {
11310  lt_foo = "";
11311  lt_count = 0;
11312  for (lt_i = NF; lt_i > 0; lt_i--) {
11313    if ($lt_i != "" && $lt_i != ".") {
11314      if ($lt_i == "..") {
11315        lt_count++;
11316      } else {
11317        if (lt_count == 0) {
11318          lt_foo = "/" $lt_i lt_foo;
11319        } else {
11320          lt_count--;
11321        }
11322      }
11323    }
11324  }
11325  if (lt_foo != "") { lt_freq[lt_foo]++; }
11326  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11327}'`
11328  # AWK program above erroneously prepends '/' to C:/dos/paths
11329  # for these hosts.
11330  case $host_os in
11331    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11332      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11333  esac
11334  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11335else
11336  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11337fi
11338library_names_spec=
11339libname_spec='lib$name'
11340soname_spec=
11341shrext_cmds=.so
11342postinstall_cmds=
11343postuninstall_cmds=
11344finish_cmds=
11345finish_eval=
11346shlibpath_var=
11347shlibpath_overrides_runpath=unknown
11348version_type=none
11349dynamic_linker="$host_os ld.so"
11350sys_lib_dlsearch_path_spec="/lib /usr/lib"
11351need_lib_prefix=unknown
11352hardcode_into_libs=no
11353
11354# when you set need_version to no, make sure it does not cause -set_version
11355# flags to be left without arguments
11356need_version=unknown
11357
11358
11359
11360case $host_os in
11361aix3*)
11362  version_type=linux # correct to gnu/linux during the next big refactor
11363  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11364  shlibpath_var=LIBPATH
11365
11366  # AIX 3 has no versioning support, so we append a major version to the name.
11367  soname_spec='$libname$release$shared_ext$major'
11368  ;;
11369
11370aix[4-9]*)
11371  version_type=linux # correct to gnu/linux during the next big refactor
11372  need_lib_prefix=no
11373  need_version=no
11374  hardcode_into_libs=yes
11375  if test ia64 = "$host_cpu"; then
11376    # AIX 5 supports IA64
11377    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11378    shlibpath_var=LD_LIBRARY_PATH
11379  else
11380    # With GCC up to 2.95.x, collect2 would create an import file
11381    # for dependence libraries.  The import file would start with
11382    # the line '#! .'.  This would cause the generated library to
11383    # depend on '.', always an invalid library.  This was fixed in
11384    # development snapshots of GCC prior to 3.0.
11385    case $host_os in
11386      aix4 | aix4.[01] | aix4.[01].*)
11387      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11388	   echo ' yes '
11389	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11390	:
11391      else
11392	can_build_shared=no
11393      fi
11394      ;;
11395    esac
11396    # Using Import Files as archive members, it is possible to support
11397    # filename-based versioning of shared library archives on AIX. While
11398    # this would work for both with and without runtime linking, it will
11399    # prevent static linking of such archives. So we do filename-based
11400    # shared library versioning with .so extension only, which is used
11401    # when both runtime linking and shared linking is enabled.
11402    # Unfortunately, runtime linking may impact performance, so we do
11403    # not want this to be the default eventually. Also, we use the
11404    # versioned .so libs for executables only if there is the -brtl
11405    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11406    # To allow for filename-based versioning support, we need to create
11407    # libNAME.so.V as an archive file, containing:
11408    # *) an Import File, referring to the versioned filename of the
11409    #    archive as well as the shared archive member, telling the
11410    #    bitwidth (32 or 64) of that shared object, and providing the
11411    #    list of exported symbols of that shared object, eventually
11412    #    decorated with the 'weak' keyword
11413    # *) the shared object with the F_LOADONLY flag set, to really avoid
11414    #    it being seen by the linker.
11415    # At run time we better use the real file rather than another symlink,
11416    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11417
11418    case $with_aix_soname,$aix_use_runtimelinking in
11419    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11420    # soname into executable. Probably we can add versioning support to
11421    # collect2, so additional links can be useful in future.
11422    aix,yes) # traditional libtool
11423      dynamic_linker='AIX unversionable lib.so'
11424      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11425      # instead of lib<name>.a to let people know that these are not
11426      # typical AIX shared libraries.
11427      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11428      ;;
11429    aix,no) # traditional AIX only
11430      dynamic_linker='AIX lib.a(lib.so.V)'
11431      # We preserve .a as extension for shared libraries through AIX4.2
11432      # and later when we are not doing run time linking.
11433      library_names_spec='$libname$release.a $libname.a'
11434      soname_spec='$libname$release$shared_ext$major'
11435      ;;
11436    svr4,*) # full svr4 only
11437      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11438      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11439      # We do not specify a path in Import Files, so LIBPATH fires.
11440      shlibpath_overrides_runpath=yes
11441      ;;
11442    *,yes) # both, prefer svr4
11443      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11444      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11445      # unpreferred sharedlib libNAME.a needs extra handling
11446      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11447      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11448      # We do not specify a path in Import Files, so LIBPATH fires.
11449      shlibpath_overrides_runpath=yes
11450      ;;
11451    *,no) # both, prefer aix
11452      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11453      library_names_spec='$libname$release.a $libname.a'
11454      soname_spec='$libname$release$shared_ext$major'
11455      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11456      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11457      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11458      ;;
11459    esac
11460    shlibpath_var=LIBPATH
11461  fi
11462  ;;
11463
11464amigaos*)
11465  case $host_cpu in
11466  powerpc)
11467    # Since July 2007 AmigaOS4 officially supports .so libraries.
11468    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11469    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11470    ;;
11471  m68k)
11472    library_names_spec='$libname.ixlibrary $libname.a'
11473    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11474    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11475    ;;
11476  esac
11477  ;;
11478
11479beos*)
11480  library_names_spec='$libname$shared_ext'
11481  dynamic_linker="$host_os ld.so"
11482  shlibpath_var=LIBRARY_PATH
11483  ;;
11484
11485bsdi[45]*)
11486  version_type=linux # correct to gnu/linux during the next big refactor
11487  need_version=no
11488  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11489  soname_spec='$libname$release$shared_ext$major'
11490  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11491  shlibpath_var=LD_LIBRARY_PATH
11492  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11493  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11494  # the default ld.so.conf also contains /usr/contrib/lib and
11495  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11496  # libtool to hard-code these into programs
11497  ;;
11498
11499cygwin* | mingw* | pw32* | cegcc*)
11500  version_type=windows
11501  shrext_cmds=.dll
11502  need_version=no
11503  need_lib_prefix=no
11504
11505  case $GCC,$cc_basename in
11506  yes,*)
11507    # gcc
11508    library_names_spec='$libname.dll.a'
11509    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11510    postinstall_cmds='base_file=`basename \$file`~
11511      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11512      dldir=$destdir/`dirname \$dlpath`~
11513      test -d \$dldir || mkdir -p \$dldir~
11514      $install_prog $dir/$dlname \$dldir/$dlname~
11515      chmod a+x \$dldir/$dlname~
11516      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11517        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11518      fi'
11519    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11520      dlpath=$dir/\$dldll~
11521       $RM \$dlpath'
11522    shlibpath_overrides_runpath=yes
11523
11524    case $host_os in
11525    cygwin*)
11526      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11527      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11528
11529      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11530      ;;
11531    mingw* | cegcc*)
11532      # MinGW DLLs use traditional 'lib' prefix
11533      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11534      ;;
11535    pw32*)
11536      # pw32 DLLs use 'pw' prefix rather than 'lib'
11537      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11538      ;;
11539    esac
11540    dynamic_linker='Win32 ld.exe'
11541    ;;
11542
11543  *,cl*)
11544    # Native MSVC
11545    libname_spec='$name'
11546    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11547    library_names_spec='$libname.dll.lib'
11548
11549    case $build_os in
11550    mingw*)
11551      sys_lib_search_path_spec=
11552      lt_save_ifs=$IFS
11553      IFS=';'
11554      for lt_path in $LIB
11555      do
11556        IFS=$lt_save_ifs
11557        # Let DOS variable expansion print the short 8.3 style file name.
11558        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11559        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11560      done
11561      IFS=$lt_save_ifs
11562      # Convert to MSYS style.
11563      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11564      ;;
11565    cygwin*)
11566      # Convert to unix form, then to dos form, then back to unix form
11567      # but this time dos style (no spaces!) so that the unix form looks
11568      # like /cygdrive/c/PROGRA~1:/cygdr...
11569      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11570      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11571      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11572      ;;
11573    *)
11574      sys_lib_search_path_spec=$LIB
11575      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11576        # It is most probably a Windows format PATH.
11577        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11578      else
11579        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11580      fi
11581      # FIXME: find the short name or the path components, as spaces are
11582      # common. (e.g. "Program Files" -> "PROGRA~1")
11583      ;;
11584    esac
11585
11586    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11587    postinstall_cmds='base_file=`basename \$file`~
11588      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11589      dldir=$destdir/`dirname \$dlpath`~
11590      test -d \$dldir || mkdir -p \$dldir~
11591      $install_prog $dir/$dlname \$dldir/$dlname'
11592    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11593      dlpath=$dir/\$dldll~
11594       $RM \$dlpath'
11595    shlibpath_overrides_runpath=yes
11596    dynamic_linker='Win32 link.exe'
11597    ;;
11598
11599  *)
11600    # Assume MSVC wrapper
11601    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11602    dynamic_linker='Win32 ld.exe'
11603    ;;
11604  esac
11605  # FIXME: first we should search . and the directory the executable is in
11606  shlibpath_var=PATH
11607  ;;
11608
11609darwin* | rhapsody*)
11610  dynamic_linker="$host_os dyld"
11611  version_type=darwin
11612  need_lib_prefix=no
11613  need_version=no
11614  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11615  soname_spec='$libname$release$major$shared_ext'
11616  shlibpath_overrides_runpath=yes
11617  shlibpath_var=DYLD_LIBRARY_PATH
11618  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11619
11620  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11621  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11622  ;;
11623
11624dgux*)
11625  version_type=linux # correct to gnu/linux during the next big refactor
11626  need_lib_prefix=no
11627  need_version=no
11628  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11629  soname_spec='$libname$release$shared_ext$major'
11630  shlibpath_var=LD_LIBRARY_PATH
11631  ;;
11632
11633freebsd* | dragonfly*)
11634  # DragonFly does not have aout.  When/if they implement a new
11635  # versioning mechanism, adjust this.
11636  if test -x /usr/bin/objformat; then
11637    objformat=`/usr/bin/objformat`
11638  else
11639    case $host_os in
11640    freebsd[23].*) objformat=aout ;;
11641    *) objformat=elf ;;
11642    esac
11643  fi
11644  version_type=freebsd-$objformat
11645  case $version_type in
11646    freebsd-elf*)
11647      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11648      soname_spec='$libname$release$shared_ext$major'
11649      need_version=no
11650      need_lib_prefix=no
11651      ;;
11652    freebsd-*)
11653      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11654      need_version=yes
11655      ;;
11656  esac
11657  shlibpath_var=LD_LIBRARY_PATH
11658  case $host_os in
11659  freebsd2.*)
11660    shlibpath_overrides_runpath=yes
11661    ;;
11662  freebsd3.[01]* | freebsdelf3.[01]*)
11663    shlibpath_overrides_runpath=yes
11664    hardcode_into_libs=yes
11665    ;;
11666  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11667  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11668    shlibpath_overrides_runpath=no
11669    hardcode_into_libs=yes
11670    ;;
11671  *) # from 4.6 on, and DragonFly
11672    shlibpath_overrides_runpath=yes
11673    hardcode_into_libs=yes
11674    ;;
11675  esac
11676  ;;
11677
11678haiku*)
11679  version_type=linux # correct to gnu/linux during the next big refactor
11680  need_lib_prefix=no
11681  need_version=no
11682  dynamic_linker="$host_os runtime_loader"
11683  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11684  soname_spec='$libname$release$shared_ext$major'
11685  shlibpath_var=LIBRARY_PATH
11686  shlibpath_overrides_runpath=no
11687  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11688  hardcode_into_libs=yes
11689  ;;
11690
11691hpux9* | hpux10* | hpux11*)
11692  # Give a soname corresponding to the major version so that dld.sl refuses to
11693  # link against other versions.
11694  version_type=sunos
11695  need_lib_prefix=no
11696  need_version=no
11697  case $host_cpu in
11698  ia64*)
11699    shrext_cmds='.so'
11700    hardcode_into_libs=yes
11701    dynamic_linker="$host_os dld.so"
11702    shlibpath_var=LD_LIBRARY_PATH
11703    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11704    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11705    soname_spec='$libname$release$shared_ext$major'
11706    if test 32 = "$HPUX_IA64_MODE"; then
11707      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11708      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11709    else
11710      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11711      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11712    fi
11713    ;;
11714  hppa*64*)
11715    shrext_cmds='.sl'
11716    hardcode_into_libs=yes
11717    dynamic_linker="$host_os dld.sl"
11718    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11719    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11720    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11721    soname_spec='$libname$release$shared_ext$major'
11722    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11723    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11724    ;;
11725  *)
11726    shrext_cmds='.sl'
11727    dynamic_linker="$host_os dld.sl"
11728    shlibpath_var=SHLIB_PATH
11729    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11730    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11731    soname_spec='$libname$release$shared_ext$major'
11732    ;;
11733  esac
11734  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11735  postinstall_cmds='chmod 555 $lib'
11736  # or fails outright, so override atomically:
11737  install_override_mode=555
11738  ;;
11739
11740interix[3-9]*)
11741  version_type=linux # correct to gnu/linux during the next big refactor
11742  need_lib_prefix=no
11743  need_version=no
11744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11745  soname_spec='$libname$release$shared_ext$major'
11746  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11747  shlibpath_var=LD_LIBRARY_PATH
11748  shlibpath_overrides_runpath=no
11749  hardcode_into_libs=yes
11750  ;;
11751
11752irix5* | irix6* | nonstopux*)
11753  case $host_os in
11754    nonstopux*) version_type=nonstopux ;;
11755    *)
11756	if test yes = "$lt_cv_prog_gnu_ld"; then
11757		version_type=linux # correct to gnu/linux during the next big refactor
11758	else
11759		version_type=irix
11760	fi ;;
11761  esac
11762  need_lib_prefix=no
11763  need_version=no
11764  soname_spec='$libname$release$shared_ext$major'
11765  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11766  case $host_os in
11767  irix5* | nonstopux*)
11768    libsuff= shlibsuff=
11769    ;;
11770  *)
11771    case $LD in # libtool.m4 will add one of these switches to LD
11772    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11773      libsuff= shlibsuff= libmagic=32-bit;;
11774    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11775      libsuff=32 shlibsuff=N32 libmagic=N32;;
11776    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11777      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11778    *) libsuff= shlibsuff= libmagic=never-match;;
11779    esac
11780    ;;
11781  esac
11782  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11783  shlibpath_overrides_runpath=no
11784  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11785  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11786  hardcode_into_libs=yes
11787  ;;
11788
11789# No shared lib support for Linux oldld, aout, or coff.
11790linux*oldld* | linux*aout* | linux*coff*)
11791  dynamic_linker=no
11792  ;;
11793
11794linux*android*)
11795  version_type=none # Android doesn't support versioned libraries.
11796  need_lib_prefix=no
11797  need_version=no
11798  library_names_spec='$libname$release$shared_ext'
11799  soname_spec='$libname$release$shared_ext'
11800  finish_cmds=
11801  shlibpath_var=LD_LIBRARY_PATH
11802  shlibpath_overrides_runpath=yes
11803
11804  # This implies no fast_install, which is unacceptable.
11805  # Some rework will be needed to allow for fast_install
11806  # before this can be enabled.
11807  hardcode_into_libs=yes
11808
11809  dynamic_linker='Android linker'
11810  # Don't embed -rpath directories since the linker doesn't support them.
11811  hardcode_libdir_flag_spec='-L$libdir'
11812  ;;
11813
11814# This must be glibc/ELF.
11815linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11816  version_type=linux # correct to gnu/linux during the next big refactor
11817  need_lib_prefix=no
11818  need_version=no
11819  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11820  soname_spec='$libname$release$shared_ext$major'
11821  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11822  shlibpath_var=LD_LIBRARY_PATH
11823  shlibpath_overrides_runpath=no
11824
11825  # Some binutils ld are patched to set DT_RUNPATH
11826  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11827  $as_echo_n "(cached) " >&6
11828else
11829  lt_cv_shlibpath_overrides_runpath=no
11830    save_LDFLAGS=$LDFLAGS
11831    save_libdir=$libdir
11832    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11833	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11834    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835/* end confdefs.h.  */
11836
11837int
11838main ()
11839{
11840
11841  ;
11842  return 0;
11843}
11844_ACEOF
11845if ac_fn_c_try_link "$LINENO"; then :
11846  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11847  lt_cv_shlibpath_overrides_runpath=yes
11848fi
11849fi
11850rm -f core conftest.err conftest.$ac_objext \
11851    conftest$ac_exeext conftest.$ac_ext
11852    LDFLAGS=$save_LDFLAGS
11853    libdir=$save_libdir
11854
11855fi
11856
11857  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11858
11859  # This implies no fast_install, which is unacceptable.
11860  # Some rework will be needed to allow for fast_install
11861  # before this can be enabled.
11862  hardcode_into_libs=yes
11863
11864  # Add ABI-specific directories to the system library path.
11865  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11866
11867  # Ideally, we could use ldconfig to report *all* directores which are
11868  # searched for libraries, however this is still not possible.  Aside from not
11869  # being certain /sbin/ldconfig is available, command
11870  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11871  # even though it is searched at run-time.  Try to do the best guess by
11872  # appending ld.so.conf contents (and includes) to the search path.
11873  if test -f /etc/ld.so.conf; then
11874    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' ' '`
11875    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11876  fi
11877
11878  # We used to test for /lib/ld.so.1 and disable shared libraries on
11879  # powerpc, because MkLinux only supported shared libraries with the
11880  # GNU dynamic linker.  Since this was broken with cross compilers,
11881  # most powerpc-linux boxes support dynamic linking these days and
11882  # people can always --disable-shared, the test was removed, and we
11883  # assume the GNU/Linux dynamic linker is in use.
11884  dynamic_linker='GNU/Linux ld.so'
11885  ;;
11886
11887netbsd*)
11888  version_type=sunos
11889  need_lib_prefix=no
11890  need_version=no
11891  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11892    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11893    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11894    dynamic_linker='NetBSD (a.out) ld.so'
11895  else
11896    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11897    soname_spec='$libname$release$shared_ext$major'
11898    dynamic_linker='NetBSD ld.elf_so'
11899  fi
11900  shlibpath_var=LD_LIBRARY_PATH
11901  shlibpath_overrides_runpath=yes
11902  hardcode_into_libs=yes
11903  ;;
11904
11905newsos6)
11906  version_type=linux # correct to gnu/linux during the next big refactor
11907  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11908  shlibpath_var=LD_LIBRARY_PATH
11909  shlibpath_overrides_runpath=yes
11910  ;;
11911
11912*nto* | *qnx*)
11913  version_type=qnx
11914  need_lib_prefix=no
11915  need_version=no
11916  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11917  soname_spec='$libname$release$shared_ext$major'
11918  shlibpath_var=LD_LIBRARY_PATH
11919  shlibpath_overrides_runpath=no
11920  hardcode_into_libs=yes
11921  dynamic_linker='ldqnx.so'
11922  ;;
11923
11924openbsd* | bitrig*)
11925  version_type=sunos
11926  sys_lib_dlsearch_path_spec=/usr/lib
11927  need_lib_prefix=no
11928  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11929    need_version=no
11930  else
11931    need_version=yes
11932  fi
11933  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11934  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11935  shlibpath_var=LD_LIBRARY_PATH
11936  shlibpath_overrides_runpath=yes
11937  ;;
11938
11939os2*)
11940  libname_spec='$name'
11941  version_type=windows
11942  shrext_cmds=.dll
11943  need_version=no
11944  need_lib_prefix=no
11945  # OS/2 can only load a DLL with a base name of 8 characters or less.
11946  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11947    v=$($ECHO $release$versuffix | tr -d .-);
11948    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11949    $ECHO $n$v`$shared_ext'
11950  library_names_spec='${libname}_dll.$libext'
11951  dynamic_linker='OS/2 ld.exe'
11952  shlibpath_var=BEGINLIBPATH
11953  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11954  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11955  postinstall_cmds='base_file=`basename \$file`~
11956    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11957    dldir=$destdir/`dirname \$dlpath`~
11958    test -d \$dldir || mkdir -p \$dldir~
11959    $install_prog $dir/$dlname \$dldir/$dlname~
11960    chmod a+x \$dldir/$dlname~
11961    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11962      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11963    fi'
11964  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11965    dlpath=$dir/\$dldll~
11966    $RM \$dlpath'
11967  ;;
11968
11969osf3* | osf4* | osf5*)
11970  version_type=osf
11971  need_lib_prefix=no
11972  need_version=no
11973  soname_spec='$libname$release$shared_ext$major'
11974  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11975  shlibpath_var=LD_LIBRARY_PATH
11976  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11977  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11978  ;;
11979
11980rdos*)
11981  dynamic_linker=no
11982  ;;
11983
11984solaris*)
11985  version_type=linux # correct to gnu/linux during the next big refactor
11986  need_lib_prefix=no
11987  need_version=no
11988  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11989  soname_spec='$libname$release$shared_ext$major'
11990  shlibpath_var=LD_LIBRARY_PATH
11991  shlibpath_overrides_runpath=yes
11992  hardcode_into_libs=yes
11993  # ldd complains unless libraries are executable
11994  postinstall_cmds='chmod +x $lib'
11995  ;;
11996
11997sunos4*)
11998  version_type=sunos
11999  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12000  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12001  shlibpath_var=LD_LIBRARY_PATH
12002  shlibpath_overrides_runpath=yes
12003  if test yes = "$with_gnu_ld"; then
12004    need_lib_prefix=no
12005  fi
12006  need_version=yes
12007  ;;
12008
12009sysv4 | sysv4.3*)
12010  version_type=linux # correct to gnu/linux during the next big refactor
12011  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12012  soname_spec='$libname$release$shared_ext$major'
12013  shlibpath_var=LD_LIBRARY_PATH
12014  case $host_vendor in
12015    sni)
12016      shlibpath_overrides_runpath=no
12017      need_lib_prefix=no
12018      runpath_var=LD_RUN_PATH
12019      ;;
12020    siemens)
12021      need_lib_prefix=no
12022      ;;
12023    motorola)
12024      need_lib_prefix=no
12025      need_version=no
12026      shlibpath_overrides_runpath=no
12027      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12028      ;;
12029  esac
12030  ;;
12031
12032sysv4*MP*)
12033  if test -d /usr/nec; then
12034    version_type=linux # correct to gnu/linux during the next big refactor
12035    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12036    soname_spec='$libname$shared_ext.$major'
12037    shlibpath_var=LD_LIBRARY_PATH
12038  fi
12039  ;;
12040
12041sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12042  version_type=sco
12043  need_lib_prefix=no
12044  need_version=no
12045  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12046  soname_spec='$libname$release$shared_ext$major'
12047  shlibpath_var=LD_LIBRARY_PATH
12048  shlibpath_overrides_runpath=yes
12049  hardcode_into_libs=yes
12050  if test yes = "$with_gnu_ld"; then
12051    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12052  else
12053    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12054    case $host_os in
12055      sco3.2v5*)
12056        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12057	;;
12058    esac
12059  fi
12060  sys_lib_dlsearch_path_spec='/usr/lib'
12061  ;;
12062
12063tpf*)
12064  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12065  version_type=linux # correct to gnu/linux during the next big refactor
12066  need_lib_prefix=no
12067  need_version=no
12068  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12069  shlibpath_var=LD_LIBRARY_PATH
12070  shlibpath_overrides_runpath=no
12071  hardcode_into_libs=yes
12072  ;;
12073
12074uts4*)
12075  version_type=linux # correct to gnu/linux during the next big refactor
12076  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12077  soname_spec='$libname$release$shared_ext$major'
12078  shlibpath_var=LD_LIBRARY_PATH
12079  ;;
12080
12081*)
12082  dynamic_linker=no
12083  ;;
12084esac
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12086$as_echo "$dynamic_linker" >&6; }
12087test no = "$dynamic_linker" && can_build_shared=no
12088
12089variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12090if test yes = "$GCC"; then
12091  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12092fi
12093
12094if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12095  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12096fi
12097
12098if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12099  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12100fi
12101
12102# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12103configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12104
12105# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12106func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12107
12108# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12109configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12208$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12209hardcode_action=
12210if test -n "$hardcode_libdir_flag_spec" ||
12211   test -n "$runpath_var" ||
12212   test yes = "$hardcode_automatic"; then
12213
12214  # We can hardcode non-existent directories.
12215  if test no != "$hardcode_direct" &&
12216     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12217     # have to relink, otherwise we might link with an installed library
12218     # when we should be linking with a yet-to-be-installed one
12219     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12220     test no != "$hardcode_minus_L"; then
12221    # Linking always hardcodes the temporary library directory.
12222    hardcode_action=relink
12223  else
12224    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12225    hardcode_action=immediate
12226  fi
12227else
12228  # We cannot hardcode anything, or else we can only hardcode existing
12229  # directories.
12230  hardcode_action=unsupported
12231fi
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12233$as_echo "$hardcode_action" >&6; }
12234
12235if test relink = "$hardcode_action" ||
12236   test yes = "$inherit_rpath"; then
12237  # Fast installation is not supported
12238  enable_fast_install=no
12239elif test yes = "$shlibpath_overrides_runpath" ||
12240     test no = "$enable_shared"; then
12241  # Fast installation is not necessary
12242  enable_fast_install=needless
12243fi
12244
12245
12246
12247
12248
12249
12250  if test yes != "$enable_dlopen"; then
12251  enable_dlopen=unknown
12252  enable_dlopen_self=unknown
12253  enable_dlopen_self_static=unknown
12254else
12255  lt_cv_dlopen=no
12256  lt_cv_dlopen_libs=
12257
12258  case $host_os in
12259  beos*)
12260    lt_cv_dlopen=load_add_on
12261    lt_cv_dlopen_libs=
12262    lt_cv_dlopen_self=yes
12263    ;;
12264
12265  mingw* | pw32* | cegcc*)
12266    lt_cv_dlopen=LoadLibrary
12267    lt_cv_dlopen_libs=
12268    ;;
12269
12270  cygwin*)
12271    lt_cv_dlopen=dlopen
12272    lt_cv_dlopen_libs=
12273    ;;
12274
12275  darwin*)
12276    # if libdl is installed we need to link against it
12277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12278$as_echo_n "checking for dlopen in -ldl... " >&6; }
12279if ${ac_cv_lib_dl_dlopen+:} false; then :
12280  $as_echo_n "(cached) " >&6
12281else
12282  ac_check_lib_save_LIBS=$LIBS
12283LIBS="-ldl  $LIBS"
12284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285/* end confdefs.h.  */
12286
12287/* Override any GCC internal prototype to avoid an error.
12288   Use char because int might match the return type of a GCC
12289   builtin and then its argument prototype would still apply.  */
12290#ifdef __cplusplus
12291extern "C"
12292#endif
12293char dlopen ();
12294int
12295main ()
12296{
12297return dlopen ();
12298  ;
12299  return 0;
12300}
12301_ACEOF
12302if ac_fn_c_try_link "$LINENO"; then :
12303  ac_cv_lib_dl_dlopen=yes
12304else
12305  ac_cv_lib_dl_dlopen=no
12306fi
12307rm -f core conftest.err conftest.$ac_objext \
12308    conftest$ac_exeext conftest.$ac_ext
12309LIBS=$ac_check_lib_save_LIBS
12310fi
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12312$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12313if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12314  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12315else
12316
12317    lt_cv_dlopen=dyld
12318    lt_cv_dlopen_libs=
12319    lt_cv_dlopen_self=yes
12320
12321fi
12322
12323    ;;
12324
12325  tpf*)
12326    # Don't try to run any link tests for TPF.  We know it's impossible
12327    # because TPF is a cross-compiler, and we know how we open DSOs.
12328    lt_cv_dlopen=dlopen
12329    lt_cv_dlopen_libs=
12330    lt_cv_dlopen_self=no
12331    ;;
12332
12333  *)
12334    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12335if test "x$ac_cv_func_shl_load" = xyes; then :
12336  lt_cv_dlopen=shl_load
12337else
12338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12339$as_echo_n "checking for shl_load in -ldld... " >&6; }
12340if ${ac_cv_lib_dld_shl_load+:} false; then :
12341  $as_echo_n "(cached) " >&6
12342else
12343  ac_check_lib_save_LIBS=$LIBS
12344LIBS="-ldld  $LIBS"
12345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346/* end confdefs.h.  */
12347
12348/* Override any GCC internal prototype to avoid an error.
12349   Use char because int might match the return type of a GCC
12350   builtin and then its argument prototype would still apply.  */
12351#ifdef __cplusplus
12352extern "C"
12353#endif
12354char shl_load ();
12355int
12356main ()
12357{
12358return shl_load ();
12359  ;
12360  return 0;
12361}
12362_ACEOF
12363if ac_fn_c_try_link "$LINENO"; then :
12364  ac_cv_lib_dld_shl_load=yes
12365else
12366  ac_cv_lib_dld_shl_load=no
12367fi
12368rm -f core conftest.err conftest.$ac_objext \
12369    conftest$ac_exeext conftest.$ac_ext
12370LIBS=$ac_check_lib_save_LIBS
12371fi
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12373$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12374if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12375  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12376else
12377  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12378if test "x$ac_cv_func_dlopen" = xyes; then :
12379  lt_cv_dlopen=dlopen
12380else
12381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12382$as_echo_n "checking for dlopen in -ldl... " >&6; }
12383if ${ac_cv_lib_dl_dlopen+:} false; then :
12384  $as_echo_n "(cached) " >&6
12385else
12386  ac_check_lib_save_LIBS=$LIBS
12387LIBS="-ldl  $LIBS"
12388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389/* end confdefs.h.  */
12390
12391/* Override any GCC internal prototype to avoid an error.
12392   Use char because int might match the return type of a GCC
12393   builtin and then its argument prototype would still apply.  */
12394#ifdef __cplusplus
12395extern "C"
12396#endif
12397char dlopen ();
12398int
12399main ()
12400{
12401return dlopen ();
12402  ;
12403  return 0;
12404}
12405_ACEOF
12406if ac_fn_c_try_link "$LINENO"; then :
12407  ac_cv_lib_dl_dlopen=yes
12408else
12409  ac_cv_lib_dl_dlopen=no
12410fi
12411rm -f core conftest.err conftest.$ac_objext \
12412    conftest$ac_exeext conftest.$ac_ext
12413LIBS=$ac_check_lib_save_LIBS
12414fi
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12416$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12417if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12418  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12419else
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12421$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12422if ${ac_cv_lib_svld_dlopen+:} false; then :
12423  $as_echo_n "(cached) " >&6
12424else
12425  ac_check_lib_save_LIBS=$LIBS
12426LIBS="-lsvld  $LIBS"
12427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428/* end confdefs.h.  */
12429
12430/* Override any GCC internal prototype to avoid an error.
12431   Use char because int might match the return type of a GCC
12432   builtin and then its argument prototype would still apply.  */
12433#ifdef __cplusplus
12434extern "C"
12435#endif
12436char dlopen ();
12437int
12438main ()
12439{
12440return dlopen ();
12441  ;
12442  return 0;
12443}
12444_ACEOF
12445if ac_fn_c_try_link "$LINENO"; then :
12446  ac_cv_lib_svld_dlopen=yes
12447else
12448  ac_cv_lib_svld_dlopen=no
12449fi
12450rm -f core conftest.err conftest.$ac_objext \
12451    conftest$ac_exeext conftest.$ac_ext
12452LIBS=$ac_check_lib_save_LIBS
12453fi
12454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12455$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12456if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12457  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12458else
12459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12460$as_echo_n "checking for dld_link in -ldld... " >&6; }
12461if ${ac_cv_lib_dld_dld_link+:} false; then :
12462  $as_echo_n "(cached) " >&6
12463else
12464  ac_check_lib_save_LIBS=$LIBS
12465LIBS="-ldld  $LIBS"
12466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467/* end confdefs.h.  */
12468
12469/* Override any GCC internal prototype to avoid an error.
12470   Use char because int might match the return type of a GCC
12471   builtin and then its argument prototype would still apply.  */
12472#ifdef __cplusplus
12473extern "C"
12474#endif
12475char dld_link ();
12476int
12477main ()
12478{
12479return dld_link ();
12480  ;
12481  return 0;
12482}
12483_ACEOF
12484if ac_fn_c_try_link "$LINENO"; then :
12485  ac_cv_lib_dld_dld_link=yes
12486else
12487  ac_cv_lib_dld_dld_link=no
12488fi
12489rm -f core conftest.err conftest.$ac_objext \
12490    conftest$ac_exeext conftest.$ac_ext
12491LIBS=$ac_check_lib_save_LIBS
12492fi
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12494$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12495if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12496  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12497fi
12498
12499
12500fi
12501
12502
12503fi
12504
12505
12506fi
12507
12508
12509fi
12510
12511
12512fi
12513
12514    ;;
12515  esac
12516
12517  if test no = "$lt_cv_dlopen"; then
12518    enable_dlopen=no
12519  else
12520    enable_dlopen=yes
12521  fi
12522
12523  case $lt_cv_dlopen in
12524  dlopen)
12525    save_CPPFLAGS=$CPPFLAGS
12526    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12527
12528    save_LDFLAGS=$LDFLAGS
12529    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12530
12531    save_LIBS=$LIBS
12532    LIBS="$lt_cv_dlopen_libs $LIBS"
12533
12534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12535$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12536if ${lt_cv_dlopen_self+:} false; then :
12537  $as_echo_n "(cached) " >&6
12538else
12539  	  if test yes = "$cross_compiling"; then :
12540  lt_cv_dlopen_self=cross
12541else
12542  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12543  lt_status=$lt_dlunknown
12544  cat > conftest.$ac_ext <<_LT_EOF
12545#line $LINENO "configure"
12546#include "confdefs.h"
12547
12548#if HAVE_DLFCN_H
12549#include <dlfcn.h>
12550#endif
12551
12552#include <stdio.h>
12553
12554#ifdef RTLD_GLOBAL
12555#  define LT_DLGLOBAL		RTLD_GLOBAL
12556#else
12557#  ifdef DL_GLOBAL
12558#    define LT_DLGLOBAL		DL_GLOBAL
12559#  else
12560#    define LT_DLGLOBAL		0
12561#  endif
12562#endif
12563
12564/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12565   find out it does not work in some platform. */
12566#ifndef LT_DLLAZY_OR_NOW
12567#  ifdef RTLD_LAZY
12568#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12569#  else
12570#    ifdef DL_LAZY
12571#      define LT_DLLAZY_OR_NOW		DL_LAZY
12572#    else
12573#      ifdef RTLD_NOW
12574#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12575#      else
12576#        ifdef DL_NOW
12577#          define LT_DLLAZY_OR_NOW	DL_NOW
12578#        else
12579#          define LT_DLLAZY_OR_NOW	0
12580#        endif
12581#      endif
12582#    endif
12583#  endif
12584#endif
12585
12586/* When -fvisibility=hidden is used, assume the code has been annotated
12587   correspondingly for the symbols needed.  */
12588#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12589int fnord () __attribute__((visibility("default")));
12590#endif
12591
12592int fnord () { return 42; }
12593int main ()
12594{
12595  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12596  int status = $lt_dlunknown;
12597
12598  if (self)
12599    {
12600      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12601      else
12602        {
12603	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12604          else puts (dlerror ());
12605	}
12606      /* dlclose (self); */
12607    }
12608  else
12609    puts (dlerror ());
12610
12611  return status;
12612}
12613_LT_EOF
12614  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12615  (eval $ac_link) 2>&5
12616  ac_status=$?
12617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12618  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12619    (./conftest; exit; ) >&5 2>/dev/null
12620    lt_status=$?
12621    case x$lt_status in
12622      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12623      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12624      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12625    esac
12626  else :
12627    # compilation failed
12628    lt_cv_dlopen_self=no
12629  fi
12630fi
12631rm -fr conftest*
12632
12633
12634fi
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12636$as_echo "$lt_cv_dlopen_self" >&6; }
12637
12638    if test yes = "$lt_cv_dlopen_self"; then
12639      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12640      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12641$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12642if ${lt_cv_dlopen_self_static+:} false; then :
12643  $as_echo_n "(cached) " >&6
12644else
12645  	  if test yes = "$cross_compiling"; then :
12646  lt_cv_dlopen_self_static=cross
12647else
12648  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12649  lt_status=$lt_dlunknown
12650  cat > conftest.$ac_ext <<_LT_EOF
12651#line $LINENO "configure"
12652#include "confdefs.h"
12653
12654#if HAVE_DLFCN_H
12655#include <dlfcn.h>
12656#endif
12657
12658#include <stdio.h>
12659
12660#ifdef RTLD_GLOBAL
12661#  define LT_DLGLOBAL		RTLD_GLOBAL
12662#else
12663#  ifdef DL_GLOBAL
12664#    define LT_DLGLOBAL		DL_GLOBAL
12665#  else
12666#    define LT_DLGLOBAL		0
12667#  endif
12668#endif
12669
12670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12671   find out it does not work in some platform. */
12672#ifndef LT_DLLAZY_OR_NOW
12673#  ifdef RTLD_LAZY
12674#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12675#  else
12676#    ifdef DL_LAZY
12677#      define LT_DLLAZY_OR_NOW		DL_LAZY
12678#    else
12679#      ifdef RTLD_NOW
12680#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12681#      else
12682#        ifdef DL_NOW
12683#          define LT_DLLAZY_OR_NOW	DL_NOW
12684#        else
12685#          define LT_DLLAZY_OR_NOW	0
12686#        endif
12687#      endif
12688#    endif
12689#  endif
12690#endif
12691
12692/* When -fvisibility=hidden is used, assume the code has been annotated
12693   correspondingly for the symbols needed.  */
12694#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12695int fnord () __attribute__((visibility("default")));
12696#endif
12697
12698int fnord () { return 42; }
12699int main ()
12700{
12701  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12702  int status = $lt_dlunknown;
12703
12704  if (self)
12705    {
12706      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12707      else
12708        {
12709	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12710          else puts (dlerror ());
12711	}
12712      /* dlclose (self); */
12713    }
12714  else
12715    puts (dlerror ());
12716
12717  return status;
12718}
12719_LT_EOF
12720  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12721  (eval $ac_link) 2>&5
12722  ac_status=$?
12723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12724  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12725    (./conftest; exit; ) >&5 2>/dev/null
12726    lt_status=$?
12727    case x$lt_status in
12728      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12729      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12730      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12731    esac
12732  else :
12733    # compilation failed
12734    lt_cv_dlopen_self_static=no
12735  fi
12736fi
12737rm -fr conftest*
12738
12739
12740fi
12741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12742$as_echo "$lt_cv_dlopen_self_static" >&6; }
12743    fi
12744
12745    CPPFLAGS=$save_CPPFLAGS
12746    LDFLAGS=$save_LDFLAGS
12747    LIBS=$save_LIBS
12748    ;;
12749  esac
12750
12751  case $lt_cv_dlopen_self in
12752  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12753  *) enable_dlopen_self=unknown ;;
12754  esac
12755
12756  case $lt_cv_dlopen_self_static in
12757  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12758  *) enable_dlopen_self_static=unknown ;;
12759  esac
12760fi
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778striplib=
12779old_striplib=
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12781$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12782if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12783  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12784  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786$as_echo "yes" >&6; }
12787else
12788# FIXME - insert some real tests, host_os isn't really good enough
12789  case $host_os in
12790  darwin*)
12791    if test -n "$STRIP"; then
12792      striplib="$STRIP -x"
12793      old_striplib="$STRIP -S"
12794      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12795$as_echo "yes" >&6; }
12796    else
12797      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798$as_echo "no" >&6; }
12799    fi
12800    ;;
12801  *)
12802    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803$as_echo "no" >&6; }
12804    ;;
12805  esac
12806fi
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819  # Report what library types will actually be built
12820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12821$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12823$as_echo "$can_build_shared" >&6; }
12824
12825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12826$as_echo_n "checking whether to build shared libraries... " >&6; }
12827  test no = "$can_build_shared" && enable_shared=no
12828
12829  # On AIX, shared libraries and static libraries use the same namespace, and
12830  # are all built from PIC.
12831  case $host_os in
12832  aix3*)
12833    test yes = "$enable_shared" && enable_static=no
12834    if test -n "$RANLIB"; then
12835      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12836      postinstall_cmds='$RANLIB $lib'
12837    fi
12838    ;;
12839
12840  aix[4-9]*)
12841    if test ia64 != "$host_cpu"; then
12842      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12843      yes,aix,yes) ;;			# shared object as lib.so file only
12844      yes,svr4,*) ;;			# shared object as lib.so archive member only
12845      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12846      esac
12847    fi
12848    ;;
12849  esac
12850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12851$as_echo "$enable_shared" >&6; }
12852
12853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12854$as_echo_n "checking whether to build static libraries... " >&6; }
12855  # Make sure either enable_shared or enable_static is yes.
12856  test yes = "$enable_shared" || enable_static=yes
12857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12858$as_echo "$enable_static" >&6; }
12859
12860
12861
12862
12863fi
12864ac_ext=c
12865ac_cpp='$CPP $CPPFLAGS'
12866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12868ac_compiler_gnu=$ac_cv_c_compiler_gnu
12869
12870CC=$lt_save_CC
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886        ac_config_commands="$ac_config_commands libtool"
12887
12888
12889
12890
12891# Only expand once:
12892
12893
12894
12895# Require xorg-macros minimum of 1.18 - Initial version
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12908$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12909if ${ac_cv_prog_cc_c99+:} false; then :
12910  $as_echo_n "(cached) " >&6
12911else
12912  ac_cv_prog_cc_c99=no
12913ac_save_CC=$CC
12914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915/* end confdefs.h.  */
12916#include <stdarg.h>
12917#include <stdbool.h>
12918#include <stdlib.h>
12919#include <wchar.h>
12920#include <stdio.h>
12921
12922// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12923#define debug(...) fprintf (stderr, __VA_ARGS__)
12924#define showlist(...) puts (#__VA_ARGS__)
12925#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12926static void
12927test_varargs_macros (void)
12928{
12929  int x = 1234;
12930  int y = 5678;
12931  debug ("Flag");
12932  debug ("X = %d\n", x);
12933  showlist (The first, second, and third items.);
12934  report (x>y, "x is %d but y is %d", x, y);
12935}
12936
12937// Check long long types.
12938#define BIG64 18446744073709551615ull
12939#define BIG32 4294967295ul
12940#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12941#if !BIG_OK
12942  your preprocessor is broken;
12943#endif
12944#if BIG_OK
12945#else
12946  your preprocessor is broken;
12947#endif
12948static long long int bignum = -9223372036854775807LL;
12949static unsigned long long int ubignum = BIG64;
12950
12951struct incomplete_array
12952{
12953  int datasize;
12954  double data[];
12955};
12956
12957struct named_init {
12958  int number;
12959  const wchar_t *name;
12960  double average;
12961};
12962
12963typedef const char *ccp;
12964
12965static inline int
12966test_restrict (ccp restrict text)
12967{
12968  // See if C++-style comments work.
12969  // Iterate through items via the restricted pointer.
12970  // Also check for declarations in for loops.
12971  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12972    continue;
12973  return 0;
12974}
12975
12976// Check varargs and va_copy.
12977static void
12978test_varargs (const char *format, ...)
12979{
12980  va_list args;
12981  va_start (args, format);
12982  va_list args_copy;
12983  va_copy (args_copy, args);
12984
12985  const char *str;
12986  int number;
12987  float fnumber;
12988
12989  while (*format)
12990    {
12991      switch (*format++)
12992	{
12993	case 's': // string
12994	  str = va_arg (args_copy, const char *);
12995	  break;
12996	case 'd': // int
12997	  number = va_arg (args_copy, int);
12998	  break;
12999	case 'f': // float
13000	  fnumber = va_arg (args_copy, double);
13001	  break;
13002	default:
13003	  break;
13004	}
13005    }
13006  va_end (args_copy);
13007  va_end (args);
13008}
13009
13010int
13011main ()
13012{
13013
13014  // Check bool.
13015  _Bool success = false;
13016
13017  // Check restrict.
13018  if (test_restrict ("String literal") == 0)
13019    success = true;
13020  char *restrict newvar = "Another string";
13021
13022  // Check varargs.
13023  test_varargs ("s, d' f .", "string", 65, 34.234);
13024  test_varargs_macros ();
13025
13026  // Check flexible array members.
13027  struct incomplete_array *ia =
13028    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13029  ia->datasize = 10;
13030  for (int i = 0; i < ia->datasize; ++i)
13031    ia->data[i] = i * 1.234;
13032
13033  // Check named initializers.
13034  struct named_init ni = {
13035    .number = 34,
13036    .name = L"Test wide string",
13037    .average = 543.34343,
13038  };
13039
13040  ni.number = 58;
13041
13042  int dynamic_array[ni.number];
13043  dynamic_array[ni.number - 1] = 543;
13044
13045  // work around unused variable warnings
13046  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13047	  || dynamic_array[ni.number - 1] != 543);
13048
13049  ;
13050  return 0;
13051}
13052_ACEOF
13053for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13054do
13055  CC="$ac_save_CC $ac_arg"
13056  if ac_fn_c_try_compile "$LINENO"; then :
13057  ac_cv_prog_cc_c99=$ac_arg
13058fi
13059rm -f core conftest.err conftest.$ac_objext
13060  test "x$ac_cv_prog_cc_c99" != "xno" && break
13061done
13062rm -f conftest.$ac_ext
13063CC=$ac_save_CC
13064
13065fi
13066# AC_CACHE_VAL
13067case "x$ac_cv_prog_cc_c99" in
13068  x)
13069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13070$as_echo "none needed" >&6; } ;;
13071  xno)
13072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13073$as_echo "unsupported" >&6; } ;;
13074  *)
13075    CC="$CC $ac_cv_prog_cc_c99"
13076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13077$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13078esac
13079if test "x$ac_cv_prog_cc_c99" != xno; then :
13080
13081fi
13082
13083
13084
13085
13086
13087
13088ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
13089if test "x$ac_cv_have_decl___clang__" = xyes; then :
13090  CLANGCC="yes"
13091else
13092  CLANGCC="no"
13093fi
13094
13095ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
13096if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
13097  INTELCC="yes"
13098else
13099  INTELCC="no"
13100fi
13101
13102ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13103if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13104  SUNCC="yes"
13105else
13106  SUNCC="no"
13107fi
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13118	if test -n "$ac_tool_prefix"; then
13119  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13120set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122$as_echo_n "checking for $ac_word... " >&6; }
13123if ${ac_cv_path_PKG_CONFIG+:} false; then :
13124  $as_echo_n "(cached) " >&6
13125else
13126  case $PKG_CONFIG in
13127  [\\/]* | ?:[\\/]*)
13128  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13129  ;;
13130  *)
13131  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132for as_dir in $PATH
13133do
13134  IFS=$as_save_IFS
13135  test -z "$as_dir" && as_dir=.
13136    for ac_exec_ext in '' $ac_executable_extensions; do
13137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13138    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140    break 2
13141  fi
13142done
13143  done
13144IFS=$as_save_IFS
13145
13146  ;;
13147esac
13148fi
13149PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13150if test -n "$PKG_CONFIG"; then
13151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13152$as_echo "$PKG_CONFIG" >&6; }
13153else
13154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155$as_echo "no" >&6; }
13156fi
13157
13158
13159fi
13160if test -z "$ac_cv_path_PKG_CONFIG"; then
13161  ac_pt_PKG_CONFIG=$PKG_CONFIG
13162  # Extract the first word of "pkg-config", so it can be a program name with args.
13163set dummy pkg-config; ac_word=$2
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13165$as_echo_n "checking for $ac_word... " >&6; }
13166if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13167  $as_echo_n "(cached) " >&6
13168else
13169  case $ac_pt_PKG_CONFIG in
13170  [\\/]* | ?:[\\/]*)
13171  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13172  ;;
13173  *)
13174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175for as_dir in $PATH
13176do
13177  IFS=$as_save_IFS
13178  test -z "$as_dir" && as_dir=.
13179    for ac_exec_ext in '' $ac_executable_extensions; do
13180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13181    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183    break 2
13184  fi
13185done
13186  done
13187IFS=$as_save_IFS
13188
13189  ;;
13190esac
13191fi
13192ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13193if test -n "$ac_pt_PKG_CONFIG"; then
13194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13195$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13196else
13197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198$as_echo "no" >&6; }
13199fi
13200
13201  if test "x$ac_pt_PKG_CONFIG" = x; then
13202    PKG_CONFIG=""
13203  else
13204    case $cross_compiling:$ac_tool_warned in
13205yes:)
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13208ac_tool_warned=yes ;;
13209esac
13210    PKG_CONFIG=$ac_pt_PKG_CONFIG
13211  fi
13212else
13213  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13214fi
13215
13216fi
13217if test -n "$PKG_CONFIG"; then
13218	_pkg_min_version=0.9.0
13219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13220$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13221	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13223$as_echo "yes" >&6; }
13224	else
13225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226$as_echo "no" >&6; }
13227		PKG_CONFIG=""
13228	fi
13229fi
13230
13231
13232
13233
13234
13235# Check whether --enable-selective-werror was given.
13236if test "${enable_selective_werror+set}" = set; then :
13237  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13238else
13239  SELECTIVE_WERROR=yes
13240fi
13241
13242
13243
13244
13245
13246# -v is too short to test reliably with XORG_TESTSET_CFLAG
13247if test "x$SUNCC" = "xyes"; then
13248    BASE_CFLAGS="-v"
13249else
13250    BASE_CFLAGS=""
13251fi
13252
13253# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267xorg_testset_save_CFLAGS="$CFLAGS"
13268
13269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13270	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13274  $as_echo_n "(cached) " >&6
13275else
13276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277/* end confdefs.h.  */
13278int i;
13279_ACEOF
13280if ac_fn_c_try_compile "$LINENO"; then :
13281  xorg_cv_cc_flag_unknown_warning_option=yes
13282else
13283  xorg_cv_cc_flag_unknown_warning_option=no
13284fi
13285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286fi
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13290	CFLAGS="$xorg_testset_save_CFLAGS"
13291fi
13292
13293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13296	fi
13297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13301  $as_echo_n "(cached) " >&6
13302else
13303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304/* end confdefs.h.  */
13305int i;
13306_ACEOF
13307if ac_fn_c_try_compile "$LINENO"; then :
13308  xorg_cv_cc_flag_unused_command_line_argument=yes
13309else
13310  xorg_cv_cc_flag_unused_command_line_argument=no
13311fi
13312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13313fi
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13316	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13317	CFLAGS="$xorg_testset_save_CFLAGS"
13318fi
13319
13320found="no"
13321
13322	if test $found = "no" ; then
13323		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13325		fi
13326
13327		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13329		fi
13330
13331		CFLAGS="$CFLAGS -Wall"
13332
13333		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13334$as_echo_n "checking if $CC supports -Wall... " >&6; }
13335		cacheid=xorg_cv_cc_flag__Wall
13336		if eval \${$cacheid+:} false; then :
13337  $as_echo_n "(cached) " >&6
13338else
13339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340/* end confdefs.h.  */
13341int i;
13342int
13343main ()
13344{
13345
13346  ;
13347  return 0;
13348}
13349_ACEOF
13350if ac_fn_c_try_link "$LINENO"; then :
13351  eval $cacheid=yes
13352else
13353  eval $cacheid=no
13354fi
13355rm -f core conftest.err conftest.$ac_objext \
13356    conftest$ac_exeext conftest.$ac_ext
13357fi
13358
13359
13360		CFLAGS="$xorg_testset_save_CFLAGS"
13361
13362		eval supported=\$$cacheid
13363		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13364$as_echo "$supported" >&6; }
13365		if test "$supported" = "yes" ; then
13366			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13367			found="yes"
13368		fi
13369	fi
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385xorg_testset_save_CFLAGS="$CFLAGS"
13386
13387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13388	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13392  $as_echo_n "(cached) " >&6
13393else
13394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395/* end confdefs.h.  */
13396int i;
13397_ACEOF
13398if ac_fn_c_try_compile "$LINENO"; then :
13399  xorg_cv_cc_flag_unknown_warning_option=yes
13400else
13401  xorg_cv_cc_flag_unknown_warning_option=no
13402fi
13403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404fi
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13407	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13408	CFLAGS="$xorg_testset_save_CFLAGS"
13409fi
13410
13411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13412	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13413		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13414	fi
13415	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13419  $as_echo_n "(cached) " >&6
13420else
13421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422/* end confdefs.h.  */
13423int i;
13424_ACEOF
13425if ac_fn_c_try_compile "$LINENO"; then :
13426  xorg_cv_cc_flag_unused_command_line_argument=yes
13427else
13428  xorg_cv_cc_flag_unused_command_line_argument=no
13429fi
13430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431fi
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13434	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13435	CFLAGS="$xorg_testset_save_CFLAGS"
13436fi
13437
13438found="no"
13439
13440	if test $found = "no" ; then
13441		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13443		fi
13444
13445		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13447		fi
13448
13449		CFLAGS="$CFLAGS -Wpointer-arith"
13450
13451		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13452$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
13453		cacheid=xorg_cv_cc_flag__Wpointer_arith
13454		if eval \${$cacheid+:} false; then :
13455  $as_echo_n "(cached) " >&6
13456else
13457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458/* end confdefs.h.  */
13459int i;
13460int
13461main ()
13462{
13463
13464  ;
13465  return 0;
13466}
13467_ACEOF
13468if ac_fn_c_try_link "$LINENO"; then :
13469  eval $cacheid=yes
13470else
13471  eval $cacheid=no
13472fi
13473rm -f core conftest.err conftest.$ac_objext \
13474    conftest$ac_exeext conftest.$ac_ext
13475fi
13476
13477
13478		CFLAGS="$xorg_testset_save_CFLAGS"
13479
13480		eval supported=\$$cacheid
13481		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13482$as_echo "$supported" >&6; }
13483		if test "$supported" = "yes" ; then
13484			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13485			found="yes"
13486		fi
13487	fi
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503xorg_testset_save_CFLAGS="$CFLAGS"
13504
13505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13506	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13510  $as_echo_n "(cached) " >&6
13511else
13512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h.  */
13514int i;
13515_ACEOF
13516if ac_fn_c_try_compile "$LINENO"; then :
13517  xorg_cv_cc_flag_unknown_warning_option=yes
13518else
13519  xorg_cv_cc_flag_unknown_warning_option=no
13520fi
13521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522fi
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13526	CFLAGS="$xorg_testset_save_CFLAGS"
13527fi
13528
13529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13532	fi
13533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13537  $as_echo_n "(cached) " >&6
13538else
13539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540/* end confdefs.h.  */
13541int i;
13542_ACEOF
13543if ac_fn_c_try_compile "$LINENO"; then :
13544  xorg_cv_cc_flag_unused_command_line_argument=yes
13545else
13546  xorg_cv_cc_flag_unused_command_line_argument=no
13547fi
13548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549fi
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13553	CFLAGS="$xorg_testset_save_CFLAGS"
13554fi
13555
13556found="no"
13557
13558	if test $found = "no" ; then
13559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13561		fi
13562
13563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13565		fi
13566
13567		CFLAGS="$CFLAGS -Wmissing-declarations"
13568
13569		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13570$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13571		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13572		if eval \${$cacheid+:} false; then :
13573  $as_echo_n "(cached) " >&6
13574else
13575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576/* end confdefs.h.  */
13577int i;
13578int
13579main ()
13580{
13581
13582  ;
13583  return 0;
13584}
13585_ACEOF
13586if ac_fn_c_try_link "$LINENO"; then :
13587  eval $cacheid=yes
13588else
13589  eval $cacheid=no
13590fi
13591rm -f core conftest.err conftest.$ac_objext \
13592    conftest$ac_exeext conftest.$ac_ext
13593fi
13594
13595
13596		CFLAGS="$xorg_testset_save_CFLAGS"
13597
13598		eval supported=\$$cacheid
13599		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13600$as_echo "$supported" >&6; }
13601		if test "$supported" = "yes" ; then
13602			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13603			found="yes"
13604		fi
13605	fi
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621xorg_testset_save_CFLAGS="$CFLAGS"
13622
13623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13628  $as_echo_n "(cached) " >&6
13629else
13630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631/* end confdefs.h.  */
13632int i;
13633_ACEOF
13634if ac_fn_c_try_compile "$LINENO"; then :
13635  xorg_cv_cc_flag_unknown_warning_option=yes
13636else
13637  xorg_cv_cc_flag_unknown_warning_option=no
13638fi
13639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640fi
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13644	CFLAGS="$xorg_testset_save_CFLAGS"
13645fi
13646
13647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13650	fi
13651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13655  $as_echo_n "(cached) " >&6
13656else
13657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658/* end confdefs.h.  */
13659int i;
13660_ACEOF
13661if ac_fn_c_try_compile "$LINENO"; then :
13662  xorg_cv_cc_flag_unused_command_line_argument=yes
13663else
13664  xorg_cv_cc_flag_unused_command_line_argument=no
13665fi
13666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667fi
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13671	CFLAGS="$xorg_testset_save_CFLAGS"
13672fi
13673
13674found="no"
13675
13676	if test $found = "no" ; then
13677		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13679		fi
13680
13681		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13683		fi
13684
13685		CFLAGS="$CFLAGS -Wformat=2"
13686
13687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13688$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13689		cacheid=xorg_cv_cc_flag__Wformat_2
13690		if eval \${$cacheid+:} false; then :
13691  $as_echo_n "(cached) " >&6
13692else
13693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694/* end confdefs.h.  */
13695int i;
13696int
13697main ()
13698{
13699
13700  ;
13701  return 0;
13702}
13703_ACEOF
13704if ac_fn_c_try_link "$LINENO"; then :
13705  eval $cacheid=yes
13706else
13707  eval $cacheid=no
13708fi
13709rm -f core conftest.err conftest.$ac_objext \
13710    conftest$ac_exeext conftest.$ac_ext
13711fi
13712
13713
13714		CFLAGS="$xorg_testset_save_CFLAGS"
13715
13716		eval supported=\$$cacheid
13717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13718$as_echo "$supported" >&6; }
13719		if test "$supported" = "yes" ; then
13720			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13721			found="yes"
13722		fi
13723	fi
13724
13725	if test $found = "no" ; then
13726		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13728		fi
13729
13730		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13732		fi
13733
13734		CFLAGS="$CFLAGS -Wformat"
13735
13736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13737$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13738		cacheid=xorg_cv_cc_flag__Wformat
13739		if eval \${$cacheid+:} false; then :
13740  $as_echo_n "(cached) " >&6
13741else
13742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743/* end confdefs.h.  */
13744int i;
13745int
13746main ()
13747{
13748
13749  ;
13750  return 0;
13751}
13752_ACEOF
13753if ac_fn_c_try_link "$LINENO"; then :
13754  eval $cacheid=yes
13755else
13756  eval $cacheid=no
13757fi
13758rm -f core conftest.err conftest.$ac_objext \
13759    conftest$ac_exeext conftest.$ac_ext
13760fi
13761
13762
13763		CFLAGS="$xorg_testset_save_CFLAGS"
13764
13765		eval supported=\$$cacheid
13766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13767$as_echo "$supported" >&6; }
13768		if test "$supported" = "yes" ; then
13769			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13770			found="yes"
13771		fi
13772	fi
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790xorg_testset_save_CFLAGS="$CFLAGS"
13791
13792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13797  $as_echo_n "(cached) " >&6
13798else
13799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800/* end confdefs.h.  */
13801int i;
13802_ACEOF
13803if ac_fn_c_try_compile "$LINENO"; then :
13804  xorg_cv_cc_flag_unknown_warning_option=yes
13805else
13806  xorg_cv_cc_flag_unknown_warning_option=no
13807fi
13808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13809fi
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13813	CFLAGS="$xorg_testset_save_CFLAGS"
13814fi
13815
13816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13819	fi
13820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13824  $as_echo_n "(cached) " >&6
13825else
13826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827/* end confdefs.h.  */
13828int i;
13829_ACEOF
13830if ac_fn_c_try_compile "$LINENO"; then :
13831  xorg_cv_cc_flag_unused_command_line_argument=yes
13832else
13833  xorg_cv_cc_flag_unused_command_line_argument=no
13834fi
13835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836fi
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13840	CFLAGS="$xorg_testset_save_CFLAGS"
13841fi
13842
13843found="no"
13844
13845	if test $found = "no" ; then
13846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13848		fi
13849
13850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13852		fi
13853
13854		CFLAGS="$CFLAGS -Wstrict-prototypes"
13855
13856		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13857$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13858		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13859		if eval \${$cacheid+:} false; then :
13860  $as_echo_n "(cached) " >&6
13861else
13862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863/* end confdefs.h.  */
13864int i;
13865int
13866main ()
13867{
13868
13869  ;
13870  return 0;
13871}
13872_ACEOF
13873if ac_fn_c_try_link "$LINENO"; then :
13874  eval $cacheid=yes
13875else
13876  eval $cacheid=no
13877fi
13878rm -f core conftest.err conftest.$ac_objext \
13879    conftest$ac_exeext conftest.$ac_ext
13880fi
13881
13882
13883		CFLAGS="$xorg_testset_save_CFLAGS"
13884
13885		eval supported=\$$cacheid
13886		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13887$as_echo "$supported" >&6; }
13888		if test "$supported" = "yes" ; then
13889			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13890			found="yes"
13891		fi
13892	fi
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908xorg_testset_save_CFLAGS="$CFLAGS"
13909
13910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13915  $as_echo_n "(cached) " >&6
13916else
13917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918/* end confdefs.h.  */
13919int i;
13920_ACEOF
13921if ac_fn_c_try_compile "$LINENO"; then :
13922  xorg_cv_cc_flag_unknown_warning_option=yes
13923else
13924  xorg_cv_cc_flag_unknown_warning_option=no
13925fi
13926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13927fi
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13931	CFLAGS="$xorg_testset_save_CFLAGS"
13932fi
13933
13934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13937	fi
13938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13942  $as_echo_n "(cached) " >&6
13943else
13944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945/* end confdefs.h.  */
13946int i;
13947_ACEOF
13948if ac_fn_c_try_compile "$LINENO"; then :
13949  xorg_cv_cc_flag_unused_command_line_argument=yes
13950else
13951  xorg_cv_cc_flag_unused_command_line_argument=no
13952fi
13953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954fi
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13957	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13958	CFLAGS="$xorg_testset_save_CFLAGS"
13959fi
13960
13961found="no"
13962
13963	if test $found = "no" ; then
13964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13966		fi
13967
13968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13970		fi
13971
13972		CFLAGS="$CFLAGS -Wmissing-prototypes"
13973
13974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13975$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13976		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13977		if eval \${$cacheid+:} false; then :
13978  $as_echo_n "(cached) " >&6
13979else
13980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981/* end confdefs.h.  */
13982int i;
13983int
13984main ()
13985{
13986
13987  ;
13988  return 0;
13989}
13990_ACEOF
13991if ac_fn_c_try_link "$LINENO"; then :
13992  eval $cacheid=yes
13993else
13994  eval $cacheid=no
13995fi
13996rm -f core conftest.err conftest.$ac_objext \
13997    conftest$ac_exeext conftest.$ac_ext
13998fi
13999
14000
14001		CFLAGS="$xorg_testset_save_CFLAGS"
14002
14003		eval supported=\$$cacheid
14004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14005$as_echo "$supported" >&6; }
14006		if test "$supported" = "yes" ; then
14007			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14008			found="yes"
14009		fi
14010	fi
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026xorg_testset_save_CFLAGS="$CFLAGS"
14027
14028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14033  $as_echo_n "(cached) " >&6
14034else
14035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036/* end confdefs.h.  */
14037int i;
14038_ACEOF
14039if ac_fn_c_try_compile "$LINENO"; then :
14040  xorg_cv_cc_flag_unknown_warning_option=yes
14041else
14042  xorg_cv_cc_flag_unknown_warning_option=no
14043fi
14044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045fi
14046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14048	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14049	CFLAGS="$xorg_testset_save_CFLAGS"
14050fi
14051
14052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14053	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14054		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14055	fi
14056	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14060  $as_echo_n "(cached) " >&6
14061else
14062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063/* end confdefs.h.  */
14064int i;
14065_ACEOF
14066if ac_fn_c_try_compile "$LINENO"; then :
14067  xorg_cv_cc_flag_unused_command_line_argument=yes
14068else
14069  xorg_cv_cc_flag_unused_command_line_argument=no
14070fi
14071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072fi
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14076	CFLAGS="$xorg_testset_save_CFLAGS"
14077fi
14078
14079found="no"
14080
14081	if test $found = "no" ; then
14082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14084		fi
14085
14086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14088		fi
14089
14090		CFLAGS="$CFLAGS -Wnested-externs"
14091
14092		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14093$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
14094		cacheid=xorg_cv_cc_flag__Wnested_externs
14095		if eval \${$cacheid+:} false; then :
14096  $as_echo_n "(cached) " >&6
14097else
14098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099/* end confdefs.h.  */
14100int i;
14101int
14102main ()
14103{
14104
14105  ;
14106  return 0;
14107}
14108_ACEOF
14109if ac_fn_c_try_link "$LINENO"; then :
14110  eval $cacheid=yes
14111else
14112  eval $cacheid=no
14113fi
14114rm -f core conftest.err conftest.$ac_objext \
14115    conftest$ac_exeext conftest.$ac_ext
14116fi
14117
14118
14119		CFLAGS="$xorg_testset_save_CFLAGS"
14120
14121		eval supported=\$$cacheid
14122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14123$as_echo "$supported" >&6; }
14124		if test "$supported" = "yes" ; then
14125			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14126			found="yes"
14127		fi
14128	fi
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144xorg_testset_save_CFLAGS="$CFLAGS"
14145
14146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14151  $as_echo_n "(cached) " >&6
14152else
14153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154/* end confdefs.h.  */
14155int i;
14156_ACEOF
14157if ac_fn_c_try_compile "$LINENO"; then :
14158  xorg_cv_cc_flag_unknown_warning_option=yes
14159else
14160  xorg_cv_cc_flag_unknown_warning_option=no
14161fi
14162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163fi
14164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14167	CFLAGS="$xorg_testset_save_CFLAGS"
14168fi
14169
14170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14173	fi
14174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14178  $as_echo_n "(cached) " >&6
14179else
14180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181/* end confdefs.h.  */
14182int i;
14183_ACEOF
14184if ac_fn_c_try_compile "$LINENO"; then :
14185  xorg_cv_cc_flag_unused_command_line_argument=yes
14186else
14187  xorg_cv_cc_flag_unused_command_line_argument=no
14188fi
14189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190fi
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14194	CFLAGS="$xorg_testset_save_CFLAGS"
14195fi
14196
14197found="no"
14198
14199	if test $found = "no" ; then
14200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14202		fi
14203
14204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14206		fi
14207
14208		CFLAGS="$CFLAGS -Wbad-function-cast"
14209
14210		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14211$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
14212		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14213		if eval \${$cacheid+:} false; then :
14214  $as_echo_n "(cached) " >&6
14215else
14216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217/* end confdefs.h.  */
14218int i;
14219int
14220main ()
14221{
14222
14223  ;
14224  return 0;
14225}
14226_ACEOF
14227if ac_fn_c_try_link "$LINENO"; then :
14228  eval $cacheid=yes
14229else
14230  eval $cacheid=no
14231fi
14232rm -f core conftest.err conftest.$ac_objext \
14233    conftest$ac_exeext conftest.$ac_ext
14234fi
14235
14236
14237		CFLAGS="$xorg_testset_save_CFLAGS"
14238
14239		eval supported=\$$cacheid
14240		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14241$as_echo "$supported" >&6; }
14242		if test "$supported" = "yes" ; then
14243			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14244			found="yes"
14245		fi
14246	fi
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262xorg_testset_save_CFLAGS="$CFLAGS"
14263
14264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14269  $as_echo_n "(cached) " >&6
14270else
14271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272/* end confdefs.h.  */
14273int i;
14274_ACEOF
14275if ac_fn_c_try_compile "$LINENO"; then :
14276  xorg_cv_cc_flag_unknown_warning_option=yes
14277else
14278  xorg_cv_cc_flag_unknown_warning_option=no
14279fi
14280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281fi
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14285	CFLAGS="$xorg_testset_save_CFLAGS"
14286fi
14287
14288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14291	fi
14292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14296  $as_echo_n "(cached) " >&6
14297else
14298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299/* end confdefs.h.  */
14300int i;
14301_ACEOF
14302if ac_fn_c_try_compile "$LINENO"; then :
14303  xorg_cv_cc_flag_unused_command_line_argument=yes
14304else
14305  xorg_cv_cc_flag_unused_command_line_argument=no
14306fi
14307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308fi
14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14311	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14312	CFLAGS="$xorg_testset_save_CFLAGS"
14313fi
14314
14315found="no"
14316
14317	if test $found = "no" ; then
14318		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14320		fi
14321
14322		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14324		fi
14325
14326		CFLAGS="$CFLAGS -Wold-style-definition"
14327
14328		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14329$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
14330		cacheid=xorg_cv_cc_flag__Wold_style_definition
14331		if eval \${$cacheid+:} false; then :
14332  $as_echo_n "(cached) " >&6
14333else
14334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335/* end confdefs.h.  */
14336int i;
14337int
14338main ()
14339{
14340
14341  ;
14342  return 0;
14343}
14344_ACEOF
14345if ac_fn_c_try_link "$LINENO"; then :
14346  eval $cacheid=yes
14347else
14348  eval $cacheid=no
14349fi
14350rm -f core conftest.err conftest.$ac_objext \
14351    conftest$ac_exeext conftest.$ac_ext
14352fi
14353
14354
14355		CFLAGS="$xorg_testset_save_CFLAGS"
14356
14357		eval supported=\$$cacheid
14358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14359$as_echo "$supported" >&6; }
14360		if test "$supported" = "yes" ; then
14361			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14362			found="yes"
14363		fi
14364	fi
14365
14366	if test $found = "no" ; then
14367		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14369		fi
14370
14371		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14373		fi
14374
14375		CFLAGS="$CFLAGS -fd"
14376
14377		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14378$as_echo_n "checking if $CC supports -fd... " >&6; }
14379		cacheid=xorg_cv_cc_flag__fd
14380		if eval \${$cacheid+:} false; then :
14381  $as_echo_n "(cached) " >&6
14382else
14383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384/* end confdefs.h.  */
14385int i;
14386int
14387main ()
14388{
14389
14390  ;
14391  return 0;
14392}
14393_ACEOF
14394if ac_fn_c_try_link "$LINENO"; then :
14395  eval $cacheid=yes
14396else
14397  eval $cacheid=no
14398fi
14399rm -f core conftest.err conftest.$ac_objext \
14400    conftest$ac_exeext conftest.$ac_ext
14401fi
14402
14403
14404		CFLAGS="$xorg_testset_save_CFLAGS"
14405
14406		eval supported=\$$cacheid
14407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14408$as_echo "$supported" >&6; }
14409		if test "$supported" = "yes" ; then
14410			BASE_CFLAGS="$BASE_CFLAGS -fd"
14411			found="yes"
14412		fi
14413	fi
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429xorg_testset_save_CFLAGS="$CFLAGS"
14430
14431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14432	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14434$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14435if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14436  $as_echo_n "(cached) " >&6
14437else
14438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439/* end confdefs.h.  */
14440int i;
14441_ACEOF
14442if ac_fn_c_try_compile "$LINENO"; then :
14443  xorg_cv_cc_flag_unknown_warning_option=yes
14444else
14445  xorg_cv_cc_flag_unknown_warning_option=no
14446fi
14447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448fi
14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14450$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14451	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14452	CFLAGS="$xorg_testset_save_CFLAGS"
14453fi
14454
14455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14456	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14457		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14458	fi
14459	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14462if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14463  $as_echo_n "(cached) " >&6
14464else
14465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466/* end confdefs.h.  */
14467int i;
14468_ACEOF
14469if ac_fn_c_try_compile "$LINENO"; then :
14470  xorg_cv_cc_flag_unused_command_line_argument=yes
14471else
14472  xorg_cv_cc_flag_unused_command_line_argument=no
14473fi
14474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475fi
14476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14477$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14478	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14479	CFLAGS="$xorg_testset_save_CFLAGS"
14480fi
14481
14482found="no"
14483
14484	if test $found = "no" ; then
14485		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14486			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14487		fi
14488
14489		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14490			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14491		fi
14492
14493		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14494
14495		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14496$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14497		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14498		if eval \${$cacheid+:} false; then :
14499  $as_echo_n "(cached) " >&6
14500else
14501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502/* end confdefs.h.  */
14503int i;
14504int
14505main ()
14506{
14507
14508  ;
14509  return 0;
14510}
14511_ACEOF
14512if ac_fn_c_try_link "$LINENO"; then :
14513  eval $cacheid=yes
14514else
14515  eval $cacheid=no
14516fi
14517rm -f core conftest.err conftest.$ac_objext \
14518    conftest$ac_exeext conftest.$ac_ext
14519fi
14520
14521
14522		CFLAGS="$xorg_testset_save_CFLAGS"
14523
14524		eval supported=\$$cacheid
14525		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14526$as_echo "$supported" >&6; }
14527		if test "$supported" = "yes" ; then
14528			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14529			found="yes"
14530		fi
14531	fi
14532
14533
14534
14535
14536
14537# This chunk adds additional warnings that could catch undesired effects.
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551xorg_testset_save_CFLAGS="$CFLAGS"
14552
14553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14554	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14558  $as_echo_n "(cached) " >&6
14559else
14560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561/* end confdefs.h.  */
14562int i;
14563_ACEOF
14564if ac_fn_c_try_compile "$LINENO"; then :
14565  xorg_cv_cc_flag_unknown_warning_option=yes
14566else
14567  xorg_cv_cc_flag_unknown_warning_option=no
14568fi
14569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570fi
14571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14573	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14574	CFLAGS="$xorg_testset_save_CFLAGS"
14575fi
14576
14577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14578	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14579		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14580	fi
14581	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14585  $as_echo_n "(cached) " >&6
14586else
14587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588/* end confdefs.h.  */
14589int i;
14590_ACEOF
14591if ac_fn_c_try_compile "$LINENO"; then :
14592  xorg_cv_cc_flag_unused_command_line_argument=yes
14593else
14594  xorg_cv_cc_flag_unused_command_line_argument=no
14595fi
14596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597fi
14598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14600	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14601	CFLAGS="$xorg_testset_save_CFLAGS"
14602fi
14603
14604found="no"
14605
14606	if test $found = "no" ; then
14607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14609		fi
14610
14611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14613		fi
14614
14615		CFLAGS="$CFLAGS -Wunused"
14616
14617		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14618$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14619		cacheid=xorg_cv_cc_flag__Wunused
14620		if eval \${$cacheid+:} false; then :
14621  $as_echo_n "(cached) " >&6
14622else
14623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624/* end confdefs.h.  */
14625int i;
14626int
14627main ()
14628{
14629
14630  ;
14631  return 0;
14632}
14633_ACEOF
14634if ac_fn_c_try_link "$LINENO"; then :
14635  eval $cacheid=yes
14636else
14637  eval $cacheid=no
14638fi
14639rm -f core conftest.err conftest.$ac_objext \
14640    conftest$ac_exeext conftest.$ac_ext
14641fi
14642
14643
14644		CFLAGS="$xorg_testset_save_CFLAGS"
14645
14646		eval supported=\$$cacheid
14647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14648$as_echo "$supported" >&6; }
14649		if test "$supported" = "yes" ; then
14650			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14651			found="yes"
14652		fi
14653	fi
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669xorg_testset_save_CFLAGS="$CFLAGS"
14670
14671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14676  $as_echo_n "(cached) " >&6
14677else
14678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679/* end confdefs.h.  */
14680int i;
14681_ACEOF
14682if ac_fn_c_try_compile "$LINENO"; then :
14683  xorg_cv_cc_flag_unknown_warning_option=yes
14684else
14685  xorg_cv_cc_flag_unknown_warning_option=no
14686fi
14687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688fi
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14691	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14692	CFLAGS="$xorg_testset_save_CFLAGS"
14693fi
14694
14695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14696	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14697		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14698	fi
14699	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14703  $as_echo_n "(cached) " >&6
14704else
14705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706/* end confdefs.h.  */
14707int i;
14708_ACEOF
14709if ac_fn_c_try_compile "$LINENO"; then :
14710  xorg_cv_cc_flag_unused_command_line_argument=yes
14711else
14712  xorg_cv_cc_flag_unused_command_line_argument=no
14713fi
14714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14715fi
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14718	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14719	CFLAGS="$xorg_testset_save_CFLAGS"
14720fi
14721
14722found="no"
14723
14724	if test $found = "no" ; then
14725		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14726			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14727		fi
14728
14729		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14730			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14731		fi
14732
14733		CFLAGS="$CFLAGS -Wuninitialized"
14734
14735		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14736$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14737		cacheid=xorg_cv_cc_flag__Wuninitialized
14738		if eval \${$cacheid+:} false; then :
14739  $as_echo_n "(cached) " >&6
14740else
14741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742/* end confdefs.h.  */
14743int i;
14744int
14745main ()
14746{
14747
14748  ;
14749  return 0;
14750}
14751_ACEOF
14752if ac_fn_c_try_link "$LINENO"; then :
14753  eval $cacheid=yes
14754else
14755  eval $cacheid=no
14756fi
14757rm -f core conftest.err conftest.$ac_objext \
14758    conftest$ac_exeext conftest.$ac_ext
14759fi
14760
14761
14762		CFLAGS="$xorg_testset_save_CFLAGS"
14763
14764		eval supported=\$$cacheid
14765		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14766$as_echo "$supported" >&6; }
14767		if test "$supported" = "yes" ; then
14768			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14769			found="yes"
14770		fi
14771	fi
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787xorg_testset_save_CFLAGS="$CFLAGS"
14788
14789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14794  $as_echo_n "(cached) " >&6
14795else
14796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797/* end confdefs.h.  */
14798int i;
14799_ACEOF
14800if ac_fn_c_try_compile "$LINENO"; then :
14801  xorg_cv_cc_flag_unknown_warning_option=yes
14802else
14803  xorg_cv_cc_flag_unknown_warning_option=no
14804fi
14805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806fi
14807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14810	CFLAGS="$xorg_testset_save_CFLAGS"
14811fi
14812
14813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14816	fi
14817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14821  $as_echo_n "(cached) " >&6
14822else
14823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h.  */
14825int i;
14826_ACEOF
14827if ac_fn_c_try_compile "$LINENO"; then :
14828  xorg_cv_cc_flag_unused_command_line_argument=yes
14829else
14830  xorg_cv_cc_flag_unused_command_line_argument=no
14831fi
14832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833fi
14834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14836	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14837	CFLAGS="$xorg_testset_save_CFLAGS"
14838fi
14839
14840found="no"
14841
14842	if test $found = "no" ; then
14843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14845		fi
14846
14847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14849		fi
14850
14851		CFLAGS="$CFLAGS -Wshadow"
14852
14853		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14854$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14855		cacheid=xorg_cv_cc_flag__Wshadow
14856		if eval \${$cacheid+:} false; then :
14857  $as_echo_n "(cached) " >&6
14858else
14859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860/* end confdefs.h.  */
14861int i;
14862int
14863main ()
14864{
14865
14866  ;
14867  return 0;
14868}
14869_ACEOF
14870if ac_fn_c_try_link "$LINENO"; then :
14871  eval $cacheid=yes
14872else
14873  eval $cacheid=no
14874fi
14875rm -f core conftest.err conftest.$ac_objext \
14876    conftest$ac_exeext conftest.$ac_ext
14877fi
14878
14879
14880		CFLAGS="$xorg_testset_save_CFLAGS"
14881
14882		eval supported=\$$cacheid
14883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14884$as_echo "$supported" >&6; }
14885		if test "$supported" = "yes" ; then
14886			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14887			found="yes"
14888		fi
14889	fi
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905xorg_testset_save_CFLAGS="$CFLAGS"
14906
14907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14908	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14912  $as_echo_n "(cached) " >&6
14913else
14914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915/* end confdefs.h.  */
14916int i;
14917_ACEOF
14918if ac_fn_c_try_compile "$LINENO"; then :
14919  xorg_cv_cc_flag_unknown_warning_option=yes
14920else
14921  xorg_cv_cc_flag_unknown_warning_option=no
14922fi
14923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924fi
14925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14928	CFLAGS="$xorg_testset_save_CFLAGS"
14929fi
14930
14931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14934	fi
14935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14939  $as_echo_n "(cached) " >&6
14940else
14941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942/* end confdefs.h.  */
14943int i;
14944_ACEOF
14945if ac_fn_c_try_compile "$LINENO"; then :
14946  xorg_cv_cc_flag_unused_command_line_argument=yes
14947else
14948  xorg_cv_cc_flag_unused_command_line_argument=no
14949fi
14950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14951fi
14952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14954	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14955	CFLAGS="$xorg_testset_save_CFLAGS"
14956fi
14957
14958found="no"
14959
14960	if test $found = "no" ; then
14961		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14962			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14963		fi
14964
14965		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14966			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14967		fi
14968
14969		CFLAGS="$CFLAGS -Wmissing-noreturn"
14970
14971		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14972$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14973		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14974		if eval \${$cacheid+:} false; then :
14975  $as_echo_n "(cached) " >&6
14976else
14977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978/* end confdefs.h.  */
14979int i;
14980int
14981main ()
14982{
14983
14984  ;
14985  return 0;
14986}
14987_ACEOF
14988if ac_fn_c_try_link "$LINENO"; then :
14989  eval $cacheid=yes
14990else
14991  eval $cacheid=no
14992fi
14993rm -f core conftest.err conftest.$ac_objext \
14994    conftest$ac_exeext conftest.$ac_ext
14995fi
14996
14997
14998		CFLAGS="$xorg_testset_save_CFLAGS"
14999
15000		eval supported=\$$cacheid
15001		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15002$as_echo "$supported" >&6; }
15003		if test "$supported" = "yes" ; then
15004			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15005			found="yes"
15006		fi
15007	fi
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023xorg_testset_save_CFLAGS="$CFLAGS"
15024
15025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15030  $as_echo_n "(cached) " >&6
15031else
15032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h.  */
15034int i;
15035_ACEOF
15036if ac_fn_c_try_compile "$LINENO"; then :
15037  xorg_cv_cc_flag_unknown_warning_option=yes
15038else
15039  xorg_cv_cc_flag_unknown_warning_option=no
15040fi
15041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042fi
15043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15046	CFLAGS="$xorg_testset_save_CFLAGS"
15047fi
15048
15049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15052	fi
15053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15057  $as_echo_n "(cached) " >&6
15058else
15059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060/* end confdefs.h.  */
15061int i;
15062_ACEOF
15063if ac_fn_c_try_compile "$LINENO"; then :
15064  xorg_cv_cc_flag_unused_command_line_argument=yes
15065else
15066  xorg_cv_cc_flag_unused_command_line_argument=no
15067fi
15068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069fi
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15073	CFLAGS="$xorg_testset_save_CFLAGS"
15074fi
15075
15076found="no"
15077
15078	if test $found = "no" ; then
15079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15081		fi
15082
15083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15085		fi
15086
15087		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15088
15089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15090$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15091		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15092		if eval \${$cacheid+:} false; then :
15093  $as_echo_n "(cached) " >&6
15094else
15095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096/* end confdefs.h.  */
15097int i;
15098int
15099main ()
15100{
15101
15102  ;
15103  return 0;
15104}
15105_ACEOF
15106if ac_fn_c_try_link "$LINENO"; then :
15107  eval $cacheid=yes
15108else
15109  eval $cacheid=no
15110fi
15111rm -f core conftest.err conftest.$ac_objext \
15112    conftest$ac_exeext conftest.$ac_ext
15113fi
15114
15115
15116		CFLAGS="$xorg_testset_save_CFLAGS"
15117
15118		eval supported=\$$cacheid
15119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15120$as_echo "$supported" >&6; }
15121		if test "$supported" = "yes" ; then
15122			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15123			found="yes"
15124		fi
15125	fi
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141xorg_testset_save_CFLAGS="$CFLAGS"
15142
15143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15148  $as_echo_n "(cached) " >&6
15149else
15150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151/* end confdefs.h.  */
15152int i;
15153_ACEOF
15154if ac_fn_c_try_compile "$LINENO"; then :
15155  xorg_cv_cc_flag_unknown_warning_option=yes
15156else
15157  xorg_cv_cc_flag_unknown_warning_option=no
15158fi
15159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160fi
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15164	CFLAGS="$xorg_testset_save_CFLAGS"
15165fi
15166
15167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15170	fi
15171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15175  $as_echo_n "(cached) " >&6
15176else
15177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178/* end confdefs.h.  */
15179int i;
15180_ACEOF
15181if ac_fn_c_try_compile "$LINENO"; then :
15182  xorg_cv_cc_flag_unused_command_line_argument=yes
15183else
15184  xorg_cv_cc_flag_unused_command_line_argument=no
15185fi
15186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187fi
15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15191	CFLAGS="$xorg_testset_save_CFLAGS"
15192fi
15193
15194found="no"
15195
15196	if test $found = "no" ; then
15197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15199		fi
15200
15201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15203		fi
15204
15205		CFLAGS="$CFLAGS -Wredundant-decls"
15206
15207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15208$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
15209		cacheid=xorg_cv_cc_flag__Wredundant_decls
15210		if eval \${$cacheid+:} false; then :
15211  $as_echo_n "(cached) " >&6
15212else
15213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214/* end confdefs.h.  */
15215int i;
15216int
15217main ()
15218{
15219
15220  ;
15221  return 0;
15222}
15223_ACEOF
15224if ac_fn_c_try_link "$LINENO"; then :
15225  eval $cacheid=yes
15226else
15227  eval $cacheid=no
15228fi
15229rm -f core conftest.err conftest.$ac_objext \
15230    conftest$ac_exeext conftest.$ac_ext
15231fi
15232
15233
15234		CFLAGS="$xorg_testset_save_CFLAGS"
15235
15236		eval supported=\$$cacheid
15237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15238$as_echo "$supported" >&6; }
15239		if test "$supported" = "yes" ; then
15240			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15241			found="yes"
15242		fi
15243	fi
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259xorg_testset_save_CFLAGS="$CFLAGS"
15260
15261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15262	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15266  $as_echo_n "(cached) " >&6
15267else
15268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269/* end confdefs.h.  */
15270int i;
15271_ACEOF
15272if ac_fn_c_try_compile "$LINENO"; then :
15273  xorg_cv_cc_flag_unknown_warning_option=yes
15274else
15275  xorg_cv_cc_flag_unknown_warning_option=no
15276fi
15277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278fi
15279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15282	CFLAGS="$xorg_testset_save_CFLAGS"
15283fi
15284
15285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15288	fi
15289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15293  $as_echo_n "(cached) " >&6
15294else
15295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296/* end confdefs.h.  */
15297int i;
15298_ACEOF
15299if ac_fn_c_try_compile "$LINENO"; then :
15300  xorg_cv_cc_flag_unused_command_line_argument=yes
15301else
15302  xorg_cv_cc_flag_unused_command_line_argument=no
15303fi
15304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15305fi
15306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15308	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15309	CFLAGS="$xorg_testset_save_CFLAGS"
15310fi
15311
15312found="no"
15313
15314	if test $found = "no" ; then
15315		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15317		fi
15318
15319		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15321		fi
15322
15323		CFLAGS="$CFLAGS -Wlogical-op"
15324
15325		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15326$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
15327		cacheid=xorg_cv_cc_flag__Wlogical_op
15328		if eval \${$cacheid+:} false; then :
15329  $as_echo_n "(cached) " >&6
15330else
15331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332/* end confdefs.h.  */
15333int i;
15334int
15335main ()
15336{
15337
15338  ;
15339  return 0;
15340}
15341_ACEOF
15342if ac_fn_c_try_link "$LINENO"; then :
15343  eval $cacheid=yes
15344else
15345  eval $cacheid=no
15346fi
15347rm -f core conftest.err conftest.$ac_objext \
15348    conftest$ac_exeext conftest.$ac_ext
15349fi
15350
15351
15352		CFLAGS="$xorg_testset_save_CFLAGS"
15353
15354		eval supported=\$$cacheid
15355		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15356$as_echo "$supported" >&6; }
15357		if test "$supported" = "yes" ; then
15358			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15359			found="yes"
15360		fi
15361	fi
15362
15363
15364
15365# These are currently disabled because they are noisy.  They will be enabled
15366# in the future once the codebase is sufficiently modernized to silence
15367# them.  For now, I don't want them to drown out the other warnings.
15368# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15369# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15370# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15371
15372# Turn some warnings into errors, so we don't accidently get successful builds
15373# when there are problems that should be fixed.
15374
15375if test "x$SELECTIVE_WERROR" = "xyes" ; then
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389xorg_testset_save_CFLAGS="$CFLAGS"
15390
15391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15396  $as_echo_n "(cached) " >&6
15397else
15398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399/* end confdefs.h.  */
15400int i;
15401_ACEOF
15402if ac_fn_c_try_compile "$LINENO"; then :
15403  xorg_cv_cc_flag_unknown_warning_option=yes
15404else
15405  xorg_cv_cc_flag_unknown_warning_option=no
15406fi
15407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15408fi
15409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15412	CFLAGS="$xorg_testset_save_CFLAGS"
15413fi
15414
15415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15418	fi
15419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15423  $as_echo_n "(cached) " >&6
15424else
15425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426/* end confdefs.h.  */
15427int i;
15428_ACEOF
15429if ac_fn_c_try_compile "$LINENO"; then :
15430  xorg_cv_cc_flag_unused_command_line_argument=yes
15431else
15432  xorg_cv_cc_flag_unused_command_line_argument=no
15433fi
15434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435fi
15436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15439	CFLAGS="$xorg_testset_save_CFLAGS"
15440fi
15441
15442found="no"
15443
15444	if test $found = "no" ; then
15445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15447		fi
15448
15449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15451		fi
15452
15453		CFLAGS="$CFLAGS -Werror=implicit"
15454
15455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15456$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
15457		cacheid=xorg_cv_cc_flag__Werror_implicit
15458		if eval \${$cacheid+:} false; then :
15459  $as_echo_n "(cached) " >&6
15460else
15461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462/* end confdefs.h.  */
15463int i;
15464int
15465main ()
15466{
15467
15468  ;
15469  return 0;
15470}
15471_ACEOF
15472if ac_fn_c_try_link "$LINENO"; then :
15473  eval $cacheid=yes
15474else
15475  eval $cacheid=no
15476fi
15477rm -f core conftest.err conftest.$ac_objext \
15478    conftest$ac_exeext conftest.$ac_ext
15479fi
15480
15481
15482		CFLAGS="$xorg_testset_save_CFLAGS"
15483
15484		eval supported=\$$cacheid
15485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15486$as_echo "$supported" >&6; }
15487		if test "$supported" = "yes" ; then
15488			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15489			found="yes"
15490		fi
15491	fi
15492
15493	if test $found = "no" ; then
15494		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15496		fi
15497
15498		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15500		fi
15501
15502		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15503
15504		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15505$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15506		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15507		if eval \${$cacheid+:} false; then :
15508  $as_echo_n "(cached) " >&6
15509else
15510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511/* end confdefs.h.  */
15512int i;
15513int
15514main ()
15515{
15516
15517  ;
15518  return 0;
15519}
15520_ACEOF
15521if ac_fn_c_try_link "$LINENO"; then :
15522  eval $cacheid=yes
15523else
15524  eval $cacheid=no
15525fi
15526rm -f core conftest.err conftest.$ac_objext \
15527    conftest$ac_exeext conftest.$ac_ext
15528fi
15529
15530
15531		CFLAGS="$xorg_testset_save_CFLAGS"
15532
15533		eval supported=\$$cacheid
15534		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15535$as_echo "$supported" >&6; }
15536		if test "$supported" = "yes" ; then
15537			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15538			found="yes"
15539		fi
15540	fi
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556xorg_testset_save_CFLAGS="$CFLAGS"
15557
15558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15563  $as_echo_n "(cached) " >&6
15564else
15565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566/* end confdefs.h.  */
15567int i;
15568_ACEOF
15569if ac_fn_c_try_compile "$LINENO"; then :
15570  xorg_cv_cc_flag_unknown_warning_option=yes
15571else
15572  xorg_cv_cc_flag_unknown_warning_option=no
15573fi
15574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15575fi
15576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15579	CFLAGS="$xorg_testset_save_CFLAGS"
15580fi
15581
15582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585	fi
15586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15590  $as_echo_n "(cached) " >&6
15591else
15592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593/* end confdefs.h.  */
15594int i;
15595_ACEOF
15596if ac_fn_c_try_compile "$LINENO"; then :
15597  xorg_cv_cc_flag_unused_command_line_argument=yes
15598else
15599  xorg_cv_cc_flag_unused_command_line_argument=no
15600fi
15601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15602fi
15603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15605	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15606	CFLAGS="$xorg_testset_save_CFLAGS"
15607fi
15608
15609found="no"
15610
15611	if test $found = "no" ; then
15612		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15614		fi
15615
15616		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15618		fi
15619
15620		CFLAGS="$CFLAGS -Werror=nonnull"
15621
15622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15623$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15624		cacheid=xorg_cv_cc_flag__Werror_nonnull
15625		if eval \${$cacheid+:} false; then :
15626  $as_echo_n "(cached) " >&6
15627else
15628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h.  */
15630int i;
15631int
15632main ()
15633{
15634
15635  ;
15636  return 0;
15637}
15638_ACEOF
15639if ac_fn_c_try_link "$LINENO"; then :
15640  eval $cacheid=yes
15641else
15642  eval $cacheid=no
15643fi
15644rm -f core conftest.err conftest.$ac_objext \
15645    conftest$ac_exeext conftest.$ac_ext
15646fi
15647
15648
15649		CFLAGS="$xorg_testset_save_CFLAGS"
15650
15651		eval supported=\$$cacheid
15652		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15653$as_echo "$supported" >&6; }
15654		if test "$supported" = "yes" ; then
15655			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15656			found="yes"
15657		fi
15658	fi
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674xorg_testset_save_CFLAGS="$CFLAGS"
15675
15676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15677	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15681  $as_echo_n "(cached) " >&6
15682else
15683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684/* end confdefs.h.  */
15685int i;
15686_ACEOF
15687if ac_fn_c_try_compile "$LINENO"; then :
15688  xorg_cv_cc_flag_unknown_warning_option=yes
15689else
15690  xorg_cv_cc_flag_unknown_warning_option=no
15691fi
15692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15693fi
15694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15697	CFLAGS="$xorg_testset_save_CFLAGS"
15698fi
15699
15700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703	fi
15704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15708  $as_echo_n "(cached) " >&6
15709else
15710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711/* end confdefs.h.  */
15712int i;
15713_ACEOF
15714if ac_fn_c_try_compile "$LINENO"; then :
15715  xorg_cv_cc_flag_unused_command_line_argument=yes
15716else
15717  xorg_cv_cc_flag_unused_command_line_argument=no
15718fi
15719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15720fi
15721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15723	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15724	CFLAGS="$xorg_testset_save_CFLAGS"
15725fi
15726
15727found="no"
15728
15729	if test $found = "no" ; then
15730		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15732		fi
15733
15734		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15736		fi
15737
15738		CFLAGS="$CFLAGS -Werror=init-self"
15739
15740		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15741$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15742		cacheid=xorg_cv_cc_flag__Werror_init_self
15743		if eval \${$cacheid+:} false; then :
15744  $as_echo_n "(cached) " >&6
15745else
15746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747/* end confdefs.h.  */
15748int i;
15749int
15750main ()
15751{
15752
15753  ;
15754  return 0;
15755}
15756_ACEOF
15757if ac_fn_c_try_link "$LINENO"; then :
15758  eval $cacheid=yes
15759else
15760  eval $cacheid=no
15761fi
15762rm -f core conftest.err conftest.$ac_objext \
15763    conftest$ac_exeext conftest.$ac_ext
15764fi
15765
15766
15767		CFLAGS="$xorg_testset_save_CFLAGS"
15768
15769		eval supported=\$$cacheid
15770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15771$as_echo "$supported" >&6; }
15772		if test "$supported" = "yes" ; then
15773			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15774			found="yes"
15775		fi
15776	fi
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792xorg_testset_save_CFLAGS="$CFLAGS"
15793
15794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15795	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15799  $as_echo_n "(cached) " >&6
15800else
15801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802/* end confdefs.h.  */
15803int i;
15804_ACEOF
15805if ac_fn_c_try_compile "$LINENO"; then :
15806  xorg_cv_cc_flag_unknown_warning_option=yes
15807else
15808  xorg_cv_cc_flag_unknown_warning_option=no
15809fi
15810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811fi
15812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15815	CFLAGS="$xorg_testset_save_CFLAGS"
15816fi
15817
15818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821	fi
15822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15826  $as_echo_n "(cached) " >&6
15827else
15828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h.  */
15830int i;
15831_ACEOF
15832if ac_fn_c_try_compile "$LINENO"; then :
15833  xorg_cv_cc_flag_unused_command_line_argument=yes
15834else
15835  xorg_cv_cc_flag_unused_command_line_argument=no
15836fi
15837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838fi
15839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15841	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15842	CFLAGS="$xorg_testset_save_CFLAGS"
15843fi
15844
15845found="no"
15846
15847	if test $found = "no" ; then
15848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15850		fi
15851
15852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15854		fi
15855
15856		CFLAGS="$CFLAGS -Werror=main"
15857
15858		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15859$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15860		cacheid=xorg_cv_cc_flag__Werror_main
15861		if eval \${$cacheid+:} false; then :
15862  $as_echo_n "(cached) " >&6
15863else
15864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865/* end confdefs.h.  */
15866int i;
15867int
15868main ()
15869{
15870
15871  ;
15872  return 0;
15873}
15874_ACEOF
15875if ac_fn_c_try_link "$LINENO"; then :
15876  eval $cacheid=yes
15877else
15878  eval $cacheid=no
15879fi
15880rm -f core conftest.err conftest.$ac_objext \
15881    conftest$ac_exeext conftest.$ac_ext
15882fi
15883
15884
15885		CFLAGS="$xorg_testset_save_CFLAGS"
15886
15887		eval supported=\$$cacheid
15888		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15889$as_echo "$supported" >&6; }
15890		if test "$supported" = "yes" ; then
15891			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15892			found="yes"
15893		fi
15894	fi
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910xorg_testset_save_CFLAGS="$CFLAGS"
15911
15912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15917  $as_echo_n "(cached) " >&6
15918else
15919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920/* end confdefs.h.  */
15921int i;
15922_ACEOF
15923if ac_fn_c_try_compile "$LINENO"; then :
15924  xorg_cv_cc_flag_unknown_warning_option=yes
15925else
15926  xorg_cv_cc_flag_unknown_warning_option=no
15927fi
15928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929fi
15930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15933	CFLAGS="$xorg_testset_save_CFLAGS"
15934fi
15935
15936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939	fi
15940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15944  $as_echo_n "(cached) " >&6
15945else
15946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947/* end confdefs.h.  */
15948int i;
15949_ACEOF
15950if ac_fn_c_try_compile "$LINENO"; then :
15951  xorg_cv_cc_flag_unused_command_line_argument=yes
15952else
15953  xorg_cv_cc_flag_unused_command_line_argument=no
15954fi
15955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956fi
15957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15960	CFLAGS="$xorg_testset_save_CFLAGS"
15961fi
15962
15963found="no"
15964
15965	if test $found = "no" ; then
15966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15968		fi
15969
15970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15972		fi
15973
15974		CFLAGS="$CFLAGS -Werror=missing-braces"
15975
15976		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15977$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15978		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15979		if eval \${$cacheid+:} false; then :
15980  $as_echo_n "(cached) " >&6
15981else
15982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983/* end confdefs.h.  */
15984int i;
15985int
15986main ()
15987{
15988
15989  ;
15990  return 0;
15991}
15992_ACEOF
15993if ac_fn_c_try_link "$LINENO"; then :
15994  eval $cacheid=yes
15995else
15996  eval $cacheid=no
15997fi
15998rm -f core conftest.err conftest.$ac_objext \
15999    conftest$ac_exeext conftest.$ac_ext
16000fi
16001
16002
16003		CFLAGS="$xorg_testset_save_CFLAGS"
16004
16005		eval supported=\$$cacheid
16006		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16007$as_echo "$supported" >&6; }
16008		if test "$supported" = "yes" ; then
16009			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16010			found="yes"
16011		fi
16012	fi
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028xorg_testset_save_CFLAGS="$CFLAGS"
16029
16030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16035  $as_echo_n "(cached) " >&6
16036else
16037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038/* end confdefs.h.  */
16039int i;
16040_ACEOF
16041if ac_fn_c_try_compile "$LINENO"; then :
16042  xorg_cv_cc_flag_unknown_warning_option=yes
16043else
16044  xorg_cv_cc_flag_unknown_warning_option=no
16045fi
16046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047fi
16048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16051	CFLAGS="$xorg_testset_save_CFLAGS"
16052fi
16053
16054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057	fi
16058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16062  $as_echo_n "(cached) " >&6
16063else
16064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065/* end confdefs.h.  */
16066int i;
16067_ACEOF
16068if ac_fn_c_try_compile "$LINENO"; then :
16069  xorg_cv_cc_flag_unused_command_line_argument=yes
16070else
16071  xorg_cv_cc_flag_unused_command_line_argument=no
16072fi
16073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074fi
16075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16078	CFLAGS="$xorg_testset_save_CFLAGS"
16079fi
16080
16081found="no"
16082
16083	if test $found = "no" ; then
16084		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16086		fi
16087
16088		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16090		fi
16091
16092		CFLAGS="$CFLAGS -Werror=sequence-point"
16093
16094		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16095$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
16096		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16097		if eval \${$cacheid+:} false; then :
16098  $as_echo_n "(cached) " >&6
16099else
16100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101/* end confdefs.h.  */
16102int i;
16103int
16104main ()
16105{
16106
16107  ;
16108  return 0;
16109}
16110_ACEOF
16111if ac_fn_c_try_link "$LINENO"; then :
16112  eval $cacheid=yes
16113else
16114  eval $cacheid=no
16115fi
16116rm -f core conftest.err conftest.$ac_objext \
16117    conftest$ac_exeext conftest.$ac_ext
16118fi
16119
16120
16121		CFLAGS="$xorg_testset_save_CFLAGS"
16122
16123		eval supported=\$$cacheid
16124		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16125$as_echo "$supported" >&6; }
16126		if test "$supported" = "yes" ; then
16127			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16128			found="yes"
16129		fi
16130	fi
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146xorg_testset_save_CFLAGS="$CFLAGS"
16147
16148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16153  $as_echo_n "(cached) " >&6
16154else
16155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156/* end confdefs.h.  */
16157int i;
16158_ACEOF
16159if ac_fn_c_try_compile "$LINENO"; then :
16160  xorg_cv_cc_flag_unknown_warning_option=yes
16161else
16162  xorg_cv_cc_flag_unknown_warning_option=no
16163fi
16164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165fi
16166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16169	CFLAGS="$xorg_testset_save_CFLAGS"
16170fi
16171
16172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16175	fi
16176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16180  $as_echo_n "(cached) " >&6
16181else
16182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183/* end confdefs.h.  */
16184int i;
16185_ACEOF
16186if ac_fn_c_try_compile "$LINENO"; then :
16187  xorg_cv_cc_flag_unused_command_line_argument=yes
16188else
16189  xorg_cv_cc_flag_unused_command_line_argument=no
16190fi
16191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192fi
16193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16196	CFLAGS="$xorg_testset_save_CFLAGS"
16197fi
16198
16199found="no"
16200
16201	if test $found = "no" ; then
16202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16204		fi
16205
16206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16208		fi
16209
16210		CFLAGS="$CFLAGS -Werror=return-type"
16211
16212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16213$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
16214		cacheid=xorg_cv_cc_flag__Werror_return_type
16215		if eval \${$cacheid+:} false; then :
16216  $as_echo_n "(cached) " >&6
16217else
16218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219/* end confdefs.h.  */
16220int i;
16221int
16222main ()
16223{
16224
16225  ;
16226  return 0;
16227}
16228_ACEOF
16229if ac_fn_c_try_link "$LINENO"; then :
16230  eval $cacheid=yes
16231else
16232  eval $cacheid=no
16233fi
16234rm -f core conftest.err conftest.$ac_objext \
16235    conftest$ac_exeext conftest.$ac_ext
16236fi
16237
16238
16239		CFLAGS="$xorg_testset_save_CFLAGS"
16240
16241		eval supported=\$$cacheid
16242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16243$as_echo "$supported" >&6; }
16244		if test "$supported" = "yes" ; then
16245			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16246			found="yes"
16247		fi
16248	fi
16249
16250	if test $found = "no" ; then
16251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16253		fi
16254
16255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16257		fi
16258
16259		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16260
16261		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16262$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16263		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16264		if eval \${$cacheid+:} false; then :
16265  $as_echo_n "(cached) " >&6
16266else
16267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268/* end confdefs.h.  */
16269int i;
16270int
16271main ()
16272{
16273
16274  ;
16275  return 0;
16276}
16277_ACEOF
16278if ac_fn_c_try_link "$LINENO"; then :
16279  eval $cacheid=yes
16280else
16281  eval $cacheid=no
16282fi
16283rm -f core conftest.err conftest.$ac_objext \
16284    conftest$ac_exeext conftest.$ac_ext
16285fi
16286
16287
16288		CFLAGS="$xorg_testset_save_CFLAGS"
16289
16290		eval supported=\$$cacheid
16291		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16292$as_echo "$supported" >&6; }
16293		if test "$supported" = "yes" ; then
16294			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16295			found="yes"
16296		fi
16297	fi
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313xorg_testset_save_CFLAGS="$CFLAGS"
16314
16315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16320  $as_echo_n "(cached) " >&6
16321else
16322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323/* end confdefs.h.  */
16324int i;
16325_ACEOF
16326if ac_fn_c_try_compile "$LINENO"; then :
16327  xorg_cv_cc_flag_unknown_warning_option=yes
16328else
16329  xorg_cv_cc_flag_unknown_warning_option=no
16330fi
16331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16332fi
16333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16336	CFLAGS="$xorg_testset_save_CFLAGS"
16337fi
16338
16339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16342	fi
16343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16347  $as_echo_n "(cached) " >&6
16348else
16349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h.  */
16351int i;
16352_ACEOF
16353if ac_fn_c_try_compile "$LINENO"; then :
16354  xorg_cv_cc_flag_unused_command_line_argument=yes
16355else
16356  xorg_cv_cc_flag_unused_command_line_argument=no
16357fi
16358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16359fi
16360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16363	CFLAGS="$xorg_testset_save_CFLAGS"
16364fi
16365
16366found="no"
16367
16368	if test $found = "no" ; then
16369		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16371		fi
16372
16373		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16375		fi
16376
16377		CFLAGS="$CFLAGS -Werror=trigraphs"
16378
16379		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16380$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
16381		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16382		if eval \${$cacheid+:} false; then :
16383  $as_echo_n "(cached) " >&6
16384else
16385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386/* end confdefs.h.  */
16387int i;
16388int
16389main ()
16390{
16391
16392  ;
16393  return 0;
16394}
16395_ACEOF
16396if ac_fn_c_try_link "$LINENO"; then :
16397  eval $cacheid=yes
16398else
16399  eval $cacheid=no
16400fi
16401rm -f core conftest.err conftest.$ac_objext \
16402    conftest$ac_exeext conftest.$ac_ext
16403fi
16404
16405
16406		CFLAGS="$xorg_testset_save_CFLAGS"
16407
16408		eval supported=\$$cacheid
16409		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16410$as_echo "$supported" >&6; }
16411		if test "$supported" = "yes" ; then
16412			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16413			found="yes"
16414		fi
16415	fi
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431xorg_testset_save_CFLAGS="$CFLAGS"
16432
16433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16434	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16438  $as_echo_n "(cached) " >&6
16439else
16440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441/* end confdefs.h.  */
16442int i;
16443_ACEOF
16444if ac_fn_c_try_compile "$LINENO"; then :
16445  xorg_cv_cc_flag_unknown_warning_option=yes
16446else
16447  xorg_cv_cc_flag_unknown_warning_option=no
16448fi
16449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450fi
16451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16454	CFLAGS="$xorg_testset_save_CFLAGS"
16455fi
16456
16457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16460	fi
16461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16465  $as_echo_n "(cached) " >&6
16466else
16467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468/* end confdefs.h.  */
16469int i;
16470_ACEOF
16471if ac_fn_c_try_compile "$LINENO"; then :
16472  xorg_cv_cc_flag_unused_command_line_argument=yes
16473else
16474  xorg_cv_cc_flag_unused_command_line_argument=no
16475fi
16476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16477fi
16478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16480	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16481	CFLAGS="$xorg_testset_save_CFLAGS"
16482fi
16483
16484found="no"
16485
16486	if test $found = "no" ; then
16487		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16489		fi
16490
16491		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16493		fi
16494
16495		CFLAGS="$CFLAGS -Werror=array-bounds"
16496
16497		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16498$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16499		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16500		if eval \${$cacheid+:} false; then :
16501  $as_echo_n "(cached) " >&6
16502else
16503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504/* end confdefs.h.  */
16505int i;
16506int
16507main ()
16508{
16509
16510  ;
16511  return 0;
16512}
16513_ACEOF
16514if ac_fn_c_try_link "$LINENO"; then :
16515  eval $cacheid=yes
16516else
16517  eval $cacheid=no
16518fi
16519rm -f core conftest.err conftest.$ac_objext \
16520    conftest$ac_exeext conftest.$ac_ext
16521fi
16522
16523
16524		CFLAGS="$xorg_testset_save_CFLAGS"
16525
16526		eval supported=\$$cacheid
16527		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16528$as_echo "$supported" >&6; }
16529		if test "$supported" = "yes" ; then
16530			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16531			found="yes"
16532		fi
16533	fi
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549xorg_testset_save_CFLAGS="$CFLAGS"
16550
16551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16552	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16556  $as_echo_n "(cached) " >&6
16557else
16558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559/* end confdefs.h.  */
16560int i;
16561_ACEOF
16562if ac_fn_c_try_compile "$LINENO"; then :
16563  xorg_cv_cc_flag_unknown_warning_option=yes
16564else
16565  xorg_cv_cc_flag_unknown_warning_option=no
16566fi
16567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16568fi
16569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16572	CFLAGS="$xorg_testset_save_CFLAGS"
16573fi
16574
16575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16578	fi
16579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16583  $as_echo_n "(cached) " >&6
16584else
16585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586/* end confdefs.h.  */
16587int i;
16588_ACEOF
16589if ac_fn_c_try_compile "$LINENO"; then :
16590  xorg_cv_cc_flag_unused_command_line_argument=yes
16591else
16592  xorg_cv_cc_flag_unused_command_line_argument=no
16593fi
16594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595fi
16596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16599	CFLAGS="$xorg_testset_save_CFLAGS"
16600fi
16601
16602found="no"
16603
16604	if test $found = "no" ; then
16605		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16607		fi
16608
16609		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16611		fi
16612
16613		CFLAGS="$CFLAGS -Werror=write-strings"
16614
16615		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16616$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16617		cacheid=xorg_cv_cc_flag__Werror_write_strings
16618		if eval \${$cacheid+:} false; then :
16619  $as_echo_n "(cached) " >&6
16620else
16621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622/* end confdefs.h.  */
16623int i;
16624int
16625main ()
16626{
16627
16628  ;
16629  return 0;
16630}
16631_ACEOF
16632if ac_fn_c_try_link "$LINENO"; then :
16633  eval $cacheid=yes
16634else
16635  eval $cacheid=no
16636fi
16637rm -f core conftest.err conftest.$ac_objext \
16638    conftest$ac_exeext conftest.$ac_ext
16639fi
16640
16641
16642		CFLAGS="$xorg_testset_save_CFLAGS"
16643
16644		eval supported=\$$cacheid
16645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16646$as_echo "$supported" >&6; }
16647		if test "$supported" = "yes" ; then
16648			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16649			found="yes"
16650		fi
16651	fi
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667xorg_testset_save_CFLAGS="$CFLAGS"
16668
16669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16674  $as_echo_n "(cached) " >&6
16675else
16676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677/* end confdefs.h.  */
16678int i;
16679_ACEOF
16680if ac_fn_c_try_compile "$LINENO"; then :
16681  xorg_cv_cc_flag_unknown_warning_option=yes
16682else
16683  xorg_cv_cc_flag_unknown_warning_option=no
16684fi
16685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686fi
16687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16689	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16690	CFLAGS="$xorg_testset_save_CFLAGS"
16691fi
16692
16693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16694	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16695		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16696	fi
16697	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16701  $as_echo_n "(cached) " >&6
16702else
16703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704/* end confdefs.h.  */
16705int i;
16706_ACEOF
16707if ac_fn_c_try_compile "$LINENO"; then :
16708  xorg_cv_cc_flag_unused_command_line_argument=yes
16709else
16710  xorg_cv_cc_flag_unused_command_line_argument=no
16711fi
16712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713fi
16714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16717	CFLAGS="$xorg_testset_save_CFLAGS"
16718fi
16719
16720found="no"
16721
16722	if test $found = "no" ; then
16723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16725		fi
16726
16727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16729		fi
16730
16731		CFLAGS="$CFLAGS -Werror=address"
16732
16733		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16734$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16735		cacheid=xorg_cv_cc_flag__Werror_address
16736		if eval \${$cacheid+:} false; then :
16737  $as_echo_n "(cached) " >&6
16738else
16739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740/* end confdefs.h.  */
16741int i;
16742int
16743main ()
16744{
16745
16746  ;
16747  return 0;
16748}
16749_ACEOF
16750if ac_fn_c_try_link "$LINENO"; then :
16751  eval $cacheid=yes
16752else
16753  eval $cacheid=no
16754fi
16755rm -f core conftest.err conftest.$ac_objext \
16756    conftest$ac_exeext conftest.$ac_ext
16757fi
16758
16759
16760		CFLAGS="$xorg_testset_save_CFLAGS"
16761
16762		eval supported=\$$cacheid
16763		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16764$as_echo "$supported" >&6; }
16765		if test "$supported" = "yes" ; then
16766			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16767			found="yes"
16768		fi
16769	fi
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785xorg_testset_save_CFLAGS="$CFLAGS"
16786
16787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16792  $as_echo_n "(cached) " >&6
16793else
16794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795/* end confdefs.h.  */
16796int i;
16797_ACEOF
16798if ac_fn_c_try_compile "$LINENO"; then :
16799  xorg_cv_cc_flag_unknown_warning_option=yes
16800else
16801  xorg_cv_cc_flag_unknown_warning_option=no
16802fi
16803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804fi
16805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16807	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16808	CFLAGS="$xorg_testset_save_CFLAGS"
16809fi
16810
16811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16812	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16813		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16814	fi
16815	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16819  $as_echo_n "(cached) " >&6
16820else
16821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822/* end confdefs.h.  */
16823int i;
16824_ACEOF
16825if ac_fn_c_try_compile "$LINENO"; then :
16826  xorg_cv_cc_flag_unused_command_line_argument=yes
16827else
16828  xorg_cv_cc_flag_unused_command_line_argument=no
16829fi
16830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831fi
16832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16834	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16835	CFLAGS="$xorg_testset_save_CFLAGS"
16836fi
16837
16838found="no"
16839
16840	if test $found = "no" ; then
16841		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16842			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16843		fi
16844
16845		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16846			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16847		fi
16848
16849		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16850
16851		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16852$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16853		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16854		if eval \${$cacheid+:} false; then :
16855  $as_echo_n "(cached) " >&6
16856else
16857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858/* end confdefs.h.  */
16859int i;
16860int
16861main ()
16862{
16863
16864  ;
16865  return 0;
16866}
16867_ACEOF
16868if ac_fn_c_try_link "$LINENO"; then :
16869  eval $cacheid=yes
16870else
16871  eval $cacheid=no
16872fi
16873rm -f core conftest.err conftest.$ac_objext \
16874    conftest$ac_exeext conftest.$ac_ext
16875fi
16876
16877
16878		CFLAGS="$xorg_testset_save_CFLAGS"
16879
16880		eval supported=\$$cacheid
16881		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16882$as_echo "$supported" >&6; }
16883		if test "$supported" = "yes" ; then
16884			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16885			found="yes"
16886		fi
16887	fi
16888
16889	if test $found = "no" ; then
16890		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16891			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16892		fi
16893
16894		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16895			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16896		fi
16897
16898		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16899
16900		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16901$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16902		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16903		if eval \${$cacheid+:} false; then :
16904  $as_echo_n "(cached) " >&6
16905else
16906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907/* end confdefs.h.  */
16908int i;
16909int
16910main ()
16911{
16912
16913  ;
16914  return 0;
16915}
16916_ACEOF
16917if ac_fn_c_try_link "$LINENO"; then :
16918  eval $cacheid=yes
16919else
16920  eval $cacheid=no
16921fi
16922rm -f core conftest.err conftest.$ac_objext \
16923    conftest$ac_exeext conftest.$ac_ext
16924fi
16925
16926
16927		CFLAGS="$xorg_testset_save_CFLAGS"
16928
16929		eval supported=\$$cacheid
16930		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16931$as_echo "$supported" >&6; }
16932		if test "$supported" = "yes" ; then
16933			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16934			found="yes"
16935		fi
16936	fi
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952xorg_testset_save_CFLAGS="$CFLAGS"
16953
16954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16956	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16959  $as_echo_n "(cached) " >&6
16960else
16961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962/* end confdefs.h.  */
16963int i;
16964_ACEOF
16965if ac_fn_c_try_compile "$LINENO"; then :
16966  xorg_cv_cc_flag_unknown_warning_option=yes
16967else
16968  xorg_cv_cc_flag_unknown_warning_option=no
16969fi
16970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971fi
16972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16974	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16975	CFLAGS="$xorg_testset_save_CFLAGS"
16976fi
16977
16978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16979	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16980		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16981	fi
16982	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16986  $as_echo_n "(cached) " >&6
16987else
16988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989/* end confdefs.h.  */
16990int i;
16991_ACEOF
16992if ac_fn_c_try_compile "$LINENO"; then :
16993  xorg_cv_cc_flag_unused_command_line_argument=yes
16994else
16995  xorg_cv_cc_flag_unused_command_line_argument=no
16996fi
16997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16998fi
16999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17001	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17002	CFLAGS="$xorg_testset_save_CFLAGS"
17003fi
17004
17005found="no"
17006
17007	if test $found = "no" ; then
17008		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17009			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17010		fi
17011
17012		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17013			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17014		fi
17015
17016		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17017
17018		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17019$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17020		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17021		if eval \${$cacheid+:} false; then :
17022  $as_echo_n "(cached) " >&6
17023else
17024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17025/* end confdefs.h.  */
17026int i;
17027int
17028main ()
17029{
17030
17031  ;
17032  return 0;
17033}
17034_ACEOF
17035if ac_fn_c_try_link "$LINENO"; then :
17036  eval $cacheid=yes
17037else
17038  eval $cacheid=no
17039fi
17040rm -f core conftest.err conftest.$ac_objext \
17041    conftest$ac_exeext conftest.$ac_ext
17042fi
17043
17044
17045		CFLAGS="$xorg_testset_save_CFLAGS"
17046
17047		eval supported=\$$cacheid
17048		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17049$as_echo "$supported" >&6; }
17050		if test "$supported" = "yes" ; then
17051			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17052			found="yes"
17053		fi
17054	fi
17055
17056 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17057else
17058{ $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
17059$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;}
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073xorg_testset_save_CFLAGS="$CFLAGS"
17074
17075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17080  $as_echo_n "(cached) " >&6
17081else
17082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083/* end confdefs.h.  */
17084int i;
17085_ACEOF
17086if ac_fn_c_try_compile "$LINENO"; then :
17087  xorg_cv_cc_flag_unknown_warning_option=yes
17088else
17089  xorg_cv_cc_flag_unknown_warning_option=no
17090fi
17091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092fi
17093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17096	CFLAGS="$xorg_testset_save_CFLAGS"
17097fi
17098
17099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17102	fi
17103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17107  $as_echo_n "(cached) " >&6
17108else
17109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110/* end confdefs.h.  */
17111int i;
17112_ACEOF
17113if ac_fn_c_try_compile "$LINENO"; then :
17114  xorg_cv_cc_flag_unused_command_line_argument=yes
17115else
17116  xorg_cv_cc_flag_unused_command_line_argument=no
17117fi
17118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119fi
17120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17123	CFLAGS="$xorg_testset_save_CFLAGS"
17124fi
17125
17126found="no"
17127
17128	if test $found = "no" ; then
17129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17131		fi
17132
17133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17135		fi
17136
17137		CFLAGS="$CFLAGS -Wimplicit"
17138
17139		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17140$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
17141		cacheid=xorg_cv_cc_flag__Wimplicit
17142		if eval \${$cacheid+:} false; then :
17143  $as_echo_n "(cached) " >&6
17144else
17145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146/* end confdefs.h.  */
17147int i;
17148int
17149main ()
17150{
17151
17152  ;
17153  return 0;
17154}
17155_ACEOF
17156if ac_fn_c_try_link "$LINENO"; then :
17157  eval $cacheid=yes
17158else
17159  eval $cacheid=no
17160fi
17161rm -f core conftest.err conftest.$ac_objext \
17162    conftest$ac_exeext conftest.$ac_ext
17163fi
17164
17165
17166		CFLAGS="$xorg_testset_save_CFLAGS"
17167
17168		eval supported=\$$cacheid
17169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17170$as_echo "$supported" >&6; }
17171		if test "$supported" = "yes" ; then
17172			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17173			found="yes"
17174		fi
17175	fi
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191xorg_testset_save_CFLAGS="$CFLAGS"
17192
17193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17198  $as_echo_n "(cached) " >&6
17199else
17200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201/* end confdefs.h.  */
17202int i;
17203_ACEOF
17204if ac_fn_c_try_compile "$LINENO"; then :
17205  xorg_cv_cc_flag_unknown_warning_option=yes
17206else
17207  xorg_cv_cc_flag_unknown_warning_option=no
17208fi
17209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17210fi
17211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17213	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17214	CFLAGS="$xorg_testset_save_CFLAGS"
17215fi
17216
17217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17218	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17219		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17220	fi
17221	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17225  $as_echo_n "(cached) " >&6
17226else
17227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228/* end confdefs.h.  */
17229int i;
17230_ACEOF
17231if ac_fn_c_try_compile "$LINENO"; then :
17232  xorg_cv_cc_flag_unused_command_line_argument=yes
17233else
17234  xorg_cv_cc_flag_unused_command_line_argument=no
17235fi
17236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237fi
17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17241	CFLAGS="$xorg_testset_save_CFLAGS"
17242fi
17243
17244found="no"
17245
17246	if test $found = "no" ; then
17247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249		fi
17250
17251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253		fi
17254
17255		CFLAGS="$CFLAGS -Wnonnull"
17256
17257		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17258$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
17259		cacheid=xorg_cv_cc_flag__Wnonnull
17260		if eval \${$cacheid+:} false; then :
17261  $as_echo_n "(cached) " >&6
17262else
17263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264/* end confdefs.h.  */
17265int i;
17266int
17267main ()
17268{
17269
17270  ;
17271  return 0;
17272}
17273_ACEOF
17274if ac_fn_c_try_link "$LINENO"; then :
17275  eval $cacheid=yes
17276else
17277  eval $cacheid=no
17278fi
17279rm -f core conftest.err conftest.$ac_objext \
17280    conftest$ac_exeext conftest.$ac_ext
17281fi
17282
17283
17284		CFLAGS="$xorg_testset_save_CFLAGS"
17285
17286		eval supported=\$$cacheid
17287		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17288$as_echo "$supported" >&6; }
17289		if test "$supported" = "yes" ; then
17290			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17291			found="yes"
17292		fi
17293	fi
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309xorg_testset_save_CFLAGS="$CFLAGS"
17310
17311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17312	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17316  $as_echo_n "(cached) " >&6
17317else
17318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319/* end confdefs.h.  */
17320int i;
17321_ACEOF
17322if ac_fn_c_try_compile "$LINENO"; then :
17323  xorg_cv_cc_flag_unknown_warning_option=yes
17324else
17325  xorg_cv_cc_flag_unknown_warning_option=no
17326fi
17327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328fi
17329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17332	CFLAGS="$xorg_testset_save_CFLAGS"
17333fi
17334
17335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17338	fi
17339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17343  $as_echo_n "(cached) " >&6
17344else
17345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346/* end confdefs.h.  */
17347int i;
17348_ACEOF
17349if ac_fn_c_try_compile "$LINENO"; then :
17350  xorg_cv_cc_flag_unused_command_line_argument=yes
17351else
17352  xorg_cv_cc_flag_unused_command_line_argument=no
17353fi
17354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355fi
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17359	CFLAGS="$xorg_testset_save_CFLAGS"
17360fi
17361
17362found="no"
17363
17364	if test $found = "no" ; then
17365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17367		fi
17368
17369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17371		fi
17372
17373		CFLAGS="$CFLAGS -Winit-self"
17374
17375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17376$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
17377		cacheid=xorg_cv_cc_flag__Winit_self
17378		if eval \${$cacheid+:} false; then :
17379  $as_echo_n "(cached) " >&6
17380else
17381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382/* end confdefs.h.  */
17383int i;
17384int
17385main ()
17386{
17387
17388  ;
17389  return 0;
17390}
17391_ACEOF
17392if ac_fn_c_try_link "$LINENO"; then :
17393  eval $cacheid=yes
17394else
17395  eval $cacheid=no
17396fi
17397rm -f core conftest.err conftest.$ac_objext \
17398    conftest$ac_exeext conftest.$ac_ext
17399fi
17400
17401
17402		CFLAGS="$xorg_testset_save_CFLAGS"
17403
17404		eval supported=\$$cacheid
17405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17406$as_echo "$supported" >&6; }
17407		if test "$supported" = "yes" ; then
17408			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17409			found="yes"
17410		fi
17411	fi
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427xorg_testset_save_CFLAGS="$CFLAGS"
17428
17429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17434  $as_echo_n "(cached) " >&6
17435else
17436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437/* end confdefs.h.  */
17438int i;
17439_ACEOF
17440if ac_fn_c_try_compile "$LINENO"; then :
17441  xorg_cv_cc_flag_unknown_warning_option=yes
17442else
17443  xorg_cv_cc_flag_unknown_warning_option=no
17444fi
17445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446fi
17447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17449	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17450	CFLAGS="$xorg_testset_save_CFLAGS"
17451fi
17452
17453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17454	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17455		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456	fi
17457	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17461  $as_echo_n "(cached) " >&6
17462else
17463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464/* end confdefs.h.  */
17465int i;
17466_ACEOF
17467if ac_fn_c_try_compile "$LINENO"; then :
17468  xorg_cv_cc_flag_unused_command_line_argument=yes
17469else
17470  xorg_cv_cc_flag_unused_command_line_argument=no
17471fi
17472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473fi
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17477	CFLAGS="$xorg_testset_save_CFLAGS"
17478fi
17479
17480found="no"
17481
17482	if test $found = "no" ; then
17483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485		fi
17486
17487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17489		fi
17490
17491		CFLAGS="$CFLAGS -Wmain"
17492
17493		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17494$as_echo_n "checking if $CC supports -Wmain... " >&6; }
17495		cacheid=xorg_cv_cc_flag__Wmain
17496		if eval \${$cacheid+:} false; then :
17497  $as_echo_n "(cached) " >&6
17498else
17499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500/* end confdefs.h.  */
17501int i;
17502int
17503main ()
17504{
17505
17506  ;
17507  return 0;
17508}
17509_ACEOF
17510if ac_fn_c_try_link "$LINENO"; then :
17511  eval $cacheid=yes
17512else
17513  eval $cacheid=no
17514fi
17515rm -f core conftest.err conftest.$ac_objext \
17516    conftest$ac_exeext conftest.$ac_ext
17517fi
17518
17519
17520		CFLAGS="$xorg_testset_save_CFLAGS"
17521
17522		eval supported=\$$cacheid
17523		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17524$as_echo "$supported" >&6; }
17525		if test "$supported" = "yes" ; then
17526			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17527			found="yes"
17528		fi
17529	fi
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545xorg_testset_save_CFLAGS="$CFLAGS"
17546
17547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17552  $as_echo_n "(cached) " >&6
17553else
17554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555/* end confdefs.h.  */
17556int i;
17557_ACEOF
17558if ac_fn_c_try_compile "$LINENO"; then :
17559  xorg_cv_cc_flag_unknown_warning_option=yes
17560else
17561  xorg_cv_cc_flag_unknown_warning_option=no
17562fi
17563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564fi
17565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17567	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17568	CFLAGS="$xorg_testset_save_CFLAGS"
17569fi
17570
17571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17572	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17573		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574	fi
17575	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17579  $as_echo_n "(cached) " >&6
17580else
17581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582/* end confdefs.h.  */
17583int i;
17584_ACEOF
17585if ac_fn_c_try_compile "$LINENO"; then :
17586  xorg_cv_cc_flag_unused_command_line_argument=yes
17587else
17588  xorg_cv_cc_flag_unused_command_line_argument=no
17589fi
17590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591fi
17592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17594	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17595	CFLAGS="$xorg_testset_save_CFLAGS"
17596fi
17597
17598found="no"
17599
17600	if test $found = "no" ; then
17601		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17603		fi
17604
17605		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17607		fi
17608
17609		CFLAGS="$CFLAGS -Wmissing-braces"
17610
17611		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17612$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17613		cacheid=xorg_cv_cc_flag__Wmissing_braces
17614		if eval \${$cacheid+:} false; then :
17615  $as_echo_n "(cached) " >&6
17616else
17617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618/* end confdefs.h.  */
17619int i;
17620int
17621main ()
17622{
17623
17624  ;
17625  return 0;
17626}
17627_ACEOF
17628if ac_fn_c_try_link "$LINENO"; then :
17629  eval $cacheid=yes
17630else
17631  eval $cacheid=no
17632fi
17633rm -f core conftest.err conftest.$ac_objext \
17634    conftest$ac_exeext conftest.$ac_ext
17635fi
17636
17637
17638		CFLAGS="$xorg_testset_save_CFLAGS"
17639
17640		eval supported=\$$cacheid
17641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17642$as_echo "$supported" >&6; }
17643		if test "$supported" = "yes" ; then
17644			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17645			found="yes"
17646		fi
17647	fi
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663xorg_testset_save_CFLAGS="$CFLAGS"
17664
17665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17670  $as_echo_n "(cached) " >&6
17671else
17672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673/* end confdefs.h.  */
17674int i;
17675_ACEOF
17676if ac_fn_c_try_compile "$LINENO"; then :
17677  xorg_cv_cc_flag_unknown_warning_option=yes
17678else
17679  xorg_cv_cc_flag_unknown_warning_option=no
17680fi
17681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682fi
17683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17686	CFLAGS="$xorg_testset_save_CFLAGS"
17687fi
17688
17689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17692	fi
17693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17697  $as_echo_n "(cached) " >&6
17698else
17699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700/* end confdefs.h.  */
17701int i;
17702_ACEOF
17703if ac_fn_c_try_compile "$LINENO"; then :
17704  xorg_cv_cc_flag_unused_command_line_argument=yes
17705else
17706  xorg_cv_cc_flag_unused_command_line_argument=no
17707fi
17708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709fi
17710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17713	CFLAGS="$xorg_testset_save_CFLAGS"
17714fi
17715
17716found="no"
17717
17718	if test $found = "no" ; then
17719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17721		fi
17722
17723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17725		fi
17726
17727		CFLAGS="$CFLAGS -Wsequence-point"
17728
17729		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17730$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17731		cacheid=xorg_cv_cc_flag__Wsequence_point
17732		if eval \${$cacheid+:} false; then :
17733  $as_echo_n "(cached) " >&6
17734else
17735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h.  */
17737int i;
17738int
17739main ()
17740{
17741
17742  ;
17743  return 0;
17744}
17745_ACEOF
17746if ac_fn_c_try_link "$LINENO"; then :
17747  eval $cacheid=yes
17748else
17749  eval $cacheid=no
17750fi
17751rm -f core conftest.err conftest.$ac_objext \
17752    conftest$ac_exeext conftest.$ac_ext
17753fi
17754
17755
17756		CFLAGS="$xorg_testset_save_CFLAGS"
17757
17758		eval supported=\$$cacheid
17759		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17760$as_echo "$supported" >&6; }
17761		if test "$supported" = "yes" ; then
17762			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17763			found="yes"
17764		fi
17765	fi
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781xorg_testset_save_CFLAGS="$CFLAGS"
17782
17783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17788  $as_echo_n "(cached) " >&6
17789else
17790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17791/* end confdefs.h.  */
17792int i;
17793_ACEOF
17794if ac_fn_c_try_compile "$LINENO"; then :
17795  xorg_cv_cc_flag_unknown_warning_option=yes
17796else
17797  xorg_cv_cc_flag_unknown_warning_option=no
17798fi
17799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800fi
17801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17804	CFLAGS="$xorg_testset_save_CFLAGS"
17805fi
17806
17807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17810	fi
17811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17815  $as_echo_n "(cached) " >&6
17816else
17817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818/* end confdefs.h.  */
17819int i;
17820_ACEOF
17821if ac_fn_c_try_compile "$LINENO"; then :
17822  xorg_cv_cc_flag_unused_command_line_argument=yes
17823else
17824  xorg_cv_cc_flag_unused_command_line_argument=no
17825fi
17826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827fi
17828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17831	CFLAGS="$xorg_testset_save_CFLAGS"
17832fi
17833
17834found="no"
17835
17836	if test $found = "no" ; then
17837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17839		fi
17840
17841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17843		fi
17844
17845		CFLAGS="$CFLAGS -Wreturn-type"
17846
17847		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17848$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17849		cacheid=xorg_cv_cc_flag__Wreturn_type
17850		if eval \${$cacheid+:} false; then :
17851  $as_echo_n "(cached) " >&6
17852else
17853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854/* end confdefs.h.  */
17855int i;
17856int
17857main ()
17858{
17859
17860  ;
17861  return 0;
17862}
17863_ACEOF
17864if ac_fn_c_try_link "$LINENO"; then :
17865  eval $cacheid=yes
17866else
17867  eval $cacheid=no
17868fi
17869rm -f core conftest.err conftest.$ac_objext \
17870    conftest$ac_exeext conftest.$ac_ext
17871fi
17872
17873
17874		CFLAGS="$xorg_testset_save_CFLAGS"
17875
17876		eval supported=\$$cacheid
17877		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17878$as_echo "$supported" >&6; }
17879		if test "$supported" = "yes" ; then
17880			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17881			found="yes"
17882		fi
17883	fi
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899xorg_testset_save_CFLAGS="$CFLAGS"
17900
17901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17906  $as_echo_n "(cached) " >&6
17907else
17908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909/* end confdefs.h.  */
17910int i;
17911_ACEOF
17912if ac_fn_c_try_compile "$LINENO"; then :
17913  xorg_cv_cc_flag_unknown_warning_option=yes
17914else
17915  xorg_cv_cc_flag_unknown_warning_option=no
17916fi
17917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918fi
17919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17922	CFLAGS="$xorg_testset_save_CFLAGS"
17923fi
17924
17925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17928	fi
17929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17933  $as_echo_n "(cached) " >&6
17934else
17935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936/* end confdefs.h.  */
17937int i;
17938_ACEOF
17939if ac_fn_c_try_compile "$LINENO"; then :
17940  xorg_cv_cc_flag_unused_command_line_argument=yes
17941else
17942  xorg_cv_cc_flag_unused_command_line_argument=no
17943fi
17944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17945fi
17946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17949	CFLAGS="$xorg_testset_save_CFLAGS"
17950fi
17951
17952found="no"
17953
17954	if test $found = "no" ; then
17955		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17957		fi
17958
17959		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17961		fi
17962
17963		CFLAGS="$CFLAGS -Wtrigraphs"
17964
17965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17966$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17967		cacheid=xorg_cv_cc_flag__Wtrigraphs
17968		if eval \${$cacheid+:} false; then :
17969  $as_echo_n "(cached) " >&6
17970else
17971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972/* end confdefs.h.  */
17973int i;
17974int
17975main ()
17976{
17977
17978  ;
17979  return 0;
17980}
17981_ACEOF
17982if ac_fn_c_try_link "$LINENO"; then :
17983  eval $cacheid=yes
17984else
17985  eval $cacheid=no
17986fi
17987rm -f core conftest.err conftest.$ac_objext \
17988    conftest$ac_exeext conftest.$ac_ext
17989fi
17990
17991
17992		CFLAGS="$xorg_testset_save_CFLAGS"
17993
17994		eval supported=\$$cacheid
17995		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17996$as_echo "$supported" >&6; }
17997		if test "$supported" = "yes" ; then
17998			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17999			found="yes"
18000		fi
18001	fi
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017xorg_testset_save_CFLAGS="$CFLAGS"
18018
18019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18024  $as_echo_n "(cached) " >&6
18025else
18026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18027/* end confdefs.h.  */
18028int i;
18029_ACEOF
18030if ac_fn_c_try_compile "$LINENO"; then :
18031  xorg_cv_cc_flag_unknown_warning_option=yes
18032else
18033  xorg_cv_cc_flag_unknown_warning_option=no
18034fi
18035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036fi
18037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18039	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18040	CFLAGS="$xorg_testset_save_CFLAGS"
18041fi
18042
18043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18044	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18045		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18046	fi
18047	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18051  $as_echo_n "(cached) " >&6
18052else
18053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054/* end confdefs.h.  */
18055int i;
18056_ACEOF
18057if ac_fn_c_try_compile "$LINENO"; then :
18058  xorg_cv_cc_flag_unused_command_line_argument=yes
18059else
18060  xorg_cv_cc_flag_unused_command_line_argument=no
18061fi
18062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063fi
18064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18066	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18067	CFLAGS="$xorg_testset_save_CFLAGS"
18068fi
18069
18070found="no"
18071
18072	if test $found = "no" ; then
18073		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18075		fi
18076
18077		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18079		fi
18080
18081		CFLAGS="$CFLAGS -Warray-bounds"
18082
18083		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18084$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
18085		cacheid=xorg_cv_cc_flag__Warray_bounds
18086		if eval \${$cacheid+:} false; then :
18087  $as_echo_n "(cached) " >&6
18088else
18089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18090/* end confdefs.h.  */
18091int i;
18092int
18093main ()
18094{
18095
18096  ;
18097  return 0;
18098}
18099_ACEOF
18100if ac_fn_c_try_link "$LINENO"; then :
18101  eval $cacheid=yes
18102else
18103  eval $cacheid=no
18104fi
18105rm -f core conftest.err conftest.$ac_objext \
18106    conftest$ac_exeext conftest.$ac_ext
18107fi
18108
18109
18110		CFLAGS="$xorg_testset_save_CFLAGS"
18111
18112		eval supported=\$$cacheid
18113		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18114$as_echo "$supported" >&6; }
18115		if test "$supported" = "yes" ; then
18116			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18117			found="yes"
18118		fi
18119	fi
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135xorg_testset_save_CFLAGS="$CFLAGS"
18136
18137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18142  $as_echo_n "(cached) " >&6
18143else
18144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145/* end confdefs.h.  */
18146int i;
18147_ACEOF
18148if ac_fn_c_try_compile "$LINENO"; then :
18149  xorg_cv_cc_flag_unknown_warning_option=yes
18150else
18151  xorg_cv_cc_flag_unknown_warning_option=no
18152fi
18153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18154fi
18155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18158	CFLAGS="$xorg_testset_save_CFLAGS"
18159fi
18160
18161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18164	fi
18165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18169  $as_echo_n "(cached) " >&6
18170else
18171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172/* end confdefs.h.  */
18173int i;
18174_ACEOF
18175if ac_fn_c_try_compile "$LINENO"; then :
18176  xorg_cv_cc_flag_unused_command_line_argument=yes
18177else
18178  xorg_cv_cc_flag_unused_command_line_argument=no
18179fi
18180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18181fi
18182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18184	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18185	CFLAGS="$xorg_testset_save_CFLAGS"
18186fi
18187
18188found="no"
18189
18190	if test $found = "no" ; then
18191		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18193		fi
18194
18195		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18197		fi
18198
18199		CFLAGS="$CFLAGS -Wwrite-strings"
18200
18201		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18202$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
18203		cacheid=xorg_cv_cc_flag__Wwrite_strings
18204		if eval \${$cacheid+:} false; then :
18205  $as_echo_n "(cached) " >&6
18206else
18207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208/* end confdefs.h.  */
18209int i;
18210int
18211main ()
18212{
18213
18214  ;
18215  return 0;
18216}
18217_ACEOF
18218if ac_fn_c_try_link "$LINENO"; then :
18219  eval $cacheid=yes
18220else
18221  eval $cacheid=no
18222fi
18223rm -f core conftest.err conftest.$ac_objext \
18224    conftest$ac_exeext conftest.$ac_ext
18225fi
18226
18227
18228		CFLAGS="$xorg_testset_save_CFLAGS"
18229
18230		eval supported=\$$cacheid
18231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18232$as_echo "$supported" >&6; }
18233		if test "$supported" = "yes" ; then
18234			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18235			found="yes"
18236		fi
18237	fi
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253xorg_testset_save_CFLAGS="$CFLAGS"
18254
18255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18256	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18257	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18258$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18259if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18260  $as_echo_n "(cached) " >&6
18261else
18262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18263/* end confdefs.h.  */
18264int i;
18265_ACEOF
18266if ac_fn_c_try_compile "$LINENO"; then :
18267  xorg_cv_cc_flag_unknown_warning_option=yes
18268else
18269  xorg_cv_cc_flag_unknown_warning_option=no
18270fi
18271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18272fi
18273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18274$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18275	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18276	CFLAGS="$xorg_testset_save_CFLAGS"
18277fi
18278
18279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18280	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18281		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18282	fi
18283	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18285$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18286if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18287  $as_echo_n "(cached) " >&6
18288else
18289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290/* end confdefs.h.  */
18291int i;
18292_ACEOF
18293if ac_fn_c_try_compile "$LINENO"; then :
18294  xorg_cv_cc_flag_unused_command_line_argument=yes
18295else
18296  xorg_cv_cc_flag_unused_command_line_argument=no
18297fi
18298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18299fi
18300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18301$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18303	CFLAGS="$xorg_testset_save_CFLAGS"
18304fi
18305
18306found="no"
18307
18308	if test $found = "no" ; then
18309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18311		fi
18312
18313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18315		fi
18316
18317		CFLAGS="$CFLAGS -Waddress"
18318
18319		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18320$as_echo_n "checking if $CC supports -Waddress... " >&6; }
18321		cacheid=xorg_cv_cc_flag__Waddress
18322		if eval \${$cacheid+:} false; then :
18323  $as_echo_n "(cached) " >&6
18324else
18325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326/* end confdefs.h.  */
18327int i;
18328int
18329main ()
18330{
18331
18332  ;
18333  return 0;
18334}
18335_ACEOF
18336if ac_fn_c_try_link "$LINENO"; then :
18337  eval $cacheid=yes
18338else
18339  eval $cacheid=no
18340fi
18341rm -f core conftest.err conftest.$ac_objext \
18342    conftest$ac_exeext conftest.$ac_ext
18343fi
18344
18345
18346		CFLAGS="$xorg_testset_save_CFLAGS"
18347
18348		eval supported=\$$cacheid
18349		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18350$as_echo "$supported" >&6; }
18351		if test "$supported" = "yes" ; then
18352			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18353			found="yes"
18354		fi
18355	fi
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371xorg_testset_save_CFLAGS="$CFLAGS"
18372
18373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18378  $as_echo_n "(cached) " >&6
18379else
18380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381/* end confdefs.h.  */
18382int i;
18383_ACEOF
18384if ac_fn_c_try_compile "$LINENO"; then :
18385  xorg_cv_cc_flag_unknown_warning_option=yes
18386else
18387  xorg_cv_cc_flag_unknown_warning_option=no
18388fi
18389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18390fi
18391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18394	CFLAGS="$xorg_testset_save_CFLAGS"
18395fi
18396
18397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18400	fi
18401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18405  $as_echo_n "(cached) " >&6
18406else
18407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408/* end confdefs.h.  */
18409int i;
18410_ACEOF
18411if ac_fn_c_try_compile "$LINENO"; then :
18412  xorg_cv_cc_flag_unused_command_line_argument=yes
18413else
18414  xorg_cv_cc_flag_unused_command_line_argument=no
18415fi
18416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18417fi
18418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18420	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18421	CFLAGS="$xorg_testset_save_CFLAGS"
18422fi
18423
18424found="no"
18425
18426	if test $found = "no" ; then
18427		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18428			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18429		fi
18430
18431		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18432			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18433		fi
18434
18435		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18436
18437		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18438$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18439		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18440		if eval \${$cacheid+:} false; then :
18441  $as_echo_n "(cached) " >&6
18442else
18443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444/* end confdefs.h.  */
18445int i;
18446int
18447main ()
18448{
18449
18450  ;
18451  return 0;
18452}
18453_ACEOF
18454if ac_fn_c_try_link "$LINENO"; then :
18455  eval $cacheid=yes
18456else
18457  eval $cacheid=no
18458fi
18459rm -f core conftest.err conftest.$ac_objext \
18460    conftest$ac_exeext conftest.$ac_ext
18461fi
18462
18463
18464		CFLAGS="$xorg_testset_save_CFLAGS"
18465
18466		eval supported=\$$cacheid
18467		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18468$as_echo "$supported" >&6; }
18469		if test "$supported" = "yes" ; then
18470			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18471			found="yes"
18472		fi
18473	fi
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489xorg_testset_save_CFLAGS="$CFLAGS"
18490
18491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18496  $as_echo_n "(cached) " >&6
18497else
18498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18499/* end confdefs.h.  */
18500int i;
18501_ACEOF
18502if ac_fn_c_try_compile "$LINENO"; then :
18503  xorg_cv_cc_flag_unknown_warning_option=yes
18504else
18505  xorg_cv_cc_flag_unknown_warning_option=no
18506fi
18507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18508fi
18509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18512	CFLAGS="$xorg_testset_save_CFLAGS"
18513fi
18514
18515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18518	fi
18519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18523  $as_echo_n "(cached) " >&6
18524else
18525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526/* end confdefs.h.  */
18527int i;
18528_ACEOF
18529if ac_fn_c_try_compile "$LINENO"; then :
18530  xorg_cv_cc_flag_unused_command_line_argument=yes
18531else
18532  xorg_cv_cc_flag_unused_command_line_argument=no
18533fi
18534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18535fi
18536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18538	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18539	CFLAGS="$xorg_testset_save_CFLAGS"
18540fi
18541
18542found="no"
18543
18544	if test $found = "no" ; then
18545		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18547		fi
18548
18549		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18551		fi
18552
18553		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18554
18555		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18556$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18557		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18558		if eval \${$cacheid+:} false; then :
18559  $as_echo_n "(cached) " >&6
18560else
18561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562/* end confdefs.h.  */
18563int i;
18564int
18565main ()
18566{
18567
18568  ;
18569  return 0;
18570}
18571_ACEOF
18572if ac_fn_c_try_link "$LINENO"; then :
18573  eval $cacheid=yes
18574else
18575  eval $cacheid=no
18576fi
18577rm -f core conftest.err conftest.$ac_objext \
18578    conftest$ac_exeext conftest.$ac_ext
18579fi
18580
18581
18582		CFLAGS="$xorg_testset_save_CFLAGS"
18583
18584		eval supported=\$$cacheid
18585		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18586$as_echo "$supported" >&6; }
18587		if test "$supported" = "yes" ; then
18588			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18589			found="yes"
18590		fi
18591	fi
18592
18593
18594fi
18595
18596
18597
18598
18599
18600
18601
18602		CWARNFLAGS="$BASE_CFLAGS"
18603		if  test "x$GCC" = xyes ; then
18604		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18605		fi
18606
18607
18608
18609
18610
18611
18612
18613
18614# Check whether --enable-strict-compilation was given.
18615if test "${enable_strict_compilation+set}" = set; then :
18616  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18617else
18618  STRICT_COMPILE=no
18619fi
18620
18621
18622
18623
18624
18625
18626STRICT_CFLAGS=""
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640xorg_testset_save_CFLAGS="$CFLAGS"
18641
18642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18647  $as_echo_n "(cached) " >&6
18648else
18649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650/* end confdefs.h.  */
18651int i;
18652_ACEOF
18653if ac_fn_c_try_compile "$LINENO"; then :
18654  xorg_cv_cc_flag_unknown_warning_option=yes
18655else
18656  xorg_cv_cc_flag_unknown_warning_option=no
18657fi
18658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18659fi
18660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18663	CFLAGS="$xorg_testset_save_CFLAGS"
18664fi
18665
18666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18669	fi
18670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18674  $as_echo_n "(cached) " >&6
18675else
18676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677/* end confdefs.h.  */
18678int i;
18679_ACEOF
18680if ac_fn_c_try_compile "$LINENO"; then :
18681  xorg_cv_cc_flag_unused_command_line_argument=yes
18682else
18683  xorg_cv_cc_flag_unused_command_line_argument=no
18684fi
18685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18686fi
18687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18690	CFLAGS="$xorg_testset_save_CFLAGS"
18691fi
18692
18693found="no"
18694
18695	if test $found = "no" ; then
18696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18698		fi
18699
18700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18702		fi
18703
18704		CFLAGS="$CFLAGS -pedantic"
18705
18706		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18707$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18708		cacheid=xorg_cv_cc_flag__pedantic
18709		if eval \${$cacheid+:} false; then :
18710  $as_echo_n "(cached) " >&6
18711else
18712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713/* end confdefs.h.  */
18714int i;
18715int
18716main ()
18717{
18718
18719  ;
18720  return 0;
18721}
18722_ACEOF
18723if ac_fn_c_try_link "$LINENO"; then :
18724  eval $cacheid=yes
18725else
18726  eval $cacheid=no
18727fi
18728rm -f core conftest.err conftest.$ac_objext \
18729    conftest$ac_exeext conftest.$ac_ext
18730fi
18731
18732
18733		CFLAGS="$xorg_testset_save_CFLAGS"
18734
18735		eval supported=\$$cacheid
18736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18737$as_echo "$supported" >&6; }
18738		if test "$supported" = "yes" ; then
18739			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18740			found="yes"
18741		fi
18742	fi
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758xorg_testset_save_CFLAGS="$CFLAGS"
18759
18760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18765  $as_echo_n "(cached) " >&6
18766else
18767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18768/* end confdefs.h.  */
18769int i;
18770_ACEOF
18771if ac_fn_c_try_compile "$LINENO"; then :
18772  xorg_cv_cc_flag_unknown_warning_option=yes
18773else
18774  xorg_cv_cc_flag_unknown_warning_option=no
18775fi
18776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18777fi
18778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18781	CFLAGS="$xorg_testset_save_CFLAGS"
18782fi
18783
18784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18787	fi
18788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18792  $as_echo_n "(cached) " >&6
18793else
18794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795/* end confdefs.h.  */
18796int i;
18797_ACEOF
18798if ac_fn_c_try_compile "$LINENO"; then :
18799  xorg_cv_cc_flag_unused_command_line_argument=yes
18800else
18801  xorg_cv_cc_flag_unused_command_line_argument=no
18802fi
18803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18804fi
18805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18808	CFLAGS="$xorg_testset_save_CFLAGS"
18809fi
18810
18811found="no"
18812
18813	if test $found = "no" ; then
18814		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18816		fi
18817
18818		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18820		fi
18821
18822		CFLAGS="$CFLAGS -Werror"
18823
18824		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18825$as_echo_n "checking if $CC supports -Werror... " >&6; }
18826		cacheid=xorg_cv_cc_flag__Werror
18827		if eval \${$cacheid+:} false; then :
18828  $as_echo_n "(cached) " >&6
18829else
18830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831/* end confdefs.h.  */
18832int i;
18833int
18834main ()
18835{
18836
18837  ;
18838  return 0;
18839}
18840_ACEOF
18841if ac_fn_c_try_link "$LINENO"; then :
18842  eval $cacheid=yes
18843else
18844  eval $cacheid=no
18845fi
18846rm -f core conftest.err conftest.$ac_objext \
18847    conftest$ac_exeext conftest.$ac_ext
18848fi
18849
18850
18851		CFLAGS="$xorg_testset_save_CFLAGS"
18852
18853		eval supported=\$$cacheid
18854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18855$as_echo "$supported" >&6; }
18856		if test "$supported" = "yes" ; then
18857			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18858			found="yes"
18859		fi
18860	fi
18861
18862	if test $found = "no" ; then
18863		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18865		fi
18866
18867		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18869		fi
18870
18871		CFLAGS="$CFLAGS -errwarn"
18872
18873		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18874$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18875		cacheid=xorg_cv_cc_flag__errwarn
18876		if eval \${$cacheid+:} false; then :
18877  $as_echo_n "(cached) " >&6
18878else
18879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18880/* end confdefs.h.  */
18881int i;
18882int
18883main ()
18884{
18885
18886  ;
18887  return 0;
18888}
18889_ACEOF
18890if ac_fn_c_try_link "$LINENO"; then :
18891  eval $cacheid=yes
18892else
18893  eval $cacheid=no
18894fi
18895rm -f core conftest.err conftest.$ac_objext \
18896    conftest$ac_exeext conftest.$ac_ext
18897fi
18898
18899
18900		CFLAGS="$xorg_testset_save_CFLAGS"
18901
18902		eval supported=\$$cacheid
18903		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18904$as_echo "$supported" >&6; }
18905		if test "$supported" = "yes" ; then
18906			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18907			found="yes"
18908		fi
18909	fi
18910
18911
18912
18913# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18914# activate it with -Werror, so we add it here explicitly.
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928xorg_testset_save_CFLAGS="$CFLAGS"
18929
18930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18935  $as_echo_n "(cached) " >&6
18936else
18937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938/* end confdefs.h.  */
18939int i;
18940_ACEOF
18941if ac_fn_c_try_compile "$LINENO"; then :
18942  xorg_cv_cc_flag_unknown_warning_option=yes
18943else
18944  xorg_cv_cc_flag_unknown_warning_option=no
18945fi
18946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18947fi
18948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18951	CFLAGS="$xorg_testset_save_CFLAGS"
18952fi
18953
18954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18957	fi
18958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18962  $as_echo_n "(cached) " >&6
18963else
18964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965/* end confdefs.h.  */
18966int i;
18967_ACEOF
18968if ac_fn_c_try_compile "$LINENO"; then :
18969  xorg_cv_cc_flag_unused_command_line_argument=yes
18970else
18971  xorg_cv_cc_flag_unused_command_line_argument=no
18972fi
18973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18974fi
18975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18977	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18978	CFLAGS="$xorg_testset_save_CFLAGS"
18979fi
18980
18981found="no"
18982
18983	if test $found = "no" ; then
18984		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18985			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18986		fi
18987
18988		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18989			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18990		fi
18991
18992		CFLAGS="$CFLAGS -Werror=attributes"
18993
18994		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18995$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18996		cacheid=xorg_cv_cc_flag__Werror_attributes
18997		if eval \${$cacheid+:} false; then :
18998  $as_echo_n "(cached) " >&6
18999else
19000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001/* end confdefs.h.  */
19002int i;
19003int
19004main ()
19005{
19006
19007  ;
19008  return 0;
19009}
19010_ACEOF
19011if ac_fn_c_try_link "$LINENO"; then :
19012  eval $cacheid=yes
19013else
19014  eval $cacheid=no
19015fi
19016rm -f core conftest.err conftest.$ac_objext \
19017    conftest$ac_exeext conftest.$ac_ext
19018fi
19019
19020
19021		CFLAGS="$xorg_testset_save_CFLAGS"
19022
19023		eval supported=\$$cacheid
19024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19025$as_echo "$supported" >&6; }
19026		if test "$supported" = "yes" ; then
19027			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19028			found="yes"
19029		fi
19030	fi
19031
19032
19033
19034if test "x$STRICT_COMPILE" = "xyes"; then
19035    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19036    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19037fi
19038
19039
19040
19041
19042
19043
19044cat >>confdefs.h <<_ACEOF
19045#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19046_ACEOF
19047
19048	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19049	if test "x$PVM" = "x"; then
19050		PVM="0"
19051	fi
19052
19053cat >>confdefs.h <<_ACEOF
19054#define PACKAGE_VERSION_MINOR $PVM
19055_ACEOF
19056
19057	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19058	if test "x$PVP" = "x"; then
19059		PVP="0"
19060	fi
19061
19062cat >>confdefs.h <<_ACEOF
19063#define PACKAGE_VERSION_PATCHLEVEL $PVP
19064_ACEOF
19065
19066
19067
19068CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
19069mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19070|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
19071echo 'git directory not found: installing possibly empty changelog.' >&2)"
19072
19073
19074
19075
19076macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19077INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19078mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19079|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
19080echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
19081
19082
19083
19084
19085
19086
19087if test x$APP_MAN_SUFFIX = x    ; then
19088    APP_MAN_SUFFIX=1
19089fi
19090if test x$APP_MAN_DIR = x    ; then
19091    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19092fi
19093
19094if test x$LIB_MAN_SUFFIX = x    ; then
19095    LIB_MAN_SUFFIX=3
19096fi
19097if test x$LIB_MAN_DIR = x    ; then
19098    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19099fi
19100
19101if test x$FILE_MAN_SUFFIX = x    ; then
19102    case $host_os in
19103	solaris*)	FILE_MAN_SUFFIX=4  ;;
19104	*)		FILE_MAN_SUFFIX=5  ;;
19105    esac
19106fi
19107if test x$FILE_MAN_DIR = x    ; then
19108    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19109fi
19110
19111if test x$MISC_MAN_SUFFIX = x    ; then
19112    case $host_os in
19113	solaris*)	MISC_MAN_SUFFIX=5  ;;
19114	*)		MISC_MAN_SUFFIX=7  ;;
19115    esac
19116fi
19117if test x$MISC_MAN_DIR = x    ; then
19118    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19119fi
19120
19121if test x$DRIVER_MAN_SUFFIX = x    ; then
19122    case $host_os in
19123	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
19124	*)		DRIVER_MAN_SUFFIX=4  ;;
19125    esac
19126fi
19127if test x$DRIVER_MAN_DIR = x    ; then
19128    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19129fi
19130
19131if test x$ADMIN_MAN_SUFFIX = x    ; then
19132    case $host_os in
19133	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
19134	*)		ADMIN_MAN_SUFFIX=8  ;;
19135    esac
19136fi
19137if test x$ADMIN_MAN_DIR = x    ; then
19138    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19139fi
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155XORG_MAN_PAGE="X Version 11"
19156
19157MAN_SUBSTS="\
19158	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19159	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19160	-e 's|__xservername__|Xorg|g' \
19161	-e 's|__xconfigfile__|xorg.conf|g' \
19162	-e 's|__projectroot__|\$(prefix)|g' \
19163	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19164	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19165	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19166	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19167	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19168	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19169	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19170
19171
19172
19173# Check whether --enable-silent-rules was given.
19174if test "${enable_silent_rules+set}" = set; then :
19175  enableval=$enable_silent_rules;
19176fi
19177
19178case $enable_silent_rules in # (((
19179  yes) AM_DEFAULT_VERBOSITY=0;;
19180   no) AM_DEFAULT_VERBOSITY=1;;
19181    *) AM_DEFAULT_VERBOSITY=0;;
19182esac
19183am_make=${MAKE-make}
19184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19185$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
19186if ${am_cv_make_support_nested_variables+:} false; then :
19187  $as_echo_n "(cached) " >&6
19188else
19189  if $as_echo 'TRUE=$(BAR$(V))
19190BAR0=false
19191BAR1=true
19192V=1
19193am__doit:
19194	@$(TRUE)
19195.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19196  am_cv_make_support_nested_variables=yes
19197else
19198  am_cv_make_support_nested_variables=no
19199fi
19200fi
19201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19202$as_echo "$am_cv_make_support_nested_variables" >&6; }
19203if test $am_cv_make_support_nested_variables = yes; then
19204    AM_V='$(V)'
19205  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19206else
19207  AM_V=$AM_DEFAULT_VERBOSITY
19208  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19209fi
19210AM_BACKSLASH='\'
19211
19212
19213
19214
19215# Check whether --enable-devel-docs was given.
19216if test "${enable_devel_docs+set}" = set; then :
19217  enableval=$enable_devel_docs; build_devel_docs=$enableval
19218else
19219  build_devel_docs=yes
19220fi
19221
19222
19223 if test x$build_devel_docs = xyes; then
19224  ENABLE_DEVEL_DOCS_TRUE=
19225  ENABLE_DEVEL_DOCS_FALSE='#'
19226else
19227  ENABLE_DEVEL_DOCS_TRUE='#'
19228  ENABLE_DEVEL_DOCS_FALSE=
19229fi
19230
19231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
19232$as_echo_n "checking whether to build developer documentation... " >&6; }
19233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
19234$as_echo "$build_devel_docs" >&6; }
19235
19236
19237
19238
19239
19240
19241# Check whether --with-doxygen was given.
19242if test "${with_doxygen+set}" = set; then :
19243  withval=$with_doxygen; use_doxygen=$withval
19244else
19245  use_doxygen=auto
19246fi
19247
19248
19249
19250if test "x$use_doxygen" = x"auto"; then
19251   # Extract the first word of "doxygen", so it can be a program name with args.
19252set dummy doxygen; ac_word=$2
19253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19254$as_echo_n "checking for $ac_word... " >&6; }
19255if ${ac_cv_path_DOXYGEN+:} false; then :
19256  $as_echo_n "(cached) " >&6
19257else
19258  case $DOXYGEN in
19259  [\\/]* | ?:[\\/]*)
19260  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19261  ;;
19262  *)
19263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19264for as_dir in $PATH
19265do
19266  IFS=$as_save_IFS
19267  test -z "$as_dir" && as_dir=.
19268    for ac_exec_ext in '' $ac_executable_extensions; do
19269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19270    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19272    break 2
19273  fi
19274done
19275  done
19276IFS=$as_save_IFS
19277
19278  ;;
19279esac
19280fi
19281DOXYGEN=$ac_cv_path_DOXYGEN
19282if test -n "$DOXYGEN"; then
19283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19284$as_echo "$DOXYGEN" >&6; }
19285else
19286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19287$as_echo "no" >&6; }
19288fi
19289
19290
19291   if test "x$DOXYGEN" = "x"; then
19292        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
19293$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
19294	have_doxygen=no
19295   else
19296        have_doxygen=yes
19297   fi
19298elif test "x$use_doxygen" = x"yes" ; then
19299   # Extract the first word of "doxygen", so it can be a program name with args.
19300set dummy doxygen; ac_word=$2
19301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19302$as_echo_n "checking for $ac_word... " >&6; }
19303if ${ac_cv_path_DOXYGEN+:} false; then :
19304  $as_echo_n "(cached) " >&6
19305else
19306  case $DOXYGEN in
19307  [\\/]* | ?:[\\/]*)
19308  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19309  ;;
19310  *)
19311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19312for as_dir in $PATH
19313do
19314  IFS=$as_save_IFS
19315  test -z "$as_dir" && as_dir=.
19316    for ac_exec_ext in '' $ac_executable_extensions; do
19317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19318    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19320    break 2
19321  fi
19322done
19323  done
19324IFS=$as_save_IFS
19325
19326  ;;
19327esac
19328fi
19329DOXYGEN=$ac_cv_path_DOXYGEN
19330if test -n "$DOXYGEN"; then
19331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19332$as_echo "$DOXYGEN" >&6; }
19333else
19334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19335$as_echo "no" >&6; }
19336fi
19337
19338
19339   if test "x$DOXYGEN" = "x"; then
19340        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
19341   fi
19342   have_doxygen=yes
19343elif test "x$use_doxygen" = x"no" ; then
19344   if test "x$DOXYGEN" != "x"; then
19345      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
19346$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
19347   fi
19348   have_doxygen=no
19349else
19350   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
19351fi
19352
19353
19354HAVE_DOT=no
19355if test "x$have_doxygen" = "xyes"; then
19356  # Extract the first word of "dot", so it can be a program name with args.
19357set dummy dot; ac_word=$2
19358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19359$as_echo_n "checking for $ac_word... " >&6; }
19360if ${ac_cv_path_DOT+:} false; then :
19361  $as_echo_n "(cached) " >&6
19362else
19363  case $DOT in
19364  [\\/]* | ?:[\\/]*)
19365  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19366  ;;
19367  *)
19368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19369for as_dir in $PATH
19370do
19371  IFS=$as_save_IFS
19372  test -z "$as_dir" && as_dir=.
19373    for ac_exec_ext in '' $ac_executable_extensions; do
19374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19375    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19377    break 2
19378  fi
19379done
19380  done
19381IFS=$as_save_IFS
19382
19383  ;;
19384esac
19385fi
19386DOT=$ac_cv_path_DOT
19387if test -n "$DOT"; then
19388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
19389$as_echo "$DOT" >&6; }
19390else
19391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392$as_echo "no" >&6; }
19393fi
19394
19395
19396    if test "x$DOT" != "x"; then
19397      HAVE_DOT=yes
19398    fi
19399fi
19400
19401
19402 if test "$HAVE_DOT" = "yes"; then
19403  HAVE_DOT_TRUE=
19404  HAVE_DOT_FALSE='#'
19405else
19406  HAVE_DOT_TRUE='#'
19407  HAVE_DOT_FALSE=
19408fi
19409
19410 if test "$have_doxygen" = yes; then
19411  HAVE_DOXYGEN_TRUE=
19412  HAVE_DOXYGEN_FALSE='#'
19413else
19414  HAVE_DOXYGEN_TRUE='#'
19415  HAVE_DOXYGEN_FALSE=
19416fi
19417
19418
19419
19420# The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual
19421if test x"$HAVE_DOT" = xno; then
19422    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5
19423$as_echo "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;}
19424fi
19425
19426
19427pkg_failed=no
19428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
19429$as_echo_n "checking for CHECK... " >&6; }
19430
19431if test -n "$CHECK_CFLAGS"; then
19432    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
19433 elif test -n "$PKG_CONFIG"; then
19434    if test -n "$PKG_CONFIG" && \
19435    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
19436  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
19437  ac_status=$?
19438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19439  test $ac_status = 0; }; then
19440  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
19441		      test "x$?" != "x0" && pkg_failed=yes
19442else
19443  pkg_failed=yes
19444fi
19445 else
19446    pkg_failed=untried
19447fi
19448if test -n "$CHECK_LIBS"; then
19449    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
19450 elif test -n "$PKG_CONFIG"; then
19451    if test -n "$PKG_CONFIG" && \
19452    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
19453  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
19454  ac_status=$?
19455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19456  test $ac_status = 0; }; then
19457  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
19458		      test "x$?" != "x0" && pkg_failed=yes
19459else
19460  pkg_failed=yes
19461fi
19462 else
19463    pkg_failed=untried
19464fi
19465
19466
19467
19468if test $pkg_failed = yes; then
19469   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19470$as_echo "no" >&6; }
19471
19472if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19473        _pkg_short_errors_supported=yes
19474else
19475        _pkg_short_errors_supported=no
19476fi
19477        if test $_pkg_short_errors_supported = yes; then
19478	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
19479        else
19480	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
19481        fi
19482	# Put the nasty error message in config.log where it belongs
19483	echo "$CHECK_PKG_ERRORS" >&5
19484
19485	HAVE_CHECK=no
19486elif test $pkg_failed = untried; then
19487     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19488$as_echo "no" >&6; }
19489	HAVE_CHECK=no
19490else
19491	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
19492	CHECK_LIBS=$pkg_cv_CHECK_LIBS
19493        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19494$as_echo "yes" >&6; }
19495	HAVE_CHECK=yes
19496fi
19497 if test x$HAVE_CHECK = xyes; then
19498  HAVE_CHECK_TRUE=
19499  HAVE_CHECK_FALSE='#'
19500else
19501  HAVE_CHECK_TRUE='#'
19502  HAVE_CHECK_FALSE=
19503fi
19504
19505
19506XSLTPROC=no
19507HTML_CHECK_RESULT=no
19508if test x"$HAVE_CHECK" = xyes; then
19509        # Extract the first word of "xsltproc", so it can be a program name with args.
19510set dummy xsltproc; ac_word=$2
19511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19512$as_echo_n "checking for $ac_word... " >&6; }
19513if ${ac_cv_path_XSLTPROC+:} false; then :
19514  $as_echo_n "(cached) " >&6
19515else
19516  case $XSLTPROC in
19517  [\\/]* | ?:[\\/]*)
19518  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19519  ;;
19520  *)
19521  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19522for as_dir in $PATH
19523do
19524  IFS=$as_save_IFS
19525  test -z "$as_dir" && as_dir=.
19526    for ac_exec_ext in '' $ac_executable_extensions; do
19527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19528    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19530    break 2
19531  fi
19532done
19533  done
19534IFS=$as_save_IFS
19535
19536  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
19537  ;;
19538esac
19539fi
19540XSLTPROC=$ac_cv_path_XSLTPROC
19541if test -n "$XSLTPROC"; then
19542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19543$as_echo "$XSLTPROC" >&6; }
19544else
19545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19546$as_echo "no" >&6; }
19547fi
19548
19549
19550        if test x"$XSLTPROC" != xno; then
19551                HTML_CHECK_RESULT=yes
19552        fi
19553fi
19554
19555
19556# Checks for pkg-config packages
19557
19558pkg_failed=no
19559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5
19560$as_echo_n "checking for XCBPROTO... " >&6; }
19561
19562if test -n "$XCBPROTO_CFLAGS"; then
19563    pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
19564 elif test -n "$PKG_CONFIG"; then
19565    if test -n "$PKG_CONFIG" && \
19566    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.13\""; } >&5
19567  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.13") 2>&5
19568  ac_status=$?
19569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19570  test $ac_status = 0; }; then
19571  pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.13" 2>/dev/null`
19572		      test "x$?" != "x0" && pkg_failed=yes
19573else
19574  pkg_failed=yes
19575fi
19576 else
19577    pkg_failed=untried
19578fi
19579if test -n "$XCBPROTO_LIBS"; then
19580    pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
19581 elif test -n "$PKG_CONFIG"; then
19582    if test -n "$PKG_CONFIG" && \
19583    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.13\""; } >&5
19584  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.13") 2>&5
19585  ac_status=$?
19586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19587  test $ac_status = 0; }; then
19588  pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.13" 2>/dev/null`
19589		      test "x$?" != "x0" && pkg_failed=yes
19590else
19591  pkg_failed=yes
19592fi
19593 else
19594    pkg_failed=untried
19595fi
19596
19597
19598
19599if test $pkg_failed = yes; then
19600   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19601$as_echo "no" >&6; }
19602
19603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19604        _pkg_short_errors_supported=yes
19605else
19606        _pkg_short_errors_supported=no
19607fi
19608        if test $_pkg_short_errors_supported = yes; then
19609	        XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.13" 2>&1`
19610        else
19611	        XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.13" 2>&1`
19612        fi
19613	# Put the nasty error message in config.log where it belongs
19614	echo "$XCBPROTO_PKG_ERRORS" >&5
19615
19616	as_fn_error $? "Package requirements (xcb-proto >= 1.13) were not met:
19617
19618$XCBPROTO_PKG_ERRORS
19619
19620Consider adjusting the PKG_CONFIG_PATH environment variable if you
19621installed software in a non-standard prefix.
19622
19623Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19624and XCBPROTO_LIBS to avoid the need to call pkg-config.
19625See the pkg-config man page for more details." "$LINENO" 5
19626elif test $pkg_failed = untried; then
19627     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19628$as_echo "no" >&6; }
19629	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19631as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19632is in your PATH or set the PKG_CONFIG environment variable to the full
19633path to pkg-config.
19634
19635Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19636and XCBPROTO_LIBS to avoid the need to call pkg-config.
19637See the pkg-config man page for more details.
19638
19639To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19640See \`config.log' for more details" "$LINENO" 5; }
19641else
19642	XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
19643	XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
19644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19645$as_echo "yes" >&6; }
19646
19647fi
19648NEEDED="pthread-stubs xau >= 0.99.2"
19649
19650pkg_failed=no
19651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5
19652$as_echo_n "checking for NEEDED... " >&6; }
19653
19654if test -n "$NEEDED_CFLAGS"; then
19655    pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
19656 elif test -n "$PKG_CONFIG"; then
19657    if test -n "$PKG_CONFIG" && \
19658    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19659  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19660  ac_status=$?
19661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19662  test $ac_status = 0; }; then
19663  pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
19664		      test "x$?" != "x0" && pkg_failed=yes
19665else
19666  pkg_failed=yes
19667fi
19668 else
19669    pkg_failed=untried
19670fi
19671if test -n "$NEEDED_LIBS"; then
19672    pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
19673 elif test -n "$PKG_CONFIG"; then
19674    if test -n "$PKG_CONFIG" && \
19675    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19676  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19677  ac_status=$?
19678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19679  test $ac_status = 0; }; then
19680  pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
19681		      test "x$?" != "x0" && pkg_failed=yes
19682else
19683  pkg_failed=yes
19684fi
19685 else
19686    pkg_failed=untried
19687fi
19688
19689
19690
19691if test $pkg_failed = yes; then
19692   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19693$as_echo "no" >&6; }
19694
19695if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19696        _pkg_short_errors_supported=yes
19697else
19698        _pkg_short_errors_supported=no
19699fi
19700        if test $_pkg_short_errors_supported = yes; then
19701	        NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1`
19702        else
19703	        NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1`
19704        fi
19705	# Put the nasty error message in config.log where it belongs
19706	echo "$NEEDED_PKG_ERRORS" >&5
19707
19708	as_fn_error $? "Package requirements ($NEEDED) were not met:
19709
19710$NEEDED_PKG_ERRORS
19711
19712Consider adjusting the PKG_CONFIG_PATH environment variable if you
19713installed software in a non-standard prefix.
19714
19715Alternatively, you may set the environment variables NEEDED_CFLAGS
19716and NEEDED_LIBS to avoid the need to call pkg-config.
19717See the pkg-config man page for more details." "$LINENO" 5
19718elif test $pkg_failed = untried; then
19719     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19720$as_echo "no" >&6; }
19721	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19723as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19724is in your PATH or set the PKG_CONFIG environment variable to the full
19725path to pkg-config.
19726
19727Alternatively, you may set the environment variables NEEDED_CFLAGS
19728and NEEDED_LIBS to avoid the need to call pkg-config.
19729See the pkg-config man page for more details.
19730
19731To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19732See \`config.log' for more details" "$LINENO" 5; }
19733else
19734	NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
19735	NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
19736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19737$as_echo "yes" >&6; }
19738
19739fi
19740
19741have_xdmcp="no"
19742
19743pkg_failed=no
19744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
19745$as_echo_n "checking for XDMCP... " >&6; }
19746
19747if test -n "$XDMCP_CFLAGS"; then
19748    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
19749 elif test -n "$PKG_CONFIG"; then
19750    if test -n "$PKG_CONFIG" && \
19751    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19752  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19753  ac_status=$?
19754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19755  test $ac_status = 0; }; then
19756  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
19757		      test "x$?" != "x0" && pkg_failed=yes
19758else
19759  pkg_failed=yes
19760fi
19761 else
19762    pkg_failed=untried
19763fi
19764if test -n "$XDMCP_LIBS"; then
19765    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
19766 elif test -n "$PKG_CONFIG"; then
19767    if test -n "$PKG_CONFIG" && \
19768    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19769  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19770  ac_status=$?
19771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19772  test $ac_status = 0; }; then
19773  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
19774		      test "x$?" != "x0" && pkg_failed=yes
19775else
19776  pkg_failed=yes
19777fi
19778 else
19779    pkg_failed=untried
19780fi
19781
19782
19783
19784if test $pkg_failed = yes; then
19785   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19786$as_echo "no" >&6; }
19787
19788if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19789        _pkg_short_errors_supported=yes
19790else
19791        _pkg_short_errors_supported=no
19792fi
19793        if test $_pkg_short_errors_supported = yes; then
19794	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
19795        else
19796	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
19797        fi
19798	# Put the nasty error message in config.log where it belongs
19799	echo "$XDMCP_PKG_ERRORS" >&5
19800
19801	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19802$as_echo "no" >&6; }
19803elif test $pkg_failed = untried; then
19804     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19805$as_echo "no" >&6; }
19806	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19807$as_echo "no" >&6; }
19808else
19809	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
19810	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
19811        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19812$as_echo "yes" >&6; }
19813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
19814$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
19815if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
19816  $as_echo_n "(cached) " >&6
19817else
19818  ac_check_lib_save_LIBS=$LIBS
19819LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
19820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821/* end confdefs.h.  */
19822
19823/* Override any GCC internal prototype to avoid an error.
19824   Use char because int might match the return type of a GCC
19825   builtin and then its argument prototype would still apply.  */
19826#ifdef __cplusplus
19827extern "C"
19828#endif
19829char XdmcpWrap ();
19830int
19831main ()
19832{
19833return XdmcpWrap ();
19834  ;
19835  return 0;
19836}
19837_ACEOF
19838if ac_fn_c_try_link "$LINENO"; then :
19839  ac_cv_lib_Xdmcp_XdmcpWrap=yes
19840else
19841  ac_cv_lib_Xdmcp_XdmcpWrap=no
19842fi
19843rm -f core conftest.err conftest.$ac_objext \
19844    conftest$ac_exeext conftest.$ac_ext
19845LIBS=$ac_check_lib_save_LIBS
19846fi
19847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
19848$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
19849if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
19850
19851
19852$as_echo "#define HASXDMAUTH 1" >>confdefs.h
19853
19854                NEEDED="$NEEDED xdmcp"
19855                have_xdmcp="yes"
19856
19857else
19858
19859                XDMCP_CFLAGS=
19860                XDMCP_LIBS=
19861
19862fi
19863
19864fi
19865
19866
19867
19868# Find the xcb-proto protocol descriptions
19869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5
19870$as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; }
19871XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
19872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5
19873$as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; }
19874
19875
19876# Find the xcb-proto version
19877XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto`
19878
19879
19880# Find the xcbgen Python package
19881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5
19882$as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; }
19883XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
19884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5
19885$as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; }
19886
19887
19888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19889$as_echo_n "checking for ANSI C header files... " >&6; }
19890if ${ac_cv_header_stdc+:} false; then :
19891  $as_echo_n "(cached) " >&6
19892else
19893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894/* end confdefs.h.  */
19895#include <stdlib.h>
19896#include <stdarg.h>
19897#include <string.h>
19898#include <float.h>
19899
19900int
19901main ()
19902{
19903
19904  ;
19905  return 0;
19906}
19907_ACEOF
19908if ac_fn_c_try_compile "$LINENO"; then :
19909  ac_cv_header_stdc=yes
19910else
19911  ac_cv_header_stdc=no
19912fi
19913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19914
19915if test $ac_cv_header_stdc = yes; then
19916  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19918/* end confdefs.h.  */
19919#include <string.h>
19920
19921_ACEOF
19922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19923  $EGREP "memchr" >/dev/null 2>&1; then :
19924
19925else
19926  ac_cv_header_stdc=no
19927fi
19928rm -f conftest*
19929
19930fi
19931
19932if test $ac_cv_header_stdc = yes; then
19933  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935/* end confdefs.h.  */
19936#include <stdlib.h>
19937
19938_ACEOF
19939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19940  $EGREP "free" >/dev/null 2>&1; then :
19941
19942else
19943  ac_cv_header_stdc=no
19944fi
19945rm -f conftest*
19946
19947fi
19948
19949if test $ac_cv_header_stdc = yes; then
19950  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19951  if test "$cross_compiling" = yes; then :
19952  :
19953else
19954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955/* end confdefs.h.  */
19956#include <ctype.h>
19957#include <stdlib.h>
19958#if ((' ' & 0x0FF) == 0x020)
19959# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19960# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19961#else
19962# define ISLOWER(c) \
19963		   (('a' <= (c) && (c) <= 'i') \
19964		     || ('j' <= (c) && (c) <= 'r') \
19965		     || ('s' <= (c) && (c) <= 'z'))
19966# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19967#endif
19968
19969#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19970int
19971main ()
19972{
19973  int i;
19974  for (i = 0; i < 256; i++)
19975    if (XOR (islower (i), ISLOWER (i))
19976	|| toupper (i) != TOUPPER (i))
19977      return 2;
19978  return 0;
19979}
19980_ACEOF
19981if ac_fn_c_try_run "$LINENO"; then :
19982
19983else
19984  ac_cv_header_stdc=no
19985fi
19986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19987  conftest.$ac_objext conftest.beam conftest.$ac_ext
19988fi
19989
19990fi
19991fi
19992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19993$as_echo "$ac_cv_header_stdc" >&6; }
19994if test $ac_cv_header_stdc = yes; then
19995
19996$as_echo "#define STDC_HEADERS 1" >>confdefs.h
19997
19998fi
19999
20000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
20001$as_echo_n "checking for library containing getaddrinfo... " >&6; }
20002if ${ac_cv_search_getaddrinfo+:} false; then :
20003  $as_echo_n "(cached) " >&6
20004else
20005  ac_func_search_save_LIBS=$LIBS
20006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007/* end confdefs.h.  */
20008
20009/* Override any GCC internal prototype to avoid an error.
20010   Use char because int might match the return type of a GCC
20011   builtin and then its argument prototype would still apply.  */
20012#ifdef __cplusplus
20013extern "C"
20014#endif
20015char getaddrinfo ();
20016int
20017main ()
20018{
20019return getaddrinfo ();
20020  ;
20021  return 0;
20022}
20023_ACEOF
20024for ac_lib in '' socket; do
20025  if test -z "$ac_lib"; then
20026    ac_res="none required"
20027  else
20028    ac_res=-l$ac_lib
20029    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20030  fi
20031  if ac_fn_c_try_link "$LINENO"; then :
20032  ac_cv_search_getaddrinfo=$ac_res
20033fi
20034rm -f core conftest.err conftest.$ac_objext \
20035    conftest$ac_exeext
20036  if ${ac_cv_search_getaddrinfo+:} false; then :
20037  break
20038fi
20039done
20040if ${ac_cv_search_getaddrinfo+:} false; then :
20041
20042else
20043  ac_cv_search_getaddrinfo=no
20044fi
20045rm conftest.$ac_ext
20046LIBS=$ac_func_search_save_LIBS
20047fi
20048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
20049$as_echo "$ac_cv_search_getaddrinfo" >&6; }
20050ac_res=$ac_cv_search_getaddrinfo
20051if test "$ac_res" != no; then :
20052  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20053
20054fi
20055
20056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
20057$as_echo_n "checking for library containing connect... " >&6; }
20058if ${ac_cv_search_connect+:} false; then :
20059  $as_echo_n "(cached) " >&6
20060else
20061  ac_func_search_save_LIBS=$LIBS
20062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20063/* end confdefs.h.  */
20064
20065/* Override any GCC internal prototype to avoid an error.
20066   Use char because int might match the return type of a GCC
20067   builtin and then its argument prototype would still apply.  */
20068#ifdef __cplusplus
20069extern "C"
20070#endif
20071char connect ();
20072int
20073main ()
20074{
20075return connect ();
20076  ;
20077  return 0;
20078}
20079_ACEOF
20080for ac_lib in '' socket; do
20081  if test -z "$ac_lib"; then
20082    ac_res="none required"
20083  else
20084    ac_res=-l$ac_lib
20085    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20086  fi
20087  if ac_fn_c_try_link "$LINENO"; then :
20088  ac_cv_search_connect=$ac_res
20089fi
20090rm -f core conftest.err conftest.$ac_objext \
20091    conftest$ac_exeext
20092  if ${ac_cv_search_connect+:} false; then :
20093  break
20094fi
20095done
20096if ${ac_cv_search_connect+:} false; then :
20097
20098else
20099  ac_cv_search_connect=no
20100fi
20101rm conftest.$ac_ext
20102LIBS=$ac_func_search_save_LIBS
20103fi
20104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
20105$as_echo "$ac_cv_search_connect" >&6; }
20106ac_res=$ac_cv_search_connect
20107if test "$ac_res" != no; then :
20108  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20109
20110fi
20111
20112
20113# Find support for sending a message from a socket
20114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
20115$as_echo_n "checking for library containing sendmsg... " >&6; }
20116if ${ac_cv_search_sendmsg+:} false; then :
20117  $as_echo_n "(cached) " >&6
20118else
20119  ac_func_search_save_LIBS=$LIBS
20120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20121/* end confdefs.h.  */
20122
20123/* Override any GCC internal prototype to avoid an error.
20124   Use char because int might match the return type of a GCC
20125   builtin and then its argument prototype would still apply.  */
20126#ifdef __cplusplus
20127extern "C"
20128#endif
20129char sendmsg ();
20130int
20131main ()
20132{
20133return sendmsg ();
20134  ;
20135  return 0;
20136}
20137_ACEOF
20138for ac_lib in '' socket; do
20139  if test -z "$ac_lib"; then
20140    ac_res="none required"
20141  else
20142    ac_res=-l$ac_lib
20143    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20144  fi
20145  if ac_fn_c_try_link "$LINENO"; then :
20146  ac_cv_search_sendmsg=$ac_res
20147fi
20148rm -f core conftest.err conftest.$ac_objext \
20149    conftest$ac_exeext
20150  if ${ac_cv_search_sendmsg+:} false; then :
20151  break
20152fi
20153done
20154if ${ac_cv_search_sendmsg+:} false; then :
20155
20156else
20157  ac_cv_search_sendmsg=no
20158fi
20159rm conftest.$ac_ext
20160LIBS=$ac_func_search_save_LIBS
20161fi
20162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
20163$as_echo "$ac_cv_search_sendmsg" >&6; }
20164ac_res=$ac_cv_search_sendmsg
20165if test "$ac_res" != no; then :
20166  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20167  have_sendmsg="yes"
20168else
20169  have_sendmsg="no"
20170fi
20171
20172
20173# XPG4v2/UNIX95 added msg_control - check to see if we need to define
20174# _XOPEN_SOURCE to get it (such as on Solaris)
20175ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20176$ac_includes_default
20177#include <sys/socket.h>
20178
20179"
20180if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20181
20182fi
20183
20184# First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20185if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20186    unset ac_cv_member_struct_msghdr_msg_control
20187    { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20188$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20189    ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20190#define _XOPEN_SOURCE 600
20191$ac_includes_default
20192#include <sys/socket.h>
20193
20194"
20195if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20196
20197$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
20198
20199
20200fi
20201
20202fi
20203# If that didn't work, fall back to XPG5/UNIX98 with C89
20204if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20205    unset ac_cv_member_struct_msghdr_msg_control
20206    { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20207$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20208    ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20209#define _XOPEN_SOURCE 500
20210$ac_includes_default
20211#include <sys/socket.h>
20212
20213"
20214if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20215
20216$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
20217
20218
20219else
20220  have_sendmsg="no"
20221fi
20222
20223fi
20224
20225case x$have_sendmsg in
20226xyes)
20227
20228$as_echo "#define HAVE_SENDMSG 1" >>confdefs.h
20229
20230        ;;
20231esac
20232
20233have_win32="no"
20234lt_enable_auto_import=""
20235case $host_os in
20236mingw*)
20237        have_win32="yes"
20238        lt_enable_auto_import="-Wl,--enable-auto-import"
20239        ;;
20240linux*)
20241
20242$as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h
20243
20244        ;;
20245esac
20246
20247
20248 if test "x${have_win32}" = "xyes"; then
20249  XCB_HAVE_WIN32_TRUE=
20250  XCB_HAVE_WIN32_FALSE='#'
20251else
20252  XCB_HAVE_WIN32_TRUE='#'
20253  XCB_HAVE_WIN32_FALSE=
20254fi
20255
20256
20257
20258# Check whether --with-queue-size was given.
20259if test "${with_queue_size+set}" = set; then :
20260  withval=$with_queue_size; xcb_queue_buffer_size="$withval"
20261else
20262  xcb_queue_buffer_size=16384
20263fi
20264
20265
20266cat >>confdefs.h <<_ACEOF
20267#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size
20268_ACEOF
20269
20270
20271ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
20272                  #include <sys/un.h>
20273
20274"
20275if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20276
20277$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
20278
20279fi
20280
20281
20282for ac_header in tsol/label.h
20283do :
20284  ac_fn_c_check_header_mongrel "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default"
20285if test "x$ac_cv_header_tsol_label_h" = xyes; then :
20286  cat >>confdefs.h <<_ACEOF
20287#define HAVE_TSOL_LABEL_H 1
20288_ACEOF
20289
20290fi
20291
20292done
20293
20294for ac_func in is_system_labeled
20295do :
20296  ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled"
20297if test "x$ac_cv_func_is_system_labeled" = xyes; then :
20298  cat >>confdefs.h <<_ACEOF
20299#define HAVE_IS_SYSTEM_LABELED 1
20300_ACEOF
20301
20302fi
20303done
20304
20305
20306ac_fn_c_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h>
20307"
20308if test "x$ac_cv_have_decl_IOV_MAX" = xyes; then :
20309
20310else
20311  ac_fn_c_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h>
20312"
20313if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes; then :
20314  $as_echo "#define IOV_MAX UIO_MAXIOV" >>confdefs.h
20315
20316else
20317
20318$as_echo "#define IOV_MAX 16" >>confdefs.h
20319
20320fi
20321
20322fi
20323
20324
20325xcbincludedir='${includedir}/xcb'
20326
20327
20328
20329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5
20330$as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; }
20331
20332save_CFLAGS=${CFLAGS}
20333CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
20334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20335/* end confdefs.h.  */
20336
20337#pragma GCC visibility push(hidden)
20338extern void f(int);
20339#pragma GCC visibility pop
20340
20341int
20342main ()
20343{
20344
20345
20346  ;
20347  return 0;
20348}
20349_ACEOF
20350if ac_fn_c_try_compile "$LINENO"; then :
20351
20352$as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h
20353
20354    :
20355    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20356$as_echo "yes" >&6; }
20357else
20358  :
20359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20360$as_echo "no" >&6; }
20361fi
20362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20363
20364CFLAGS=${save_CFLAGS}
20365
20366
20367ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20368if test "x$ac_cv_func_getaddrinfo" = xyes; then :
20369
20370$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20371
20372fi
20373
20374
20375case $host_os in
20376        # darwin through Snow Leopard has poll() but can't be used to poll character devices.
20377        darwin[789]*|darwin10*) ;;
20378        darwin*)
20379                _ac_xorg_macosx_version_min=""
20380                if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
20381                        _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
20382                else
20383                        _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
20384                fi
20385                case $_ac_xorg_macosx_version_min in
20386                        10.[0123456]|10.[0123456].*) ;;
20387                        *)
20388                                ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20389if test "x$ac_cv_func_poll" = xyes; then :
20390
20391$as_echo "#define USE_POLL 1" >>confdefs.h
20392
20393fi
20394
20395                        ;;
20396                esac
20397                unset _ac_xorg_macosx_version_min
20398                ;;
20399        *)
20400                ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20401if test "x$ac_cv_func_poll" = xyes; then :
20402
20403$as_echo "#define USE_POLL 1" >>confdefs.h
20404
20405fi
20406
20407        ;;
20408esac
20409
20410case $host_os in
20411        *mingw*)
20412                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20413$as_echo_n "checking for main in -lws2_32... " >&6; }
20414if ${ac_cv_lib_ws2_32_main+:} false; then :
20415  $as_echo_n "(cached) " >&6
20416else
20417  ac_check_lib_save_LIBS=$LIBS
20418LIBS="-lws2_32  $LIBS"
20419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420/* end confdefs.h.  */
20421
20422
20423int
20424main ()
20425{
20426return main ();
20427  ;
20428  return 0;
20429}
20430_ACEOF
20431if ac_fn_c_try_link "$LINENO"; then :
20432  ac_cv_lib_ws2_32_main=yes
20433else
20434  ac_cv_lib_ws2_32_main=no
20435fi
20436rm -f core conftest.err conftest.$ac_objext \
20437    conftest$ac_exeext conftest.$ac_ext
20438LIBS=$ac_check_lib_save_LIBS
20439fi
20440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20441$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
20442if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
20443  cat >>confdefs.h <<_ACEOF
20444#define HAVE_LIBWS2_32 1
20445_ACEOF
20446
20447  LIBS="-lws2_32 $LIBS"
20448
20449fi
20450
20451                ;;
20452        *)
20453                ;;
20454esac
20455
20456
20457# Check whether --enable-composite was given.
20458if test "${enable_composite+set}" = set; then :
20459  enableval=$enable_composite; BUILD_COMPOSITE=$enableval
20460else
20461  BUILD_COMPOSITE=yes
20462fi
20463
20464
20465
20466 if test "x$BUILD_COMPOSITE" = "xyes"; then
20467  BUILD_COMPOSITE_TRUE=
20468  BUILD_COMPOSITE_FALSE='#'
20469else
20470  BUILD_COMPOSITE_TRUE='#'
20471  BUILD_COMPOSITE_FALSE=
20472fi
20473
20474
20475
20476# Check whether --enable-damage was given.
20477if test "${enable_damage+set}" = set; then :
20478  enableval=$enable_damage; BUILD_DAMAGE=$enableval
20479else
20480  BUILD_DAMAGE=yes
20481fi
20482
20483
20484
20485 if test "x$BUILD_DAMAGE" = "xyes"; then
20486  BUILD_DAMAGE_TRUE=
20487  BUILD_DAMAGE_FALSE='#'
20488else
20489  BUILD_DAMAGE_TRUE='#'
20490  BUILD_DAMAGE_FALSE=
20491fi
20492
20493
20494
20495# Check whether --enable-dpms was given.
20496if test "${enable_dpms+set}" = set; then :
20497  enableval=$enable_dpms; BUILD_DPMS=$enableval
20498else
20499  BUILD_DPMS=yes
20500fi
20501
20502
20503
20504 if test "x$BUILD_DPMS" = "xyes"; then
20505  BUILD_DPMS_TRUE=
20506  BUILD_DPMS_FALSE='#'
20507else
20508  BUILD_DPMS_TRUE='#'
20509  BUILD_DPMS_FALSE=
20510fi
20511
20512
20513
20514# Check whether --enable-dri2 was given.
20515if test "${enable_dri2+set}" = set; then :
20516  enableval=$enable_dri2; BUILD_DRI2=$enableval
20517else
20518  BUILD_DRI2=yes
20519fi
20520
20521
20522
20523 if test "x$BUILD_DRI2" = "xyes"; then
20524  BUILD_DRI2_TRUE=
20525  BUILD_DRI2_FALSE='#'
20526else
20527  BUILD_DRI2_TRUE='#'
20528  BUILD_DRI2_FALSE=
20529fi
20530
20531
20532
20533# Check whether --enable-dri3 was given.
20534if test "${enable_dri3+set}" = set; then :
20535  enableval=$enable_dri3; BUILD_DRI3=$enableval
20536else
20537  BUILD_DRI3=auto
20538fi
20539
20540
20541# This extension has a default value of "auto" and depends on the value of $have_sendmsg
20542if test "x$BUILD_DRI3" = "xauto" ; then
20543    BUILD_DRI3=$have_sendmsg
20544fi
20545if test "x$BUILD_DRI3" = "xyes" ; then
20546    if test "x$have_sendmsg" = "xno" ; then
20547      as_fn_error $? "Extension DRI3 requested, but dependencies are not met" "$LINENO" 5
20548    fi
20549fi
20550
20551 if test "x$BUILD_DRI3" = "xyes"; then
20552  BUILD_DRI3_TRUE=
20553  BUILD_DRI3_FALSE='#'
20554else
20555  BUILD_DRI3_TRUE='#'
20556  BUILD_DRI3_FALSE=
20557fi
20558
20559
20560
20561# Check whether --enable-ge was given.
20562if test "${enable_ge+set}" = set; then :
20563  enableval=$enable_ge; BUILD_GE=$enableval
20564else
20565  BUILD_GE=no
20566fi
20567
20568
20569
20570 if test "x$BUILD_GE" = "xyes"; then
20571  BUILD_GE_TRUE=
20572  BUILD_GE_FALSE='#'
20573else
20574  BUILD_GE_TRUE='#'
20575  BUILD_GE_FALSE=
20576fi
20577
20578
20579
20580# Check whether --enable-glx was given.
20581if test "${enable_glx+set}" = set; then :
20582  enableval=$enable_glx; BUILD_GLX=$enableval
20583else
20584  BUILD_GLX=yes
20585fi
20586
20587
20588
20589 if test "x$BUILD_GLX" = "xyes"; then
20590  BUILD_GLX_TRUE=
20591  BUILD_GLX_FALSE='#'
20592else
20593  BUILD_GLX_TRUE='#'
20594  BUILD_GLX_FALSE=
20595fi
20596
20597
20598
20599# Check whether --enable-present was given.
20600if test "${enable_present+set}" = set; then :
20601  enableval=$enable_present; BUILD_PRESENT=$enableval
20602else
20603  BUILD_PRESENT=yes
20604fi
20605
20606
20607
20608 if test "x$BUILD_PRESENT" = "xyes"; then
20609  BUILD_PRESENT_TRUE=
20610  BUILD_PRESENT_FALSE='#'
20611else
20612  BUILD_PRESENT_TRUE='#'
20613  BUILD_PRESENT_FALSE=
20614fi
20615
20616
20617
20618# Check whether --enable-randr was given.
20619if test "${enable_randr+set}" = set; then :
20620  enableval=$enable_randr; BUILD_RANDR=$enableval
20621else
20622  BUILD_RANDR=yes
20623fi
20624
20625
20626
20627 if test "x$BUILD_RANDR" = "xyes"; then
20628  BUILD_RANDR_TRUE=
20629  BUILD_RANDR_FALSE='#'
20630else
20631  BUILD_RANDR_TRUE='#'
20632  BUILD_RANDR_FALSE=
20633fi
20634
20635
20636
20637# Check whether --enable-record was given.
20638if test "${enable_record+set}" = set; then :
20639  enableval=$enable_record; BUILD_RECORD=$enableval
20640else
20641  BUILD_RECORD=yes
20642fi
20643
20644
20645
20646 if test "x$BUILD_RECORD" = "xyes"; then
20647  BUILD_RECORD_TRUE=
20648  BUILD_RECORD_FALSE='#'
20649else
20650  BUILD_RECORD_TRUE='#'
20651  BUILD_RECORD_FALSE=
20652fi
20653
20654
20655
20656# Check whether --enable-render was given.
20657if test "${enable_render+set}" = set; then :
20658  enableval=$enable_render; BUILD_RENDER=$enableval
20659else
20660  BUILD_RENDER=yes
20661fi
20662
20663
20664
20665 if test "x$BUILD_RENDER" = "xyes"; then
20666  BUILD_RENDER_TRUE=
20667  BUILD_RENDER_FALSE='#'
20668else
20669  BUILD_RENDER_TRUE='#'
20670  BUILD_RENDER_FALSE=
20671fi
20672
20673
20674
20675# Check whether --enable-resource was given.
20676if test "${enable_resource+set}" = set; then :
20677  enableval=$enable_resource; BUILD_RESOURCE=$enableval
20678else
20679  BUILD_RESOURCE=yes
20680fi
20681
20682
20683
20684 if test "x$BUILD_RESOURCE" = "xyes"; then
20685  BUILD_RESOURCE_TRUE=
20686  BUILD_RESOURCE_FALSE='#'
20687else
20688  BUILD_RESOURCE_TRUE='#'
20689  BUILD_RESOURCE_FALSE=
20690fi
20691
20692
20693
20694# Check whether --enable-screensaver was given.
20695if test "${enable_screensaver+set}" = set; then :
20696  enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
20697else
20698  BUILD_SCREENSAVER=yes
20699fi
20700
20701
20702
20703 if test "x$BUILD_SCREENSAVER" = "xyes"; then
20704  BUILD_SCREENSAVER_TRUE=
20705  BUILD_SCREENSAVER_FALSE='#'
20706else
20707  BUILD_SCREENSAVER_TRUE='#'
20708  BUILD_SCREENSAVER_FALSE=
20709fi
20710
20711
20712
20713# Check whether --enable-shape was given.
20714if test "${enable_shape+set}" = set; then :
20715  enableval=$enable_shape; BUILD_SHAPE=$enableval
20716else
20717  BUILD_SHAPE=yes
20718fi
20719
20720
20721
20722 if test "x$BUILD_SHAPE" = "xyes"; then
20723  BUILD_SHAPE_TRUE=
20724  BUILD_SHAPE_FALSE='#'
20725else
20726  BUILD_SHAPE_TRUE='#'
20727  BUILD_SHAPE_FALSE=
20728fi
20729
20730
20731
20732# Check whether --enable-shm was given.
20733if test "${enable_shm+set}" = set; then :
20734  enableval=$enable_shm; BUILD_SHM=$enableval
20735else
20736  BUILD_SHM=yes
20737fi
20738
20739
20740
20741 if test "x$BUILD_SHM" = "xyes"; then
20742  BUILD_SHM_TRUE=
20743  BUILD_SHM_FALSE='#'
20744else
20745  BUILD_SHM_TRUE='#'
20746  BUILD_SHM_FALSE=
20747fi
20748
20749
20750
20751# Check whether --enable-sync was given.
20752if test "${enable_sync+set}" = set; then :
20753  enableval=$enable_sync; BUILD_SYNC=$enableval
20754else
20755  BUILD_SYNC=yes
20756fi
20757
20758
20759
20760 if test "x$BUILD_SYNC" = "xyes"; then
20761  BUILD_SYNC_TRUE=
20762  BUILD_SYNC_FALSE='#'
20763else
20764  BUILD_SYNC_TRUE='#'
20765  BUILD_SYNC_FALSE=
20766fi
20767
20768
20769
20770# Check whether --enable-xevie was given.
20771if test "${enable_xevie+set}" = set; then :
20772  enableval=$enable_xevie; BUILD_XEVIE=$enableval
20773else
20774  BUILD_XEVIE=no
20775fi
20776
20777
20778
20779 if test "x$BUILD_XEVIE" = "xyes"; then
20780  BUILD_XEVIE_TRUE=
20781  BUILD_XEVIE_FALSE='#'
20782else
20783  BUILD_XEVIE_TRUE='#'
20784  BUILD_XEVIE_FALSE=
20785fi
20786
20787
20788
20789# Check whether --enable-xfixes was given.
20790if test "${enable_xfixes+set}" = set; then :
20791  enableval=$enable_xfixes; BUILD_XFIXES=$enableval
20792else
20793  BUILD_XFIXES=yes
20794fi
20795
20796
20797
20798 if test "x$BUILD_XFIXES" = "xyes"; then
20799  BUILD_XFIXES_TRUE=
20800  BUILD_XFIXES_FALSE='#'
20801else
20802  BUILD_XFIXES_TRUE='#'
20803  BUILD_XFIXES_FALSE=
20804fi
20805
20806
20807
20808# Check whether --enable-xfree86-dri was given.
20809if test "${enable_xfree86_dri+set}" = set; then :
20810  enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
20811else
20812  BUILD_XFREE86_DRI=yes
20813fi
20814
20815
20816
20817 if test "x$BUILD_XFREE86_DRI" = "xyes"; then
20818  BUILD_XFREE86_DRI_TRUE=
20819  BUILD_XFREE86_DRI_FALSE='#'
20820else
20821  BUILD_XFREE86_DRI_TRUE='#'
20822  BUILD_XFREE86_DRI_FALSE=
20823fi
20824
20825
20826
20827# Check whether --enable-xinerama was given.
20828if test "${enable_xinerama+set}" = set; then :
20829  enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
20830else
20831  BUILD_XINERAMA=yes
20832fi
20833
20834
20835
20836 if test "x$BUILD_XINERAMA" = "xyes"; then
20837  BUILD_XINERAMA_TRUE=
20838  BUILD_XINERAMA_FALSE='#'
20839else
20840  BUILD_XINERAMA_TRUE='#'
20841  BUILD_XINERAMA_FALSE=
20842fi
20843
20844
20845
20846# Check whether --enable-xinput was given.
20847if test "${enable_xinput+set}" = set; then :
20848  enableval=$enable_xinput; BUILD_XINPUT=$enableval
20849else
20850  BUILD_XINPUT=yes
20851fi
20852
20853
20854
20855 if test "x$BUILD_XINPUT" = "xyes"; then
20856  BUILD_XINPUT_TRUE=
20857  BUILD_XINPUT_FALSE='#'
20858else
20859  BUILD_XINPUT_TRUE='#'
20860  BUILD_XINPUT_FALSE=
20861fi
20862
20863
20864
20865# Check whether --enable-xkb was given.
20866if test "${enable_xkb+set}" = set; then :
20867  enableval=$enable_xkb; BUILD_XKB=$enableval
20868else
20869  BUILD_XKB=yes
20870fi
20871
20872
20873
20874 if test "x$BUILD_XKB" = "xyes"; then
20875  BUILD_XKB_TRUE=
20876  BUILD_XKB_FALSE='#'
20877else
20878  BUILD_XKB_TRUE='#'
20879  BUILD_XKB_FALSE=
20880fi
20881
20882
20883
20884# Check whether --enable-xprint was given.
20885if test "${enable_xprint+set}" = set; then :
20886  enableval=$enable_xprint; BUILD_XPRINT=$enableval
20887else
20888  BUILD_XPRINT=no
20889fi
20890
20891
20892
20893 if test "x$BUILD_XPRINT" = "xyes"; then
20894  BUILD_XPRINT_TRUE=
20895  BUILD_XPRINT_FALSE='#'
20896else
20897  BUILD_XPRINT_TRUE='#'
20898  BUILD_XPRINT_FALSE=
20899fi
20900
20901
20902
20903# Check whether --enable-selinux was given.
20904if test "${enable_selinux+set}" = set; then :
20905  enableval=$enable_selinux; BUILD_SELINUX=$enableval
20906else
20907  BUILD_SELINUX=no
20908fi
20909
20910
20911
20912 if test "x$BUILD_SELINUX" = "xyes"; then
20913  BUILD_SELINUX_TRUE=
20914  BUILD_SELINUX_FALSE='#'
20915else
20916  BUILD_SELINUX_TRUE='#'
20917  BUILD_SELINUX_FALSE=
20918fi
20919
20920
20921
20922# Check whether --enable-xtest was given.
20923if test "${enable_xtest+set}" = set; then :
20924  enableval=$enable_xtest; BUILD_XTEST=$enableval
20925else
20926  BUILD_XTEST=yes
20927fi
20928
20929
20930
20931 if test "x$BUILD_XTEST" = "xyes"; then
20932  BUILD_XTEST_TRUE=
20933  BUILD_XTEST_FALSE='#'
20934else
20935  BUILD_XTEST_TRUE='#'
20936  BUILD_XTEST_FALSE=
20937fi
20938
20939
20940
20941# Check whether --enable-xv was given.
20942if test "${enable_xv+set}" = set; then :
20943  enableval=$enable_xv; BUILD_XV=$enableval
20944else
20945  BUILD_XV=yes
20946fi
20947
20948
20949
20950 if test "x$BUILD_XV" = "xyes"; then
20951  BUILD_XV_TRUE=
20952  BUILD_XV_FALSE='#'
20953else
20954  BUILD_XV_TRUE='#'
20955  BUILD_XV_FALSE=
20956fi
20957
20958
20959
20960# Check whether --enable-xvmc was given.
20961if test "${enable_xvmc+set}" = set; then :
20962  enableval=$enable_xvmc; BUILD_XVMC=$enableval
20963else
20964  BUILD_XVMC=yes
20965fi
20966
20967
20968
20969 if test "x$BUILD_XVMC" = "xyes"; then
20970  BUILD_XVMC_TRUE=
20971  BUILD_XVMC_FALSE='#'
20972else
20973  BUILD_XVMC_TRUE='#'
20974  BUILD_XVMC_FALSE=
20975fi
20976
20977
20978
20979
20980# Check whether --with-launchd was given.
20981if test "${with_launchd+set}" = set; then :
20982  withval=$with_launchd; LAUNCHD=$withval
20983else
20984  LAUNCHD=auto
20985fi
20986
20987if test "x$LAUNCHD" = xauto; then
20988        unset LAUNCHD
20989        # Extract the first word of "launchd", so it can be a program name with args.
20990set dummy launchd; ac_word=$2
20991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20992$as_echo_n "checking for $ac_word... " >&6; }
20993if ${ac_cv_prog_LAUNCHD+:} false; then :
20994  $as_echo_n "(cached) " >&6
20995else
20996  if test -n "$LAUNCHD"; then
20997  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
20998else
20999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21000for as_dir in $PATH$PATH_SEPARATOR/sbin
21001do
21002  IFS=$as_save_IFS
21003  test -z "$as_dir" && as_dir=.
21004    for ac_exec_ext in '' $ac_executable_extensions; do
21005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21006    ac_cv_prog_LAUNCHD="yes"
21007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21008    break 2
21009  fi
21010done
21011  done
21012IFS=$as_save_IFS
21013
21014  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
21015fi
21016fi
21017LAUNCHD=$ac_cv_prog_LAUNCHD
21018if test -n "$LAUNCHD"; then
21019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
21020$as_echo "$LAUNCHD" >&6; }
21021else
21022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21023$as_echo "no" >&6; }
21024fi
21025
21026
21027fi
21028
21029if test "x$LAUNCHD" = xyes ; then
21030
21031$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
21032
21033fi
21034
21035
21036# Check whether --with-serverside-support was given.
21037if test "${with_serverside_support+set}" = set; then :
21038  withval=$with_serverside_support; XCB_SERVERSIDE_SUPPORT=$withval
21039else
21040  XCB_SERVERSIDE_SUPPORT=no
21041fi
21042
21043
21044 if test "x$XCB_SERVERSIDE_SUPPORT" = "xyes"; then
21045  XCB_SERVERSIDE_SUPPORT_TRUE=
21046  XCB_SERVERSIDE_SUPPORT_FALSE='#'
21047else
21048  XCB_SERVERSIDE_SUPPORT_TRUE='#'
21049  XCB_SERVERSIDE_SUPPORT_FALSE=
21050fi
21051
21052
21053ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile"
21054
21055
21056ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-dri2.pc xcb-dri3.pc xcb-ge.pc xcb-glx.pc xcb-present.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xkb.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc"
21057
21058
21059ac_config_files="$ac_config_files doc/xcb.doxygen"
21060
21061
21062cat >confcache <<\_ACEOF
21063# This file is a shell script that caches the results of configure
21064# tests run on this system so they can be shared between configure
21065# scripts and configure runs, see configure's option --config-cache.
21066# It is not useful on other systems.  If it contains results you don't
21067# want to keep, you may remove or edit it.
21068#
21069# config.status only pays attention to the cache file if you give it
21070# the --recheck option to rerun configure.
21071#
21072# `ac_cv_env_foo' variables (set or unset) will be overridden when
21073# loading this file, other *unset* `ac_cv_foo' will be assigned the
21074# following values.
21075
21076_ACEOF
21077
21078# The following way of writing the cache mishandles newlines in values,
21079# but we know of no workaround that is simple, portable, and efficient.
21080# So, we kill variables containing newlines.
21081# Ultrix sh set writes to stderr and can't be redirected directly,
21082# and sets the high bit in the cache file unless we assign to the vars.
21083(
21084  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21085    eval ac_val=\$$ac_var
21086    case $ac_val in #(
21087    *${as_nl}*)
21088      case $ac_var in #(
21089      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21090$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21091      esac
21092      case $ac_var in #(
21093      _ | IFS | as_nl) ;; #(
21094      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21095      *) { eval $ac_var=; unset $ac_var;} ;;
21096      esac ;;
21097    esac
21098  done
21099
21100  (set) 2>&1 |
21101    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21102    *${as_nl}ac_space=\ *)
21103      # `set' does not quote correctly, so add quotes: double-quote
21104      # substitution turns \\\\ into \\, and sed turns \\ into \.
21105      sed -n \
21106	"s/'/'\\\\''/g;
21107	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21108      ;; #(
21109    *)
21110      # `set' quotes correctly as required by POSIX, so do not add quotes.
21111      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21112      ;;
21113    esac |
21114    sort
21115) |
21116  sed '
21117     /^ac_cv_env_/b end
21118     t clear
21119     :clear
21120     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21121     t end
21122     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21123     :end' >>confcache
21124if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21125  if test -w "$cache_file"; then
21126    if test "x$cache_file" != "x/dev/null"; then
21127      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21128$as_echo "$as_me: updating cache $cache_file" >&6;}
21129      if test ! -f "$cache_file" || test -h "$cache_file"; then
21130	cat confcache >"$cache_file"
21131      else
21132        case $cache_file in #(
21133        */* | ?:*)
21134	  mv -f confcache "$cache_file"$$ &&
21135	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21136        *)
21137	  mv -f confcache "$cache_file" ;;
21138	esac
21139      fi
21140    fi
21141  else
21142    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21143$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21144  fi
21145fi
21146rm -f confcache
21147
21148test "x$prefix" = xNONE && prefix=$ac_default_prefix
21149# Let make expand exec_prefix.
21150test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21151
21152DEFS=-DHAVE_CONFIG_H
21153
21154ac_libobjs=
21155ac_ltlibobjs=
21156U=
21157for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21158  # 1. Remove the extension, and $U if already installed.
21159  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21160  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21161  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21162  #    will be set to the directory where LIBOBJS objects are built.
21163  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21164  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21165done
21166LIBOBJS=$ac_libobjs
21167
21168LTLIBOBJS=$ac_ltlibobjs
21169
21170
21171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21172$as_echo_n "checking that generated files are newer than configure... " >&6; }
21173   if test -n "$am_sleep_pid"; then
21174     # Hide warnings about reused PIDs.
21175     wait $am_sleep_pid 2>/dev/null
21176   fi
21177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21178$as_echo "done" >&6; }
21179 if test -n "$EXEEXT"; then
21180  am__EXEEXT_TRUE=
21181  am__EXEEXT_FALSE='#'
21182else
21183  am__EXEEXT_TRUE='#'
21184  am__EXEEXT_FALSE=
21185fi
21186
21187if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21188  as_fn_error $? "conditional \"AMDEP\" was never defined.
21189Usually this means the macro was only invoked conditionally." "$LINENO" 5
21190fi
21191if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21192  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21193Usually this means the macro was only invoked conditionally." "$LINENO" 5
21194fi
21195if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
21196  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
21197Usually this means the macro was only invoked conditionally." "$LINENO" 5
21198fi
21199if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
21200  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
21201Usually this means the macro was only invoked conditionally." "$LINENO" 5
21202fi
21203if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
21204  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
21205Usually this means the macro was only invoked conditionally." "$LINENO" 5
21206fi
21207if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
21208  as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
21209Usually this means the macro was only invoked conditionally." "$LINENO" 5
21210fi
21211if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then
21212  as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined.
21213Usually this means the macro was only invoked conditionally." "$LINENO" 5
21214fi
21215if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
21216  as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined.
21217Usually this means the macro was only invoked conditionally." "$LINENO" 5
21218fi
21219if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
21220  as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined.
21221Usually this means the macro was only invoked conditionally." "$LINENO" 5
21222fi
21223if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
21224  as_fn_error $? "conditional \"BUILD_DPMS\" was never defined.
21225Usually this means the macro was only invoked conditionally." "$LINENO" 5
21226fi
21227if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then
21228  as_fn_error $? "conditional \"BUILD_DRI2\" was never defined.
21229Usually this means the macro was only invoked conditionally." "$LINENO" 5
21230fi
21231if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then
21232  as_fn_error $? "conditional \"BUILD_DRI3\" was never defined.
21233Usually this means the macro was only invoked conditionally." "$LINENO" 5
21234fi
21235if test -z "${BUILD_GE_TRUE}" && test -z "${BUILD_GE_FALSE}"; then
21236  as_fn_error $? "conditional \"BUILD_GE\" was never defined.
21237Usually this means the macro was only invoked conditionally." "$LINENO" 5
21238fi
21239if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
21240  as_fn_error $? "conditional \"BUILD_GLX\" was never defined.
21241Usually this means the macro was only invoked conditionally." "$LINENO" 5
21242fi
21243if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then
21244  as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined.
21245Usually this means the macro was only invoked conditionally." "$LINENO" 5
21246fi
21247if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
21248  as_fn_error $? "conditional \"BUILD_RANDR\" was never defined.
21249Usually this means the macro was only invoked conditionally." "$LINENO" 5
21250fi
21251if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
21252  as_fn_error $? "conditional \"BUILD_RECORD\" was never defined.
21253Usually this means the macro was only invoked conditionally." "$LINENO" 5
21254fi
21255if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
21256  as_fn_error $? "conditional \"BUILD_RENDER\" was never defined.
21257Usually this means the macro was only invoked conditionally." "$LINENO" 5
21258fi
21259if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
21260  as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined.
21261Usually this means the macro was only invoked conditionally." "$LINENO" 5
21262fi
21263if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
21264  as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined.
21265Usually this means the macro was only invoked conditionally." "$LINENO" 5
21266fi
21267if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
21268  as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined.
21269Usually this means the macro was only invoked conditionally." "$LINENO" 5
21270fi
21271if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
21272  as_fn_error $? "conditional \"BUILD_SHM\" was never defined.
21273Usually this means the macro was only invoked conditionally." "$LINENO" 5
21274fi
21275if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
21276  as_fn_error $? "conditional \"BUILD_SYNC\" was never defined.
21277Usually this means the macro was only invoked conditionally." "$LINENO" 5
21278fi
21279if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
21280  as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined.
21281Usually this means the macro was only invoked conditionally." "$LINENO" 5
21282fi
21283if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
21284  as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined.
21285Usually this means the macro was only invoked conditionally." "$LINENO" 5
21286fi
21287if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
21288  as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined.
21289Usually this means the macro was only invoked conditionally." "$LINENO" 5
21290fi
21291if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
21292  as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined.
21293Usually this means the macro was only invoked conditionally." "$LINENO" 5
21294fi
21295if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
21296  as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined.
21297Usually this means the macro was only invoked conditionally." "$LINENO" 5
21298fi
21299if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then
21300  as_fn_error $? "conditional \"BUILD_XKB\" was never defined.
21301Usually this means the macro was only invoked conditionally." "$LINENO" 5
21302fi
21303if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
21304  as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined.
21305Usually this means the macro was only invoked conditionally." "$LINENO" 5
21306fi
21307if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
21308  as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined.
21309Usually this means the macro was only invoked conditionally." "$LINENO" 5
21310fi
21311if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
21312  as_fn_error $? "conditional \"BUILD_XTEST\" was never defined.
21313Usually this means the macro was only invoked conditionally." "$LINENO" 5
21314fi
21315if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
21316  as_fn_error $? "conditional \"BUILD_XV\" was never defined.
21317Usually this means the macro was only invoked conditionally." "$LINENO" 5
21318fi
21319if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
21320  as_fn_error $? "conditional \"BUILD_XVMC\" was never defined.
21321Usually this means the macro was only invoked conditionally." "$LINENO" 5
21322fi
21323if test -z "${XCB_SERVERSIDE_SUPPORT_TRUE}" && test -z "${XCB_SERVERSIDE_SUPPORT_FALSE}"; then
21324  as_fn_error $? "conditional \"XCB_SERVERSIDE_SUPPORT\" was never defined.
21325Usually this means the macro was only invoked conditionally." "$LINENO" 5
21326fi
21327
21328: "${CONFIG_STATUS=./config.status}"
21329ac_write_fail=0
21330ac_clean_files_save=$ac_clean_files
21331ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21332{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21333$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21334as_write_fail=0
21335cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21336#! $SHELL
21337# Generated by $as_me.
21338# Run this file to recreate the current configuration.
21339# Compiler output produced by configure, useful for debugging
21340# configure, is in config.log if it exists.
21341
21342debug=false
21343ac_cs_recheck=false
21344ac_cs_silent=false
21345
21346SHELL=\${CONFIG_SHELL-$SHELL}
21347export SHELL
21348_ASEOF
21349cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21350## -------------------- ##
21351## M4sh Initialization. ##
21352## -------------------- ##
21353
21354# Be more Bourne compatible
21355DUALCASE=1; export DUALCASE # for MKS sh
21356if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21357  emulate sh
21358  NULLCMD=:
21359  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21360  # is contrary to our usage.  Disable this feature.
21361  alias -g '${1+"$@"}'='"$@"'
21362  setopt NO_GLOB_SUBST
21363else
21364  case `(set -o) 2>/dev/null` in #(
21365  *posix*) :
21366    set -o posix ;; #(
21367  *) :
21368     ;;
21369esac
21370fi
21371
21372
21373as_nl='
21374'
21375export as_nl
21376# Printing a long string crashes Solaris 7 /usr/bin/printf.
21377as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21378as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21379as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21380# Prefer a ksh shell builtin over an external printf program on Solaris,
21381# but without wasting forks for bash or zsh.
21382if test -z "$BASH_VERSION$ZSH_VERSION" \
21383    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21384  as_echo='print -r --'
21385  as_echo_n='print -rn --'
21386elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21387  as_echo='printf %s\n'
21388  as_echo_n='printf %s'
21389else
21390  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21391    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21392    as_echo_n='/usr/ucb/echo -n'
21393  else
21394    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21395    as_echo_n_body='eval
21396      arg=$1;
21397      case $arg in #(
21398      *"$as_nl"*)
21399	expr "X$arg" : "X\\(.*\\)$as_nl";
21400	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21401      esac;
21402      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21403    '
21404    export as_echo_n_body
21405    as_echo_n='sh -c $as_echo_n_body as_echo'
21406  fi
21407  export as_echo_body
21408  as_echo='sh -c $as_echo_body as_echo'
21409fi
21410
21411# The user is always right.
21412if test "${PATH_SEPARATOR+set}" != set; then
21413  PATH_SEPARATOR=:
21414  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21415    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21416      PATH_SEPARATOR=';'
21417  }
21418fi
21419
21420
21421# IFS
21422# We need space, tab and new line, in precisely that order.  Quoting is
21423# there to prevent editors from complaining about space-tab.
21424# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21425# splitting by setting IFS to empty value.)
21426IFS=" ""	$as_nl"
21427
21428# Find who we are.  Look in the path if we contain no directory separator.
21429as_myself=
21430case $0 in #((
21431  *[\\/]* ) as_myself=$0 ;;
21432  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21433for as_dir in $PATH
21434do
21435  IFS=$as_save_IFS
21436  test -z "$as_dir" && as_dir=.
21437    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21438  done
21439IFS=$as_save_IFS
21440
21441     ;;
21442esac
21443# We did not find ourselves, most probably we were run as `sh COMMAND'
21444# in which case we are not to be found in the path.
21445if test "x$as_myself" = x; then
21446  as_myself=$0
21447fi
21448if test ! -f "$as_myself"; then
21449  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21450  exit 1
21451fi
21452
21453# Unset variables that we do not need and which cause bugs (e.g. in
21454# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21455# suppresses any "Segmentation fault" message there.  '((' could
21456# trigger a bug in pdksh 5.2.14.
21457for as_var in BASH_ENV ENV MAIL MAILPATH
21458do eval test x\${$as_var+set} = xset \
21459  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21460done
21461PS1='$ '
21462PS2='> '
21463PS4='+ '
21464
21465# NLS nuisances.
21466LC_ALL=C
21467export LC_ALL
21468LANGUAGE=C
21469export LANGUAGE
21470
21471# CDPATH.
21472(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21473
21474
21475# as_fn_error STATUS ERROR [LINENO LOG_FD]
21476# ----------------------------------------
21477# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21478# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21479# script with STATUS, using 1 if that was 0.
21480as_fn_error ()
21481{
21482  as_status=$1; test $as_status -eq 0 && as_status=1
21483  if test "$4"; then
21484    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21485    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21486  fi
21487  $as_echo "$as_me: error: $2" >&2
21488  as_fn_exit $as_status
21489} # as_fn_error
21490
21491
21492# as_fn_set_status STATUS
21493# -----------------------
21494# Set $? to STATUS, without forking.
21495as_fn_set_status ()
21496{
21497  return $1
21498} # as_fn_set_status
21499
21500# as_fn_exit STATUS
21501# -----------------
21502# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21503as_fn_exit ()
21504{
21505  set +e
21506  as_fn_set_status $1
21507  exit $1
21508} # as_fn_exit
21509
21510# as_fn_unset VAR
21511# ---------------
21512# Portably unset VAR.
21513as_fn_unset ()
21514{
21515  { eval $1=; unset $1;}
21516}
21517as_unset=as_fn_unset
21518# as_fn_append VAR VALUE
21519# ----------------------
21520# Append the text in VALUE to the end of the definition contained in VAR. Take
21521# advantage of any shell optimizations that allow amortized linear growth over
21522# repeated appends, instead of the typical quadratic growth present in naive
21523# implementations.
21524if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21525  eval 'as_fn_append ()
21526  {
21527    eval $1+=\$2
21528  }'
21529else
21530  as_fn_append ()
21531  {
21532    eval $1=\$$1\$2
21533  }
21534fi # as_fn_append
21535
21536# as_fn_arith ARG...
21537# ------------------
21538# Perform arithmetic evaluation on the ARGs, and store the result in the
21539# global $as_val. Take advantage of shells that can avoid forks. The arguments
21540# must be portable across $(()) and expr.
21541if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21542  eval 'as_fn_arith ()
21543  {
21544    as_val=$(( $* ))
21545  }'
21546else
21547  as_fn_arith ()
21548  {
21549    as_val=`expr "$@" || test $? -eq 1`
21550  }
21551fi # as_fn_arith
21552
21553
21554if expr a : '\(a\)' >/dev/null 2>&1 &&
21555   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21556  as_expr=expr
21557else
21558  as_expr=false
21559fi
21560
21561if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21562  as_basename=basename
21563else
21564  as_basename=false
21565fi
21566
21567if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21568  as_dirname=dirname
21569else
21570  as_dirname=false
21571fi
21572
21573as_me=`$as_basename -- "$0" ||
21574$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21575	 X"$0" : 'X\(//\)$' \| \
21576	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21577$as_echo X/"$0" |
21578    sed '/^.*\/\([^/][^/]*\)\/*$/{
21579	    s//\1/
21580	    q
21581	  }
21582	  /^X\/\(\/\/\)$/{
21583	    s//\1/
21584	    q
21585	  }
21586	  /^X\/\(\/\).*/{
21587	    s//\1/
21588	    q
21589	  }
21590	  s/.*/./; q'`
21591
21592# Avoid depending upon Character Ranges.
21593as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21594as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21595as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21596as_cr_digits='0123456789'
21597as_cr_alnum=$as_cr_Letters$as_cr_digits
21598
21599ECHO_C= ECHO_N= ECHO_T=
21600case `echo -n x` in #(((((
21601-n*)
21602  case `echo 'xy\c'` in
21603  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21604  xy)  ECHO_C='\c';;
21605  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21606       ECHO_T='	';;
21607  esac;;
21608*)
21609  ECHO_N='-n';;
21610esac
21611
21612rm -f conf$$ conf$$.exe conf$$.file
21613if test -d conf$$.dir; then
21614  rm -f conf$$.dir/conf$$.file
21615else
21616  rm -f conf$$.dir
21617  mkdir conf$$.dir 2>/dev/null
21618fi
21619if (echo >conf$$.file) 2>/dev/null; then
21620  if ln -s conf$$.file conf$$ 2>/dev/null; then
21621    as_ln_s='ln -s'
21622    # ... but there are two gotchas:
21623    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21624    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21625    # In both cases, we have to default to `cp -pR'.
21626    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21627      as_ln_s='cp -pR'
21628  elif ln conf$$.file conf$$ 2>/dev/null; then
21629    as_ln_s=ln
21630  else
21631    as_ln_s='cp -pR'
21632  fi
21633else
21634  as_ln_s='cp -pR'
21635fi
21636rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21637rmdir conf$$.dir 2>/dev/null
21638
21639
21640# as_fn_mkdir_p
21641# -------------
21642# Create "$as_dir" as a directory, including parents if necessary.
21643as_fn_mkdir_p ()
21644{
21645
21646  case $as_dir in #(
21647  -*) as_dir=./$as_dir;;
21648  esac
21649  test -d "$as_dir" || eval $as_mkdir_p || {
21650    as_dirs=
21651    while :; do
21652      case $as_dir in #(
21653      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21654      *) as_qdir=$as_dir;;
21655      esac
21656      as_dirs="'$as_qdir' $as_dirs"
21657      as_dir=`$as_dirname -- "$as_dir" ||
21658$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21659	 X"$as_dir" : 'X\(//\)[^/]' \| \
21660	 X"$as_dir" : 'X\(//\)$' \| \
21661	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21662$as_echo X"$as_dir" |
21663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21664	    s//\1/
21665	    q
21666	  }
21667	  /^X\(\/\/\)[^/].*/{
21668	    s//\1/
21669	    q
21670	  }
21671	  /^X\(\/\/\)$/{
21672	    s//\1/
21673	    q
21674	  }
21675	  /^X\(\/\).*/{
21676	    s//\1/
21677	    q
21678	  }
21679	  s/.*/./; q'`
21680      test -d "$as_dir" && break
21681    done
21682    test -z "$as_dirs" || eval "mkdir $as_dirs"
21683  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21684
21685
21686} # as_fn_mkdir_p
21687if mkdir -p . 2>/dev/null; then
21688  as_mkdir_p='mkdir -p "$as_dir"'
21689else
21690  test -d ./-p && rmdir ./-p
21691  as_mkdir_p=false
21692fi
21693
21694
21695# as_fn_executable_p FILE
21696# -----------------------
21697# Test if FILE is an executable regular file.
21698as_fn_executable_p ()
21699{
21700  test -f "$1" && test -x "$1"
21701} # as_fn_executable_p
21702as_test_x='test -x'
21703as_executable_p=as_fn_executable_p
21704
21705# Sed expression to map a string onto a valid CPP name.
21706as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21707
21708# Sed expression to map a string onto a valid variable name.
21709as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21710
21711
21712exec 6>&1
21713## ----------------------------------- ##
21714## Main body of $CONFIG_STATUS script. ##
21715## ----------------------------------- ##
21716_ASEOF
21717test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21718
21719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21720# Save the log message, to keep $0 and so on meaningful, and to
21721# report actual input values of CONFIG_FILES etc. instead of their
21722# values after options handling.
21723ac_log="
21724This file was extended by libxcb $as_me 1.13, which was
21725generated by GNU Autoconf 2.69.  Invocation command line was
21726
21727  CONFIG_FILES    = $CONFIG_FILES
21728  CONFIG_HEADERS  = $CONFIG_HEADERS
21729  CONFIG_LINKS    = $CONFIG_LINKS
21730  CONFIG_COMMANDS = $CONFIG_COMMANDS
21731  $ $0 $@
21732
21733on `(hostname || uname -n) 2>/dev/null | sed 1q`
21734"
21735
21736_ACEOF
21737
21738case $ac_config_files in *"
21739"*) set x $ac_config_files; shift; ac_config_files=$*;;
21740esac
21741
21742case $ac_config_headers in *"
21743"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21744esac
21745
21746
21747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21748# Files that config.status was made for.
21749config_files="$ac_config_files"
21750config_headers="$ac_config_headers"
21751config_commands="$ac_config_commands"
21752
21753_ACEOF
21754
21755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21756ac_cs_usage="\
21757\`$as_me' instantiates files and other configuration actions
21758from templates according to the current configuration.  Unless the files
21759and actions are specified as TAGs, all are instantiated by default.
21760
21761Usage: $0 [OPTION]... [TAG]...
21762
21763  -h, --help       print this help, then exit
21764  -V, --version    print version number and configuration settings, then exit
21765      --config     print configuration, then exit
21766  -q, --quiet, --silent
21767                   do not print progress messages
21768  -d, --debug      don't remove temporary files
21769      --recheck    update $as_me by reconfiguring in the same conditions
21770      --file=FILE[:TEMPLATE]
21771                   instantiate the configuration file FILE
21772      --header=FILE[:TEMPLATE]
21773                   instantiate the configuration header FILE
21774
21775Configuration files:
21776$config_files
21777
21778Configuration headers:
21779$config_headers
21780
21781Configuration commands:
21782$config_commands
21783
21784Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>."
21785
21786_ACEOF
21787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21788ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21789ac_cs_version="\\
21790libxcb config.status 1.13
21791configured by $0, generated by GNU Autoconf 2.69,
21792  with options \\"\$ac_cs_config\\"
21793
21794Copyright (C) 2012 Free Software Foundation, Inc.
21795This config.status script is free software; the Free Software Foundation
21796gives unlimited permission to copy, distribute and modify it."
21797
21798ac_pwd='$ac_pwd'
21799srcdir='$srcdir'
21800INSTALL='$INSTALL'
21801MKDIR_P='$MKDIR_P'
21802AWK='$AWK'
21803test -n "\$AWK" || AWK=awk
21804_ACEOF
21805
21806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21807# The default lists apply if the user does not specify any file.
21808ac_need_defaults=:
21809while test $# != 0
21810do
21811  case $1 in
21812  --*=?*)
21813    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21814    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21815    ac_shift=:
21816    ;;
21817  --*=)
21818    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21819    ac_optarg=
21820    ac_shift=:
21821    ;;
21822  *)
21823    ac_option=$1
21824    ac_optarg=$2
21825    ac_shift=shift
21826    ;;
21827  esac
21828
21829  case $ac_option in
21830  # Handling of the options.
21831  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21832    ac_cs_recheck=: ;;
21833  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21834    $as_echo "$ac_cs_version"; exit ;;
21835  --config | --confi | --conf | --con | --co | --c )
21836    $as_echo "$ac_cs_config"; exit ;;
21837  --debug | --debu | --deb | --de | --d | -d )
21838    debug=: ;;
21839  --file | --fil | --fi | --f )
21840    $ac_shift
21841    case $ac_optarg in
21842    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21843    '') as_fn_error $? "missing file argument" ;;
21844    esac
21845    as_fn_append CONFIG_FILES " '$ac_optarg'"
21846    ac_need_defaults=false;;
21847  --header | --heade | --head | --hea )
21848    $ac_shift
21849    case $ac_optarg in
21850    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21851    esac
21852    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21853    ac_need_defaults=false;;
21854  --he | --h)
21855    # Conflict between --help and --header
21856    as_fn_error $? "ambiguous option: \`$1'
21857Try \`$0 --help' for more information.";;
21858  --help | --hel | -h )
21859    $as_echo "$ac_cs_usage"; exit ;;
21860  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21861  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21862    ac_cs_silent=: ;;
21863
21864  # This is an error.
21865  -*) as_fn_error $? "unrecognized option: \`$1'
21866Try \`$0 --help' for more information." ;;
21867
21868  *) as_fn_append ac_config_targets " $1"
21869     ac_need_defaults=false ;;
21870
21871  esac
21872  shift
21873done
21874
21875ac_configure_extra_args=
21876
21877if $ac_cs_silent; then
21878  exec 6>/dev/null
21879  ac_configure_extra_args="$ac_configure_extra_args --silent"
21880fi
21881
21882_ACEOF
21883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21884if \$ac_cs_recheck; then
21885  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21886  shift
21887  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21888  CONFIG_SHELL='$SHELL'
21889  export CONFIG_SHELL
21890  exec "\$@"
21891fi
21892
21893_ACEOF
21894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21895exec 5>>config.log
21896{
21897  echo
21898  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21899## Running $as_me. ##
21900_ASBOX
21901  $as_echo "$ac_log"
21902} >&5
21903
21904_ACEOF
21905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21906#
21907# INIT-COMMANDS
21908#
21909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21910
21911
21912# The HP-UX ksh and POSIX shell print the target directory to stdout
21913# if CDPATH is set.
21914(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21915
21916sed_quote_subst='$sed_quote_subst'
21917double_quote_subst='$double_quote_subst'
21918delay_variable_subst='$delay_variable_subst'
21919macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21920macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21921AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21922DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21923OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21924enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21925enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21926pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21927enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21928shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21929SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21930ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21931PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21932host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21933host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21934host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21935build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21936build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21937build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21938SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21939Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21940GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21941EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21942FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21943LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21944NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21945LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21946max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21947ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21948exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21949lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21950lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21951lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21952lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21953lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21954reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21955reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21956deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21957file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21958file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21959want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21960sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21961AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21962AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21963archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21964STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21965RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21966old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21967old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21968old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21969lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21970CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21971CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21972compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21973GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21974lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21975lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21976lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21977lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21978lt_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"`'
21979lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21980nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21981lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21982lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21983objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21984MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21985lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21986lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21987lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21988lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21989lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21990need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21991MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21992DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21993NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21994LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21995OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21996OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21997libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21998shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21999extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22000archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22001enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22002export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22003whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22004compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22005old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22006old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22007archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22008archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22009module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22010module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22011with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22012allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22013no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22014hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22015hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22016hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22017hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22018hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22019hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22020hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22021inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22022link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22023always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22024export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22025exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22026include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22027prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22028postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22029file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22030variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22031need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22032need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22033version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22034runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22035shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22036shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22037libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22038library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22039soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22040install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22041postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22042postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22043finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22044finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22045hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22046sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22047configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22048configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22049hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22050enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22051enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22052enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22053old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22054striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22055
22056LTCC='$LTCC'
22057LTCFLAGS='$LTCFLAGS'
22058compiler='$compiler_DEFAULT'
22059
22060# A function that is used when there is no print builtin or printf.
22061func_fallback_echo ()
22062{
22063  eval 'cat <<_LTECHO_EOF
22064\$1
22065_LTECHO_EOF'
22066}
22067
22068# Quote evaled strings.
22069for var in AS \
22070DLLTOOL \
22071OBJDUMP \
22072SHELL \
22073ECHO \
22074PATH_SEPARATOR \
22075SED \
22076GREP \
22077EGREP \
22078FGREP \
22079LD \
22080NM \
22081LN_S \
22082lt_SP2NL \
22083lt_NL2SP \
22084reload_flag \
22085deplibs_check_method \
22086file_magic_cmd \
22087file_magic_glob \
22088want_nocaseglob \
22089sharedlib_from_linklib_cmd \
22090AR \
22091AR_FLAGS \
22092archiver_list_spec \
22093STRIP \
22094RANLIB \
22095CC \
22096CFLAGS \
22097compiler \
22098lt_cv_sys_global_symbol_pipe \
22099lt_cv_sys_global_symbol_to_cdecl \
22100lt_cv_sys_global_symbol_to_import \
22101lt_cv_sys_global_symbol_to_c_name_address \
22102lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22103lt_cv_nm_interface \
22104nm_file_list_spec \
22105lt_cv_truncate_bin \
22106lt_prog_compiler_no_builtin_flag \
22107lt_prog_compiler_pic \
22108lt_prog_compiler_wl \
22109lt_prog_compiler_static \
22110lt_cv_prog_compiler_c_o \
22111need_locks \
22112MANIFEST_TOOL \
22113DSYMUTIL \
22114NMEDIT \
22115LIPO \
22116OTOOL \
22117OTOOL64 \
22118shrext_cmds \
22119export_dynamic_flag_spec \
22120whole_archive_flag_spec \
22121compiler_needs_object \
22122with_gnu_ld \
22123allow_undefined_flag \
22124no_undefined_flag \
22125hardcode_libdir_flag_spec \
22126hardcode_libdir_separator \
22127exclude_expsyms \
22128include_expsyms \
22129file_list_spec \
22130variables_saved_for_relink \
22131libname_spec \
22132library_names_spec \
22133soname_spec \
22134install_override_mode \
22135finish_eval \
22136old_striplib \
22137striplib; do
22138    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22139    *[\\\\\\\`\\"\\\$]*)
22140      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22141      ;;
22142    *)
22143      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22144      ;;
22145    esac
22146done
22147
22148# Double-quote double-evaled strings.
22149for var in reload_cmds \
22150old_postinstall_cmds \
22151old_postuninstall_cmds \
22152old_archive_cmds \
22153extract_expsyms_cmds \
22154old_archive_from_new_cmds \
22155old_archive_from_expsyms_cmds \
22156archive_cmds \
22157archive_expsym_cmds \
22158module_cmds \
22159module_expsym_cmds \
22160export_symbols_cmds \
22161prelink_cmds \
22162postlink_cmds \
22163postinstall_cmds \
22164postuninstall_cmds \
22165finish_cmds \
22166sys_lib_search_path_spec \
22167configure_time_dlsearch_path \
22168configure_time_lt_sys_library_path; do
22169    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22170    *[\\\\\\\`\\"\\\$]*)
22171      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22172      ;;
22173    *)
22174      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22175      ;;
22176    esac
22177done
22178
22179ac_aux_dir='$ac_aux_dir'
22180
22181# See if we are running on zsh, and set the options that allow our
22182# commands through without removal of \ escapes INIT.
22183if test -n "\${ZSH_VERSION+set}"; then
22184   setopt NO_GLOB_SUBST
22185fi
22186
22187
22188    PACKAGE='$PACKAGE'
22189    VERSION='$VERSION'
22190    RM='$RM'
22191    ofile='$ofile'
22192
22193
22194
22195
22196_ACEOF
22197
22198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22199
22200# Handling of arguments.
22201for ac_config_target in $ac_config_targets
22202do
22203  case $ac_config_target in
22204    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22205    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22206    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22207    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22208    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22209    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22210    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22211    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22212    "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
22213    "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
22214    "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
22215    "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
22216    "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;;
22217    "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;;
22218    "xcb-ge.pc") CONFIG_FILES="$CONFIG_FILES xcb-ge.pc" ;;
22219    "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
22220    "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;;
22221    "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
22222    "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
22223    "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
22224    "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
22225    "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
22226    "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
22227    "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
22228    "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
22229    "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
22230    "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
22231    "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
22232    "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
22233    "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
22234    "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;;
22235    "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
22236    "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
22237    "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
22238    "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
22239    "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
22240    "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
22241
22242  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22243  esac
22244done
22245
22246
22247# If the user did not use the arguments to specify the items to instantiate,
22248# then the envvar interface is used.  Set only those that are not.
22249# We use the long form for the default assignment because of an extremely
22250# bizarre bug on SunOS 4.1.3.
22251if $ac_need_defaults; then
22252  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22253  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22254  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22255fi
22256
22257# Have a temporary directory for convenience.  Make it in the build tree
22258# simply because there is no reason against having it here, and in addition,
22259# creating and moving files from /tmp can sometimes cause problems.
22260# Hook for its removal unless debugging.
22261# Note that there is a small window in which the directory will not be cleaned:
22262# after its creation but before its name has been assigned to `$tmp'.
22263$debug ||
22264{
22265  tmp= ac_tmp=
22266  trap 'exit_status=$?
22267  : "${ac_tmp:=$tmp}"
22268  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22269' 0
22270  trap 'as_fn_exit 1' 1 2 13 15
22271}
22272# Create a (secure) tmp directory for tmp files.
22273
22274{
22275  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22276  test -d "$tmp"
22277}  ||
22278{
22279  tmp=./conf$$-$RANDOM
22280  (umask 077 && mkdir "$tmp")
22281} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22282ac_tmp=$tmp
22283
22284# Set up the scripts for CONFIG_FILES section.
22285# No need to generate them if there are no CONFIG_FILES.
22286# This happens for instance with `./config.status config.h'.
22287if test -n "$CONFIG_FILES"; then
22288
22289
22290ac_cr=`echo X | tr X '\015'`
22291# On cygwin, bash can eat \r inside `` if the user requested igncr.
22292# But we know of no other shell where ac_cr would be empty at this
22293# point, so we can use a bashism as a fallback.
22294if test "x$ac_cr" = x; then
22295  eval ac_cr=\$\'\\r\'
22296fi
22297ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22298if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22299  ac_cs_awk_cr='\\r'
22300else
22301  ac_cs_awk_cr=$ac_cr
22302fi
22303
22304echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22305_ACEOF
22306
22307
22308{
22309  echo "cat >conf$$subs.awk <<_ACEOF" &&
22310  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22311  echo "_ACEOF"
22312} >conf$$subs.sh ||
22313  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22314ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22315ac_delim='%!_!# '
22316for ac_last_try in false false false false false :; do
22317  . ./conf$$subs.sh ||
22318    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22319
22320  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22321  if test $ac_delim_n = $ac_delim_num; then
22322    break
22323  elif $ac_last_try; then
22324    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22325  else
22326    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22327  fi
22328done
22329rm -f conf$$subs.sh
22330
22331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22332cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22333_ACEOF
22334sed -n '
22335h
22336s/^/S["/; s/!.*/"]=/
22337p
22338g
22339s/^[^!]*!//
22340:repl
22341t repl
22342s/'"$ac_delim"'$//
22343t delim
22344:nl
22345h
22346s/\(.\{148\}\)..*/\1/
22347t more1
22348s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22349p
22350n
22351b repl
22352:more1
22353s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22354p
22355g
22356s/.\{148\}//
22357t nl
22358:delim
22359h
22360s/\(.\{148\}\)..*/\1/
22361t more2
22362s/["\\]/\\&/g; s/^/"/; s/$/"/
22363p
22364b
22365:more2
22366s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22367p
22368g
22369s/.\{148\}//
22370t delim
22371' <conf$$subs.awk | sed '
22372/^[^""]/{
22373  N
22374  s/\n//
22375}
22376' >>$CONFIG_STATUS || ac_write_fail=1
22377rm -f conf$$subs.awk
22378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22379_ACAWK
22380cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22381  for (key in S) S_is_set[key] = 1
22382  FS = ""
22383
22384}
22385{
22386  line = $ 0
22387  nfields = split(line, field, "@")
22388  substed = 0
22389  len = length(field[1])
22390  for (i = 2; i < nfields; i++) {
22391    key = field[i]
22392    keylen = length(key)
22393    if (S_is_set[key]) {
22394      value = S[key]
22395      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22396      len += length(value) + length(field[++i])
22397      substed = 1
22398    } else
22399      len += 1 + keylen
22400  }
22401
22402  print line
22403}
22404
22405_ACAWK
22406_ACEOF
22407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22408if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22409  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22410else
22411  cat
22412fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22413  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22414_ACEOF
22415
22416# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22417# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22418# trailing colons and then remove the whole line if VPATH becomes empty
22419# (actually we leave an empty line to preserve line numbers).
22420if test "x$srcdir" = x.; then
22421  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22422h
22423s///
22424s/^/:/
22425s/[	 ]*$/:/
22426s/:\$(srcdir):/:/g
22427s/:\${srcdir}:/:/g
22428s/:@srcdir@:/:/g
22429s/^:*//
22430s/:*$//
22431x
22432s/\(=[	 ]*\).*/\1/
22433G
22434s/\n//
22435s/^[^=]*=[	 ]*$//
22436}'
22437fi
22438
22439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22440fi # test -n "$CONFIG_FILES"
22441
22442# Set up the scripts for CONFIG_HEADERS section.
22443# No need to generate them if there are no CONFIG_HEADERS.
22444# This happens for instance with `./config.status Makefile'.
22445if test -n "$CONFIG_HEADERS"; then
22446cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22447BEGIN {
22448_ACEOF
22449
22450# Transform confdefs.h into an awk script `defines.awk', embedded as
22451# here-document in config.status, that substitutes the proper values into
22452# config.h.in to produce config.h.
22453
22454# Create a delimiter string that does not exist in confdefs.h, to ease
22455# handling of long lines.
22456ac_delim='%!_!# '
22457for ac_last_try in false false :; do
22458  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22459  if test -z "$ac_tt"; then
22460    break
22461  elif $ac_last_try; then
22462    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22463  else
22464    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22465  fi
22466done
22467
22468# For the awk script, D is an array of macro values keyed by name,
22469# likewise P contains macro parameters if any.  Preserve backslash
22470# newline sequences.
22471
22472ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22473sed -n '
22474s/.\{148\}/&'"$ac_delim"'/g
22475t rset
22476:rset
22477s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22478t def
22479d
22480:def
22481s/\\$//
22482t bsnl
22483s/["\\]/\\&/g
22484s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22485D["\1"]=" \3"/p
22486s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22487d
22488:bsnl
22489s/["\\]/\\&/g
22490s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22491D["\1"]=" \3\\\\\\n"\\/p
22492t cont
22493s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22494t cont
22495d
22496:cont
22497n
22498s/.\{148\}/&'"$ac_delim"'/g
22499t clear
22500:clear
22501s/\\$//
22502t bsnlc
22503s/["\\]/\\&/g; s/^/"/; s/$/"/p
22504d
22505:bsnlc
22506s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22507b cont
22508' <confdefs.h | sed '
22509s/'"$ac_delim"'/"\\\
22510"/g' >>$CONFIG_STATUS || ac_write_fail=1
22511
22512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22513  for (key in D) D_is_set[key] = 1
22514  FS = ""
22515}
22516/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22517  line = \$ 0
22518  split(line, arg, " ")
22519  if (arg[1] == "#") {
22520    defundef = arg[2]
22521    mac1 = arg[3]
22522  } else {
22523    defundef = substr(arg[1], 2)
22524    mac1 = arg[2]
22525  }
22526  split(mac1, mac2, "(") #)
22527  macro = mac2[1]
22528  prefix = substr(line, 1, index(line, defundef) - 1)
22529  if (D_is_set[macro]) {
22530    # Preserve the white space surrounding the "#".
22531    print prefix "define", macro P[macro] D[macro]
22532    next
22533  } else {
22534    # Replace #undef with comments.  This is necessary, for example,
22535    # in the case of _POSIX_SOURCE, which is predefined and required
22536    # on some systems where configure will not decide to define it.
22537    if (defundef == "undef") {
22538      print "/*", prefix defundef, macro, "*/"
22539      next
22540    }
22541  }
22542}
22543{ print }
22544_ACAWK
22545_ACEOF
22546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22547  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22548fi # test -n "$CONFIG_HEADERS"
22549
22550
22551eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22552shift
22553for ac_tag
22554do
22555  case $ac_tag in
22556  :[FHLC]) ac_mode=$ac_tag; continue;;
22557  esac
22558  case $ac_mode$ac_tag in
22559  :[FHL]*:*);;
22560  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22561  :[FH]-) ac_tag=-:-;;
22562  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22563  esac
22564  ac_save_IFS=$IFS
22565  IFS=:
22566  set x $ac_tag
22567  IFS=$ac_save_IFS
22568  shift
22569  ac_file=$1
22570  shift
22571
22572  case $ac_mode in
22573  :L) ac_source=$1;;
22574  :[FH])
22575    ac_file_inputs=
22576    for ac_f
22577    do
22578      case $ac_f in
22579      -) ac_f="$ac_tmp/stdin";;
22580      *) # Look for the file first in the build tree, then in the source tree
22581	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22582	 # because $ac_f cannot contain `:'.
22583	 test -f "$ac_f" ||
22584	   case $ac_f in
22585	   [\\/$]*) false;;
22586	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22587	   esac ||
22588	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22589      esac
22590      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22591      as_fn_append ac_file_inputs " '$ac_f'"
22592    done
22593
22594    # Let's still pretend it is `configure' which instantiates (i.e., don't
22595    # use $as_me), people would be surprised to read:
22596    #    /* config.h.  Generated by config.status.  */
22597    configure_input='Generated from '`
22598	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22599	`' by configure.'
22600    if test x"$ac_file" != x-; then
22601      configure_input="$ac_file.  $configure_input"
22602      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22603$as_echo "$as_me: creating $ac_file" >&6;}
22604    fi
22605    # Neutralize special characters interpreted by sed in replacement strings.
22606    case $configure_input in #(
22607    *\&* | *\|* | *\\* )
22608       ac_sed_conf_input=`$as_echo "$configure_input" |
22609       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22610    *) ac_sed_conf_input=$configure_input;;
22611    esac
22612
22613    case $ac_tag in
22614    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22615      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22616    esac
22617    ;;
22618  esac
22619
22620  ac_dir=`$as_dirname -- "$ac_file" ||
22621$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22622	 X"$ac_file" : 'X\(//\)[^/]' \| \
22623	 X"$ac_file" : 'X\(//\)$' \| \
22624	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22625$as_echo X"$ac_file" |
22626    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22627	    s//\1/
22628	    q
22629	  }
22630	  /^X\(\/\/\)[^/].*/{
22631	    s//\1/
22632	    q
22633	  }
22634	  /^X\(\/\/\)$/{
22635	    s//\1/
22636	    q
22637	  }
22638	  /^X\(\/\).*/{
22639	    s//\1/
22640	    q
22641	  }
22642	  s/.*/./; q'`
22643  as_dir="$ac_dir"; as_fn_mkdir_p
22644  ac_builddir=.
22645
22646case "$ac_dir" in
22647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22648*)
22649  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22650  # A ".." for each directory in $ac_dir_suffix.
22651  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22652  case $ac_top_builddir_sub in
22653  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22654  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22655  esac ;;
22656esac
22657ac_abs_top_builddir=$ac_pwd
22658ac_abs_builddir=$ac_pwd$ac_dir_suffix
22659# for backward compatibility:
22660ac_top_builddir=$ac_top_build_prefix
22661
22662case $srcdir in
22663  .)  # We are building in place.
22664    ac_srcdir=.
22665    ac_top_srcdir=$ac_top_builddir_sub
22666    ac_abs_top_srcdir=$ac_pwd ;;
22667  [\\/]* | ?:[\\/]* )  # Absolute name.
22668    ac_srcdir=$srcdir$ac_dir_suffix;
22669    ac_top_srcdir=$srcdir
22670    ac_abs_top_srcdir=$srcdir ;;
22671  *) # Relative name.
22672    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22673    ac_top_srcdir=$ac_top_build_prefix$srcdir
22674    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22675esac
22676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22677
22678
22679  case $ac_mode in
22680  :F)
22681  #
22682  # CONFIG_FILE
22683  #
22684
22685  case $INSTALL in
22686  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22687  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22688  esac
22689  ac_MKDIR_P=$MKDIR_P
22690  case $MKDIR_P in
22691  [\\/$]* | ?:[\\/]* ) ;;
22692  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22693  esac
22694_ACEOF
22695
22696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22697# If the template does not know about datarootdir, expand it.
22698# FIXME: This hack should be removed a few years after 2.60.
22699ac_datarootdir_hack=; ac_datarootdir_seen=
22700ac_sed_dataroot='
22701/datarootdir/ {
22702  p
22703  q
22704}
22705/@datadir@/p
22706/@docdir@/p
22707/@infodir@/p
22708/@localedir@/p
22709/@mandir@/p'
22710case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22711*datarootdir*) ac_datarootdir_seen=yes;;
22712*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22713  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22714$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22715_ACEOF
22716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22717  ac_datarootdir_hack='
22718  s&@datadir@&$datadir&g
22719  s&@docdir@&$docdir&g
22720  s&@infodir@&$infodir&g
22721  s&@localedir@&$localedir&g
22722  s&@mandir@&$mandir&g
22723  s&\\\${datarootdir}&$datarootdir&g' ;;
22724esac
22725_ACEOF
22726
22727# Neutralize VPATH when `$srcdir' = `.'.
22728# Shell code in configure.ac might set extrasub.
22729# FIXME: do we really want to maintain this feature?
22730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22731ac_sed_extra="$ac_vpsub
22732$extrasub
22733_ACEOF
22734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22735:t
22736/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22737s|@configure_input@|$ac_sed_conf_input|;t t
22738s&@top_builddir@&$ac_top_builddir_sub&;t t
22739s&@top_build_prefix@&$ac_top_build_prefix&;t t
22740s&@srcdir@&$ac_srcdir&;t t
22741s&@abs_srcdir@&$ac_abs_srcdir&;t t
22742s&@top_srcdir@&$ac_top_srcdir&;t t
22743s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22744s&@builddir@&$ac_builddir&;t t
22745s&@abs_builddir@&$ac_abs_builddir&;t t
22746s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22747s&@INSTALL@&$ac_INSTALL&;t t
22748s&@MKDIR_P@&$ac_MKDIR_P&;t t
22749$ac_datarootdir_hack
22750"
22751eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22752  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22753
22754test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22755  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22756  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22757      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22758  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22759which seems to be undefined.  Please make sure it is defined" >&5
22760$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22761which seems to be undefined.  Please make sure it is defined" >&2;}
22762
22763  rm -f "$ac_tmp/stdin"
22764  case $ac_file in
22765  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22766  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22767  esac \
22768  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22769 ;;
22770  :H)
22771  #
22772  # CONFIG_HEADER
22773  #
22774  if test x"$ac_file" != x-; then
22775    {
22776      $as_echo "/* $configure_input  */" \
22777      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22778    } >"$ac_tmp/config.h" \
22779      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22780    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22781      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22782$as_echo "$as_me: $ac_file is unchanged" >&6;}
22783    else
22784      rm -f "$ac_file"
22785      mv "$ac_tmp/config.h" "$ac_file" \
22786	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22787    fi
22788  else
22789    $as_echo "/* $configure_input  */" \
22790      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22791      || as_fn_error $? "could not create -" "$LINENO" 5
22792  fi
22793# Compute "$ac_file"'s index in $config_headers.
22794_am_arg="$ac_file"
22795_am_stamp_count=1
22796for _am_header in $config_headers :; do
22797  case $_am_header in
22798    $_am_arg | $_am_arg:* )
22799      break ;;
22800    * )
22801      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22802  esac
22803done
22804echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22805$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22806	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22807	 X"$_am_arg" : 'X\(//\)$' \| \
22808	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22809$as_echo X"$_am_arg" |
22810    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22811	    s//\1/
22812	    q
22813	  }
22814	  /^X\(\/\/\)[^/].*/{
22815	    s//\1/
22816	    q
22817	  }
22818	  /^X\(\/\/\)$/{
22819	    s//\1/
22820	    q
22821	  }
22822	  /^X\(\/\).*/{
22823	    s//\1/
22824	    q
22825	  }
22826	  s/.*/./; q'`/stamp-h$_am_stamp_count
22827 ;;
22828
22829  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22830$as_echo "$as_me: executing $ac_file commands" >&6;}
22831 ;;
22832  esac
22833
22834
22835  case $ac_file$ac_mode in
22836    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22837  # Older Autoconf quotes --file arguments for eval, but not when files
22838  # are listed without --file.  Let's play safe and only enable the eval
22839  # if we detect the quoting.
22840  case $CONFIG_FILES in
22841  *\'*) eval set x "$CONFIG_FILES" ;;
22842  *)   set x $CONFIG_FILES ;;
22843  esac
22844  shift
22845  for mf
22846  do
22847    # Strip MF so we end up with the name of the file.
22848    mf=`echo "$mf" | sed -e 's/:.*$//'`
22849    # Check whether this is an Automake generated Makefile or not.
22850    # We used to match only the files named 'Makefile.in', but
22851    # some people rename them; so instead we look at the file content.
22852    # Grep'ing the first line is not enough: some people post-process
22853    # each Makefile.in and add a new line on top of each file to say so.
22854    # Grep'ing the whole file is not good either: AIX grep has a line
22855    # limit of 2048, but all sed's we know have understand at least 4000.
22856    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22857      dirpart=`$as_dirname -- "$mf" ||
22858$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22859	 X"$mf" : 'X\(//\)[^/]' \| \
22860	 X"$mf" : 'X\(//\)$' \| \
22861	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22862$as_echo X"$mf" |
22863    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22864	    s//\1/
22865	    q
22866	  }
22867	  /^X\(\/\/\)[^/].*/{
22868	    s//\1/
22869	    q
22870	  }
22871	  /^X\(\/\/\)$/{
22872	    s//\1/
22873	    q
22874	  }
22875	  /^X\(\/\).*/{
22876	    s//\1/
22877	    q
22878	  }
22879	  s/.*/./; q'`
22880    else
22881      continue
22882    fi
22883    # Extract the definition of DEPDIR, am__include, and am__quote
22884    # from the Makefile without running 'make'.
22885    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22886    test -z "$DEPDIR" && continue
22887    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22888    test -z "$am__include" && continue
22889    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22890    # Find all dependency output files, they are included files with
22891    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22892    # simplest approach to changing $(DEPDIR) to its actual value in the
22893    # expansion.
22894    for file in `sed -n "
22895      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22896	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22897      # Make sure the directory exists.
22898      test -f "$dirpart/$file" && continue
22899      fdir=`$as_dirname -- "$file" ||
22900$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22901	 X"$file" : 'X\(//\)[^/]' \| \
22902	 X"$file" : 'X\(//\)$' \| \
22903	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22904$as_echo X"$file" |
22905    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22906	    s//\1/
22907	    q
22908	  }
22909	  /^X\(\/\/\)[^/].*/{
22910	    s//\1/
22911	    q
22912	  }
22913	  /^X\(\/\/\)$/{
22914	    s//\1/
22915	    q
22916	  }
22917	  /^X\(\/\).*/{
22918	    s//\1/
22919	    q
22920	  }
22921	  s/.*/./; q'`
22922      as_dir=$dirpart/$fdir; as_fn_mkdir_p
22923      # echo "creating $dirpart/$file"
22924      echo '# dummy' > "$dirpart/$file"
22925    done
22926  done
22927}
22928 ;;
22929    "libtool":C)
22930
22931    # See if we are running on zsh, and set the options that allow our
22932    # commands through without removal of \ escapes.
22933    if test -n "${ZSH_VERSION+set}"; then
22934      setopt NO_GLOB_SUBST
22935    fi
22936
22937    cfgfile=${ofile}T
22938    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22939    $RM "$cfgfile"
22940
22941    cat <<_LT_EOF >> "$cfgfile"
22942#! $SHELL
22943# Generated automatically by $as_me ($PACKAGE) $VERSION
22944# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22945# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22946
22947# Provide generalized library-building support services.
22948# Written by Gordon Matzigkeit, 1996
22949
22950# Copyright (C) 2014 Free Software Foundation, Inc.
22951# This is free software; see the source for copying conditions.  There is NO
22952# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22953
22954# GNU Libtool is free software; you can redistribute it and/or modify
22955# it under the terms of the GNU General Public License as published by
22956# the Free Software Foundation; either version 2 of of the License, or
22957# (at your option) any later version.
22958#
22959# As a special exception to the GNU General Public License, if you
22960# distribute this file as part of a program or library that is built
22961# using GNU Libtool, you may include this file under the  same
22962# distribution terms that you use for the rest of that program.
22963#
22964# GNU Libtool is distributed in the hope that it will be useful, but
22965# WITHOUT ANY WARRANTY; without even the implied warranty of
22966# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22967# GNU General Public License for more details.
22968#
22969# You should have received a copy of the GNU General Public License
22970# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22971
22972
22973# The names of the tagged configurations supported by this script.
22974available_tags=''
22975
22976# Configured defaults for sys_lib_dlsearch_path munging.
22977: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22978
22979# ### BEGIN LIBTOOL CONFIG
22980
22981# Which release of libtool.m4 was used?
22982macro_version=$macro_version
22983macro_revision=$macro_revision
22984
22985# Assembler program.
22986AS=$lt_AS
22987
22988# DLL creation program.
22989DLLTOOL=$lt_DLLTOOL
22990
22991# Object dumper program.
22992OBJDUMP=$lt_OBJDUMP
22993
22994# Whether or not to build shared libraries.
22995build_libtool_libs=$enable_shared
22996
22997# Whether or not to build static libraries.
22998build_old_libs=$enable_static
22999
23000# What type of objects to build.
23001pic_mode=$pic_mode
23002
23003# Whether or not to optimize for fast installation.
23004fast_install=$enable_fast_install
23005
23006# Shared archive member basename,for filename based shared library versioning on AIX.
23007shared_archive_member_spec=$shared_archive_member_spec
23008
23009# Shell to use when invoking shell scripts.
23010SHELL=$lt_SHELL
23011
23012# An echo program that protects backslashes.
23013ECHO=$lt_ECHO
23014
23015# The PATH separator for the build system.
23016PATH_SEPARATOR=$lt_PATH_SEPARATOR
23017
23018# The host system.
23019host_alias=$host_alias
23020host=$host
23021host_os=$host_os
23022
23023# The build system.
23024build_alias=$build_alias
23025build=$build
23026build_os=$build_os
23027
23028# A sed program that does not truncate output.
23029SED=$lt_SED
23030
23031# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23032Xsed="\$SED -e 1s/^X//"
23033
23034# A grep program that handles long lines.
23035GREP=$lt_GREP
23036
23037# An ERE matcher.
23038EGREP=$lt_EGREP
23039
23040# A literal string matcher.
23041FGREP=$lt_FGREP
23042
23043# A BSD- or MS-compatible name lister.
23044NM=$lt_NM
23045
23046# Whether we need soft or hard links.
23047LN_S=$lt_LN_S
23048
23049# What is the maximum length of a command?
23050max_cmd_len=$max_cmd_len
23051
23052# Object file suffix (normally "o").
23053objext=$ac_objext
23054
23055# Executable file suffix (normally "").
23056exeext=$exeext
23057
23058# whether the shell understands "unset".
23059lt_unset=$lt_unset
23060
23061# turn spaces into newlines.
23062SP2NL=$lt_lt_SP2NL
23063
23064# turn newlines into spaces.
23065NL2SP=$lt_lt_NL2SP
23066
23067# convert \$build file names to \$host format.
23068to_host_file_cmd=$lt_cv_to_host_file_cmd
23069
23070# convert \$build files to toolchain format.
23071to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23072
23073# Method to check whether dependent libraries are shared objects.
23074deplibs_check_method=$lt_deplibs_check_method
23075
23076# Command to use when deplibs_check_method = "file_magic".
23077file_magic_cmd=$lt_file_magic_cmd
23078
23079# How to find potential files when deplibs_check_method = "file_magic".
23080file_magic_glob=$lt_file_magic_glob
23081
23082# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23083want_nocaseglob=$lt_want_nocaseglob
23084
23085# Command to associate shared and link libraries.
23086sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23087
23088# The archiver.
23089AR=$lt_AR
23090
23091# Flags to create an archive.
23092AR_FLAGS=$lt_AR_FLAGS
23093
23094# How to feed a file listing to the archiver.
23095archiver_list_spec=$lt_archiver_list_spec
23096
23097# A symbol stripping program.
23098STRIP=$lt_STRIP
23099
23100# Commands used to install an old-style archive.
23101RANLIB=$lt_RANLIB
23102old_postinstall_cmds=$lt_old_postinstall_cmds
23103old_postuninstall_cmds=$lt_old_postuninstall_cmds
23104
23105# Whether to use a lock for old archive extraction.
23106lock_old_archive_extraction=$lock_old_archive_extraction
23107
23108# A C compiler.
23109LTCC=$lt_CC
23110
23111# LTCC compiler flags.
23112LTCFLAGS=$lt_CFLAGS
23113
23114# Take the output of nm and produce a listing of raw symbols and C names.
23115global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23116
23117# Transform the output of nm in a proper C declaration.
23118global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23119
23120# Transform the output of nm into a list of symbols to manually relocate.
23121global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23122
23123# Transform the output of nm in a C name address pair.
23124global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23125
23126# Transform the output of nm in a C name address pair when lib prefix is needed.
23127global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23128
23129# The name lister interface.
23130nm_interface=$lt_lt_cv_nm_interface
23131
23132# Specify filename containing input files for \$NM.
23133nm_file_list_spec=$lt_nm_file_list_spec
23134
23135# The root where to search for dependent libraries,and where our libraries should be installed.
23136lt_sysroot=$lt_sysroot
23137
23138# Command to truncate a binary pipe.
23139lt_truncate_bin=$lt_lt_cv_truncate_bin
23140
23141# The name of the directory that contains temporary libtool files.
23142objdir=$objdir
23143
23144# Used to examine libraries when file_magic_cmd begins with "file".
23145MAGIC_CMD=$MAGIC_CMD
23146
23147# Must we lock files when doing compilation?
23148need_locks=$lt_need_locks
23149
23150# Manifest tool.
23151MANIFEST_TOOL=$lt_MANIFEST_TOOL
23152
23153# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23154DSYMUTIL=$lt_DSYMUTIL
23155
23156# Tool to change global to local symbols on Mac OS X.
23157NMEDIT=$lt_NMEDIT
23158
23159# Tool to manipulate fat objects and archives on Mac OS X.
23160LIPO=$lt_LIPO
23161
23162# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23163OTOOL=$lt_OTOOL
23164
23165# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23166OTOOL64=$lt_OTOOL64
23167
23168# Old archive suffix (normally "a").
23169libext=$libext
23170
23171# Shared library suffix (normally ".so").
23172shrext_cmds=$lt_shrext_cmds
23173
23174# The commands to extract the exported symbol list from a shared archive.
23175extract_expsyms_cmds=$lt_extract_expsyms_cmds
23176
23177# Variables whose values should be saved in libtool wrapper scripts and
23178# restored at link time.
23179variables_saved_for_relink=$lt_variables_saved_for_relink
23180
23181# Do we need the "lib" prefix for modules?
23182need_lib_prefix=$need_lib_prefix
23183
23184# Do we need a version for libraries?
23185need_version=$need_version
23186
23187# Library versioning type.
23188version_type=$version_type
23189
23190# Shared library runtime path variable.
23191runpath_var=$runpath_var
23192
23193# Shared library path variable.
23194shlibpath_var=$shlibpath_var
23195
23196# Is shlibpath searched before the hard-coded library search path?
23197shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23198
23199# Format of library name prefix.
23200libname_spec=$lt_libname_spec
23201
23202# List of archive names.  First name is the real one, the rest are links.
23203# The last name is the one that the linker finds with -lNAME
23204library_names_spec=$lt_library_names_spec
23205
23206# The coded name of the library, if different from the real name.
23207soname_spec=$lt_soname_spec
23208
23209# Permission mode override for installation of shared libraries.
23210install_override_mode=$lt_install_override_mode
23211
23212# Command to use after installation of a shared archive.
23213postinstall_cmds=$lt_postinstall_cmds
23214
23215# Command to use after uninstallation of a shared archive.
23216postuninstall_cmds=$lt_postuninstall_cmds
23217
23218# Commands used to finish a libtool library installation in a directory.
23219finish_cmds=$lt_finish_cmds
23220
23221# As "finish_cmds", except a single script fragment to be evaled but
23222# not shown.
23223finish_eval=$lt_finish_eval
23224
23225# Whether we should hardcode library paths into libraries.
23226hardcode_into_libs=$hardcode_into_libs
23227
23228# Compile-time system search path for libraries.
23229sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23230
23231# Detected run-time system search path for libraries.
23232sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23233
23234# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23235configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23236
23237# Whether dlopen is supported.
23238dlopen_support=$enable_dlopen
23239
23240# Whether dlopen of programs is supported.
23241dlopen_self=$enable_dlopen_self
23242
23243# Whether dlopen of statically linked programs is supported.
23244dlopen_self_static=$enable_dlopen_self_static
23245
23246# Commands to strip libraries.
23247old_striplib=$lt_old_striplib
23248striplib=$lt_striplib
23249
23250
23251# The linker used to build libraries.
23252LD=$lt_LD
23253
23254# How to create reloadable object files.
23255reload_flag=$lt_reload_flag
23256reload_cmds=$lt_reload_cmds
23257
23258# Commands used to build an old-style archive.
23259old_archive_cmds=$lt_old_archive_cmds
23260
23261# A language specific compiler.
23262CC=$lt_compiler
23263
23264# Is the compiler the GNU compiler?
23265with_gcc=$GCC
23266
23267# Compiler flag to turn off builtin functions.
23268no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23269
23270# Additional compiler flags for building library objects.
23271pic_flag=$lt_lt_prog_compiler_pic
23272
23273# How to pass a linker flag through the compiler.
23274wl=$lt_lt_prog_compiler_wl
23275
23276# Compiler flag to prevent dynamic linking.
23277link_static_flag=$lt_lt_prog_compiler_static
23278
23279# Does compiler simultaneously support -c and -o options?
23280compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23281
23282# Whether or not to add -lc for building shared libraries.
23283build_libtool_need_lc=$archive_cmds_need_lc
23284
23285# Whether or not to disallow shared libs when runtime libs are static.
23286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23287
23288# Compiler flag to allow reflexive dlopens.
23289export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23290
23291# Compiler flag to generate shared objects directly from archives.
23292whole_archive_flag_spec=$lt_whole_archive_flag_spec
23293
23294# Whether the compiler copes with passing no objects directly.
23295compiler_needs_object=$lt_compiler_needs_object
23296
23297# Create an old-style archive from a shared archive.
23298old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23299
23300# Create a temporary old-style archive to link instead of a shared archive.
23301old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23302
23303# Commands used to build a shared archive.
23304archive_cmds=$lt_archive_cmds
23305archive_expsym_cmds=$lt_archive_expsym_cmds
23306
23307# Commands used to build a loadable module if different from building
23308# a shared archive.
23309module_cmds=$lt_module_cmds
23310module_expsym_cmds=$lt_module_expsym_cmds
23311
23312# Whether we are building with GNU ld or not.
23313with_gnu_ld=$lt_with_gnu_ld
23314
23315# Flag that allows shared libraries with undefined symbols to be built.
23316allow_undefined_flag=$lt_allow_undefined_flag
23317
23318# Flag that enforces no undefined symbols.
23319no_undefined_flag=$lt_no_undefined_flag
23320
23321# Flag to hardcode \$libdir into a binary during linking.
23322# This must work even if \$libdir does not exist
23323hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23324
23325# Whether we need a single "-rpath" flag with a separated argument.
23326hardcode_libdir_separator=$lt_hardcode_libdir_separator
23327
23328# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23329# DIR into the resulting binary.
23330hardcode_direct=$hardcode_direct
23331
23332# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23333# DIR into the resulting binary and the resulting library dependency is
23334# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23335# library is relocated.
23336hardcode_direct_absolute=$hardcode_direct_absolute
23337
23338# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23339# into the resulting binary.
23340hardcode_minus_L=$hardcode_minus_L
23341
23342# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23343# into the resulting binary.
23344hardcode_shlibpath_var=$hardcode_shlibpath_var
23345
23346# Set to "yes" if building a shared library automatically hardcodes DIR
23347# into the library and all subsequent libraries and executables linked
23348# against it.
23349hardcode_automatic=$hardcode_automatic
23350
23351# Set to yes if linker adds runtime paths of dependent libraries
23352# to runtime path list.
23353inherit_rpath=$inherit_rpath
23354
23355# Whether libtool must link a program against all its dependency libraries.
23356link_all_deplibs=$link_all_deplibs
23357
23358# Set to "yes" if exported symbols are required.
23359always_export_symbols=$always_export_symbols
23360
23361# The commands to list exported symbols.
23362export_symbols_cmds=$lt_export_symbols_cmds
23363
23364# Symbols that should not be listed in the preloaded symbols.
23365exclude_expsyms=$lt_exclude_expsyms
23366
23367# Symbols that must always be exported.
23368include_expsyms=$lt_include_expsyms
23369
23370# Commands necessary for linking programs (against libraries) with templates.
23371prelink_cmds=$lt_prelink_cmds
23372
23373# Commands necessary for finishing linking programs.
23374postlink_cmds=$lt_postlink_cmds
23375
23376# Specify filename containing input files.
23377file_list_spec=$lt_file_list_spec
23378
23379# How to hardcode a shared library path into an executable.
23380hardcode_action=$hardcode_action
23381
23382# ### END LIBTOOL CONFIG
23383
23384_LT_EOF
23385
23386    cat <<'_LT_EOF' >> "$cfgfile"
23387
23388# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23389
23390# func_munge_path_list VARIABLE PATH
23391# -----------------------------------
23392# VARIABLE is name of variable containing _space_ separated list of
23393# directories to be munged by the contents of PATH, which is string
23394# having a format:
23395# "DIR[:DIR]:"
23396#       string "DIR[ DIR]" will be prepended to VARIABLE
23397# ":DIR[:DIR]"
23398#       string "DIR[ DIR]" will be appended to VARIABLE
23399# "DIRP[:DIRP]::[DIRA:]DIRA"
23400#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23401#       "DIRA[ DIRA]" will be appended to VARIABLE
23402# "DIR[:DIR]"
23403#       VARIABLE will be replaced by "DIR[ DIR]"
23404func_munge_path_list ()
23405{
23406    case x$2 in
23407    x)
23408        ;;
23409    *:)
23410        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23411        ;;
23412    x:*)
23413        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23414        ;;
23415    *::*)
23416        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23417        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23418        ;;
23419    *)
23420        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23421        ;;
23422    esac
23423}
23424
23425
23426# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23427func_cc_basename ()
23428{
23429    for cc_temp in $*""; do
23430      case $cc_temp in
23431        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23432        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23433        \-*) ;;
23434        *) break;;
23435      esac
23436    done
23437    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23438}
23439
23440
23441# ### END FUNCTIONS SHARED WITH CONFIGURE
23442
23443_LT_EOF
23444
23445  case $host_os in
23446  aix3*)
23447    cat <<\_LT_EOF >> "$cfgfile"
23448# AIX sometimes has problems with the GCC collect2 program.  For some
23449# reason, if we set the COLLECT_NAMES environment variable, the problems
23450# vanish in a puff of smoke.
23451if test set != "${COLLECT_NAMES+set}"; then
23452  COLLECT_NAMES=
23453  export COLLECT_NAMES
23454fi
23455_LT_EOF
23456    ;;
23457  esac
23458
23459
23460ltmain=$ac_aux_dir/ltmain.sh
23461
23462
23463  # We use sed instead of cat because bash on DJGPP gets confused if
23464  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23465  # text mode, it properly converts lines to CR/LF.  This bash problem
23466  # is reportedly fixed, but why not run on old versions too?
23467  sed '$q' "$ltmain" >> "$cfgfile" \
23468     || (rm -f "$cfgfile"; exit 1)
23469
23470   mv -f "$cfgfile" "$ofile" ||
23471    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23472  chmod +x "$ofile"
23473
23474 ;;
23475
23476  esac
23477done # for ac_tag
23478
23479
23480as_fn_exit 0
23481_ACEOF
23482ac_clean_files=$ac_clean_files_save
23483
23484test $ac_write_fail = 0 ||
23485  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23486
23487
23488# configure is writing to config.log, and then calls config.status.
23489# config.status does its own redirection, appending to config.log.
23490# Unfortunately, on DOS this fails, as config.log is still kept open
23491# by configure, so config.status won't be able to write to it; its
23492# output is simply discarded.  So we exec the FD to /dev/null,
23493# effectively closing config.log, so it can be properly (re)opened and
23494# appended to by config.status.  When coming back to configure, we
23495# need to make the FD available again.
23496if test "$no_create" != yes; then
23497  ac_cs_success=:
23498  ac_config_status_args=
23499  test "$silent" = yes &&
23500    ac_config_status_args="$ac_config_status_args --quiet"
23501  exec 5>/dev/null
23502  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23503  exec 5>>config.log
23504  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23505  # would make configure fail if this is the last instruction.
23506  $ac_cs_success || as_fn_exit 1
23507fi
23508if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23509  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23510$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23511fi
23512
23513
23514
23515echo ""
23516echo "  Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
23517echo ""
23518echo "  Configuration"
23519echo "    XDM support.........: ${have_xdmcp}"
23520echo "    sendmsg fd passing..: ${have_sendmsg}"
23521echo "    Build unit tests....: ${HAVE_CHECK}"
23522echo "      with html results.: ${HTML_CHECK_RESULT}"
23523echo "    XCB buffer size.....: ${xcb_queue_buffer_size}"
23524echo ""
23525echo "  X11 extensions"
23526echo "    Composite...........: ${BUILD_COMPOSITE}"
23527echo "    Damage..............: ${BUILD_DAMAGE}"
23528echo "    Dpms................: ${BUILD_DPMS}"
23529echo "    Dri2................: ${BUILD_DRI2}"
23530echo "    Dri3................: ${BUILD_DRI3}"
23531echo "    GenericEvent........: ${BUILD_GE}"
23532echo "    Glx.................: ${BUILD_GLX}"
23533echo "    Randr...............: ${BUILD_RANDR}"
23534echo "    Record..............: ${BUILD_RECORD}"
23535echo "    Render..............: ${BUILD_RENDER}"
23536echo "    Resource............: ${BUILD_RESOURCE}"
23537echo "    Screensaver.........: ${BUILD_SCREENSAVER}"
23538echo "    selinux.............: ${BUILD_SELINUX}"
23539echo "    Shape...............: ${BUILD_SHAPE}"
23540echo "    Shm.................: ${BUILD_SHM}"
23541echo "    Sync................: ${BUILD_SYNC}"
23542echo "    Xevie...............: ${BUILD_XEVIE}"
23543echo "    Xfixes..............: ${BUILD_XFIXES}"
23544echo "    Xfree86-dri.........: ${BUILD_XFREE86_DRI}"
23545echo "    xinerama............: ${BUILD_XINERAMA}"
23546echo "    xinput..............: ${BUILD_XINPUT}"
23547echo "    xkb.................: ${BUILD_XKB}"
23548echo "    xprint..............: ${BUILD_XPRINT}"
23549echo "    xtest...............: ${BUILD_XTEST}"
23550echo "    xv..................: ${BUILD_XV}"
23551echo "    xvmc................: ${BUILD_XVMC}"
23552echo ""
23553echo "  Used CFLAGS:"
23554echo "    CPPFLAGS............: ${CPPFLAGS}"
23555echo "    CFLAGS..............: ${CFLAGS}"
23556echo ""
23557echo "  Installation:"
23558echo "    Prefix..............: ${prefix}"
23559echo ""
23560