configure revision fe12f63c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libxcb 1.13.1.
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.1'
595PACKAGE_STRING='libxcb 1.13.1'
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__include
788DEPDIR
789OBJEXT
790EXEEXT
791ac_ct_CC
792CPPFLAGS
793LDFLAGS
794CFLAGS
795CC
796pkgpyexecdir
797pyexecdir
798pkgpythondir
799pythondir
800PYTHON_PLATFORM
801PYTHON_EXEC_PREFIX
802PYTHON_PREFIX
803PYTHON_VERSION
804PYTHON
805AM_BACKSLASH
806AM_DEFAULT_VERBOSITY
807AM_DEFAULT_V
808AM_V
809am__untar
810am__tar
811AMTAR
812am__leading_dot
813SET_MAKE
814AWK
815mkdir_p
816MKDIR_P
817INSTALL_STRIP_PROGRAM
818STRIP
819install_sh
820MAKEINFO
821AUTOHEADER
822AUTOMAKE
823AUTOCONF
824ACLOCAL
825VERSION
826PACKAGE
827CYGPATH_W
828am__isrc
829INSTALL_DATA
830INSTALL_SCRIPT
831INSTALL_PROGRAM
832target_alias
833host_alias
834build_alias
835LIBS
836ECHO_T
837ECHO_N
838ECHO_C
839DEFS
840mandir
841localedir
842libdir
843psdir
844pdfdir
845dvidir
846htmldir
847infodir
848docdir
849oldincludedir
850includedir
851runstatedir
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
871am__quote'
872ac_subst_files=''
873ac_user_opts='
874enable_option_checking
875enable_silent_rules
876enable_dependency_tracking
877enable_shared
878enable_static
879with_pic
880enable_fast_install
881with_aix_soname
882with_gnu_ld
883with_sysroot
884enable_libtool_lock
885enable_selective_werror
886enable_strict_compilation
887enable_devel_docs
888with_doxygen
889with_queue_size
890enable_composite
891enable_damage
892enable_dpms
893enable_dri2
894enable_dri3
895enable_ge
896enable_glx
897enable_present
898enable_randr
899enable_record
900enable_render
901enable_resource
902enable_screensaver
903enable_shape
904enable_shm
905enable_sync
906enable_xevie
907enable_xfixes
908enable_xfree86_dri
909enable_xinerama
910enable_xinput
911enable_xkb
912enable_xprint
913enable_selinux
914enable_xtest
915enable_xv
916enable_xvmc
917with_launchd
918with_serverside_support
919'
920      ac_precious_vars='build_alias
921host_alias
922target_alias
923PYTHON
924CC
925CFLAGS
926LDFLAGS
927LIBS
928CPPFLAGS
929CPP
930LT_SYS_LIBRARY_PATH
931PKG_CONFIG
932PKG_CONFIG_PATH
933PKG_CONFIG_LIBDIR
934DOXYGEN
935DOT
936CHECK_CFLAGS
937CHECK_LIBS
938XCBPROTO_CFLAGS
939XCBPROTO_LIBS
940NEEDED_CFLAGS
941NEEDED_LIBS
942XDMCP_CFLAGS
943XDMCP_LIBS'
944
945
946# Initialize some variables set by options.
947ac_init_help=
948ac_init_version=false
949ac_unrecognized_opts=
950ac_unrecognized_sep=
951# The variables have the same names as the options, with
952# dashes changed to underlines.
953cache_file=/dev/null
954exec_prefix=NONE
955no_create=
956no_recursion=
957prefix=NONE
958program_prefix=NONE
959program_suffix=NONE
960program_transform_name=s,x,x,
961silent=
962site=
963srcdir=
964verbose=
965x_includes=NONE
966x_libraries=NONE
967
968# Installation directory options.
969# These are left unexpanded so users can "make install exec_prefix=/foo"
970# and all the variables that are supposed to be based on exec_prefix
971# by default will actually change.
972# Use braces instead of parens because sh, perl, etc. also accept them.
973# (The list follows the same order as the GNU Coding Standards.)
974bindir='${exec_prefix}/bin'
975sbindir='${exec_prefix}/sbin'
976libexecdir='${exec_prefix}/libexec'
977datarootdir='${prefix}/share'
978datadir='${datarootdir}'
979sysconfdir='${prefix}/etc'
980sharedstatedir='${prefix}/com'
981localstatedir='${prefix}/var'
982runstatedir='${localstatedir}/run'
983includedir='${prefix}/include'
984oldincludedir='/usr/include'
985docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986infodir='${datarootdir}/info'
987htmldir='${docdir}'
988dvidir='${docdir}'
989pdfdir='${docdir}'
990psdir='${docdir}'
991libdir='${exec_prefix}/lib'
992localedir='${datarootdir}/locale'
993mandir='${datarootdir}/man'
994
995ac_prev=
996ac_dashdash=
997for ac_option
998do
999  # If the previous option needs an argument, assign it.
1000  if test -n "$ac_prev"; then
1001    eval $ac_prev=\$ac_option
1002    ac_prev=
1003    continue
1004  fi
1005
1006  case $ac_option in
1007  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008  *=)   ac_optarg= ;;
1009  *)    ac_optarg=yes ;;
1010  esac
1011
1012  # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014  case $ac_dashdash$ac_option in
1015  --)
1016    ac_dashdash=yes ;;
1017
1018  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019    ac_prev=bindir ;;
1020  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021    bindir=$ac_optarg ;;
1022
1023  -build | --build | --buil | --bui | --bu)
1024    ac_prev=build_alias ;;
1025  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026    build_alias=$ac_optarg ;;
1027
1028  -cache-file | --cache-file | --cache-fil | --cache-fi \
1029  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030    ac_prev=cache_file ;;
1031  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033    cache_file=$ac_optarg ;;
1034
1035  --config-cache | -C)
1036    cache_file=config.cache ;;
1037
1038  -datadir | --datadir | --datadi | --datad)
1039    ac_prev=datadir ;;
1040  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041    datadir=$ac_optarg ;;
1042
1043  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044  | --dataroo | --dataro | --datar)
1045    ac_prev=datarootdir ;;
1046  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048    datarootdir=$ac_optarg ;;
1049
1050  -disable-* | --disable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error $? "invalid feature name: $ac_useropt"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=no ;;
1065
1066  -docdir | --docdir | --docdi | --doc | --do)
1067    ac_prev=docdir ;;
1068  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069    docdir=$ac_optarg ;;
1070
1071  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072    ac_prev=dvidir ;;
1073  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074    dvidir=$ac_optarg ;;
1075
1076  -enable-* | --enable-*)
1077    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078    # Reject names that are not valid shell variable names.
1079    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080      as_fn_error $? "invalid feature name: $ac_useropt"
1081    ac_useropt_orig=$ac_useropt
1082    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083    case $ac_user_opts in
1084      *"
1085"enable_$ac_useropt"
1086"*) ;;
1087      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088	 ac_unrecognized_sep=', ';;
1089    esac
1090    eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094  | --exec | --exe | --ex)
1095    ac_prev=exec_prefix ;;
1096  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098  | --exec=* | --exe=* | --ex=*)
1099    exec_prefix=$ac_optarg ;;
1100
1101  -gas | --gas | --ga | --g)
1102    # Obsolete; use --with-gas.
1103    with_gas=yes ;;
1104
1105  -help | --help | --hel | --he | -h)
1106    ac_init_help=long ;;
1107  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108    ac_init_help=recursive ;;
1109  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110    ac_init_help=short ;;
1111
1112  -host | --host | --hos | --ho)
1113    ac_prev=host_alias ;;
1114  -host=* | --host=* | --hos=* | --ho=*)
1115    host_alias=$ac_optarg ;;
1116
1117  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118    ac_prev=htmldir ;;
1119  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120  | --ht=*)
1121    htmldir=$ac_optarg ;;
1122
1123  -includedir | --includedir | --includedi | --included | --include \
1124  | --includ | --inclu | --incl | --inc)
1125    ac_prev=includedir ;;
1126  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127  | --includ=* | --inclu=* | --incl=* | --inc=*)
1128    includedir=$ac_optarg ;;
1129
1130  -infodir | --infodir | --infodi | --infod | --info | --inf)
1131    ac_prev=infodir ;;
1132  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133    infodir=$ac_optarg ;;
1134
1135  -libdir | --libdir | --libdi | --libd)
1136    ac_prev=libdir ;;
1137  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138    libdir=$ac_optarg ;;
1139
1140  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141  | --libexe | --libex | --libe)
1142    ac_prev=libexecdir ;;
1143  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144  | --libexe=* | --libex=* | --libe=*)
1145    libexecdir=$ac_optarg ;;
1146
1147  -localedir | --localedir | --localedi | --localed | --locale)
1148    ac_prev=localedir ;;
1149  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150    localedir=$ac_optarg ;;
1151
1152  -localstatedir | --localstatedir | --localstatedi | --localstated \
1153  | --localstate | --localstat | --localsta | --localst | --locals)
1154    ac_prev=localstatedir ;;
1155  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157    localstatedir=$ac_optarg ;;
1158
1159  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160    ac_prev=mandir ;;
1161  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162    mandir=$ac_optarg ;;
1163
1164  -nfp | --nfp | --nf)
1165    # Obsolete; use --without-fp.
1166    with_fp=no ;;
1167
1168  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169  | --no-cr | --no-c | -n)
1170    no_create=yes ;;
1171
1172  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174    no_recursion=yes ;;
1175
1176  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178  | --oldin | --oldi | --old | --ol | --o)
1179    ac_prev=oldincludedir ;;
1180  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183    oldincludedir=$ac_optarg ;;
1184
1185  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186    ac_prev=prefix ;;
1187  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188    prefix=$ac_optarg ;;
1189
1190  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191  | --program-pre | --program-pr | --program-p)
1192    ac_prev=program_prefix ;;
1193  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195    program_prefix=$ac_optarg ;;
1196
1197  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198  | --program-suf | --program-su | --program-s)
1199    ac_prev=program_suffix ;;
1200  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202    program_suffix=$ac_optarg ;;
1203
1204  -program-transform-name | --program-transform-name \
1205  | --program-transform-nam | --program-transform-na \
1206  | --program-transform-n | --program-transform- \
1207  | --program-transform | --program-transfor \
1208  | --program-transfo | --program-transf \
1209  | --program-trans | --program-tran \
1210  | --progr-tra | --program-tr | --program-t)
1211    ac_prev=program_transform_name ;;
1212  -program-transform-name=* | --program-transform-name=* \
1213  | --program-transform-nam=* | --program-transform-na=* \
1214  | --program-transform-n=* | --program-transform-=* \
1215  | --program-transform=* | --program-transfor=* \
1216  | --program-transfo=* | --program-transf=* \
1217  | --program-trans=* | --program-tran=* \
1218  | --progr-tra=* | --program-tr=* | --program-t=*)
1219    program_transform_name=$ac_optarg ;;
1220
1221  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222    ac_prev=pdfdir ;;
1223  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224    pdfdir=$ac_optarg ;;
1225
1226  -psdir | --psdir | --psdi | --psd | --ps)
1227    ac_prev=psdir ;;
1228  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229    psdir=$ac_optarg ;;
1230
1231  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232  | -silent | --silent | --silen | --sile | --sil)
1233    silent=yes ;;
1234
1235  -runstatedir | --runstatedir | --runstatedi | --runstated \
1236  | --runstate | --runstat | --runsta | --runst | --runs \
1237  | --run | --ru | --r)
1238    ac_prev=runstatedir ;;
1239  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1240  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1241  | --run=* | --ru=* | --r=*)
1242    runstatedir=$ac_optarg ;;
1243
1244  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245    ac_prev=sbindir ;;
1246  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247  | --sbi=* | --sb=*)
1248    sbindir=$ac_optarg ;;
1249
1250  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252  | --sharedst | --shareds | --shared | --share | --shar \
1253  | --sha | --sh)
1254    ac_prev=sharedstatedir ;;
1255  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258  | --sha=* | --sh=*)
1259    sharedstatedir=$ac_optarg ;;
1260
1261  -site | --site | --sit)
1262    ac_prev=site ;;
1263  -site=* | --site=* | --sit=*)
1264    site=$ac_optarg ;;
1265
1266  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267    ac_prev=srcdir ;;
1268  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269    srcdir=$ac_optarg ;;
1270
1271  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272  | --syscon | --sysco | --sysc | --sys | --sy)
1273    ac_prev=sysconfdir ;;
1274  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276    sysconfdir=$ac_optarg ;;
1277
1278  -target | --target | --targe | --targ | --tar | --ta | --t)
1279    ac_prev=target_alias ;;
1280  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281    target_alias=$ac_optarg ;;
1282
1283  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284    verbose=yes ;;
1285
1286  -version | --version | --versio | --versi | --vers | -V)
1287    ac_init_version=: ;;
1288
1289  -with-* | --with-*)
1290    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291    # Reject names that are not valid shell variable names.
1292    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293      as_fn_error $? "invalid package name: $ac_useropt"
1294    ac_useropt_orig=$ac_useropt
1295    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296    case $ac_user_opts in
1297      *"
1298"with_$ac_useropt"
1299"*) ;;
1300      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301	 ac_unrecognized_sep=', ';;
1302    esac
1303    eval with_$ac_useropt=\$ac_optarg ;;
1304
1305  -without-* | --without-*)
1306    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307    # Reject names that are not valid shell variable names.
1308    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309      as_fn_error $? "invalid package name: $ac_useropt"
1310    ac_useropt_orig=$ac_useropt
1311    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312    case $ac_user_opts in
1313      *"
1314"with_$ac_useropt"
1315"*) ;;
1316      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317	 ac_unrecognized_sep=', ';;
1318    esac
1319    eval with_$ac_useropt=no ;;
1320
1321  --x)
1322    # Obsolete; use --with-x.
1323    with_x=yes ;;
1324
1325  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326  | --x-incl | --x-inc | --x-in | --x-i)
1327    ac_prev=x_includes ;;
1328  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330    x_includes=$ac_optarg ;;
1331
1332  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334    ac_prev=x_libraries ;;
1335  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337    x_libraries=$ac_optarg ;;
1338
1339  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1340Try \`$0 --help' for more information"
1341    ;;
1342
1343  *=*)
1344    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345    # Reject names that are not valid shell variable names.
1346    case $ac_envvar in #(
1347      '' | [0-9]* | *[!_$as_cr_alnum]* )
1348      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1349    esac
1350    eval $ac_envvar=\$ac_optarg
1351    export $ac_envvar ;;
1352
1353  *)
1354    # FIXME: should be removed in autoconf 3.0.
1355    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359    ;;
1360
1361  esac
1362done
1363
1364if test -n "$ac_prev"; then
1365  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366  as_fn_error $? "missing argument to $ac_option"
1367fi
1368
1369if test -n "$ac_unrecognized_opts"; then
1370  case $enable_option_checking in
1371    no) ;;
1372    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1373    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374  esac
1375fi
1376
1377# Check all directory arguments for consistency.
1378for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379		datadir sysconfdir sharedstatedir localstatedir includedir \
1380		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381		libdir localedir mandir runstatedir
1382do
1383  eval ac_val=\$$ac_var
1384  # Remove trailing slashes.
1385  case $ac_val in
1386    */ )
1387      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388      eval $ac_var=\$ac_val;;
1389  esac
1390  # Be sure to have absolute directory names.
1391  case $ac_val in
1392    [\\/$]* | ?:[\\/]* )  continue;;
1393    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394  esac
1395  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1396done
1397
1398# There might be people who depend on the old broken behavior: `$host'
1399# used to hold the argument of --host etc.
1400# FIXME: To remove some day.
1401build=$build_alias
1402host=$host_alias
1403target=$target_alias
1404
1405# FIXME: To remove some day.
1406if test "x$host_alias" != x; then
1407  if test "x$build_alias" = x; then
1408    cross_compiling=maybe
1409  elif test "x$build_alias" != "x$host_alias"; then
1410    cross_compiling=yes
1411  fi
1412fi
1413
1414ac_tool_prefix=
1415test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416
1417test "$silent" = yes && exec 6>/dev/null
1418
1419
1420ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421ac_ls_di=`ls -di .` &&
1422ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423  as_fn_error $? "working directory cannot be determined"
1424test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425  as_fn_error $? "pwd does not report name of working directory"
1426
1427
1428# Find the source files, if location was not specified.
1429if test -z "$srcdir"; then
1430  ac_srcdir_defaulted=yes
1431  # Try the directory containing this script, then the parent directory.
1432  ac_confdir=`$as_dirname -- "$as_myself" ||
1433$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434	 X"$as_myself" : 'X\(//\)[^/]' \| \
1435	 X"$as_myself" : 'X\(//\)$' \| \
1436	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437$as_echo X"$as_myself" |
1438    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439	    s//\1/
1440	    q
1441	  }
1442	  /^X\(\/\/\)[^/].*/{
1443	    s//\1/
1444	    q
1445	  }
1446	  /^X\(\/\/\)$/{
1447	    s//\1/
1448	    q
1449	  }
1450	  /^X\(\/\).*/{
1451	    s//\1/
1452	    q
1453	  }
1454	  s/.*/./; q'`
1455  srcdir=$ac_confdir
1456  if test ! -r "$srcdir/$ac_unique_file"; then
1457    srcdir=..
1458  fi
1459else
1460  ac_srcdir_defaulted=no
1461fi
1462if test ! -r "$srcdir/$ac_unique_file"; then
1463  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1465fi
1466ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467ac_abs_confdir=`(
1468	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1469	pwd)`
1470# When building in place, set srcdir=.
1471if test "$ac_abs_confdir" = "$ac_pwd"; then
1472  srcdir=.
1473fi
1474# Remove unnecessary trailing slashes from srcdir.
1475# Double slashes in file names in object file debugging info
1476# mess up M-x gdb in Emacs.
1477case $srcdir in
1478*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479esac
1480for ac_var in $ac_precious_vars; do
1481  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482  eval ac_env_${ac_var}_value=\$${ac_var}
1483  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485done
1486
1487#
1488# Report the --help message.
1489#
1490if test "$ac_init_help" = "long"; then
1491  # Omit some internal or obsolete options to make the list less imposing.
1492  # This message is too long to be a string in the A/UX 3.1 sh.
1493  cat <<_ACEOF
1494\`configure' configures libxcb 1.13.1 to adapt to many kinds of systems.
1495
1496Usage: $0 [OPTION]... [VAR=VALUE]...
1497
1498To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499VAR=VALUE.  See below for descriptions of some of the useful variables.
1500
1501Defaults for the options are specified in brackets.
1502
1503Configuration:
1504  -h, --help              display this help and exit
1505      --help=short        display options specific to this package
1506      --help=recursive    display the short help of all the included packages
1507  -V, --version           display version information and exit
1508  -q, --quiet, --silent   do not print \`checking ...' messages
1509      --cache-file=FILE   cache test results in FILE [disabled]
1510  -C, --config-cache      alias for \`--cache-file=config.cache'
1511  -n, --no-create         do not create output files
1512      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1513
1514Installation directories:
1515  --prefix=PREFIX         install architecture-independent files in PREFIX
1516                          [$ac_default_prefix]
1517  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1518                          [PREFIX]
1519
1520By default, \`make install' will install all the files in
1521\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1522an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523for instance \`--prefix=\$HOME'.
1524
1525For better control, use the options below.
1526
1527Fine tuning of the installation directories:
1528  --bindir=DIR            user executables [EPREFIX/bin]
1529  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1530  --libexecdir=DIR        program executables [EPREFIX/libexec]
1531  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1532  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1533  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1534  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1535  --libdir=DIR            object code libraries [EPREFIX/lib]
1536  --includedir=DIR        C header files [PREFIX/include]
1537  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1538  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1539  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1540  --infodir=DIR           info documentation [DATAROOTDIR/info]
1541  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1542  --mandir=DIR            man documentation [DATAROOTDIR/man]
1543  --docdir=DIR            documentation root [DATAROOTDIR/doc/libxcb]
1544  --htmldir=DIR           html documentation [DOCDIR]
1545  --dvidir=DIR            dvi documentation [DOCDIR]
1546  --pdfdir=DIR            pdf documentation [DOCDIR]
1547  --psdir=DIR             ps documentation [DOCDIR]
1548_ACEOF
1549
1550  cat <<\_ACEOF
1551
1552Program names:
1553  --program-prefix=PREFIX            prepend PREFIX to installed program names
1554  --program-suffix=SUFFIX            append SUFFIX to installed program names
1555  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1556
1557System types:
1558  --build=BUILD     configure for building on BUILD [guessed]
1559  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1560_ACEOF
1561fi
1562
1563if test -n "$ac_init_help"; then
1564  case $ac_init_help in
1565     short | recursive ) echo "Configuration of libxcb 1.13.1:";;
1566   esac
1567  cat <<\_ACEOF
1568
1569Optional Features:
1570  --disable-option-checking  ignore unrecognized --enable/--with options
1571  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1572  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1573  --enable-silent-rules   less verbose build output (undo: "make V=1")
1574  --disable-silent-rules  verbose build output (undo: "make V=0")
1575  --enable-dependency-tracking
1576                          do not reject slow dependency extractors
1577  --disable-dependency-tracking
1578                          speeds up one-time build
1579  --enable-shared[=PKGS]  build shared libraries [default=yes]
1580  --enable-static[=PKGS]  build static libraries [default=yes]
1581  --enable-fast-install[=PKGS]
1582                          optimize for fast installation [default=yes]
1583  --disable-libtool-lock  avoid locking (might break parallel builds)
1584  --disable-selective-werror
1585                          Turn off selective compiler errors. (default:
1586                          enabled)
1587  --enable-strict-compilation
1588                          Enable all warnings from compiler and make them
1589                          errors (default: disabled)
1590  --enable-devel-docs     Enable building the developer documentation
1591                          (default: yes)
1592  --enable-composite      Build XCB Composite Extension (default: yes)
1593  --enable-damage         Build XCB Damage Extension (default: yes)
1594  --enable-dpms           Build XCB DPMS Extension (default: yes)
1595  --enable-dri2           Build XCB DRI2 Extension (default: yes)
1596  --enable-dri3           Build XCB DRI3 Extension (default: auto)
1597  --enable-ge             Build XCB GE Extension (default: no)
1598  --enable-glx            Build XCB GLX Extension (default: yes)
1599  --enable-present        Build XCB Present Extension (default: yes)
1600  --enable-randr          Build XCB RandR Extension (default: yes)
1601  --enable-record         Build XCB Record Extension (default: yes)
1602  --enable-render         Build XCB Render Extension (default: yes)
1603  --enable-resource       Build XCB Resource Extension (default: yes)
1604  --enable-screensaver    Build XCB Screensaver Extension (default: yes)
1605  --enable-shape          Build XCB Shape Extension (default: yes)
1606  --enable-shm            Build XCB Shm Extension (default: yes)
1607  --enable-sync           Build XCB Sync Extension (default: yes)
1608  --enable-xevie          Build XCB Xevie Extension (default: no)
1609  --enable-xfixes         Build XCB XFixes Extension (default: yes)
1610  --enable-xfree86-dri    Build XCB XFree86-DRI Extension (default: yes)
1611  --enable-xinerama       Build XCB Xinerama Extension (default: yes)
1612  --enable-xinput         Build XCB XInput Extension (default: yes)
1613  --enable-xkb            Build XCB XKB Extension (default: yes)
1614  --enable-xprint         Build XCB Xprint Extension (default: no)
1615  --enable-selinux        Build XCB SELinux Extension (default: no)
1616  --enable-xtest          Build XCB XTest Extension (default: yes)
1617  --enable-xv             Build XCB Xv Extension (default: yes)
1618  --enable-xvmc           Build XCB XvMC Extension (default: yes)
1619
1620Optional Packages:
1621  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1622  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1623  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1624                          both]
1625  --with-aix-soname=aix|svr4|both
1626                          shared library versioning (aka "SONAME") variant to
1627                          provide on AIX, [default=aix].
1628  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1629  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1630                          compiler's sysroot if not specified).
1631  --with-doxygen          Use doxygen to regenerate documentation (default:
1632                          auto)
1633  --with-queue-size=SIZE  Set the XCB buffer queue size (default is 16384)
1634  --with-launchd          Build with support for Apple's launchd (default:
1635                          auto)
1636  --with-serverside-support
1637                          Build with support for server-side usage of xcb.
1638                          This is still EXPERIMENTAL! ABI/API may change!
1639                          (default: no)
1640
1641Some influential environment variables:
1642  PYTHON      the Python interpreter
1643  CC          C compiler command
1644  CFLAGS      C compiler flags
1645  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1646              nonstandard directory <lib dir>
1647  LIBS        libraries to pass to the linker, e.g. -l<library>
1648  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1649              you have headers in a nonstandard directory <include dir>
1650  CPP         C preprocessor
1651  LT_SYS_LIBRARY_PATH
1652              User-defined run-time library search path.
1653  PKG_CONFIG  path to pkg-config utility
1654  PKG_CONFIG_PATH
1655              directories to add to pkg-config's search path
1656  PKG_CONFIG_LIBDIR
1657              path overriding pkg-config's built-in search path
1658  DOXYGEN     Path to doxygen command
1659  DOT         Path to the dot graphics utility
1660  CHECK_CFLAGS
1661              C compiler flags for CHECK, overriding pkg-config
1662  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1663  XCBPROTO_CFLAGS
1664              C compiler flags for XCBPROTO, overriding pkg-config
1665  XCBPROTO_LIBS
1666              linker flags for XCBPROTO, overriding pkg-config
1667  NEEDED_CFLAGS
1668              C compiler flags for NEEDED, overriding pkg-config
1669  NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
1670  XDMCP_CFLAGS
1671              C compiler flags for XDMCP, overriding pkg-config
1672  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1673
1674Use these variables to override the choices made by `configure' or to help
1675it to find libraries and programs with nonstandard names/locations.
1676
1677Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>.
1678_ACEOF
1679ac_status=$?
1680fi
1681
1682if test "$ac_init_help" = "recursive"; then
1683  # If there are subdirs, report their specific --help.
1684  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685    test -d "$ac_dir" ||
1686      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1687      continue
1688    ac_builddir=.
1689
1690case "$ac_dir" in
1691.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692*)
1693  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1694  # A ".." for each directory in $ac_dir_suffix.
1695  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696  case $ac_top_builddir_sub in
1697  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699  esac ;;
1700esac
1701ac_abs_top_builddir=$ac_pwd
1702ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703# for backward compatibility:
1704ac_top_builddir=$ac_top_build_prefix
1705
1706case $srcdir in
1707  .)  # We are building in place.
1708    ac_srcdir=.
1709    ac_top_srcdir=$ac_top_builddir_sub
1710    ac_abs_top_srcdir=$ac_pwd ;;
1711  [\\/]* | ?:[\\/]* )  # Absolute name.
1712    ac_srcdir=$srcdir$ac_dir_suffix;
1713    ac_top_srcdir=$srcdir
1714    ac_abs_top_srcdir=$srcdir ;;
1715  *) # Relative name.
1716    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717    ac_top_srcdir=$ac_top_build_prefix$srcdir
1718    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719esac
1720ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721
1722    cd "$ac_dir" || { ac_status=$?; continue; }
1723    # Check for guested configure.
1724    if test -f "$ac_srcdir/configure.gnu"; then
1725      echo &&
1726      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727    elif test -f "$ac_srcdir/configure"; then
1728      echo &&
1729      $SHELL "$ac_srcdir/configure" --help=recursive
1730    else
1731      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732    fi || ac_status=$?
1733    cd "$ac_pwd" || { ac_status=$?; break; }
1734  done
1735fi
1736
1737test -n "$ac_init_help" && exit $ac_status
1738if $ac_init_version; then
1739  cat <<\_ACEOF
1740libxcb configure 1.13.1
1741generated by GNU Autoconf 2.69
1742
1743Copyright (C) 2012 Free Software Foundation, Inc.
1744This configure script is free software; the Free Software Foundation
1745gives unlimited permission to copy, distribute and modify it.
1746_ACEOF
1747  exit
1748fi
1749
1750## ------------------------ ##
1751## Autoconf initialization. ##
1752## ------------------------ ##
1753
1754# ac_fn_c_try_compile LINENO
1755# --------------------------
1756# Try to compile conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_c_try_compile ()
1758{
1759  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760  rm -f conftest.$ac_objext
1761  if { { ac_try="$ac_compile"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_compile") 2>conftest.err
1769  ac_status=$?
1770  if test -s conftest.err; then
1771    grep -v '^ *+' conftest.err >conftest.er1
1772    cat conftest.er1 >&5
1773    mv -f conftest.er1 conftest.err
1774  fi
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } && {
1777	 test -z "$ac_c_werror_flag" ||
1778	 test ! -s conftest.err
1779       } && test -s conftest.$ac_objext; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785	ac_retval=1
1786fi
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_compile
1791
1792# ac_fn_c_try_cpp LINENO
1793# ----------------------
1794# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_c_try_cpp ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  if { { ac_try="$ac_cpp conftest.$ac_ext"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1806  ac_status=$?
1807  if test -s conftest.err; then
1808    grep -v '^ *+' conftest.err >conftest.er1
1809    cat conftest.er1 >&5
1810    mv -f conftest.er1 conftest.err
1811  fi
1812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } > conftest.i && {
1814	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1815	 test ! -s conftest.err
1816       }; then :
1817  ac_retval=0
1818else
1819  $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822    ac_retval=1
1823fi
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825  as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_cpp
1828
1829# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1830# -------------------------------------------------------
1831# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1832# the include files in INCLUDES and setting the cache variable VAR
1833# accordingly.
1834ac_fn_c_check_header_mongrel ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  if eval \${$3+:} false; then :
1838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839$as_echo_n "checking for $2... " >&6; }
1840if eval \${$3+:} false; then :
1841  $as_echo_n "(cached) " >&6
1842fi
1843eval ac_res=\$$3
1844	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845$as_echo "$ac_res" >&6; }
1846else
1847  # Is the header compilable?
1848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1849$as_echo_n "checking $2 usability... " >&6; }
1850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h.  */
1852$4
1853#include <$2>
1854_ACEOF
1855if ac_fn_c_try_compile "$LINENO"; then :
1856  ac_header_compiler=yes
1857else
1858  ac_header_compiler=no
1859fi
1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1862$as_echo "$ac_header_compiler" >&6; }
1863
1864# Is the header present?
1865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1866$as_echo_n "checking $2 presence... " >&6; }
1867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h.  */
1869#include <$2>
1870_ACEOF
1871if ac_fn_c_try_cpp "$LINENO"; then :
1872  ac_header_preproc=yes
1873else
1874  ac_header_preproc=no
1875fi
1876rm -f conftest.err conftest.i conftest.$ac_ext
1877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1878$as_echo "$ac_header_preproc" >&6; }
1879
1880# So?  What about this header?
1881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1882  yes:no: )
1883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1884$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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    ;;
1888  no:yes:* )
1889    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1890$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1891    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1892$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1894$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1895    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1896$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1897    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1898$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1899( $as_echo "## --------------------------------------------------------------------- ##
1900## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xcb ##
1901## --------------------------------------------------------------------- ##"
1902     ) | sed "s/^/$as_me: WARNING:     /" >&2
1903    ;;
1904esac
1905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
1907if eval \${$3+:} false; then :
1908  $as_echo_n "(cached) " >&6
1909else
1910  eval "$3=\$ac_header_compiler"
1911fi
1912eval ac_res=\$$3
1913	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914$as_echo "$ac_res" >&6; }
1915fi
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_header_mongrel
1919
1920# ac_fn_c_try_run LINENO
1921# ----------------------
1922# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1923# that executables *can* be run.
1924ac_fn_c_try_run ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  if { { ac_try="$ac_link"
1928case "(($ac_try" in
1929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930  *) ac_try_echo=$ac_try;;
1931esac
1932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933$as_echo "$ac_try_echo"; } >&5
1934  (eval "$ac_link") 2>&5
1935  ac_status=$?
1936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1938  { { case "(($ac_try" in
1939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940  *) ac_try_echo=$ac_try;;
1941esac
1942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943$as_echo "$ac_try_echo"; } >&5
1944  (eval "$ac_try") 2>&5
1945  ac_status=$?
1946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947  test $ac_status = 0; }; }; then :
1948  ac_retval=0
1949else
1950  $as_echo "$as_me: program exited with status $ac_status" >&5
1951       $as_echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954       ac_retval=$ac_status
1955fi
1956  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958  as_fn_set_status $ac_retval
1959
1960} # ac_fn_c_try_run
1961
1962# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1963# -------------------------------------------------------
1964# Tests whether HEADER exists and can be compiled using the include files in
1965# INCLUDES, setting the cache variable VAR accordingly.
1966ac_fn_c_check_header_compile ()
1967{
1968  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970$as_echo_n "checking for $2... " >&6; }
1971if eval \${$3+:} false; then :
1972  $as_echo_n "(cached) " >&6
1973else
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976$4
1977#include <$2>
1978_ACEOF
1979if ac_fn_c_try_compile "$LINENO"; then :
1980  eval "$3=yes"
1981else
1982  eval "$3=no"
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985fi
1986eval ac_res=\$$3
1987	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988$as_echo "$ac_res" >&6; }
1989  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991} # ac_fn_c_check_header_compile
1992
1993# ac_fn_c_try_link LINENO
1994# -----------------------
1995# Try to link conftest.$ac_ext, and return whether this succeeded.
1996ac_fn_c_try_link ()
1997{
1998  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999  rm -f conftest.$ac_objext conftest$ac_exeext
2000  if { { ac_try="$ac_link"
2001case "(($ac_try" in
2002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003  *) ac_try_echo=$ac_try;;
2004esac
2005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006$as_echo "$ac_try_echo"; } >&5
2007  (eval "$ac_link") 2>conftest.err
2008  ac_status=$?
2009  if test -s conftest.err; then
2010    grep -v '^ *+' conftest.err >conftest.er1
2011    cat conftest.er1 >&5
2012    mv -f conftest.er1 conftest.err
2013  fi
2014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015  test $ac_status = 0; } && {
2016	 test -z "$ac_c_werror_flag" ||
2017	 test ! -s conftest.err
2018       } && test -s conftest$ac_exeext && {
2019	 test "$cross_compiling" = yes ||
2020	 test -x conftest$ac_exeext
2021       }; then :
2022  ac_retval=0
2023else
2024  $as_echo "$as_me: failed program was:" >&5
2025sed 's/^/| /' conftest.$ac_ext >&5
2026
2027	ac_retval=1
2028fi
2029  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031  # interfere with the next link command; also delete a directory that is
2032  # left behind by Apple's compiler.  We do this before executing the actions.
2033  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035  as_fn_set_status $ac_retval
2036
2037} # ac_fn_c_try_link
2038
2039# ac_fn_c_check_func LINENO FUNC VAR
2040# ----------------------------------
2041# Tests whether FUNC exists, setting the cache variable VAR accordingly
2042ac_fn_c_check_func ()
2043{
2044  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046$as_echo_n "checking for $2... " >&6; }
2047if eval \${$3+:} false; then :
2048  $as_echo_n "(cached) " >&6
2049else
2050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h.  */
2052/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2054#define $2 innocuous_$2
2055
2056/* System header to define __stub macros and hopefully few prototypes,
2057    which can conflict with char $2 (); below.
2058    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059    <limits.h> exists even on freestanding compilers.  */
2060
2061#ifdef __STDC__
2062# include <limits.h>
2063#else
2064# include <assert.h>
2065#endif
2066
2067#undef $2
2068
2069/* Override any GCC internal prototype to avoid an error.
2070   Use char because int might match the return type of a GCC
2071   builtin and then its argument prototype would still apply.  */
2072#ifdef __cplusplus
2073extern "C"
2074#endif
2075char $2 ();
2076/* The GNU C library defines this for functions which it implements
2077    to always fail with ENOSYS.  Some functions are actually named
2078    something starting with __ and the normal name is an alias.  */
2079#if defined __stub_$2 || defined __stub___$2
2080choke me
2081#endif
2082
2083int
2084main ()
2085{
2086return $2 ();
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_link "$LINENO"; then :
2092  eval "$3=yes"
2093else
2094  eval "$3=no"
2095fi
2096rm -f core conftest.err conftest.$ac_objext \
2097    conftest$ac_exeext conftest.$ac_ext
2098fi
2099eval ac_res=\$$3
2100	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101$as_echo "$ac_res" >&6; }
2102  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103
2104} # ac_fn_c_check_func
2105
2106# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2107# ---------------------------------------------
2108# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2109# accordingly.
2110ac_fn_c_check_decl ()
2111{
2112  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113  as_decl_name=`echo $2|sed 's/ *(.*//'`
2114  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2116$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2117if eval \${$3+:} false; then :
2118  $as_echo_n "(cached) " >&6
2119else
2120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122$4
2123int
2124main ()
2125{
2126#ifndef $as_decl_name
2127#ifdef __cplusplus
2128  (void) $as_decl_use;
2129#else
2130  (void) $as_decl_name;
2131#endif
2132#endif
2133
2134  ;
2135  return 0;
2136}
2137_ACEOF
2138if ac_fn_c_try_compile "$LINENO"; then :
2139  eval "$3=yes"
2140else
2141  eval "$3=no"
2142fi
2143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144fi
2145eval ac_res=\$$3
2146	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149
2150} # ac_fn_c_check_decl
2151
2152# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2153# ----------------------------------------------------
2154# Tries to find if the field MEMBER exists in type AGGR, after including
2155# INCLUDES, setting cache variable VAR accordingly.
2156ac_fn_c_check_member ()
2157{
2158  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2160$as_echo_n "checking for $2.$3... " >&6; }
2161if eval \${$4+:} false; then :
2162  $as_echo_n "(cached) " >&6
2163else
2164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h.  */
2166$5
2167int
2168main ()
2169{
2170static $2 ac_aggr;
2171if (ac_aggr.$3)
2172return 0;
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177if ac_fn_c_try_compile "$LINENO"; then :
2178  eval "$4=yes"
2179else
2180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h.  */
2182$5
2183int
2184main ()
2185{
2186static $2 ac_aggr;
2187if (sizeof ac_aggr.$3)
2188return 0;
2189  ;
2190  return 0;
2191}
2192_ACEOF
2193if ac_fn_c_try_compile "$LINENO"; then :
2194  eval "$4=yes"
2195else
2196  eval "$4=no"
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201fi
2202eval ac_res=\$$4
2203	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204$as_echo "$ac_res" >&6; }
2205  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206
2207} # ac_fn_c_check_member
2208cat >config.log <<_ACEOF
2209This file contains any messages produced by compilers while
2210running configure, to aid debugging if configure makes a mistake.
2211
2212It was created by libxcb $as_me 1.13.1, which was
2213generated by GNU Autoconf 2.69.  Invocation command line was
2214
2215  $ $0 $@
2216
2217_ACEOF
2218exec 5>>config.log
2219{
2220cat <<_ASUNAME
2221## --------- ##
2222## Platform. ##
2223## --------- ##
2224
2225hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2226uname -m = `(uname -m) 2>/dev/null || echo unknown`
2227uname -r = `(uname -r) 2>/dev/null || echo unknown`
2228uname -s = `(uname -s) 2>/dev/null || echo unknown`
2229uname -v = `(uname -v) 2>/dev/null || echo unknown`
2230
2231/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2232/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2233
2234/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2235/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2236/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2237/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2238/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2239/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2240/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2241
2242_ASUNAME
2243
2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247  IFS=$as_save_IFS
2248  test -z "$as_dir" && as_dir=.
2249    $as_echo "PATH: $as_dir"
2250  done
2251IFS=$as_save_IFS
2252
2253} >&5
2254
2255cat >&5 <<_ACEOF
2256
2257
2258## ----------- ##
2259## Core tests. ##
2260## ----------- ##
2261
2262_ACEOF
2263
2264
2265# Keep a trace of the command line.
2266# Strip out --no-create and --no-recursion so they do not pile up.
2267# Strip out --silent because we don't want to record it for future runs.
2268# Also quote any args containing shell meta-characters.
2269# Make two passes to allow for proper duplicate-argument suppression.
2270ac_configure_args=
2271ac_configure_args0=
2272ac_configure_args1=
2273ac_must_keep_next=false
2274for ac_pass in 1 2
2275do
2276  for ac_arg
2277  do
2278    case $ac_arg in
2279    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2280    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2281    | -silent | --silent | --silen | --sile | --sil)
2282      continue ;;
2283    *\'*)
2284      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2285    esac
2286    case $ac_pass in
2287    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2288    2)
2289      as_fn_append ac_configure_args1 " '$ac_arg'"
2290      if test $ac_must_keep_next = true; then
2291	ac_must_keep_next=false # Got value, back to normal.
2292      else
2293	case $ac_arg in
2294	  *=* | --config-cache | -C | -disable-* | --disable-* \
2295	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2296	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2297	  | -with-* | --with-* | -without-* | --without-* | --x)
2298	    case "$ac_configure_args0 " in
2299	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2300	    esac
2301	    ;;
2302	  -* ) ac_must_keep_next=true ;;
2303	esac
2304      fi
2305      as_fn_append ac_configure_args " '$ac_arg'"
2306      ;;
2307    esac
2308  done
2309done
2310{ ac_configure_args0=; unset ac_configure_args0;}
2311{ ac_configure_args1=; unset ac_configure_args1;}
2312
2313# When interrupted or exit'd, cleanup temporary files, and complete
2314# config.log.  We remove comments because anyway the quotes in there
2315# would cause problems or look ugly.
2316# WARNING: Use '\'' to represent an apostrophe within the trap.
2317# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2318trap 'exit_status=$?
2319  # Save into config.log some information that might help in debugging.
2320  {
2321    echo
2322
2323    $as_echo "## ---------------- ##
2324## Cache variables. ##
2325## ---------------- ##"
2326    echo
2327    # The following way of writing the cache mishandles newlines in values,
2328(
2329  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2330    eval ac_val=\$$ac_var
2331    case $ac_val in #(
2332    *${as_nl}*)
2333      case $ac_var in #(
2334      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2335$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2336      esac
2337      case $ac_var in #(
2338      _ | IFS | as_nl) ;; #(
2339      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2340      *) { eval $ac_var=; unset $ac_var;} ;;
2341      esac ;;
2342    esac
2343  done
2344  (set) 2>&1 |
2345    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2346    *${as_nl}ac_space=\ *)
2347      sed -n \
2348	"s/'\''/'\''\\\\'\'''\''/g;
2349	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2350      ;; #(
2351    *)
2352      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2353      ;;
2354    esac |
2355    sort
2356)
2357    echo
2358
2359    $as_echo "## ----------------- ##
2360## Output variables. ##
2361## ----------------- ##"
2362    echo
2363    for ac_var in $ac_subst_vars
2364    do
2365      eval ac_val=\$$ac_var
2366      case $ac_val in
2367      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2368      esac
2369      $as_echo "$ac_var='\''$ac_val'\''"
2370    done | sort
2371    echo
2372
2373    if test -n "$ac_subst_files"; then
2374      $as_echo "## ------------------- ##
2375## File substitutions. ##
2376## ------------------- ##"
2377      echo
2378      for ac_var in $ac_subst_files
2379      do
2380	eval ac_val=\$$ac_var
2381	case $ac_val in
2382	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2383	esac
2384	$as_echo "$ac_var='\''$ac_val'\''"
2385      done | sort
2386      echo
2387    fi
2388
2389    if test -s confdefs.h; then
2390      $as_echo "## ----------- ##
2391## confdefs.h. ##
2392## ----------- ##"
2393      echo
2394      cat confdefs.h
2395      echo
2396    fi
2397    test "$ac_signal" != 0 &&
2398      $as_echo "$as_me: caught signal $ac_signal"
2399    $as_echo "$as_me: exit $exit_status"
2400  } >&5
2401  rm -f core *.core core.conftest.* &&
2402    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2403    exit $exit_status
2404' 0
2405for ac_signal in 1 2 13 15; do
2406  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2407done
2408ac_signal=0
2409
2410# confdefs.h avoids OS command line length limits that DEFS can exceed.
2411rm -f -r conftest* confdefs.h
2412
2413$as_echo "/* confdefs.h */" > confdefs.h
2414
2415# Predefined preprocessor variables.
2416
2417cat >>confdefs.h <<_ACEOF
2418#define PACKAGE_NAME "$PACKAGE_NAME"
2419_ACEOF
2420
2421cat >>confdefs.h <<_ACEOF
2422#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2423_ACEOF
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_VERSION "$PACKAGE_VERSION"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_STRING "$PACKAGE_STRING"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2435_ACEOF
2436
2437cat >>confdefs.h <<_ACEOF
2438#define PACKAGE_URL "$PACKAGE_URL"
2439_ACEOF
2440
2441
2442# Let the site file select an alternate cache file if it wants to.
2443# Prefer an explicitly selected file to automatically selected ones.
2444ac_site_file1=NONE
2445ac_site_file2=NONE
2446if test -n "$CONFIG_SITE"; then
2447  # We do not want a PATH search for config.site.
2448  case $CONFIG_SITE in #((
2449    -*)  ac_site_file1=./$CONFIG_SITE;;
2450    */*) ac_site_file1=$CONFIG_SITE;;
2451    *)   ac_site_file1=./$CONFIG_SITE;;
2452  esac
2453elif test "x$prefix" != xNONE; then
2454  ac_site_file1=$prefix/share/config.site
2455  ac_site_file2=$prefix/etc/config.site
2456else
2457  ac_site_file1=$ac_default_prefix/share/config.site
2458  ac_site_file2=$ac_default_prefix/etc/config.site
2459fi
2460for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2461do
2462  test "x$ac_site_file" = xNONE && continue
2463  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2464    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2465$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2466    sed 's/^/| /' "$ac_site_file" >&5
2467    . "$ac_site_file" \
2468      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470as_fn_error $? "failed to load site script $ac_site_file
2471See \`config.log' for more details" "$LINENO" 5; }
2472  fi
2473done
2474
2475if test -r "$cache_file"; then
2476  # Some versions of bash will fail to source /dev/null (special files
2477  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2478  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2479    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2480$as_echo "$as_me: loading cache $cache_file" >&6;}
2481    case $cache_file in
2482      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2483      *)                      . "./$cache_file";;
2484    esac
2485  fi
2486else
2487  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2488$as_echo "$as_me: creating cache $cache_file" >&6;}
2489  >$cache_file
2490fi
2491
2492# Check that the precious variables saved in the cache have kept the same
2493# value.
2494ac_cache_corrupted=false
2495for ac_var in $ac_precious_vars; do
2496  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2497  eval ac_new_set=\$ac_env_${ac_var}_set
2498  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2499  eval ac_new_val=\$ac_env_${ac_var}_value
2500  case $ac_old_set,$ac_new_set in
2501    set,)
2502      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2503$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2504      ac_cache_corrupted=: ;;
2505    ,set)
2506      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2507$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2508      ac_cache_corrupted=: ;;
2509    ,);;
2510    *)
2511      if test "x$ac_old_val" != "x$ac_new_val"; then
2512	# differences in whitespace do not lead to failure.
2513	ac_old_val_w=`echo x $ac_old_val`
2514	ac_new_val_w=`echo x $ac_new_val`
2515	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2516	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2517$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2518	  ac_cache_corrupted=:
2519	else
2520	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2521$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2522	  eval $ac_var=\$ac_old_val
2523	fi
2524	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2525$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2526	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2527$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2528      fi;;
2529  esac
2530  # Pass precious variables to config.status.
2531  if test "$ac_new_set" = set; then
2532    case $ac_new_val in
2533    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2534    *) ac_arg=$ac_var=$ac_new_val ;;
2535    esac
2536    case " $ac_configure_args " in
2537      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2538      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2539    esac
2540  fi
2541done
2542if $ac_cache_corrupted; then
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2546$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2547  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2548fi
2549## -------------------- ##
2550## Main body of script. ##
2551## -------------------- ##
2552
2553ac_ext=c
2554ac_cpp='$CPP $CPPFLAGS'
2555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
2559
2560ac_aux_dir=
2561for ac_dir in build-aux "$srcdir"/build-aux; do
2562  if test -f "$ac_dir/install-sh"; then
2563    ac_aux_dir=$ac_dir
2564    ac_install_sh="$ac_aux_dir/install-sh -c"
2565    break
2566  elif test -f "$ac_dir/install.sh"; then
2567    ac_aux_dir=$ac_dir
2568    ac_install_sh="$ac_aux_dir/install.sh -c"
2569    break
2570  elif test -f "$ac_dir/shtool"; then
2571    ac_aux_dir=$ac_dir
2572    ac_install_sh="$ac_aux_dir/shtool install -c"
2573    break
2574  fi
2575done
2576if test -z "$ac_aux_dir"; then
2577  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2578fi
2579
2580# These three variables are undocumented and unsupported,
2581# and are intended to be withdrawn in a future Autoconf release.
2582# They can cause serious problems if a builder's source tree is in a directory
2583# whose full name contains unusual characters.
2584ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2585ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2586ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2587
2588
2589
2590
2591ac_config_headers="$ac_config_headers src/config.h"
2592
2593
2594# Initialize Automake
2595am__api_version='1.16'
2596
2597# Find a good install program.  We prefer a C program (faster),
2598# so one script is as good as another.  But avoid the broken or
2599# incompatible versions:
2600# SysV /etc/install, /usr/sbin/install
2601# SunOS /usr/etc/install
2602# IRIX /sbin/install
2603# AIX /bin/install
2604# AmigaOS /C/install, which installs bootblocks on floppy discs
2605# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2606# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2607# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2608# OS/2's system install, which has a completely different semantic
2609# ./install, which can be erroneously created by make from ./install.sh.
2610# Reject install programs that cannot install multiple files.
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2612$as_echo_n "checking for a BSD-compatible install... " >&6; }
2613if test -z "$INSTALL"; then
2614if ${ac_cv_path_install+:} false; then :
2615  $as_echo_n "(cached) " >&6
2616else
2617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620  IFS=$as_save_IFS
2621  test -z "$as_dir" && as_dir=.
2622    # Account for people who put trailing slashes in PATH elements.
2623case $as_dir/ in #((
2624  ./ | .// | /[cC]/* | \
2625  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2626  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2627  /usr/ucb/* ) ;;
2628  *)
2629    # OSF1 and SCO ODT 3.0 have their own names for install.
2630    # Don't use installbsd from OSF since it installs stuff as root
2631    # by default.
2632    for ac_prog in ginstall scoinst install; do
2633      for ac_exec_ext in '' $ac_executable_extensions; do
2634	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2635	  if test $ac_prog = install &&
2636	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2637	    # AIX install.  It has an incompatible calling convention.
2638	    :
2639	  elif test $ac_prog = install &&
2640	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2641	    # program-specific install script used by HP pwplus--don't use.
2642	    :
2643	  else
2644	    rm -rf conftest.one conftest.two conftest.dir
2645	    echo one > conftest.one
2646	    echo two > conftest.two
2647	    mkdir conftest.dir
2648	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2649	      test -s conftest.one && test -s conftest.two &&
2650	      test -s conftest.dir/conftest.one &&
2651	      test -s conftest.dir/conftest.two
2652	    then
2653	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2654	      break 3
2655	    fi
2656	  fi
2657	fi
2658      done
2659    done
2660    ;;
2661esac
2662
2663  done
2664IFS=$as_save_IFS
2665
2666rm -rf conftest.one conftest.two conftest.dir
2667
2668fi
2669  if test "${ac_cv_path_install+set}" = set; then
2670    INSTALL=$ac_cv_path_install
2671  else
2672    # As a last resort, use the slow shell script.  Don't cache a
2673    # value for INSTALL within a source directory, because that will
2674    # break other packages using the cache if that directory is
2675    # removed, or if the value is a relative name.
2676    INSTALL=$ac_install_sh
2677  fi
2678fi
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2680$as_echo "$INSTALL" >&6; }
2681
2682# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2683# It thinks the first close brace ends the variable substitution.
2684test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2685
2686test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2687
2688test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2689
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2691$as_echo_n "checking whether build environment is sane... " >&6; }
2692# Reject unsafe characters in $srcdir or the absolute working directory
2693# name.  Accept space and tab only in the latter.
2694am_lf='
2695'
2696case `pwd` in
2697  *[\\\"\#\$\&\'\`$am_lf]*)
2698    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2699esac
2700case $srcdir in
2701  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2702    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2703esac
2704
2705# Do 'set' in a subshell so we don't clobber the current shell's
2706# arguments.  Must try -L first in case configure is actually a
2707# symlink; some systems play weird games with the mod time of symlinks
2708# (eg FreeBSD returns the mod time of the symlink's containing
2709# directory).
2710if (
2711   am_has_slept=no
2712   for am_try in 1 2; do
2713     echo "timestamp, slept: $am_has_slept" > conftest.file
2714     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2715     if test "$*" = "X"; then
2716	# -L didn't work.
2717	set X `ls -t "$srcdir/configure" conftest.file`
2718     fi
2719     if test "$*" != "X $srcdir/configure conftest.file" \
2720	&& test "$*" != "X conftest.file $srcdir/configure"; then
2721
2722	# If neither matched, then we have a broken ls.  This can happen
2723	# if, for instance, CONFIG_SHELL is bash and it inherits a
2724	# broken ls alias from the environment.  This has actually
2725	# happened.  Such a system could not be considered "sane".
2726	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2727  alias in your environment" "$LINENO" 5
2728     fi
2729     if test "$2" = conftest.file || test $am_try -eq 2; then
2730       break
2731     fi
2732     # Just in case.
2733     sleep 1
2734     am_has_slept=yes
2735   done
2736   test "$2" = conftest.file
2737   )
2738then
2739   # Ok.
2740   :
2741else
2742   as_fn_error $? "newly created file is older than distributed files!
2743Check your system clock" "$LINENO" 5
2744fi
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746$as_echo "yes" >&6; }
2747# If we didn't sleep, we still need to ensure time stamps of config.status and
2748# generated files are strictly newer.
2749am_sleep_pid=
2750if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2751  ( sleep 1 ) &
2752  am_sleep_pid=$!
2753fi
2754
2755rm -f conftest.file
2756
2757test "$program_prefix" != NONE &&
2758  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2759# Use a double $ so make ignores it.
2760test "$program_suffix" != NONE &&
2761  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2762# Double any \ or $.
2763# By default was `s,x,x', remove it if useless.
2764ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2765program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2766
2767# Expand $ac_aux_dir to an absolute path.
2768am_aux_dir=`cd "$ac_aux_dir" && pwd`
2769
2770if test x"${MISSING+set}" != xset; then
2771  case $am_aux_dir in
2772  *\ * | *\	*)
2773    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2774  *)
2775    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2776  esac
2777fi
2778# Use eval to expand $SHELL
2779if eval "$MISSING --is-lightweight"; then
2780  am_missing_run="$MISSING "
2781else
2782  am_missing_run=
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2784$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2785fi
2786
2787if test x"${install_sh+set}" != xset; then
2788  case $am_aux_dir in
2789  *\ * | *\	*)
2790    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2791  *)
2792    install_sh="\${SHELL} $am_aux_dir/install-sh"
2793  esac
2794fi
2795
2796# Installed binaries are usually stripped using 'strip' when the user
2797# run "make install-strip".  However 'strip' might not be the right
2798# tool to use in cross-compilation environments, therefore Automake
2799# will honor the 'STRIP' environment variable to overrule this program.
2800if test "$cross_compiling" != no; then
2801  if test -n "$ac_tool_prefix"; then
2802  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2803set dummy ${ac_tool_prefix}strip; ac_word=$2
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805$as_echo_n "checking for $ac_word... " >&6; }
2806if ${ac_cv_prog_STRIP+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  if test -n "$STRIP"; then
2810  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815  IFS=$as_save_IFS
2816  test -z "$as_dir" && as_dir=.
2817    for ac_exec_ext in '' $ac_executable_extensions; do
2818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821    break 2
2822  fi
2823done
2824  done
2825IFS=$as_save_IFS
2826
2827fi
2828fi
2829STRIP=$ac_cv_prog_STRIP
2830if test -n "$STRIP"; then
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2832$as_echo "$STRIP" >&6; }
2833else
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
2836fi
2837
2838
2839fi
2840if test -z "$ac_cv_prog_STRIP"; then
2841  ac_ct_STRIP=$STRIP
2842  # Extract the first word of "strip", so it can be a program name with args.
2843set dummy strip; ac_word=$2
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
2846if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2847  $as_echo_n "(cached) " >&6
2848else
2849  if test -n "$ac_ct_STRIP"; then
2850  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855  IFS=$as_save_IFS
2856  test -z "$as_dir" && as_dir=.
2857    for ac_exec_ext in '' $ac_executable_extensions; do
2858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859    ac_cv_prog_ac_ct_STRIP="strip"
2860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861    break 2
2862  fi
2863done
2864  done
2865IFS=$as_save_IFS
2866
2867fi
2868fi
2869ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2870if test -n "$ac_ct_STRIP"; then
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2872$as_echo "$ac_ct_STRIP" >&6; }
2873else
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2877
2878  if test "x$ac_ct_STRIP" = x; then
2879    STRIP=":"
2880  else
2881    case $cross_compiling:$ac_tool_warned in
2882yes:)
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887    STRIP=$ac_ct_STRIP
2888  fi
2889else
2890  STRIP="$ac_cv_prog_STRIP"
2891fi
2892
2893fi
2894INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2895
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2897$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2898if test -z "$MKDIR_P"; then
2899  if ${ac_cv_path_mkdir+:} false; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_prog in mkdir gmkdir; do
2908	 for ac_exec_ext in '' $ac_executable_extensions; do
2909	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2910	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2911	     'mkdir (GNU coreutils) '* | \
2912	     'mkdir (coreutils) '* | \
2913	     'mkdir (fileutils) '4.1*)
2914	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2915	       break 3;;
2916	   esac
2917	 done
2918       done
2919  done
2920IFS=$as_save_IFS
2921
2922fi
2923
2924  test -d ./--version && rmdir ./--version
2925  if test "${ac_cv_path_mkdir+set}" = set; then
2926    MKDIR_P="$ac_cv_path_mkdir -p"
2927  else
2928    # As a last resort, use the slow shell script.  Don't cache a
2929    # value for MKDIR_P within a source directory, because that will
2930    # break other packages using the cache if that directory is
2931    # removed, or if the value is a relative name.
2932    MKDIR_P="$ac_install_sh -d"
2933  fi
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2936$as_echo "$MKDIR_P" >&6; }
2937
2938for ac_prog in gawk mawk nawk awk
2939do
2940  # Extract the first word of "$ac_prog", so it can be a program name with args.
2941set dummy $ac_prog; ac_word=$2
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943$as_echo_n "checking for $ac_word... " >&6; }
2944if ${ac_cv_prog_AWK+:} false; then :
2945  $as_echo_n "(cached) " >&6
2946else
2947  if test -n "$AWK"; then
2948  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957    ac_cv_prog_AWK="$ac_prog"
2958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962  done
2963IFS=$as_save_IFS
2964
2965fi
2966fi
2967AWK=$ac_cv_prog_AWK
2968if test -n "$AWK"; then
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2970$as_echo "$AWK" >&6; }
2971else
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974fi
2975
2976
2977  test -n "$AWK" && break
2978done
2979
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2981$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2982set x ${MAKE-make}
2983ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2984if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2985  $as_echo_n "(cached) " >&6
2986else
2987  cat >conftest.make <<\_ACEOF
2988SHELL = /bin/sh
2989all:
2990	@echo '@@@%%%=$(MAKE)=@@@%%%'
2991_ACEOF
2992# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2993case `${MAKE-make} -f conftest.make 2>/dev/null` in
2994  *@@@%%%=?*=@@@%%%*)
2995    eval ac_cv_prog_make_${ac_make}_set=yes;;
2996  *)
2997    eval ac_cv_prog_make_${ac_make}_set=no;;
2998esac
2999rm -f conftest.make
3000fi
3001if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003$as_echo "yes" >&6; }
3004  SET_MAKE=
3005else
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
3008  SET_MAKE="MAKE=${MAKE-make}"
3009fi
3010
3011rm -rf .tst 2>/dev/null
3012mkdir .tst 2>/dev/null
3013if test -d .tst; then
3014  am__leading_dot=.
3015else
3016  am__leading_dot=_
3017fi
3018rmdir .tst 2>/dev/null
3019
3020# Check whether --enable-silent-rules was given.
3021if test "${enable_silent_rules+set}" = set; then :
3022  enableval=$enable_silent_rules;
3023fi
3024
3025case $enable_silent_rules in # (((
3026  yes) AM_DEFAULT_VERBOSITY=0;;
3027   no) AM_DEFAULT_VERBOSITY=1;;
3028    *) AM_DEFAULT_VERBOSITY=1;;
3029esac
3030am_make=${MAKE-make}
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3032$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3033if ${am_cv_make_support_nested_variables+:} false; then :
3034  $as_echo_n "(cached) " >&6
3035else
3036  if $as_echo 'TRUE=$(BAR$(V))
3037BAR0=false
3038BAR1=true
3039V=1
3040am__doit:
3041	@$(TRUE)
3042.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3043  am_cv_make_support_nested_variables=yes
3044else
3045  am_cv_make_support_nested_variables=no
3046fi
3047fi
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3049$as_echo "$am_cv_make_support_nested_variables" >&6; }
3050if test $am_cv_make_support_nested_variables = yes; then
3051    AM_V='$(V)'
3052  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3053else
3054  AM_V=$AM_DEFAULT_VERBOSITY
3055  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3056fi
3057AM_BACKSLASH='\'
3058
3059if test "`cd $srcdir && pwd`" != "`pwd`"; then
3060  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3061  # is not polluted with repeated "-I."
3062  am__isrc=' -I$(srcdir)'
3063  # test to see if srcdir already configured
3064  if test -f $srcdir/config.status; then
3065    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3066  fi
3067fi
3068
3069# test whether we have cygpath
3070if test -z "$CYGPATH_W"; then
3071  if (cygpath --version) >/dev/null 2>/dev/null; then
3072    CYGPATH_W='cygpath -w'
3073  else
3074    CYGPATH_W=echo
3075  fi
3076fi
3077
3078
3079# Define the identity of the package.
3080 PACKAGE='libxcb'
3081 VERSION='1.13.1'
3082
3083
3084cat >>confdefs.h <<_ACEOF
3085#define PACKAGE "$PACKAGE"
3086_ACEOF
3087
3088
3089cat >>confdefs.h <<_ACEOF
3090#define VERSION "$VERSION"
3091_ACEOF
3092
3093# Some tools Automake needs.
3094
3095ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3096
3097
3098AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3099
3100
3101AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3102
3103
3104AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3105
3106
3107MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3108
3109# For better backward compatibility.  To be removed once Automake 1.9.x
3110# dies out for good.  For more background, see:
3111# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3112# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3113mkdir_p='$(MKDIR_P)'
3114
3115# We need awk for the "check" target (and possibly the TAP driver).  The
3116# system "awk" is bad on some platforms.
3117# Always define AMTAR for backward compatibility.  Yes, it's still used
3118# in the wild :-(  We should find a proper way to deprecate it ...
3119AMTAR='$${TAR-tar}'
3120
3121
3122# We'll loop over all known methods to create a tar archive until one works.
3123_am_tools='gnutar  pax cpio none'
3124
3125am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3126
3127
3128
3129
3130
3131
3132# POSIX will say in a future version that running "rm -f" with no argument
3133# is OK; and we want to be able to make that assumption in our Makefile
3134# recipes.  So use an aggressive probe to check that the usage we want is
3135# actually supported "in the wild" to an acceptable degree.
3136# See automake bug#10828.
3137# To make any issue more visible, cause the running configure to be aborted
3138# by default if the 'rm' program in use doesn't match our expectations; the
3139# user can still override this though.
3140if rm -f && rm -fr && rm -rf; then : OK; else
3141  cat >&2 <<'END'
3142Oops!
3143
3144Your 'rm' program seems unable to run without file operands specified
3145on the command line, even when the '-f' option is present.  This is contrary
3146to the behaviour of most rm programs out there, and not conforming with
3147the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3148
3149Please tell bug-automake@gnu.org about your system, including the value
3150of your $PATH and any error possibly output before this message.  This
3151can help us improve future automake versions.
3152
3153END
3154  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3155    echo 'Configuration will proceed anyway, since you have set the' >&2
3156    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3157    echo >&2
3158  else
3159    cat >&2 <<'END'
3160Aborting the configuration process, to ensure you take notice of the issue.
3161
3162You can download and install GNU coreutils to get an 'rm' implementation
3163that behaves properly: <https://www.gnu.org/software/coreutils/>.
3164
3165If you want to complete the configuration process using your problematic
3166'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3167to "yes", and re-run configure.
3168
3169END
3170    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3171  fi
3172fi
3173
3174
3175
3176
3177
3178
3179
3180        if test -n "$PYTHON"; then
3181      # If the user set $PYTHON, use it and don't search something else.
3182      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
3183$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
3184      prog="import sys
3185# split strings by '.' and convert to numeric.  Append some zeros
3186# because we need at least 4 digits for the hex conversion.
3187# map returns an iterator in Python 3.0 and a list in 2.x
3188minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3189minverhex = 0
3190# xrange is not present in Python 3.0 and range returns an iterator
3191for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3192sys.exit(sys.hexversion < minverhex)"
3193  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3194   ($PYTHON -c "$prog") >&5 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; then :
3198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199$as_echo "yes" >&6; }
3200else
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
3204fi
3205      am_display_PYTHON=$PYTHON
3206    else
3207      # Otherwise, try each interpreter until we find one that satisfies
3208      # VERSION.
3209      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
3210$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
3211if ${am_cv_pathless_PYTHON+:} false; then :
3212  $as_echo_n "(cached) " >&6
3213else
3214
3215	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 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
3216	  test "$am_cv_pathless_PYTHON" = none && break
3217	  prog="import sys
3218# split strings by '.' and convert to numeric.  Append some zeros
3219# because we need at least 4 digits for the hex conversion.
3220# map returns an iterator in Python 3.0 and a list in 2.x
3221minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3222minverhex = 0
3223# xrange is not present in Python 3.0 and range returns an iterator
3224for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3225sys.exit(sys.hexversion < minverhex)"
3226  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3227   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }; then :
3231  break
3232fi
3233	done
3234fi
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
3236$as_echo "$am_cv_pathless_PYTHON" >&6; }
3237      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3238      if test "$am_cv_pathless_PYTHON" = none; then
3239	PYTHON=:
3240      else
3241        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3242set dummy $am_cv_pathless_PYTHON; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if ${ac_cv_path_PYTHON+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  case $PYTHON in
3249  [\\/]* | ?:[\\/]*)
3250  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3251  ;;
3252  *)
3253  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256  IFS=$as_save_IFS
3257  test -z "$as_dir" && as_dir=.
3258    for ac_exec_ext in '' $ac_executable_extensions; do
3259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262    break 2
3263  fi
3264done
3265  done
3266IFS=$as_save_IFS
3267
3268  ;;
3269esac
3270fi
3271PYTHON=$ac_cv_path_PYTHON
3272if test -n "$PYTHON"; then
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3274$as_echo "$PYTHON" >&6; }
3275else
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277$as_echo "no" >&6; }
3278fi
3279
3280
3281      fi
3282      am_display_PYTHON=$am_cv_pathless_PYTHON
3283    fi
3284
3285
3286  if test "$PYTHON" = :; then
3287      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
3288  else
3289
3290
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
3292$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
3293if ${am_cv_python_version+:} false; then :
3294  $as_echo_n "(cached) " >&6
3295else
3296  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
3299$as_echo "$am_cv_python_version" >&6; }
3300  PYTHON_VERSION=$am_cv_python_version
3301
3302
3303
3304  PYTHON_PREFIX='${prefix}'
3305
3306  PYTHON_EXEC_PREFIX='${exec_prefix}'
3307
3308
3309
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
3311$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
3312if ${am_cv_python_platform+:} false; then :
3313  $as_echo_n "(cached) " >&6
3314else
3315  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
3316fi
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
3318$as_echo "$am_cv_python_platform" >&6; }
3319  PYTHON_PLATFORM=$am_cv_python_platform
3320
3321
3322  # Just factor out some code duplication.
3323  am_python_setup_sysconfig="\
3324import sys
3325# Prefer sysconfig over distutils.sysconfig, for better compatibility
3326# with python 3.x.  See automake bug#10227.
3327try:
3328    import sysconfig
3329except ImportError:
3330    can_use_sysconfig = 0
3331else:
3332    can_use_sysconfig = 1
3333# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
3334# <https://github.com/pypa/virtualenv/issues/118>
3335try:
3336    from platform import python_implementation
3337    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
3338        can_use_sysconfig = 0
3339except ImportError:
3340    pass"
3341
3342
3343            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
3344$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
3345if ${am_cv_python_pythondir+:} false; then :
3346  $as_echo_n "(cached) " >&6
3347else
3348  if test "x$prefix" = xNONE
3349     then
3350       am_py_prefix=$ac_default_prefix
3351     else
3352       am_py_prefix=$prefix
3353     fi
3354     am_cv_python_pythondir=`$PYTHON -c "
3355$am_python_setup_sysconfig
3356if can_use_sysconfig:
3357    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
3358else:
3359    from distutils import sysconfig
3360    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
3361sys.stdout.write(sitedir)"`
3362     case $am_cv_python_pythondir in
3363     $am_py_prefix*)
3364       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3365       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
3366       ;;
3367     *)
3368       case $am_py_prefix in
3369         /usr|/System*) ;;
3370         *)
3371	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
3372	  ;;
3373       esac
3374       ;;
3375     esac
3376
3377fi
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
3379$as_echo "$am_cv_python_pythondir" >&6; }
3380  pythondir=$am_cv_python_pythondir
3381
3382
3383
3384  pkgpythondir=\${pythondir}/$PACKAGE
3385
3386
3387        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
3388$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
3389if ${am_cv_python_pyexecdir+:} false; then :
3390  $as_echo_n "(cached) " >&6
3391else
3392  if test "x$exec_prefix" = xNONE
3393     then
3394       am_py_exec_prefix=$am_py_prefix
3395     else
3396       am_py_exec_prefix=$exec_prefix
3397     fi
3398     am_cv_python_pyexecdir=`$PYTHON -c "
3399$am_python_setup_sysconfig
3400if can_use_sysconfig:
3401    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
3402else:
3403    from distutils import sysconfig
3404    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
3405sys.stdout.write(sitedir)"`
3406     case $am_cv_python_pyexecdir in
3407     $am_py_exec_prefix*)
3408       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3409       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
3410       ;;
3411     *)
3412       case $am_py_exec_prefix in
3413         /usr|/System*) ;;
3414         *)
3415	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
3416	   ;;
3417       esac
3418       ;;
3419     esac
3420
3421fi
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
3423$as_echo "$am_cv_python_pyexecdir" >&6; }
3424  pyexecdir=$am_cv_python_pyexecdir
3425
3426
3427
3428  pkgpyexecdir=\${pyexecdir}/$PACKAGE
3429
3430
3431
3432  fi
3433
3434
3435
3436# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3437# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3438# to avoid autoconf errors.
3439DEPDIR="${am__leading_dot}deps"
3440
3441ac_config_commands="$ac_config_commands depfiles"
3442
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3444$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3445cat > confinc.mk << 'END'
3446am__doit:
3447	@echo this is the am__doit target >confinc.out
3448.PHONY: am__doit
3449END
3450am__include="#"
3451am__quote=
3452# BSD make does it like this.
3453echo '.include "confinc.mk" # ignored' > confmf.BSD
3454# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3455echo 'include confinc.mk # ignored' > confmf.GNU
3456_am_result=no
3457for s in GNU BSD; do
3458  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3459   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }
3463  case $?:`cat confinc.out 2>/dev/null` in #(
3464  '0:this is the am__doit target') :
3465    case $s in #(
3466  BSD) :
3467    am__include='.include' am__quote='"' ;; #(
3468  *) :
3469    am__include='include' am__quote='' ;;
3470esac ;; #(
3471  *) :
3472     ;;
3473esac
3474  if test "$am__include" != "#"; then
3475    _am_result="yes ($s style)"
3476    break
3477  fi
3478done
3479rm -f confinc.* confmf.*
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3481$as_echo "${_am_result}" >&6; }
3482
3483# Check whether --enable-dependency-tracking was given.
3484if test "${enable_dependency_tracking+set}" = set; then :
3485  enableval=$enable_dependency_tracking;
3486fi
3487
3488if test "x$enable_dependency_tracking" != xno; then
3489  am_depcomp="$ac_aux_dir/depcomp"
3490  AMDEPBACKSLASH='\'
3491  am__nodep='_no'
3492fi
3493 if test "x$enable_dependency_tracking" != xno; then
3494  AMDEP_TRUE=
3495  AMDEP_FALSE='#'
3496else
3497  AMDEP_TRUE='#'
3498  AMDEP_FALSE=
3499fi
3500
3501
3502ac_ext=c
3503ac_cpp='$CPP $CPPFLAGS'
3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507if test -n "$ac_tool_prefix"; then
3508  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3509set dummy ${ac_tool_prefix}gcc; ac_word=$2
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511$as_echo_n "checking for $ac_word... " >&6; }
3512if ${ac_cv_prog_CC+:} false; then :
3513  $as_echo_n "(cached) " >&6
3514else
3515  if test -n "$CC"; then
3516  ac_cv_prog_CC="$CC" # Let the user override the test.
3517else
3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH
3520do
3521  IFS=$as_save_IFS
3522  test -z "$as_dir" && as_dir=.
3523    for ac_exec_ext in '' $ac_executable_extensions; do
3524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527    break 2
3528  fi
3529done
3530  done
3531IFS=$as_save_IFS
3532
3533fi
3534fi
3535CC=$ac_cv_prog_CC
3536if test -n "$CC"; then
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538$as_echo "$CC" >&6; }
3539else
3540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542fi
3543
3544
3545fi
3546if test -z "$ac_cv_prog_CC"; then
3547  ac_ct_CC=$CC
3548  # Extract the first word of "gcc", so it can be a program name with args.
3549set dummy gcc; ac_word=$2
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551$as_echo_n "checking for $ac_word... " >&6; }
3552if ${ac_cv_prog_ac_ct_CC+:} false; then :
3553  $as_echo_n "(cached) " >&6
3554else
3555  if test -n "$ac_ct_CC"; then
3556  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3557else
3558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559for as_dir in $PATH
3560do
3561  IFS=$as_save_IFS
3562  test -z "$as_dir" && as_dir=.
3563    for ac_exec_ext in '' $ac_executable_extensions; do
3564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565    ac_cv_prog_ac_ct_CC="gcc"
3566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567    break 2
3568  fi
3569done
3570  done
3571IFS=$as_save_IFS
3572
3573fi
3574fi
3575ac_ct_CC=$ac_cv_prog_ac_ct_CC
3576if test -n "$ac_ct_CC"; then
3577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3578$as_echo "$ac_ct_CC" >&6; }
3579else
3580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581$as_echo "no" >&6; }
3582fi
3583
3584  if test "x$ac_ct_CC" = x; then
3585    CC=""
3586  else
3587    case $cross_compiling:$ac_tool_warned in
3588yes:)
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591ac_tool_warned=yes ;;
3592esac
3593    CC=$ac_ct_CC
3594  fi
3595else
3596  CC="$ac_cv_prog_CC"
3597fi
3598
3599if test -z "$CC"; then
3600          if test -n "$ac_tool_prefix"; then
3601    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3602set dummy ${ac_tool_prefix}cc; ac_word=$2
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604$as_echo_n "checking for $ac_word... " >&6; }
3605if ${ac_cv_prog_CC+:} false; then :
3606  $as_echo_n "(cached) " >&6
3607else
3608  if test -n "$CC"; then
3609  ac_cv_prog_CC="$CC" # Let the user override the test.
3610else
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614  IFS=$as_save_IFS
3615  test -z "$as_dir" && as_dir=.
3616    for ac_exec_ext in '' $ac_executable_extensions; do
3617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618    ac_cv_prog_CC="${ac_tool_prefix}cc"
3619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620    break 2
3621  fi
3622done
3623  done
3624IFS=$as_save_IFS
3625
3626fi
3627fi
3628CC=$ac_cv_prog_CC
3629if test -n "$CC"; then
3630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631$as_echo "$CC" >&6; }
3632else
3633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634$as_echo "no" >&6; }
3635fi
3636
3637
3638  fi
3639fi
3640if test -z "$CC"; then
3641  # Extract the first word of "cc", so it can be a program name with args.
3642set dummy cc; ac_word=$2
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644$as_echo_n "checking for $ac_word... " >&6; }
3645if ${ac_cv_prog_CC+:} false; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  if test -n "$CC"; then
3649  ac_cv_prog_CC="$CC" # Let the user override the test.
3650else
3651  ac_prog_rejected=no
3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653for as_dir in $PATH
3654do
3655  IFS=$as_save_IFS
3656  test -z "$as_dir" && as_dir=.
3657    for ac_exec_ext in '' $ac_executable_extensions; do
3658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3660       ac_prog_rejected=yes
3661       continue
3662     fi
3663    ac_cv_prog_CC="cc"
3664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665    break 2
3666  fi
3667done
3668  done
3669IFS=$as_save_IFS
3670
3671if test $ac_prog_rejected = yes; then
3672  # We found a bogon in the path, so make sure we never use it.
3673  set dummy $ac_cv_prog_CC
3674  shift
3675  if test $# != 0; then
3676    # We chose a different compiler from the bogus one.
3677    # However, it has the same basename, so the bogon will be chosen
3678    # first if we set CC to just the basename; use the full file name.
3679    shift
3680    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3681  fi
3682fi
3683fi
3684fi
3685CC=$ac_cv_prog_CC
3686if test -n "$CC"; then
3687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688$as_echo "$CC" >&6; }
3689else
3690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691$as_echo "no" >&6; }
3692fi
3693
3694
3695fi
3696if test -z "$CC"; then
3697  if test -n "$ac_tool_prefix"; then
3698  for ac_prog in cl.exe
3699  do
3700    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703$as_echo_n "checking for $ac_word... " >&6; }
3704if ${ac_cv_prog_CC+:} false; then :
3705  $as_echo_n "(cached) " >&6
3706else
3707  if test -n "$CC"; then
3708  ac_cv_prog_CC="$CC" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713  IFS=$as_save_IFS
3714  test -z "$as_dir" && as_dir=.
3715    for ac_exec_ext in '' $ac_executable_extensions; do
3716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719    break 2
3720  fi
3721done
3722  done
3723IFS=$as_save_IFS
3724
3725fi
3726fi
3727CC=$ac_cv_prog_CC
3728if test -n "$CC"; then
3729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730$as_echo "$CC" >&6; }
3731else
3732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733$as_echo "no" >&6; }
3734fi
3735
3736
3737    test -n "$CC" && break
3738  done
3739fi
3740if test -z "$CC"; then
3741  ac_ct_CC=$CC
3742  for ac_prog in cl.exe
3743do
3744  # Extract the first word of "$ac_prog", so it can be a program name with args.
3745set dummy $ac_prog; ac_word=$2
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747$as_echo_n "checking for $ac_word... " >&6; }
3748if ${ac_cv_prog_ac_ct_CC+:} false; then :
3749  $as_echo_n "(cached) " >&6
3750else
3751  if test -n "$ac_ct_CC"; then
3752  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753else
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757  IFS=$as_save_IFS
3758  test -z "$as_dir" && as_dir=.
3759    for ac_exec_ext in '' $ac_executable_extensions; do
3760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761    ac_cv_prog_ac_ct_CC="$ac_prog"
3762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763    break 2
3764  fi
3765done
3766  done
3767IFS=$as_save_IFS
3768
3769fi
3770fi
3771ac_ct_CC=$ac_cv_prog_ac_ct_CC
3772if test -n "$ac_ct_CC"; then
3773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3774$as_echo "$ac_ct_CC" >&6; }
3775else
3776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777$as_echo "no" >&6; }
3778fi
3779
3780
3781  test -n "$ac_ct_CC" && break
3782done
3783
3784  if test "x$ac_ct_CC" = x; then
3785    CC=""
3786  else
3787    case $cross_compiling:$ac_tool_warned in
3788yes:)
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791ac_tool_warned=yes ;;
3792esac
3793    CC=$ac_ct_CC
3794  fi
3795fi
3796
3797fi
3798
3799
3800test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802as_fn_error $? "no acceptable C compiler found in \$PATH
3803See \`config.log' for more details" "$LINENO" 5; }
3804
3805# Provide some information about the compiler.
3806$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3807set X $ac_compile
3808ac_compiler=$2
3809for ac_option in --version -v -V -qversion; do
3810  { { ac_try="$ac_compiler $ac_option >&5"
3811case "(($ac_try" in
3812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813  *) ac_try_echo=$ac_try;;
3814esac
3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816$as_echo "$ac_try_echo"; } >&5
3817  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818  ac_status=$?
3819  if test -s conftest.err; then
3820    sed '10a\
3821... rest of stderr output deleted ...
3822         10q' conftest.err >conftest.er1
3823    cat conftest.er1 >&5
3824  fi
3825  rm -f conftest.er1 conftest.err
3826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827  test $ac_status = 0; }
3828done
3829
3830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831/* end confdefs.h.  */
3832
3833int
3834main ()
3835{
3836
3837  ;
3838  return 0;
3839}
3840_ACEOF
3841ac_clean_files_save=$ac_clean_files
3842ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3843# Try to create an executable without -o first, disregard a.out.
3844# It will help us diagnose broken compilers, and finding out an intuition
3845# of exeext.
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3847$as_echo_n "checking whether the C compiler works... " >&6; }
3848ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3849
3850# The possible output files:
3851ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3852
3853ac_rmfiles=
3854for ac_file in $ac_files
3855do
3856  case $ac_file in
3857    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3859  esac
3860done
3861rm -f $ac_rmfiles
3862
3863if { { ac_try="$ac_link_default"
3864case "(($ac_try" in
3865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866  *) ac_try_echo=$ac_try;;
3867esac
3868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869$as_echo "$ac_try_echo"; } >&5
3870  (eval "$ac_link_default") 2>&5
3871  ac_status=$?
3872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873  test $ac_status = 0; }; then :
3874  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3875# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3876# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3877# so that the user can short-circuit this test for compilers unknown to
3878# Autoconf.
3879for ac_file in $ac_files ''
3880do
3881  test -f "$ac_file" || continue
3882  case $ac_file in
3883    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3884	;;
3885    [ab].out )
3886	# We found the default executable, but exeext='' is most
3887	# certainly right.
3888	break;;
3889    *.* )
3890	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3891	then :; else
3892	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3893	fi
3894	# We set ac_cv_exeext here because the later test for it is not
3895	# safe: cross compilers may not add the suffix if given an `-o'
3896	# argument, so we may need to know it at that point already.
3897	# Even if this section looks crufty: it has the advantage of
3898	# actually working.
3899	break;;
3900    * )
3901	break;;
3902  esac
3903done
3904test "$ac_cv_exeext" = no && ac_cv_exeext=
3905
3906else
3907  ac_file=''
3908fi
3909if test -z "$ac_file"; then :
3910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911$as_echo "no" >&6; }
3912$as_echo "$as_me: failed program was:" >&5
3913sed 's/^/| /' conftest.$ac_ext >&5
3914
3915{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917as_fn_error 77 "C compiler cannot create executables
3918See \`config.log' for more details" "$LINENO" 5; }
3919else
3920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3921$as_echo "yes" >&6; }
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3924$as_echo_n "checking for C compiler default output file name... " >&6; }
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3926$as_echo "$ac_file" >&6; }
3927ac_exeext=$ac_cv_exeext
3928
3929rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3930ac_clean_files=$ac_clean_files_save
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3932$as_echo_n "checking for suffix of executables... " >&6; }
3933if { { ac_try="$ac_link"
3934case "(($ac_try" in
3935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936  *) ac_try_echo=$ac_try;;
3937esac
3938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939$as_echo "$ac_try_echo"; } >&5
3940  (eval "$ac_link") 2>&5
3941  ac_status=$?
3942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943  test $ac_status = 0; }; then :
3944  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3945# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3946# work properly (i.e., refer to `conftest.exe'), while it won't with
3947# `rm'.
3948for ac_file in conftest.exe conftest conftest.*; do
3949  test -f "$ac_file" || continue
3950  case $ac_file in
3951    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3952    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3953	  break;;
3954    * ) break;;
3955  esac
3956done
3957else
3958  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3961See \`config.log' for more details" "$LINENO" 5; }
3962fi
3963rm -f conftest conftest$ac_cv_exeext
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3965$as_echo "$ac_cv_exeext" >&6; }
3966
3967rm -f conftest.$ac_ext
3968EXEEXT=$ac_cv_exeext
3969ac_exeext=$EXEEXT
3970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h.  */
3972#include <stdio.h>
3973int
3974main ()
3975{
3976FILE *f = fopen ("conftest.out", "w");
3977 return ferror (f) || fclose (f) != 0;
3978
3979  ;
3980  return 0;
3981}
3982_ACEOF
3983ac_clean_files="$ac_clean_files conftest.out"
3984# Check that the compiler produces executables we can run.  If not, either
3985# the compiler is broken, or we cross compile.
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3987$as_echo_n "checking whether we are cross compiling... " >&6; }
3988if test "$cross_compiling" != yes; then
3989  { { ac_try="$ac_link"
3990case "(($ac_try" in
3991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992  *) ac_try_echo=$ac_try;;
3993esac
3994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995$as_echo "$ac_try_echo"; } >&5
3996  (eval "$ac_link") 2>&5
3997  ac_status=$?
3998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999  test $ac_status = 0; }
4000  if { ac_try='./conftest$ac_cv_exeext'
4001  { { case "(($ac_try" in
4002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003  *) ac_try_echo=$ac_try;;
4004esac
4005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006$as_echo "$ac_try_echo"; } >&5
4007  (eval "$ac_try") 2>&5
4008  ac_status=$?
4009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010  test $ac_status = 0; }; }; then
4011    cross_compiling=no
4012  else
4013    if test "$cross_compiling" = maybe; then
4014	cross_compiling=yes
4015    else
4016	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018as_fn_error $? "cannot run C compiled programs.
4019If you meant to cross compile, use \`--host'.
4020See \`config.log' for more details" "$LINENO" 5; }
4021    fi
4022  fi
4023fi
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4025$as_echo "$cross_compiling" >&6; }
4026
4027rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4028ac_clean_files=$ac_clean_files_save
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4030$as_echo_n "checking for suffix of object files... " >&6; }
4031if ${ac_cv_objext+:} false; then :
4032  $as_echo_n "(cached) " >&6
4033else
4034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036
4037int
4038main ()
4039{
4040
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045rm -f conftest.o conftest.obj
4046if { { ac_try="$ac_compile"
4047case "(($ac_try" in
4048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049  *) ac_try_echo=$ac_try;;
4050esac
4051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052$as_echo "$ac_try_echo"; } >&5
4053  (eval "$ac_compile") 2>&5
4054  ac_status=$?
4055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056  test $ac_status = 0; }; then :
4057  for ac_file in conftest.o conftest.obj conftest.*; do
4058  test -f "$ac_file" || continue;
4059  case $ac_file in
4060    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4061    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4062       break;;
4063  esac
4064done
4065else
4066  $as_echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
4068
4069{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071as_fn_error $? "cannot compute suffix of object files: cannot compile
4072See \`config.log' for more details" "$LINENO" 5; }
4073fi
4074rm -f conftest.$ac_cv_objext conftest.$ac_ext
4075fi
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4077$as_echo "$ac_cv_objext" >&6; }
4078OBJEXT=$ac_cv_objext
4079ac_objext=$OBJEXT
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4081$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4082if ${ac_cv_c_compiler_gnu+:} false; then :
4083  $as_echo_n "(cached) " >&6
4084else
4085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h.  */
4087
4088int
4089main ()
4090{
4091#ifndef __GNUC__
4092       choke me
4093#endif
4094
4095  ;
4096  return 0;
4097}
4098_ACEOF
4099if ac_fn_c_try_compile "$LINENO"; then :
4100  ac_compiler_gnu=yes
4101else
4102  ac_compiler_gnu=no
4103fi
4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105ac_cv_c_compiler_gnu=$ac_compiler_gnu
4106
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4110if test $ac_compiler_gnu = yes; then
4111  GCC=yes
4112else
4113  GCC=
4114fi
4115ac_test_CFLAGS=${CFLAGS+set}
4116ac_save_CFLAGS=$CFLAGS
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4118$as_echo_n "checking whether $CC accepts -g... " >&6; }
4119if ${ac_cv_prog_cc_g+:} false; then :
4120  $as_echo_n "(cached) " >&6
4121else
4122  ac_save_c_werror_flag=$ac_c_werror_flag
4123   ac_c_werror_flag=yes
4124   ac_cv_prog_cc_g=no
4125   CFLAGS="-g"
4126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h.  */
4128
4129int
4130main ()
4131{
4132
4133  ;
4134  return 0;
4135}
4136_ACEOF
4137if ac_fn_c_try_compile "$LINENO"; then :
4138  ac_cv_prog_cc_g=yes
4139else
4140  CFLAGS=""
4141      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142/* end confdefs.h.  */
4143
4144int
4145main ()
4146{
4147
4148  ;
4149  return 0;
4150}
4151_ACEOF
4152if ac_fn_c_try_compile "$LINENO"; then :
4153
4154else
4155  ac_c_werror_flag=$ac_save_c_werror_flag
4156	 CFLAGS="-g"
4157	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159
4160int
4161main ()
4162{
4163
4164  ;
4165  return 0;
4166}
4167_ACEOF
4168if ac_fn_c_try_compile "$LINENO"; then :
4169  ac_cv_prog_cc_g=yes
4170fi
4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172fi
4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174fi
4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176   ac_c_werror_flag=$ac_save_c_werror_flag
4177fi
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179$as_echo "$ac_cv_prog_cc_g" >&6; }
4180if test "$ac_test_CFLAGS" = set; then
4181  CFLAGS=$ac_save_CFLAGS
4182elif test $ac_cv_prog_cc_g = yes; then
4183  if test "$GCC" = yes; then
4184    CFLAGS="-g -O2"
4185  else
4186    CFLAGS="-g"
4187  fi
4188else
4189  if test "$GCC" = yes; then
4190    CFLAGS="-O2"
4191  else
4192    CFLAGS=
4193  fi
4194fi
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4196$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4197if ${ac_cv_prog_cc_c89+:} false; then :
4198  $as_echo_n "(cached) " >&6
4199else
4200  ac_cv_prog_cc_c89=no
4201ac_save_CC=$CC
4202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h.  */
4204#include <stdarg.h>
4205#include <stdio.h>
4206struct stat;
4207/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4208struct buf { int x; };
4209FILE * (*rcsopen) (struct buf *, struct stat *, int);
4210static char *e (p, i)
4211     char **p;
4212     int i;
4213{
4214  return p[i];
4215}
4216static char *f (char * (*g) (char **, int), char **p, ...)
4217{
4218  char *s;
4219  va_list v;
4220  va_start (v,p);
4221  s = g (p, va_arg (v,int));
4222  va_end (v);
4223  return s;
4224}
4225
4226/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4227   function prototypes and stuff, but not '\xHH' hex character constants.
4228   These don't provoke an error unfortunately, instead are silently treated
4229   as 'x'.  The following induces an error, until -std is added to get
4230   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4231   array size at least.  It's necessary to write '\x00'==0 to get something
4232   that's true only with -std.  */
4233int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4234
4235/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4236   inside strings and character constants.  */
4237#define FOO(x) 'x'
4238int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4239
4240int test (int i, double x);
4241struct s1 {int (*f) (int a);};
4242struct s2 {int (*f) (double a);};
4243int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4244int argc;
4245char **argv;
4246int
4247main ()
4248{
4249return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4250  ;
4251  return 0;
4252}
4253_ACEOF
4254for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4255	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4256do
4257  CC="$ac_save_CC $ac_arg"
4258  if ac_fn_c_try_compile "$LINENO"; then :
4259  ac_cv_prog_cc_c89=$ac_arg
4260fi
4261rm -f core conftest.err conftest.$ac_objext
4262  test "x$ac_cv_prog_cc_c89" != "xno" && break
4263done
4264rm -f conftest.$ac_ext
4265CC=$ac_save_CC
4266
4267fi
4268# AC_CACHE_VAL
4269case "x$ac_cv_prog_cc_c89" in
4270  x)
4271    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272$as_echo "none needed" >&6; } ;;
4273  xno)
4274    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4275$as_echo "unsupported" >&6; } ;;
4276  *)
4277    CC="$CC $ac_cv_prog_cc_c89"
4278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4279$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4280esac
4281if test "x$ac_cv_prog_cc_c89" != xno; then :
4282
4283fi
4284
4285ac_ext=c
4286ac_cpp='$CPP $CPPFLAGS'
4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290
4291ac_ext=c
4292ac_cpp='$CPP $CPPFLAGS'
4293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4297$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4298if ${am_cv_prog_cc_c_o+:} false; then :
4299  $as_echo_n "(cached) " >&6
4300else
4301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h.  */
4303
4304int
4305main ()
4306{
4307
4308  ;
4309  return 0;
4310}
4311_ACEOF
4312  # Make sure it works both with $CC and with simple cc.
4313  # Following AC_PROG_CC_C_O, we do the test twice because some
4314  # compilers refuse to overwrite an existing .o file with -o,
4315  # though they will create one.
4316  am_cv_prog_cc_c_o=yes
4317  for am_i in 1 2; do
4318    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4319   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); } \
4323         && test -f conftest2.$ac_objext; then
4324      : OK
4325    else
4326      am_cv_prog_cc_c_o=no
4327      break
4328    fi
4329  done
4330  rm -f core conftest*
4331  unset am_i
4332fi
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4334$as_echo "$am_cv_prog_cc_c_o" >&6; }
4335if test "$am_cv_prog_cc_c_o" != yes; then
4336   # Losing compiler, so override with the script.
4337   # FIXME: It is wrong to rewrite CC.
4338   # But if we don't then we get into trouble of one sort or another.
4339   # A longer-term fix would be to have automake use am__CC in this case,
4340   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4341   CC="$am_aux_dir/compile $CC"
4342fi
4343ac_ext=c
4344ac_cpp='$CPP $CPPFLAGS'
4345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349
4350depcc="$CC"   am_compiler_list=
4351
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4353$as_echo_n "checking dependency style of $depcc... " >&6; }
4354if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4355  $as_echo_n "(cached) " >&6
4356else
4357  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4358  # We make a subdir and do the tests there.  Otherwise we can end up
4359  # making bogus files that we don't know about and never remove.  For
4360  # instance it was reported that on HP-UX the gcc test will end up
4361  # making a dummy file named 'D' -- because '-MD' means "put the output
4362  # in D".
4363  rm -rf conftest.dir
4364  mkdir conftest.dir
4365  # Copy depcomp to subdir because otherwise we won't find it if we're
4366  # using a relative directory.
4367  cp "$am_depcomp" conftest.dir
4368  cd conftest.dir
4369  # We will build objects and dependencies in a subdirectory because
4370  # it helps to detect inapplicable dependency modes.  For instance
4371  # both Tru64's cc and ICC support -MD to output dependencies as a
4372  # side effect of compilation, but ICC will put the dependencies in
4373  # the current directory while Tru64 will put them in the object
4374  # directory.
4375  mkdir sub
4376
4377  am_cv_CC_dependencies_compiler_type=none
4378  if test "$am_compiler_list" = ""; then
4379     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4380  fi
4381  am__universal=false
4382  case " $depcc " in #(
4383     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4384     esac
4385
4386  for depmode in $am_compiler_list; do
4387    # Setup a source with many dependencies, because some compilers
4388    # like to wrap large dependency lists on column 80 (with \), and
4389    # we should not choose a depcomp mode which is confused by this.
4390    #
4391    # We need to recreate these files for each test, as the compiler may
4392    # overwrite some of them when testing with obscure command lines.
4393    # This happens at least with the AIX C compiler.
4394    : > sub/conftest.c
4395    for i in 1 2 3 4 5 6; do
4396      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4397      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4398      # Solaris 10 /bin/sh.
4399      echo '/* dummy */' > sub/conftst$i.h
4400    done
4401    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4402
4403    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4404    # mode.  It turns out that the SunPro C++ compiler does not properly
4405    # handle '-M -o', and we need to detect this.  Also, some Intel
4406    # versions had trouble with output in subdirs.
4407    am__obj=sub/conftest.${OBJEXT-o}
4408    am__minus_obj="-o $am__obj"
4409    case $depmode in
4410    gcc)
4411      # This depmode causes a compiler race in universal mode.
4412      test "$am__universal" = false || continue
4413      ;;
4414    nosideeffect)
4415      # After this tag, mechanisms are not by side-effect, so they'll
4416      # only be used when explicitly requested.
4417      if test "x$enable_dependency_tracking" = xyes; then
4418	continue
4419      else
4420	break
4421      fi
4422      ;;
4423    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4424      # This compiler won't grok '-c -o', but also, the minuso test has
4425      # not run yet.  These depmodes are late enough in the game, and
4426      # so weak that their functioning should not be impacted.
4427      am__obj=conftest.${OBJEXT-o}
4428      am__minus_obj=
4429      ;;
4430    none) break ;;
4431    esac
4432    if depmode=$depmode \
4433       source=sub/conftest.c object=$am__obj \
4434       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4435       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4436         >/dev/null 2>conftest.err &&
4437       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4438       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4439       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4440       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4441      # icc doesn't choke on unknown options, it will just issue warnings
4442      # or remarks (even with -Werror).  So we grep stderr for any message
4443      # that says an option was ignored or not supported.
4444      # When given -MP, icc 7.0 and 7.1 complain thusly:
4445      #   icc: Command line warning: ignoring option '-M'; no argument required
4446      # The diagnosis changed in icc 8.0:
4447      #   icc: Command line remark: option '-MP' not supported
4448      if (grep 'ignoring option' conftest.err ||
4449          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4450        am_cv_CC_dependencies_compiler_type=$depmode
4451        break
4452      fi
4453    fi
4454  done
4455
4456  cd ..
4457  rm -rf conftest.dir
4458else
4459  am_cv_CC_dependencies_compiler_type=none
4460fi
4461
4462fi
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4464$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4465CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4466
4467 if
4468  test "x$enable_dependency_tracking" != xno \
4469  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4470  am__fastdepCC_TRUE=
4471  am__fastdepCC_FALSE='#'
4472else
4473  am__fastdepCC_TRUE='#'
4474  am__fastdepCC_FALSE=
4475fi
4476
4477
4478
4479ac_ext=c
4480ac_cpp='$CPP $CPPFLAGS'
4481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4485$as_echo_n "checking how to run the C preprocessor... " >&6; }
4486# On Suns, sometimes $CPP names a directory.
4487if test -n "$CPP" && test -d "$CPP"; then
4488  CPP=
4489fi
4490if test -z "$CPP"; then
4491  if ${ac_cv_prog_CPP+:} false; then :
4492  $as_echo_n "(cached) " >&6
4493else
4494      # Double quotes because CPP needs to be expanded
4495    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4496    do
4497      ac_preproc_ok=false
4498for ac_c_preproc_warn_flag in '' yes
4499do
4500  # Use a header file that comes with gcc, so configuring glibc
4501  # with a fresh cross-compiler works.
4502  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4503  # <limits.h> exists even on freestanding compilers.
4504  # On the NeXT, cc -E runs the code through the compiler's parser,
4505  # not just through cpp. "Syntax error" is here to catch this case.
4506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h.  */
4508#ifdef __STDC__
4509# include <limits.h>
4510#else
4511# include <assert.h>
4512#endif
4513		     Syntax error
4514_ACEOF
4515if ac_fn_c_try_cpp "$LINENO"; then :
4516
4517else
4518  # Broken: fails on valid input.
4519continue
4520fi
4521rm -f conftest.err conftest.i conftest.$ac_ext
4522
4523  # OK, works on sane cases.  Now check whether nonexistent headers
4524  # can be detected and how.
4525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526/* end confdefs.h.  */
4527#include <ac_nonexistent.h>
4528_ACEOF
4529if ac_fn_c_try_cpp "$LINENO"; then :
4530  # Broken: success on invalid input.
4531continue
4532else
4533  # Passes both tests.
4534ac_preproc_ok=:
4535break
4536fi
4537rm -f conftest.err conftest.i conftest.$ac_ext
4538
4539done
4540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4541rm -f conftest.i conftest.err conftest.$ac_ext
4542if $ac_preproc_ok; then :
4543  break
4544fi
4545
4546    done
4547    ac_cv_prog_CPP=$CPP
4548
4549fi
4550  CPP=$ac_cv_prog_CPP
4551else
4552  ac_cv_prog_CPP=$CPP
4553fi
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4555$as_echo "$CPP" >&6; }
4556ac_preproc_ok=false
4557for ac_c_preproc_warn_flag in '' yes
4558do
4559  # Use a header file that comes with gcc, so configuring glibc
4560  # with a fresh cross-compiler works.
4561  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4562  # <limits.h> exists even on freestanding compilers.
4563  # On the NeXT, cc -E runs the code through the compiler's parser,
4564  # not just through cpp. "Syntax error" is here to catch this case.
4565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566/* end confdefs.h.  */
4567#ifdef __STDC__
4568# include <limits.h>
4569#else
4570# include <assert.h>
4571#endif
4572		     Syntax error
4573_ACEOF
4574if ac_fn_c_try_cpp "$LINENO"; then :
4575
4576else
4577  # Broken: fails on valid input.
4578continue
4579fi
4580rm -f conftest.err conftest.i conftest.$ac_ext
4581
4582  # OK, works on sane cases.  Now check whether nonexistent headers
4583  # can be detected and how.
4584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h.  */
4586#include <ac_nonexistent.h>
4587_ACEOF
4588if ac_fn_c_try_cpp "$LINENO"; then :
4589  # Broken: success on invalid input.
4590continue
4591else
4592  # Passes both tests.
4593ac_preproc_ok=:
4594break
4595fi
4596rm -f conftest.err conftest.i conftest.$ac_ext
4597
4598done
4599# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4600rm -f conftest.i conftest.err conftest.$ac_ext
4601if $ac_preproc_ok; then :
4602
4603else
4604  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4606as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4607See \`config.log' for more details" "$LINENO" 5; }
4608fi
4609
4610ac_ext=c
4611ac_cpp='$CPP $CPPFLAGS'
4612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4618$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4619if ${ac_cv_path_GREP+:} false; then :
4620  $as_echo_n "(cached) " >&6
4621else
4622  if test -z "$GREP"; then
4623  ac_path_GREP_found=false
4624  # Loop through the user's path and test for each of PROGNAME-LIST
4625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627do
4628  IFS=$as_save_IFS
4629  test -z "$as_dir" && as_dir=.
4630    for ac_prog in grep ggrep; do
4631    for ac_exec_ext in '' $ac_executable_extensions; do
4632      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4633      as_fn_executable_p "$ac_path_GREP" || continue
4634# Check for GNU ac_path_GREP and select it if it is found.
4635  # Check for GNU $ac_path_GREP
4636case `"$ac_path_GREP" --version 2>&1` in
4637*GNU*)
4638  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4639*)
4640  ac_count=0
4641  $as_echo_n 0123456789 >"conftest.in"
4642  while :
4643  do
4644    cat "conftest.in" "conftest.in" >"conftest.tmp"
4645    mv "conftest.tmp" "conftest.in"
4646    cp "conftest.in" "conftest.nl"
4647    $as_echo 'GREP' >> "conftest.nl"
4648    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650    as_fn_arith $ac_count + 1 && ac_count=$as_val
4651    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4652      # Best one so far, save it but keep looking for a better one
4653      ac_cv_path_GREP="$ac_path_GREP"
4654      ac_path_GREP_max=$ac_count
4655    fi
4656    # 10*(2^10) chars as input seems more than enough
4657    test $ac_count -gt 10 && break
4658  done
4659  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660esac
4661
4662      $ac_path_GREP_found && break 3
4663    done
4664  done
4665  done
4666IFS=$as_save_IFS
4667  if test -z "$ac_cv_path_GREP"; then
4668    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669  fi
4670else
4671  ac_cv_path_GREP=$GREP
4672fi
4673
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4676$as_echo "$ac_cv_path_GREP" >&6; }
4677 GREP="$ac_cv_path_GREP"
4678
4679
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4681$as_echo_n "checking for egrep... " >&6; }
4682if ${ac_cv_path_EGREP+:} false; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4686   then ac_cv_path_EGREP="$GREP -E"
4687   else
4688     if test -z "$EGREP"; then
4689  ac_path_EGREP_found=false
4690  # Loop through the user's path and test for each of PROGNAME-LIST
4691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4693do
4694  IFS=$as_save_IFS
4695  test -z "$as_dir" && as_dir=.
4696    for ac_prog in egrep; do
4697    for ac_exec_ext in '' $ac_executable_extensions; do
4698      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4699      as_fn_executable_p "$ac_path_EGREP" || continue
4700# Check for GNU ac_path_EGREP and select it if it is found.
4701  # Check for GNU $ac_path_EGREP
4702case `"$ac_path_EGREP" --version 2>&1` in
4703*GNU*)
4704  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4705*)
4706  ac_count=0
4707  $as_echo_n 0123456789 >"conftest.in"
4708  while :
4709  do
4710    cat "conftest.in" "conftest.in" >"conftest.tmp"
4711    mv "conftest.tmp" "conftest.in"
4712    cp "conftest.in" "conftest.nl"
4713    $as_echo 'EGREP' >> "conftest.nl"
4714    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716    as_fn_arith $ac_count + 1 && ac_count=$as_val
4717    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4718      # Best one so far, save it but keep looking for a better one
4719      ac_cv_path_EGREP="$ac_path_EGREP"
4720      ac_path_EGREP_max=$ac_count
4721    fi
4722    # 10*(2^10) chars as input seems more than enough
4723    test $ac_count -gt 10 && break
4724  done
4725  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726esac
4727
4728      $ac_path_EGREP_found && break 3
4729    done
4730  done
4731  done
4732IFS=$as_save_IFS
4733  if test -z "$ac_cv_path_EGREP"; then
4734    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4735  fi
4736else
4737  ac_cv_path_EGREP=$EGREP
4738fi
4739
4740   fi
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4743$as_echo "$ac_cv_path_EGREP" >&6; }
4744 EGREP="$ac_cv_path_EGREP"
4745
4746
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4748$as_echo_n "checking for ANSI C header files... " >&6; }
4749if ${ac_cv_header_stdc+:} false; then :
4750  $as_echo_n "(cached) " >&6
4751else
4752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753/* end confdefs.h.  */
4754#include <stdlib.h>
4755#include <stdarg.h>
4756#include <string.h>
4757#include <float.h>
4758
4759int
4760main ()
4761{
4762
4763  ;
4764  return 0;
4765}
4766_ACEOF
4767if ac_fn_c_try_compile "$LINENO"; then :
4768  ac_cv_header_stdc=yes
4769else
4770  ac_cv_header_stdc=no
4771fi
4772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773
4774if test $ac_cv_header_stdc = yes; then
4775  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h.  */
4778#include <string.h>
4779
4780_ACEOF
4781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782  $EGREP "memchr" >/dev/null 2>&1; then :
4783
4784else
4785  ac_cv_header_stdc=no
4786fi
4787rm -f conftest*
4788
4789fi
4790
4791if test $ac_cv_header_stdc = yes; then
4792  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h.  */
4795#include <stdlib.h>
4796
4797_ACEOF
4798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799  $EGREP "free" >/dev/null 2>&1; then :
4800
4801else
4802  ac_cv_header_stdc=no
4803fi
4804rm -f conftest*
4805
4806fi
4807
4808if test $ac_cv_header_stdc = yes; then
4809  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4810  if test "$cross_compiling" = yes; then :
4811  :
4812else
4813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h.  */
4815#include <ctype.h>
4816#include <stdlib.h>
4817#if ((' ' & 0x0FF) == 0x020)
4818# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4819# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4820#else
4821# define ISLOWER(c) \
4822		   (('a' <= (c) && (c) <= 'i') \
4823		     || ('j' <= (c) && (c) <= 'r') \
4824		     || ('s' <= (c) && (c) <= 'z'))
4825# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4826#endif
4827
4828#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4829int
4830main ()
4831{
4832  int i;
4833  for (i = 0; i < 256; i++)
4834    if (XOR (islower (i), ISLOWER (i))
4835	|| toupper (i) != TOUPPER (i))
4836      return 2;
4837  return 0;
4838}
4839_ACEOF
4840if ac_fn_c_try_run "$LINENO"; then :
4841
4842else
4843  ac_cv_header_stdc=no
4844fi
4845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4846  conftest.$ac_objext conftest.beam conftest.$ac_ext
4847fi
4848
4849fi
4850fi
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4852$as_echo "$ac_cv_header_stdc" >&6; }
4853if test $ac_cv_header_stdc = yes; then
4854
4855$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4856
4857fi
4858
4859# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4860for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4861		  inttypes.h stdint.h unistd.h
4862do :
4863  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4864ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4865"
4866if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4867  cat >>confdefs.h <<_ACEOF
4868#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4869_ACEOF
4870
4871fi
4872
4873done
4874
4875
4876
4877  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4878if test "x$ac_cv_header_minix_config_h" = xyes; then :
4879  MINIX=yes
4880else
4881  MINIX=
4882fi
4883
4884
4885  if test "$MINIX" = yes; then
4886
4887$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4888
4889
4890$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4891
4892
4893$as_echo "#define _MINIX 1" >>confdefs.h
4894
4895  fi
4896
4897
4898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4899$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4900if ${ac_cv_safe_to_define___extensions__+:} false; then :
4901  $as_echo_n "(cached) " >&6
4902else
4903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904/* end confdefs.h.  */
4905
4906#         define __EXTENSIONS__ 1
4907          $ac_includes_default
4908int
4909main ()
4910{
4911
4912  ;
4913  return 0;
4914}
4915_ACEOF
4916if ac_fn_c_try_compile "$LINENO"; then :
4917  ac_cv_safe_to_define___extensions__=yes
4918else
4919  ac_cv_safe_to_define___extensions__=no
4920fi
4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922fi
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4924$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4925  test $ac_cv_safe_to_define___extensions__ = yes &&
4926    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4927
4928  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4929
4930  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4931
4932  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4933
4934  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4935
4936
4937
4938# Initialize libtool
4939
4940case `pwd` in
4941  *\ * | *\	*)
4942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4943$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4944esac
4945
4946
4947
4948macro_version='2.4.6'
4949macro_revision='2.4.6'
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963ltmain=$ac_aux_dir/ltmain.sh
4964
4965# Make sure we can run config.sub.
4966$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4967  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4968
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4970$as_echo_n "checking build system type... " >&6; }
4971if ${ac_cv_build+:} false; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  ac_build_alias=$build_alias
4975test "x$ac_build_alias" = x &&
4976  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4977test "x$ac_build_alias" = x &&
4978  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4979ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4980  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4981
4982fi
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4984$as_echo "$ac_cv_build" >&6; }
4985case $ac_cv_build in
4986*-*-*) ;;
4987*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4988esac
4989build=$ac_cv_build
4990ac_save_IFS=$IFS; IFS='-'
4991set x $ac_cv_build
4992shift
4993build_cpu=$1
4994build_vendor=$2
4995shift; shift
4996# Remember, the first character of IFS is used to create $*,
4997# except with old shells:
4998build_os=$*
4999IFS=$ac_save_IFS
5000case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5001
5002
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5004$as_echo_n "checking host system type... " >&6; }
5005if ${ac_cv_host+:} false; then :
5006  $as_echo_n "(cached) " >&6
5007else
5008  if test "x$host_alias" = x; then
5009  ac_cv_host=$ac_cv_build
5010else
5011  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5012    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5013fi
5014
5015fi
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5017$as_echo "$ac_cv_host" >&6; }
5018case $ac_cv_host in
5019*-*-*) ;;
5020*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5021esac
5022host=$ac_cv_host
5023ac_save_IFS=$IFS; IFS='-'
5024set x $ac_cv_host
5025shift
5026host_cpu=$1
5027host_vendor=$2
5028shift; shift
5029# Remember, the first character of IFS is used to create $*,
5030# except with old shells:
5031host_os=$*
5032IFS=$ac_save_IFS
5033case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5034
5035
5036# Backslashify metacharacters that are still active within
5037# double-quoted strings.
5038sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5039
5040# Same as above, but do not quote variable references.
5041double_quote_subst='s/\(["`\\]\)/\\\1/g'
5042
5043# Sed substitution to delay expansion of an escaped shell variable in a
5044# double_quote_subst'ed string.
5045delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5046
5047# Sed substitution to delay expansion of an escaped single quote.
5048delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5049
5050# Sed substitution to avoid accidental globbing in evaled expressions
5051no_glob_subst='s/\*/\\\*/g'
5052
5053ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5054ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5055ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5058$as_echo_n "checking how to print strings... " >&6; }
5059# Test print first, because it will be a builtin if present.
5060if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5061   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5062  ECHO='print -r --'
5063elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5064  ECHO='printf %s\n'
5065else
5066  # Use this function as a fallback that always works.
5067  func_fallback_echo ()
5068  {
5069    eval 'cat <<_LTECHO_EOF
5070$1
5071_LTECHO_EOF'
5072  }
5073  ECHO='func_fallback_echo'
5074fi
5075
5076# func_echo_all arg...
5077# Invoke $ECHO with all args, space-separated.
5078func_echo_all ()
5079{
5080    $ECHO ""
5081}
5082
5083case $ECHO in
5084  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5085$as_echo "printf" >&6; } ;;
5086  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5087$as_echo "print -r" >&6; } ;;
5088  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5089$as_echo "cat" >&6; } ;;
5090esac
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5106$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5107if ${ac_cv_path_SED+:} false; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5111     for ac_i in 1 2 3 4 5 6 7; do
5112       ac_script="$ac_script$as_nl$ac_script"
5113     done
5114     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5115     { ac_script=; unset ac_script;}
5116     if test -z "$SED"; then
5117  ac_path_SED_found=false
5118  # Loop through the user's path and test for each of PROGNAME-LIST
5119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122  IFS=$as_save_IFS
5123  test -z "$as_dir" && as_dir=.
5124    for ac_prog in sed gsed; do
5125    for ac_exec_ext in '' $ac_executable_extensions; do
5126      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5127      as_fn_executable_p "$ac_path_SED" || continue
5128# Check for GNU ac_path_SED and select it if it is found.
5129  # Check for GNU $ac_path_SED
5130case `"$ac_path_SED" --version 2>&1` in
5131*GNU*)
5132  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5133*)
5134  ac_count=0
5135  $as_echo_n 0123456789 >"conftest.in"
5136  while :
5137  do
5138    cat "conftest.in" "conftest.in" >"conftest.tmp"
5139    mv "conftest.tmp" "conftest.in"
5140    cp "conftest.in" "conftest.nl"
5141    $as_echo '' >> "conftest.nl"
5142    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5143    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5144    as_fn_arith $ac_count + 1 && ac_count=$as_val
5145    if test $ac_count -gt ${ac_path_SED_max-0}; then
5146      # Best one so far, save it but keep looking for a better one
5147      ac_cv_path_SED="$ac_path_SED"
5148      ac_path_SED_max=$ac_count
5149    fi
5150    # 10*(2^10) chars as input seems more than enough
5151    test $ac_count -gt 10 && break
5152  done
5153  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5154esac
5155
5156      $ac_path_SED_found && break 3
5157    done
5158  done
5159  done
5160IFS=$as_save_IFS
5161  if test -z "$ac_cv_path_SED"; then
5162    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5163  fi
5164else
5165  ac_cv_path_SED=$SED
5166fi
5167
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5170$as_echo "$ac_cv_path_SED" >&6; }
5171 SED="$ac_cv_path_SED"
5172  rm -f conftest.sed
5173
5174test -z "$SED" && SED=sed
5175Xsed="$SED -e 1s/^X//"
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5188$as_echo_n "checking for fgrep... " >&6; }
5189if ${ac_cv_path_FGREP+:} false; then :
5190  $as_echo_n "(cached) " >&6
5191else
5192  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5193   then ac_cv_path_FGREP="$GREP -F"
5194   else
5195     if test -z "$FGREP"; then
5196  ac_path_FGREP_found=false
5197  # Loop through the user's path and test for each of PROGNAME-LIST
5198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5200do
5201  IFS=$as_save_IFS
5202  test -z "$as_dir" && as_dir=.
5203    for ac_prog in fgrep; do
5204    for ac_exec_ext in '' $ac_executable_extensions; do
5205      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5206      as_fn_executable_p "$ac_path_FGREP" || continue
5207# Check for GNU ac_path_FGREP and select it if it is found.
5208  # Check for GNU $ac_path_FGREP
5209case `"$ac_path_FGREP" --version 2>&1` in
5210*GNU*)
5211  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5212*)
5213  ac_count=0
5214  $as_echo_n 0123456789 >"conftest.in"
5215  while :
5216  do
5217    cat "conftest.in" "conftest.in" >"conftest.tmp"
5218    mv "conftest.tmp" "conftest.in"
5219    cp "conftest.in" "conftest.nl"
5220    $as_echo 'FGREP' >> "conftest.nl"
5221    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5222    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5223    as_fn_arith $ac_count + 1 && ac_count=$as_val
5224    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5225      # Best one so far, save it but keep looking for a better one
5226      ac_cv_path_FGREP="$ac_path_FGREP"
5227      ac_path_FGREP_max=$ac_count
5228    fi
5229    # 10*(2^10) chars as input seems more than enough
5230    test $ac_count -gt 10 && break
5231  done
5232  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5233esac
5234
5235      $ac_path_FGREP_found && break 3
5236    done
5237  done
5238  done
5239IFS=$as_save_IFS
5240  if test -z "$ac_cv_path_FGREP"; then
5241    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5242  fi
5243else
5244  ac_cv_path_FGREP=$FGREP
5245fi
5246
5247   fi
5248fi
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5250$as_echo "$ac_cv_path_FGREP" >&6; }
5251 FGREP="$ac_cv_path_FGREP"
5252
5253
5254test -z "$GREP" && GREP=grep
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274# Check whether --with-gnu-ld was given.
5275if test "${with_gnu_ld+set}" = set; then :
5276  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5277else
5278  with_gnu_ld=no
5279fi
5280
5281ac_prog=ld
5282if test yes = "$GCC"; then
5283  # Check if gcc -print-prog-name=ld gives a path.
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5285$as_echo_n "checking for ld used by $CC... " >&6; }
5286  case $host in
5287  *-*-mingw*)
5288    # gcc leaves a trailing carriage return, which upsets mingw
5289    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5290  *)
5291    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5292  esac
5293  case $ac_prog in
5294    # Accept absolute paths.
5295    [\\/]* | ?:[\\/]*)
5296      re_direlt='/[^/][^/]*/\.\./'
5297      # Canonicalize the pathname of ld
5298      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5299      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5300	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5301      done
5302      test -z "$LD" && LD=$ac_prog
5303      ;;
5304  "")
5305    # If it fails, then pretend we aren't using GCC.
5306    ac_prog=ld
5307    ;;
5308  *)
5309    # If it is relative, then search for the first ld in PATH.
5310    with_gnu_ld=unknown
5311    ;;
5312  esac
5313elif test yes = "$with_gnu_ld"; then
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5315$as_echo_n "checking for GNU ld... " >&6; }
5316else
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5318$as_echo_n "checking for non-GNU ld... " >&6; }
5319fi
5320if ${lt_cv_path_LD+:} false; then :
5321  $as_echo_n "(cached) " >&6
5322else
5323  if test -z "$LD"; then
5324  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5325  for ac_dir in $PATH; do
5326    IFS=$lt_save_ifs
5327    test -z "$ac_dir" && ac_dir=.
5328    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5329      lt_cv_path_LD=$ac_dir/$ac_prog
5330      # Check to see if the program is GNU ld.  I'd rather use --version,
5331      # but apparently some variants of GNU ld only accept -v.
5332      # Break only if it was the GNU/non-GNU ld that we prefer.
5333      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5334      *GNU* | *'with BFD'*)
5335	test no != "$with_gnu_ld" && break
5336	;;
5337      *)
5338	test yes != "$with_gnu_ld" && break
5339	;;
5340      esac
5341    fi
5342  done
5343  IFS=$lt_save_ifs
5344else
5345  lt_cv_path_LD=$LD # Let the user override the test with a path.
5346fi
5347fi
5348
5349LD=$lt_cv_path_LD
5350if test -n "$LD"; then
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5352$as_echo "$LD" >&6; }
5353else
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }
5356fi
5357test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5359$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5360if ${lt_cv_prog_gnu_ld+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5364case `$LD -v 2>&1 </dev/null` in
5365*GNU* | *'with BFD'*)
5366  lt_cv_prog_gnu_ld=yes
5367  ;;
5368*)
5369  lt_cv_prog_gnu_ld=no
5370  ;;
5371esac
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5374$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5375with_gnu_ld=$lt_cv_prog_gnu_ld
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5386$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5387if ${lt_cv_path_NM+:} false; then :
5388  $as_echo_n "(cached) " >&6
5389else
5390  if test -n "$NM"; then
5391  # Let the user override the test.
5392  lt_cv_path_NM=$NM
5393else
5394  lt_nm_to_check=${ac_tool_prefix}nm
5395  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5396    lt_nm_to_check="$lt_nm_to_check nm"
5397  fi
5398  for lt_tmp_nm in $lt_nm_to_check; do
5399    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5400    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5401      IFS=$lt_save_ifs
5402      test -z "$ac_dir" && ac_dir=.
5403      tmp_nm=$ac_dir/$lt_tmp_nm
5404      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5405	# Check to see if the nm accepts a BSD-compat flag.
5406	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5407	#   nm: unknown option "B" ignored
5408	# Tru64's nm complains that /dev/null is an invalid object file
5409	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5410	case $build_os in
5411	mingw*) lt_bad_file=conftest.nm/nofile ;;
5412	*) lt_bad_file=/dev/null ;;
5413	esac
5414	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5415	*$lt_bad_file* | *'Invalid file or object type'*)
5416	  lt_cv_path_NM="$tmp_nm -B"
5417	  break 2
5418	  ;;
5419	*)
5420	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5421	  */dev/null*)
5422	    lt_cv_path_NM="$tmp_nm -p"
5423	    break 2
5424	    ;;
5425	  *)
5426	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5427	    continue # so that we can try to find one that supports BSD flags
5428	    ;;
5429	  esac
5430	  ;;
5431	esac
5432      fi
5433    done
5434    IFS=$lt_save_ifs
5435  done
5436  : ${lt_cv_path_NM=no}
5437fi
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5440$as_echo "$lt_cv_path_NM" >&6; }
5441if test no != "$lt_cv_path_NM"; then
5442  NM=$lt_cv_path_NM
5443else
5444  # Didn't find any BSD compatible name lister, look for dumpbin.
5445  if test -n "$DUMPBIN"; then :
5446    # Let the user override the test.
5447  else
5448    if test -n "$ac_tool_prefix"; then
5449  for ac_prog in dumpbin "link -dump"
5450  do
5451    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
5455if ${ac_cv_prog_DUMPBIN+:} false; then :
5456  $as_echo_n "(cached) " >&6
5457else
5458  if test -n "$DUMPBIN"; then
5459  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464  IFS=$as_save_IFS
5465  test -z "$as_dir" && as_dir=.
5466    for ac_exec_ext in '' $ac_executable_extensions; do
5467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470    break 2
5471  fi
5472done
5473  done
5474IFS=$as_save_IFS
5475
5476fi
5477fi
5478DUMPBIN=$ac_cv_prog_DUMPBIN
5479if test -n "$DUMPBIN"; then
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5481$as_echo "$DUMPBIN" >&6; }
5482else
5483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484$as_echo "no" >&6; }
5485fi
5486
5487
5488    test -n "$DUMPBIN" && break
5489  done
5490fi
5491if test -z "$DUMPBIN"; then
5492  ac_ct_DUMPBIN=$DUMPBIN
5493  for ac_prog in dumpbin "link -dump"
5494do
5495  # Extract the first word of "$ac_prog", so it can be a program name with args.
5496set dummy $ac_prog; ac_word=$2
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498$as_echo_n "checking for $ac_word... " >&6; }
5499if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5500  $as_echo_n "(cached) " >&6
5501else
5502  if test -n "$ac_ct_DUMPBIN"; then
5503  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508  IFS=$as_save_IFS
5509  test -z "$as_dir" && as_dir=.
5510    for ac_exec_ext in '' $ac_executable_extensions; do
5511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514    break 2
5515  fi
5516done
5517  done
5518IFS=$as_save_IFS
5519
5520fi
5521fi
5522ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5523if test -n "$ac_ct_DUMPBIN"; then
5524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5525$as_echo "$ac_ct_DUMPBIN" >&6; }
5526else
5527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528$as_echo "no" >&6; }
5529fi
5530
5531
5532  test -n "$ac_ct_DUMPBIN" && break
5533done
5534
5535  if test "x$ac_ct_DUMPBIN" = x; then
5536    DUMPBIN=":"
5537  else
5538    case $cross_compiling:$ac_tool_warned in
5539yes:)
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5542ac_tool_warned=yes ;;
5543esac
5544    DUMPBIN=$ac_ct_DUMPBIN
5545  fi
5546fi
5547
5548    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5549    *COFF*)
5550      DUMPBIN="$DUMPBIN -symbols -headers"
5551      ;;
5552    *)
5553      DUMPBIN=:
5554      ;;
5555    esac
5556  fi
5557
5558  if test : != "$DUMPBIN"; then
5559    NM=$DUMPBIN
5560  fi
5561fi
5562test -z "$NM" && NM=nm
5563
5564
5565
5566
5567
5568
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5570$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5571if ${lt_cv_nm_interface+:} false; then :
5572  $as_echo_n "(cached) " >&6
5573else
5574  lt_cv_nm_interface="BSD nm"
5575  echo "int some_variable = 0;" > conftest.$ac_ext
5576  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5577  (eval "$ac_compile" 2>conftest.err)
5578  cat conftest.err >&5
5579  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5580  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5581  cat conftest.err >&5
5582  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5583  cat conftest.out >&5
5584  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5585    lt_cv_nm_interface="MS dumpbin"
5586  fi
5587  rm -f conftest*
5588fi
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5590$as_echo "$lt_cv_nm_interface" >&6; }
5591
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5593$as_echo_n "checking whether ln -s works... " >&6; }
5594LN_S=$as_ln_s
5595if test "$LN_S" = "ln -s"; then
5596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5597$as_echo "yes" >&6; }
5598else
5599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5600$as_echo "no, using $LN_S" >&6; }
5601fi
5602
5603# find the maximum length of command line arguments
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5605$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5606if ${lt_cv_sys_max_cmd_len+:} false; then :
5607  $as_echo_n "(cached) " >&6
5608else
5609    i=0
5610  teststring=ABCD
5611
5612  case $build_os in
5613  msdosdjgpp*)
5614    # On DJGPP, this test can blow up pretty badly due to problems in libc
5615    # (any single argument exceeding 2000 bytes causes a buffer overrun
5616    # during glob expansion).  Even if it were fixed, the result of this
5617    # check would be larger than it should be.
5618    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5619    ;;
5620
5621  gnu*)
5622    # Under GNU Hurd, this test is not required because there is
5623    # no limit to the length of command line arguments.
5624    # Libtool will interpret -1 as no limit whatsoever
5625    lt_cv_sys_max_cmd_len=-1;
5626    ;;
5627
5628  cygwin* | mingw* | cegcc*)
5629    # On Win9x/ME, this test blows up -- it succeeds, but takes
5630    # about 5 minutes as the teststring grows exponentially.
5631    # Worse, since 9x/ME are not pre-emptively multitasking,
5632    # you end up with a "frozen" computer, even though with patience
5633    # the test eventually succeeds (with a max line length of 256k).
5634    # Instead, let's just punt: use the minimum linelength reported by
5635    # all of the supported platforms: 8192 (on NT/2K/XP).
5636    lt_cv_sys_max_cmd_len=8192;
5637    ;;
5638
5639  mint*)
5640    # On MiNT this can take a long time and run out of memory.
5641    lt_cv_sys_max_cmd_len=8192;
5642    ;;
5643
5644  amigaos*)
5645    # On AmigaOS with pdksh, this test takes hours, literally.
5646    # So we just punt and use a minimum line length of 8192.
5647    lt_cv_sys_max_cmd_len=8192;
5648    ;;
5649
5650  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5651    # This has been around since 386BSD, at least.  Likely further.
5652    if test -x /sbin/sysctl; then
5653      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5654    elif test -x /usr/sbin/sysctl; then
5655      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5656    else
5657      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5658    fi
5659    # And add a safety zone
5660    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5661    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5662    ;;
5663
5664  interix*)
5665    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5666    lt_cv_sys_max_cmd_len=196608
5667    ;;
5668
5669  os2*)
5670    # The test takes a long time on OS/2.
5671    lt_cv_sys_max_cmd_len=8192
5672    ;;
5673
5674  osf*)
5675    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5676    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5677    # nice to cause kernel panics so lets avoid the loop below.
5678    # First set a reasonable default.
5679    lt_cv_sys_max_cmd_len=16384
5680    #
5681    if test -x /sbin/sysconfig; then
5682      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5683        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5684      esac
5685    fi
5686    ;;
5687  sco3.2v5*)
5688    lt_cv_sys_max_cmd_len=102400
5689    ;;
5690  sysv5* | sco5v6* | sysv4.2uw2*)
5691    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5692    if test -n "$kargmax"; then
5693      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5694    else
5695      lt_cv_sys_max_cmd_len=32768
5696    fi
5697    ;;
5698  *)
5699    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5700    if test -n "$lt_cv_sys_max_cmd_len" && \
5701       test undefined != "$lt_cv_sys_max_cmd_len"; then
5702      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5703      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5704    else
5705      # Make teststring a little bigger before we do anything with it.
5706      # a 1K string should be a reasonable start.
5707      for i in 1 2 3 4 5 6 7 8; do
5708        teststring=$teststring$teststring
5709      done
5710      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5711      # If test is not a shell built-in, we'll probably end up computing a
5712      # maximum length that is only half of the actual maximum length, but
5713      # we can't tell.
5714      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5715	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5716	      test 17 != "$i" # 1/2 MB should be enough
5717      do
5718        i=`expr $i + 1`
5719        teststring=$teststring$teststring
5720      done
5721      # Only check the string length outside the loop.
5722      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5723      teststring=
5724      # Add a significant safety factor because C++ compilers can tack on
5725      # massive amounts of additional arguments before passing them to the
5726      # linker.  It appears as though 1/2 is a usable value.
5727      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5728    fi
5729    ;;
5730  esac
5731
5732fi
5733
5734if test -n "$lt_cv_sys_max_cmd_len"; then
5735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5736$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5737else
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5739$as_echo "none" >&6; }
5740fi
5741max_cmd_len=$lt_cv_sys_max_cmd_len
5742
5743
5744
5745
5746
5747
5748: ${CP="cp -f"}
5749: ${MV="mv -f"}
5750: ${RM="rm -f"}
5751
5752if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5753  lt_unset=unset
5754else
5755  lt_unset=false
5756fi
5757
5758
5759
5760
5761
5762# test EBCDIC or ASCII
5763case `echo X|tr X '\101'` in
5764 A) # ASCII based system
5765    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5766  lt_SP2NL='tr \040 \012'
5767  lt_NL2SP='tr \015\012 \040\040'
5768  ;;
5769 *) # EBCDIC based system
5770  lt_SP2NL='tr \100 \n'
5771  lt_NL2SP='tr \r\n \100\100'
5772  ;;
5773esac
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5784$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5785if ${lt_cv_to_host_file_cmd+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  case $host in
5789  *-*-mingw* )
5790    case $build in
5791      *-*-mingw* ) # actually msys
5792        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5793        ;;
5794      *-*-cygwin* )
5795        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5796        ;;
5797      * ) # otherwise, assume *nix
5798        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5799        ;;
5800    esac
5801    ;;
5802  *-*-cygwin* )
5803    case $build in
5804      *-*-mingw* ) # actually msys
5805        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5806        ;;
5807      *-*-cygwin* )
5808        lt_cv_to_host_file_cmd=func_convert_file_noop
5809        ;;
5810      * ) # otherwise, assume *nix
5811        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5812        ;;
5813    esac
5814    ;;
5815  * ) # unhandled hosts (and "normal" native builds)
5816    lt_cv_to_host_file_cmd=func_convert_file_noop
5817    ;;
5818esac
5819
5820fi
5821
5822to_host_file_cmd=$lt_cv_to_host_file_cmd
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5824$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5825
5826
5827
5828
5829
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5831$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5832if ${lt_cv_to_tool_file_cmd+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835  #assume ordinary cross tools, or native build.
5836lt_cv_to_tool_file_cmd=func_convert_file_noop
5837case $host in
5838  *-*-mingw* )
5839    case $build in
5840      *-*-mingw* ) # actually msys
5841        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5842        ;;
5843    esac
5844    ;;
5845esac
5846
5847fi
5848
5849to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5851$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5852
5853
5854
5855
5856
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5858$as_echo_n "checking for $LD option to reload object files... " >&6; }
5859if ${lt_cv_ld_reload_flag+:} false; then :
5860  $as_echo_n "(cached) " >&6
5861else
5862  lt_cv_ld_reload_flag='-r'
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5865$as_echo "$lt_cv_ld_reload_flag" >&6; }
5866reload_flag=$lt_cv_ld_reload_flag
5867case $reload_flag in
5868"" | " "*) ;;
5869*) reload_flag=" $reload_flag" ;;
5870esac
5871reload_cmds='$LD$reload_flag -o $output$reload_objs'
5872case $host_os in
5873  cygwin* | mingw* | pw32* | cegcc*)
5874    if test yes != "$GCC"; then
5875      reload_cmds=false
5876    fi
5877    ;;
5878  darwin*)
5879    if test yes = "$GCC"; then
5880      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5881    else
5882      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5883    fi
5884    ;;
5885esac
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895if test -n "$ac_tool_prefix"; then
5896  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5897set dummy ${ac_tool_prefix}objdump; ac_word=$2
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899$as_echo_n "checking for $ac_word... " >&6; }
5900if ${ac_cv_prog_OBJDUMP+:} false; then :
5901  $as_echo_n "(cached) " >&6
5902else
5903  if test -n "$OBJDUMP"; then
5904  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911    for ac_exec_ext in '' $ac_executable_extensions; do
5912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915    break 2
5916  fi
5917done
5918  done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923OBJDUMP=$ac_cv_prog_OBJDUMP
5924if test -n "$OBJDUMP"; then
5925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5926$as_echo "$OBJDUMP" >&6; }
5927else
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929$as_echo "no" >&6; }
5930fi
5931
5932
5933fi
5934if test -z "$ac_cv_prog_OBJDUMP"; then
5935  ac_ct_OBJDUMP=$OBJDUMP
5936  # Extract the first word of "objdump", so it can be a program name with args.
5937set dummy objdump; ac_word=$2
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939$as_echo_n "checking for $ac_word... " >&6; }
5940if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5941  $as_echo_n "(cached) " >&6
5942else
5943  if test -n "$ac_ct_OBJDUMP"; then
5944  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949  IFS=$as_save_IFS
5950  test -z "$as_dir" && as_dir=.
5951    for ac_exec_ext in '' $ac_executable_extensions; do
5952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5953    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955    break 2
5956  fi
5957done
5958  done
5959IFS=$as_save_IFS
5960
5961fi
5962fi
5963ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5964if test -n "$ac_ct_OBJDUMP"; then
5965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5966$as_echo "$ac_ct_OBJDUMP" >&6; }
5967else
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969$as_echo "no" >&6; }
5970fi
5971
5972  if test "x$ac_ct_OBJDUMP" = x; then
5973    OBJDUMP="false"
5974  else
5975    case $cross_compiling:$ac_tool_warned in
5976yes:)
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979ac_tool_warned=yes ;;
5980esac
5981    OBJDUMP=$ac_ct_OBJDUMP
5982  fi
5983else
5984  OBJDUMP="$ac_cv_prog_OBJDUMP"
5985fi
5986
5987test -z "$OBJDUMP" && OBJDUMP=objdump
5988
5989
5990
5991
5992
5993
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5995$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5996if ${lt_cv_deplibs_check_method+:} false; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999  lt_cv_file_magic_cmd='$MAGIC_CMD'
6000lt_cv_file_magic_test_file=
6001lt_cv_deplibs_check_method='unknown'
6002# Need to set the preceding variable on all platforms that support
6003# interlibrary dependencies.
6004# 'none' -- dependencies not supported.
6005# 'unknown' -- same as none, but documents that we really don't know.
6006# 'pass_all' -- all dependencies passed with no checks.
6007# 'test_compile' -- check by making test program.
6008# 'file_magic [[regex]]' -- check by looking for files in library path
6009# that responds to the $file_magic_cmd with a given extended regex.
6010# If you have 'file' or equivalent on your system and you're not sure
6011# whether 'pass_all' will *always* work, you probably want this one.
6012
6013case $host_os in
6014aix[4-9]*)
6015  lt_cv_deplibs_check_method=pass_all
6016  ;;
6017
6018beos*)
6019  lt_cv_deplibs_check_method=pass_all
6020  ;;
6021
6022bsdi[45]*)
6023  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6024  lt_cv_file_magic_cmd='/usr/bin/file -L'
6025  lt_cv_file_magic_test_file=/shlib/libc.so
6026  ;;
6027
6028cygwin*)
6029  # func_win32_libid is a shell function defined in ltmain.sh
6030  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6031  lt_cv_file_magic_cmd='func_win32_libid'
6032  ;;
6033
6034mingw* | pw32*)
6035  # Base MSYS/MinGW do not provide the 'file' command needed by
6036  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6037  # unless we find 'file', for example because we are cross-compiling.
6038  if ( file / ) >/dev/null 2>&1; then
6039    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6040    lt_cv_file_magic_cmd='func_win32_libid'
6041  else
6042    # Keep this pattern in sync with the one in func_win32_libid.
6043    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6044    lt_cv_file_magic_cmd='$OBJDUMP -f'
6045  fi
6046  ;;
6047
6048cegcc*)
6049  # use the weaker test based on 'objdump'. See mingw*.
6050  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6051  lt_cv_file_magic_cmd='$OBJDUMP -f'
6052  ;;
6053
6054darwin* | rhapsody*)
6055  lt_cv_deplibs_check_method=pass_all
6056  ;;
6057
6058freebsd* | dragonfly*)
6059  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6060    case $host_cpu in
6061    i*86 )
6062      # Not sure whether the presence of OpenBSD here was a mistake.
6063      # Let's accept both of them until this is cleared up.
6064      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6065      lt_cv_file_magic_cmd=/usr/bin/file
6066      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6067      ;;
6068    esac
6069  else
6070    lt_cv_deplibs_check_method=pass_all
6071  fi
6072  ;;
6073
6074haiku*)
6075  lt_cv_deplibs_check_method=pass_all
6076  ;;
6077
6078hpux10.20* | hpux11*)
6079  lt_cv_file_magic_cmd=/usr/bin/file
6080  case $host_cpu in
6081  ia64*)
6082    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6083    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6084    ;;
6085  hppa*64*)
6086    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]'
6087    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6088    ;;
6089  *)
6090    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6091    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6092    ;;
6093  esac
6094  ;;
6095
6096interix[3-9]*)
6097  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6098  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6099  ;;
6100
6101irix5* | irix6* | nonstopux*)
6102  case $LD in
6103  *-32|*"-32 ") libmagic=32-bit;;
6104  *-n32|*"-n32 ") libmagic=N32;;
6105  *-64|*"-64 ") libmagic=64-bit;;
6106  *) libmagic=never-match;;
6107  esac
6108  lt_cv_deplibs_check_method=pass_all
6109  ;;
6110
6111# This must be glibc/ELF.
6112linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6113  lt_cv_deplibs_check_method=pass_all
6114  ;;
6115
6116netbsd* | netbsdelf*-gnu)
6117  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6118    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6119  else
6120    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6121  fi
6122  ;;
6123
6124newos6*)
6125  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6126  lt_cv_file_magic_cmd=/usr/bin/file
6127  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6128  ;;
6129
6130*nto* | *qnx*)
6131  lt_cv_deplibs_check_method=pass_all
6132  ;;
6133
6134openbsd* | bitrig*)
6135  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6136    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6137  else
6138    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6139  fi
6140  ;;
6141
6142osf3* | osf4* | osf5*)
6143  lt_cv_deplibs_check_method=pass_all
6144  ;;
6145
6146rdos*)
6147  lt_cv_deplibs_check_method=pass_all
6148  ;;
6149
6150solaris*)
6151  lt_cv_deplibs_check_method=pass_all
6152  ;;
6153
6154sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6155  lt_cv_deplibs_check_method=pass_all
6156  ;;
6157
6158sysv4 | sysv4.3*)
6159  case $host_vendor in
6160  motorola)
6161    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]'
6162    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6163    ;;
6164  ncr)
6165    lt_cv_deplibs_check_method=pass_all
6166    ;;
6167  sequent)
6168    lt_cv_file_magic_cmd='/bin/file'
6169    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6170    ;;
6171  sni)
6172    lt_cv_file_magic_cmd='/bin/file'
6173    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6174    lt_cv_file_magic_test_file=/lib/libc.so
6175    ;;
6176  siemens)
6177    lt_cv_deplibs_check_method=pass_all
6178    ;;
6179  pc)
6180    lt_cv_deplibs_check_method=pass_all
6181    ;;
6182  esac
6183  ;;
6184
6185tpf*)
6186  lt_cv_deplibs_check_method=pass_all
6187  ;;
6188os2*)
6189  lt_cv_deplibs_check_method=pass_all
6190  ;;
6191esac
6192
6193fi
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6195$as_echo "$lt_cv_deplibs_check_method" >&6; }
6196
6197file_magic_glob=
6198want_nocaseglob=no
6199if test "$build" = "$host"; then
6200  case $host_os in
6201  mingw* | pw32*)
6202    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6203      want_nocaseglob=yes
6204    else
6205      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6206    fi
6207    ;;
6208  esac
6209fi
6210
6211file_magic_cmd=$lt_cv_file_magic_cmd
6212deplibs_check_method=$lt_cv_deplibs_check_method
6213test -z "$deplibs_check_method" && deplibs_check_method=unknown
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236if test -n "$ac_tool_prefix"; then
6237  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6238set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240$as_echo_n "checking for $ac_word... " >&6; }
6241if ${ac_cv_prog_DLLTOOL+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  if test -n "$DLLTOOL"; then
6245  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250  IFS=$as_save_IFS
6251  test -z "$as_dir" && as_dir=.
6252    for ac_exec_ext in '' $ac_executable_extensions; do
6253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256    break 2
6257  fi
6258done
6259  done
6260IFS=$as_save_IFS
6261
6262fi
6263fi
6264DLLTOOL=$ac_cv_prog_DLLTOOL
6265if test -n "$DLLTOOL"; then
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6267$as_echo "$DLLTOOL" >&6; }
6268else
6269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270$as_echo "no" >&6; }
6271fi
6272
6273
6274fi
6275if test -z "$ac_cv_prog_DLLTOOL"; then
6276  ac_ct_DLLTOOL=$DLLTOOL
6277  # Extract the first word of "dlltool", so it can be a program name with args.
6278set dummy dlltool; ac_word=$2
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  if test -n "$ac_ct_DLLTOOL"; then
6285  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290  IFS=$as_save_IFS
6291  test -z "$as_dir" && as_dir=.
6292    for ac_exec_ext in '' $ac_executable_extensions; do
6293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296    break 2
6297  fi
6298done
6299  done
6300IFS=$as_save_IFS
6301
6302fi
6303fi
6304ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6305if test -n "$ac_ct_DLLTOOL"; then
6306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6307$as_echo "$ac_ct_DLLTOOL" >&6; }
6308else
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310$as_echo "no" >&6; }
6311fi
6312
6313  if test "x$ac_ct_DLLTOOL" = x; then
6314    DLLTOOL="false"
6315  else
6316    case $cross_compiling:$ac_tool_warned in
6317yes:)
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320ac_tool_warned=yes ;;
6321esac
6322    DLLTOOL=$ac_ct_DLLTOOL
6323  fi
6324else
6325  DLLTOOL="$ac_cv_prog_DLLTOOL"
6326fi
6327
6328test -z "$DLLTOOL" && DLLTOOL=dlltool
6329
6330
6331
6332
6333
6334
6335
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6337$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6338if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6339  $as_echo_n "(cached) " >&6
6340else
6341  lt_cv_sharedlib_from_linklib_cmd='unknown'
6342
6343case $host_os in
6344cygwin* | mingw* | pw32* | cegcc*)
6345  # two different shell functions defined in ltmain.sh;
6346  # decide which one to use based on capabilities of $DLLTOOL
6347  case `$DLLTOOL --help 2>&1` in
6348  *--identify-strict*)
6349    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6350    ;;
6351  *)
6352    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6353    ;;
6354  esac
6355  ;;
6356*)
6357  # fallback: assume linklib IS sharedlib
6358  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6359  ;;
6360esac
6361
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6364$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6365sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6366test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6367
6368
6369
6370
6371
6372
6373
6374if test -n "$ac_tool_prefix"; then
6375  for ac_prog in ar
6376  do
6377    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if ${ac_cv_prog_AR+:} false; then :
6382  $as_echo_n "(cached) " >&6
6383else
6384  if test -n "$AR"; then
6385  ac_cv_prog_AR="$AR" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390  IFS=$as_save_IFS
6391  test -z "$as_dir" && as_dir=.
6392    for ac_exec_ext in '' $ac_executable_extensions; do
6393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396    break 2
6397  fi
6398done
6399  done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404AR=$ac_cv_prog_AR
6405if test -n "$AR"; then
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6407$as_echo "$AR" >&6; }
6408else
6409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413
6414    test -n "$AR" && break
6415  done
6416fi
6417if test -z "$AR"; then
6418  ac_ct_AR=$AR
6419  for ac_prog in ar
6420do
6421  # Extract the first word of "$ac_prog", so it can be a program name with args.
6422set dummy $ac_prog; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if ${ac_cv_prog_ac_ct_AR+:} false; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  if test -n "$ac_ct_AR"; then
6429  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434  IFS=$as_save_IFS
6435  test -z "$as_dir" && as_dir=.
6436    for ac_exec_ext in '' $ac_executable_extensions; do
6437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438    ac_cv_prog_ac_ct_AR="$ac_prog"
6439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440    break 2
6441  fi
6442done
6443  done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448ac_ct_AR=$ac_cv_prog_ac_ct_AR
6449if test -n "$ac_ct_AR"; then
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6451$as_echo "$ac_ct_AR" >&6; }
6452else
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458  test -n "$ac_ct_AR" && break
6459done
6460
6461  if test "x$ac_ct_AR" = x; then
6462    AR="false"
6463  else
6464    case $cross_compiling:$ac_tool_warned in
6465yes:)
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468ac_tool_warned=yes ;;
6469esac
6470    AR=$ac_ct_AR
6471  fi
6472fi
6473
6474: ${AR=ar}
6475: ${AR_FLAGS=cru}
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6488$as_echo_n "checking for archiver @FILE support... " >&6; }
6489if ${lt_cv_ar_at_file+:} false; then :
6490  $as_echo_n "(cached) " >&6
6491else
6492  lt_cv_ar_at_file=no
6493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494/* end confdefs.h.  */
6495
6496int
6497main ()
6498{
6499
6500  ;
6501  return 0;
6502}
6503_ACEOF
6504if ac_fn_c_try_compile "$LINENO"; then :
6505  echo conftest.$ac_objext > conftest.lst
6506      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6507      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6508  (eval $lt_ar_try) 2>&5
6509  ac_status=$?
6510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6511  test $ac_status = 0; }
6512      if test 0 -eq "$ac_status"; then
6513	# Ensure the archiver fails upon bogus file names.
6514	rm -f conftest.$ac_objext libconftest.a
6515	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6516  (eval $lt_ar_try) 2>&5
6517  ac_status=$?
6518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519  test $ac_status = 0; }
6520	if test 0 -ne "$ac_status"; then
6521          lt_cv_ar_at_file=@
6522        fi
6523      fi
6524      rm -f conftest.* libconftest.a
6525
6526fi
6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528
6529fi
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6531$as_echo "$lt_cv_ar_at_file" >&6; }
6532
6533if test no = "$lt_cv_ar_at_file"; then
6534  archiver_list_spec=
6535else
6536  archiver_list_spec=$lt_cv_ar_at_file
6537fi
6538
6539
6540
6541
6542
6543
6544
6545if test -n "$ac_tool_prefix"; then
6546  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6547set dummy ${ac_tool_prefix}strip; ac_word=$2
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549$as_echo_n "checking for $ac_word... " >&6; }
6550if ${ac_cv_prog_STRIP+:} false; then :
6551  $as_echo_n "(cached) " >&6
6552else
6553  if test -n "$STRIP"; then
6554  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559  IFS=$as_save_IFS
6560  test -z "$as_dir" && as_dir=.
6561    for ac_exec_ext in '' $ac_executable_extensions; do
6562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565    break 2
6566  fi
6567done
6568  done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573STRIP=$ac_cv_prog_STRIP
6574if test -n "$STRIP"; then
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6576$as_echo "$STRIP" >&6; }
6577else
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582
6583fi
6584if test -z "$ac_cv_prog_STRIP"; then
6585  ac_ct_STRIP=$STRIP
6586  # Extract the first word of "strip", so it can be a program name with args.
6587set dummy strip; ac_word=$2
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589$as_echo_n "checking for $ac_word... " >&6; }
6590if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6591  $as_echo_n "(cached) " >&6
6592else
6593  if test -n "$ac_ct_STRIP"; then
6594  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6595else
6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599  IFS=$as_save_IFS
6600  test -z "$as_dir" && as_dir=.
6601    for ac_exec_ext in '' $ac_executable_extensions; do
6602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603    ac_cv_prog_ac_ct_STRIP="strip"
6604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605    break 2
6606  fi
6607done
6608  done
6609IFS=$as_save_IFS
6610
6611fi
6612fi
6613ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6614if test -n "$ac_ct_STRIP"; then
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6616$as_echo "$ac_ct_STRIP" >&6; }
6617else
6618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619$as_echo "no" >&6; }
6620fi
6621
6622  if test "x$ac_ct_STRIP" = x; then
6623    STRIP=":"
6624  else
6625    case $cross_compiling:$ac_tool_warned in
6626yes:)
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629ac_tool_warned=yes ;;
6630esac
6631    STRIP=$ac_ct_STRIP
6632  fi
6633else
6634  STRIP="$ac_cv_prog_STRIP"
6635fi
6636
6637test -z "$STRIP" && STRIP=:
6638
6639
6640
6641
6642
6643
6644if test -n "$ac_tool_prefix"; then
6645  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6646set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648$as_echo_n "checking for $ac_word... " >&6; }
6649if ${ac_cv_prog_RANLIB+:} false; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  if test -n "$RANLIB"; then
6653  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660    for ac_exec_ext in '' $ac_executable_extensions; do
6661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667  done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672RANLIB=$ac_cv_prog_RANLIB
6673if test -n "$RANLIB"; then
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6675$as_echo "$RANLIB" >&6; }
6676else
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681
6682fi
6683if test -z "$ac_cv_prog_RANLIB"; then
6684  ac_ct_RANLIB=$RANLIB
6685  # Extract the first word of "ranlib", so it can be a program name with args.
6686set dummy ranlib; ac_word=$2
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688$as_echo_n "checking for $ac_word... " >&6; }
6689if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692  if test -n "$ac_ct_RANLIB"; then
6693  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698  IFS=$as_save_IFS
6699  test -z "$as_dir" && as_dir=.
6700    for ac_exec_ext in '' $ac_executable_extensions; do
6701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702    ac_cv_prog_ac_ct_RANLIB="ranlib"
6703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704    break 2
6705  fi
6706done
6707  done
6708IFS=$as_save_IFS
6709
6710fi
6711fi
6712ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6713if test -n "$ac_ct_RANLIB"; then
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6715$as_echo "$ac_ct_RANLIB" >&6; }
6716else
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
6719fi
6720
6721  if test "x$ac_ct_RANLIB" = x; then
6722    RANLIB=":"
6723  else
6724    case $cross_compiling:$ac_tool_warned in
6725yes:)
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728ac_tool_warned=yes ;;
6729esac
6730    RANLIB=$ac_ct_RANLIB
6731  fi
6732else
6733  RANLIB="$ac_cv_prog_RANLIB"
6734fi
6735
6736test -z "$RANLIB" && RANLIB=:
6737
6738
6739
6740
6741
6742
6743# Determine commands to create old-style static archives.
6744old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6745old_postinstall_cmds='chmod 644 $oldlib'
6746old_postuninstall_cmds=
6747
6748if test -n "$RANLIB"; then
6749  case $host_os in
6750  bitrig* | openbsd*)
6751    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6752    ;;
6753  *)
6754    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6755    ;;
6756  esac
6757  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6758fi
6759
6760case $host_os in
6761  darwin*)
6762    lock_old_archive_extraction=yes ;;
6763  *)
6764    lock_old_archive_extraction=no ;;
6765esac
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
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805# If no C compiler was specified, use CC.
6806LTCC=${LTCC-"$CC"}
6807
6808# If no C compiler flags were specified, use CFLAGS.
6809LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6810
6811# Allow CC to be a program name with arguments.
6812compiler=$CC
6813
6814
6815# Check for command to grab the raw symbol name followed by C symbol from nm.
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6817$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6818if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821
6822# These are sane defaults that work on at least a few old systems.
6823# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6824
6825# Character class describing NM global symbol codes.
6826symcode='[BCDEGRST]'
6827
6828# Regexp to match symbols that can be accessed directly from C.
6829sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6830
6831# Define system-specific variables.
6832case $host_os in
6833aix*)
6834  symcode='[BCDT]'
6835  ;;
6836cygwin* | mingw* | pw32* | cegcc*)
6837  symcode='[ABCDGISTW]'
6838  ;;
6839hpux*)
6840  if test ia64 = "$host_cpu"; then
6841    symcode='[ABCDEGRST]'
6842  fi
6843  ;;
6844irix* | nonstopux*)
6845  symcode='[BCDEGRST]'
6846  ;;
6847osf*)
6848  symcode='[BCDEGQRST]'
6849  ;;
6850solaris*)
6851  symcode='[BDRT]'
6852  ;;
6853sco3.2v5*)
6854  symcode='[DT]'
6855  ;;
6856sysv4.2uw2*)
6857  symcode='[DT]'
6858  ;;
6859sysv5* | sco5v6* | unixware* | OpenUNIX*)
6860  symcode='[ABDT]'
6861  ;;
6862sysv4)
6863  symcode='[DFNSTU]'
6864  ;;
6865esac
6866
6867# If we're using GNU nm, then use its standard symbol codes.
6868case `$NM -V 2>&1` in
6869*GNU* | *'with BFD'*)
6870  symcode='[ABCDGIRSTW]' ;;
6871esac
6872
6873if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6874  # Gets list of data symbols to import.
6875  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6876  # Adjust the below global symbol transforms to fixup imported variables.
6877  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6878  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6879  lt_c_name_lib_hook="\
6880  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6881  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6882else
6883  # Disable hooks by default.
6884  lt_cv_sys_global_symbol_to_import=
6885  lt_cdecl_hook=
6886  lt_c_name_hook=
6887  lt_c_name_lib_hook=
6888fi
6889
6890# Transform an extracted symbol line into a proper C declaration.
6891# Some systems (esp. on ia64) link data and code symbols differently,
6892# so use this general approach.
6893lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6894$lt_cdecl_hook\
6895" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6896" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6897
6898# Transform an extracted symbol line into symbol name and symbol address
6899lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6900$lt_c_name_hook\
6901" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6902" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6903
6904# Transform an extracted symbol line into symbol name with lib prefix and
6905# symbol address.
6906lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6907$lt_c_name_lib_hook\
6908" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6909" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6910" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6911
6912# Handle CRLF in mingw tool chain
6913opt_cr=
6914case $build_os in
6915mingw*)
6916  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6917  ;;
6918esac
6919
6920# Try without a prefix underscore, then with it.
6921for ac_symprfx in "" "_"; do
6922
6923  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6924  symxfrm="\\1 $ac_symprfx\\2 \\2"
6925
6926  # Write the raw and C identifiers.
6927  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6928    # Fake it for dumpbin and say T for any non-static function,
6929    # D for any global variable and I for any imported variable.
6930    # Also find C++ and __fastcall symbols from MSVC++,
6931    # which start with @ or ?.
6932    lt_cv_sys_global_symbol_pipe="$AWK '"\
6933"     {last_section=section; section=\$ 3};"\
6934"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6935"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6936"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6937"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6938"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6939"     \$ 0!~/External *\|/{next};"\
6940"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6941"     {if(hide[section]) next};"\
6942"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6943"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6944"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6945"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6946"     ' prfx=^$ac_symprfx"
6947  else
6948    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6949  fi
6950  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6951
6952  # Check to see that the pipe works correctly.
6953  pipe_works=no
6954
6955  rm -f conftest*
6956  cat > conftest.$ac_ext <<_LT_EOF
6957#ifdef __cplusplus
6958extern "C" {
6959#endif
6960char nm_test_var;
6961void nm_test_func(void);
6962void nm_test_func(void){}
6963#ifdef __cplusplus
6964}
6965#endif
6966int main(){nm_test_var='a';nm_test_func();return(0);}
6967_LT_EOF
6968
6969  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6970  (eval $ac_compile) 2>&5
6971  ac_status=$?
6972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973  test $ac_status = 0; }; then
6974    # Now try to grab the symbols.
6975    nlist=conftest.nm
6976    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6977  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6978  ac_status=$?
6979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6980  test $ac_status = 0; } && test -s "$nlist"; then
6981      # Try sorting and uniquifying the output.
6982      if sort "$nlist" | uniq > "$nlist"T; then
6983	mv -f "$nlist"T "$nlist"
6984      else
6985	rm -f "$nlist"T
6986      fi
6987
6988      # Make sure that we snagged all the symbols we need.
6989      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6990	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6991	  cat <<_LT_EOF > conftest.$ac_ext
6992/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6993#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6994/* DATA imports from DLLs on WIN32 can't be const, because runtime
6995   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6996# define LT_DLSYM_CONST
6997#elif defined __osf__
6998/* This system does not cope well with relocations in const data.  */
6999# define LT_DLSYM_CONST
7000#else
7001# define LT_DLSYM_CONST const
7002#endif
7003
7004#ifdef __cplusplus
7005extern "C" {
7006#endif
7007
7008_LT_EOF
7009	  # Now generate the symbol file.
7010	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7011
7012	  cat <<_LT_EOF >> conftest.$ac_ext
7013
7014/* The mapping between symbol names and symbols.  */
7015LT_DLSYM_CONST struct {
7016  const char *name;
7017  void       *address;
7018}
7019lt__PROGRAM__LTX_preloaded_symbols[] =
7020{
7021  { "@PROGRAM@", (void *) 0 },
7022_LT_EOF
7023	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7024	  cat <<\_LT_EOF >> conftest.$ac_ext
7025  {0, (void *) 0}
7026};
7027
7028/* This works around a problem in FreeBSD linker */
7029#ifdef FREEBSD_WORKAROUND
7030static const void *lt_preloaded_setup() {
7031  return lt__PROGRAM__LTX_preloaded_symbols;
7032}
7033#endif
7034
7035#ifdef __cplusplus
7036}
7037#endif
7038_LT_EOF
7039	  # Now try linking the two files.
7040	  mv conftest.$ac_objext conftstm.$ac_objext
7041	  lt_globsym_save_LIBS=$LIBS
7042	  lt_globsym_save_CFLAGS=$CFLAGS
7043	  LIBS=conftstm.$ac_objext
7044	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7045	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7046  (eval $ac_link) 2>&5
7047  ac_status=$?
7048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7050	    pipe_works=yes
7051	  fi
7052	  LIBS=$lt_globsym_save_LIBS
7053	  CFLAGS=$lt_globsym_save_CFLAGS
7054	else
7055	  echo "cannot find nm_test_func in $nlist" >&5
7056	fi
7057      else
7058	echo "cannot find nm_test_var in $nlist" >&5
7059      fi
7060    else
7061      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7062    fi
7063  else
7064    echo "$progname: failed program was:" >&5
7065    cat conftest.$ac_ext >&5
7066  fi
7067  rm -rf conftest* conftst*
7068
7069  # Do not use the global_symbol_pipe unless it works.
7070  if test yes = "$pipe_works"; then
7071    break
7072  else
7073    lt_cv_sys_global_symbol_pipe=
7074  fi
7075done
7076
7077fi
7078
7079if test -z "$lt_cv_sys_global_symbol_pipe"; then
7080  lt_cv_sys_global_symbol_to_cdecl=
7081fi
7082if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7084$as_echo "failed" >&6; }
7085else
7086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7087$as_echo "ok" >&6; }
7088fi
7089
7090# Response file support.
7091if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7092  nm_file_list_spec='@'
7093elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7094  nm_file_list_spec='@'
7095fi
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
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7134$as_echo_n "checking for sysroot... " >&6; }
7135
7136# Check whether --with-sysroot was given.
7137if test "${with_sysroot+set}" = set; then :
7138  withval=$with_sysroot;
7139else
7140  with_sysroot=no
7141fi
7142
7143
7144lt_sysroot=
7145case $with_sysroot in #(
7146 yes)
7147   if test yes = "$GCC"; then
7148     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7149   fi
7150   ;; #(
7151 /*)
7152   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7153   ;; #(
7154 no|'')
7155   ;; #(
7156 *)
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7158$as_echo "$with_sysroot" >&6; }
7159   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7160   ;;
7161esac
7162
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7164$as_echo "${lt_sysroot:-no}" >&6; }
7165
7166
7167
7168
7169
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7171$as_echo_n "checking for a working dd... " >&6; }
7172if ${ac_cv_path_lt_DD+:} false; then :
7173  $as_echo_n "(cached) " >&6
7174else
7175  printf 0123456789abcdef0123456789abcdef >conftest.i
7176cat conftest.i conftest.i >conftest2.i
7177: ${lt_DD:=$DD}
7178if test -z "$lt_DD"; then
7179  ac_path_lt_DD_found=false
7180  # Loop through the user's path and test for each of PROGNAME-LIST
7181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182for as_dir in $PATH
7183do
7184  IFS=$as_save_IFS
7185  test -z "$as_dir" && as_dir=.
7186    for ac_prog in dd; do
7187    for ac_exec_ext in '' $ac_executable_extensions; do
7188      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7189      as_fn_executable_p "$ac_path_lt_DD" || continue
7190if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7191  cmp -s conftest.i conftest.out \
7192  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7193fi
7194      $ac_path_lt_DD_found && break 3
7195    done
7196  done
7197  done
7198IFS=$as_save_IFS
7199  if test -z "$ac_cv_path_lt_DD"; then
7200    :
7201  fi
7202else
7203  ac_cv_path_lt_DD=$lt_DD
7204fi
7205
7206rm -f conftest.i conftest2.i conftest.out
7207fi
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7209$as_echo "$ac_cv_path_lt_DD" >&6; }
7210
7211
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7213$as_echo_n "checking how to truncate binary pipes... " >&6; }
7214if ${lt_cv_truncate_bin+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  printf 0123456789abcdef0123456789abcdef >conftest.i
7218cat conftest.i conftest.i >conftest2.i
7219lt_cv_truncate_bin=
7220if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7221  cmp -s conftest.i conftest.out \
7222  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7223fi
7224rm -f conftest.i conftest2.i conftest.out
7225test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7226fi
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7228$as_echo "$lt_cv_truncate_bin" >&6; }
7229
7230
7231
7232
7233
7234
7235
7236# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7237func_cc_basename ()
7238{
7239    for cc_temp in $*""; do
7240      case $cc_temp in
7241        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7242        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7243        \-*) ;;
7244        *) break;;
7245      esac
7246    done
7247    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7248}
7249
7250# Check whether --enable-libtool-lock was given.
7251if test "${enable_libtool_lock+set}" = set; then :
7252  enableval=$enable_libtool_lock;
7253fi
7254
7255test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7256
7257# Some flags need to be propagated to the compiler or linker for good
7258# libtool support.
7259case $host in
7260ia64-*-hpux*)
7261  # Find out what ABI is being produced by ac_compile, and set mode
7262  # options accordingly.
7263  echo 'int i;' > conftest.$ac_ext
7264  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7265  (eval $ac_compile) 2>&5
7266  ac_status=$?
7267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7268  test $ac_status = 0; }; then
7269    case `/usr/bin/file conftest.$ac_objext` in
7270      *ELF-32*)
7271	HPUX_IA64_MODE=32
7272	;;
7273      *ELF-64*)
7274	HPUX_IA64_MODE=64
7275	;;
7276    esac
7277  fi
7278  rm -rf conftest*
7279  ;;
7280*-*-irix6*)
7281  # Find out what ABI is being produced by ac_compile, and set linker
7282  # options accordingly.
7283  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7284  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7285  (eval $ac_compile) 2>&5
7286  ac_status=$?
7287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288  test $ac_status = 0; }; then
7289    if test yes = "$lt_cv_prog_gnu_ld"; then
7290      case `/usr/bin/file conftest.$ac_objext` in
7291	*32-bit*)
7292	  LD="${LD-ld} -melf32bsmip"
7293	  ;;
7294	*N32*)
7295	  LD="${LD-ld} -melf32bmipn32"
7296	  ;;
7297	*64-bit*)
7298	  LD="${LD-ld} -melf64bmip"
7299	;;
7300      esac
7301    else
7302      case `/usr/bin/file conftest.$ac_objext` in
7303	*32-bit*)
7304	  LD="${LD-ld} -32"
7305	  ;;
7306	*N32*)
7307	  LD="${LD-ld} -n32"
7308	  ;;
7309	*64-bit*)
7310	  LD="${LD-ld} -64"
7311	  ;;
7312      esac
7313    fi
7314  fi
7315  rm -rf conftest*
7316  ;;
7317
7318mips64*-*linux*)
7319  # Find out what ABI is being produced by ac_compile, and set linker
7320  # options accordingly.
7321  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7322  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7323  (eval $ac_compile) 2>&5
7324  ac_status=$?
7325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326  test $ac_status = 0; }; then
7327    emul=elf
7328    case `/usr/bin/file conftest.$ac_objext` in
7329      *32-bit*)
7330	emul="${emul}32"
7331	;;
7332      *64-bit*)
7333	emul="${emul}64"
7334	;;
7335    esac
7336    case `/usr/bin/file conftest.$ac_objext` in
7337      *MSB*)
7338	emul="${emul}btsmip"
7339	;;
7340      *LSB*)
7341	emul="${emul}ltsmip"
7342	;;
7343    esac
7344    case `/usr/bin/file conftest.$ac_objext` in
7345      *N32*)
7346	emul="${emul}n32"
7347	;;
7348    esac
7349    LD="${LD-ld} -m $emul"
7350  fi
7351  rm -rf conftest*
7352  ;;
7353
7354x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7355s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7356  # Find out what ABI is being produced by ac_compile, and set linker
7357  # options accordingly.  Note that the listed cases only cover the
7358  # situations where additional linker options are needed (such as when
7359  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7360  # vice versa); the common cases where no linker options are needed do
7361  # not appear in the list.
7362  echo 'int i;' > conftest.$ac_ext
7363  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364  (eval $ac_compile) 2>&5
7365  ac_status=$?
7366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367  test $ac_status = 0; }; then
7368    case `/usr/bin/file conftest.o` in
7369      *32-bit*)
7370	case $host in
7371	  x86_64-*kfreebsd*-gnu)
7372	    LD="${LD-ld} -m elf_i386_fbsd"
7373	    ;;
7374	  x86_64-*linux*)
7375	    case `/usr/bin/file conftest.o` in
7376	      *x86-64*)
7377		LD="${LD-ld} -m elf32_x86_64"
7378		;;
7379	      *)
7380		LD="${LD-ld} -m elf_i386"
7381		;;
7382	    esac
7383	    ;;
7384	  powerpc64le-*linux*)
7385	    LD="${LD-ld} -m elf32lppclinux"
7386	    ;;
7387	  powerpc64-*linux*)
7388	    LD="${LD-ld} -m elf32ppclinux"
7389	    ;;
7390	  s390x-*linux*)
7391	    LD="${LD-ld} -m elf_s390"
7392	    ;;
7393	  sparc64-*linux*)
7394	    LD="${LD-ld} -m elf32_sparc"
7395	    ;;
7396	esac
7397	;;
7398      *64-bit*)
7399	case $host in
7400	  x86_64-*kfreebsd*-gnu)
7401	    LD="${LD-ld} -m elf_x86_64_fbsd"
7402	    ;;
7403	  x86_64-*linux*)
7404	    LD="${LD-ld} -m elf_x86_64"
7405	    ;;
7406	  powerpcle-*linux*)
7407	    LD="${LD-ld} -m elf64lppc"
7408	    ;;
7409	  powerpc-*linux*)
7410	    LD="${LD-ld} -m elf64ppc"
7411	    ;;
7412	  s390*-*linux*|s390*-*tpf*)
7413	    LD="${LD-ld} -m elf64_s390"
7414	    ;;
7415	  sparc*-*linux*)
7416	    LD="${LD-ld} -m elf64_sparc"
7417	    ;;
7418	esac
7419	;;
7420    esac
7421  fi
7422  rm -rf conftest*
7423  ;;
7424
7425*-*-sco3.2v5*)
7426  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7427  SAVE_CFLAGS=$CFLAGS
7428  CFLAGS="$CFLAGS -belf"
7429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7430$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7431if ${lt_cv_cc_needs_belf+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  ac_ext=c
7435ac_cpp='$CPP $CPPFLAGS'
7436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439
7440     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h.  */
7442
7443int
7444main ()
7445{
7446
7447  ;
7448  return 0;
7449}
7450_ACEOF
7451if ac_fn_c_try_link "$LINENO"; then :
7452  lt_cv_cc_needs_belf=yes
7453else
7454  lt_cv_cc_needs_belf=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext \
7457    conftest$ac_exeext conftest.$ac_ext
7458     ac_ext=c
7459ac_cpp='$CPP $CPPFLAGS'
7460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463
7464fi
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7466$as_echo "$lt_cv_cc_needs_belf" >&6; }
7467  if test yes != "$lt_cv_cc_needs_belf"; then
7468    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7469    CFLAGS=$SAVE_CFLAGS
7470  fi
7471  ;;
7472*-*solaris*)
7473  # Find out what ABI is being produced by ac_compile, and set linker
7474  # options accordingly.
7475  echo 'int i;' > conftest.$ac_ext
7476  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7477  (eval $ac_compile) 2>&5
7478  ac_status=$?
7479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480  test $ac_status = 0; }; then
7481    case `/usr/bin/file conftest.o` in
7482    *64-bit*)
7483      case $lt_cv_prog_gnu_ld in
7484      yes*)
7485        case $host in
7486        i?86-*-solaris*|x86_64-*-solaris*)
7487          LD="${LD-ld} -m elf_x86_64"
7488          ;;
7489        sparc*-*-solaris*)
7490          LD="${LD-ld} -m elf64_sparc"
7491          ;;
7492        esac
7493        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7494        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7495          LD=${LD-ld}_sol2
7496        fi
7497        ;;
7498      *)
7499	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7500	  LD="${LD-ld} -64"
7501	fi
7502	;;
7503      esac
7504      ;;
7505    esac
7506  fi
7507  rm -rf conftest*
7508  ;;
7509esac
7510
7511need_locks=$enable_libtool_lock
7512
7513if test -n "$ac_tool_prefix"; then
7514  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7515set dummy ${ac_tool_prefix}mt; ac_word=$2
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517$as_echo_n "checking for $ac_word... " >&6; }
7518if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7519  $as_echo_n "(cached) " >&6
7520else
7521  if test -n "$MANIFEST_TOOL"; then
7522  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527  IFS=$as_save_IFS
7528  test -z "$as_dir" && as_dir=.
7529    for ac_exec_ext in '' $ac_executable_extensions; do
7530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533    break 2
7534  fi
7535done
7536  done
7537IFS=$as_save_IFS
7538
7539fi
7540fi
7541MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7542if test -n "$MANIFEST_TOOL"; then
7543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7544$as_echo "$MANIFEST_TOOL" >&6; }
7545else
7546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
7548fi
7549
7550
7551fi
7552if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7553  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7554  # Extract the first word of "mt", so it can be a program name with args.
7555set dummy mt; ac_word=$2
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557$as_echo_n "checking for $ac_word... " >&6; }
7558if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7559  $as_echo_n "(cached) " >&6
7560else
7561  if test -n "$ac_ct_MANIFEST_TOOL"; then
7562  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7563else
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567  IFS=$as_save_IFS
7568  test -z "$as_dir" && as_dir=.
7569    for ac_exec_ext in '' $ac_executable_extensions; do
7570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573    break 2
7574  fi
7575done
7576  done
7577IFS=$as_save_IFS
7578
7579fi
7580fi
7581ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7582if test -n "$ac_ct_MANIFEST_TOOL"; then
7583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7584$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7585else
7586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587$as_echo "no" >&6; }
7588fi
7589
7590  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7591    MANIFEST_TOOL=":"
7592  else
7593    case $cross_compiling:$ac_tool_warned in
7594yes:)
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597ac_tool_warned=yes ;;
7598esac
7599    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7600  fi
7601else
7602  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7603fi
7604
7605test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7607$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7608if ${lt_cv_path_mainfest_tool+:} false; then :
7609  $as_echo_n "(cached) " >&6
7610else
7611  lt_cv_path_mainfest_tool=no
7612  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7613  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7614  cat conftest.err >&5
7615  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7616    lt_cv_path_mainfest_tool=yes
7617  fi
7618  rm -f conftest*
7619fi
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7621$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7622if test yes != "$lt_cv_path_mainfest_tool"; then
7623  MANIFEST_TOOL=:
7624fi
7625
7626
7627
7628
7629
7630
7631  case $host_os in
7632    rhapsody* | darwin*)
7633    if test -n "$ac_tool_prefix"; then
7634  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7635set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637$as_echo_n "checking for $ac_word... " >&6; }
7638if ${ac_cv_prog_DSYMUTIL+:} false; then :
7639  $as_echo_n "(cached) " >&6
7640else
7641  if test -n "$DSYMUTIL"; then
7642  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647  IFS=$as_save_IFS
7648  test -z "$as_dir" && as_dir=.
7649    for ac_exec_ext in '' $ac_executable_extensions; do
7650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653    break 2
7654  fi
7655done
7656  done
7657IFS=$as_save_IFS
7658
7659fi
7660fi
7661DSYMUTIL=$ac_cv_prog_DSYMUTIL
7662if test -n "$DSYMUTIL"; then
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7664$as_echo "$DSYMUTIL" >&6; }
7665else
7666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667$as_echo "no" >&6; }
7668fi
7669
7670
7671fi
7672if test -z "$ac_cv_prog_DSYMUTIL"; then
7673  ac_ct_DSYMUTIL=$DSYMUTIL
7674  # Extract the first word of "dsymutil", so it can be a program name with args.
7675set dummy dsymutil; ac_word=$2
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677$as_echo_n "checking for $ac_word... " >&6; }
7678if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  if test -n "$ac_ct_DSYMUTIL"; then
7682  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7683else
7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687  IFS=$as_save_IFS
7688  test -z "$as_dir" && as_dir=.
7689    for ac_exec_ext in '' $ac_executable_extensions; do
7690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693    break 2
7694  fi
7695done
7696  done
7697IFS=$as_save_IFS
7698
7699fi
7700fi
7701ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7702if test -n "$ac_ct_DSYMUTIL"; then
7703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7704$as_echo "$ac_ct_DSYMUTIL" >&6; }
7705else
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
7708fi
7709
7710  if test "x$ac_ct_DSYMUTIL" = x; then
7711    DSYMUTIL=":"
7712  else
7713    case $cross_compiling:$ac_tool_warned in
7714yes:)
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717ac_tool_warned=yes ;;
7718esac
7719    DSYMUTIL=$ac_ct_DSYMUTIL
7720  fi
7721else
7722  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7723fi
7724
7725    if test -n "$ac_tool_prefix"; then
7726  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7727set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729$as_echo_n "checking for $ac_word... " >&6; }
7730if ${ac_cv_prog_NMEDIT+:} false; then :
7731  $as_echo_n "(cached) " >&6
7732else
7733  if test -n "$NMEDIT"; then
7734  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7735else
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739  IFS=$as_save_IFS
7740  test -z "$as_dir" && as_dir=.
7741    for ac_exec_ext in '' $ac_executable_extensions; do
7742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745    break 2
7746  fi
7747done
7748  done
7749IFS=$as_save_IFS
7750
7751fi
7752fi
7753NMEDIT=$ac_cv_prog_NMEDIT
7754if test -n "$NMEDIT"; then
7755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7756$as_echo "$NMEDIT" >&6; }
7757else
7758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759$as_echo "no" >&6; }
7760fi
7761
7762
7763fi
7764if test -z "$ac_cv_prog_NMEDIT"; then
7765  ac_ct_NMEDIT=$NMEDIT
7766  # Extract the first word of "nmedit", so it can be a program name with args.
7767set dummy nmedit; ac_word=$2
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769$as_echo_n "checking for $ac_word... " >&6; }
7770if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  if test -n "$ac_ct_NMEDIT"; then
7774  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7775else
7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779  IFS=$as_save_IFS
7780  test -z "$as_dir" && as_dir=.
7781    for ac_exec_ext in '' $ac_executable_extensions; do
7782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785    break 2
7786  fi
7787done
7788  done
7789IFS=$as_save_IFS
7790
7791fi
7792fi
7793ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7794if test -n "$ac_ct_NMEDIT"; then
7795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7796$as_echo "$ac_ct_NMEDIT" >&6; }
7797else
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799$as_echo "no" >&6; }
7800fi
7801
7802  if test "x$ac_ct_NMEDIT" = x; then
7803    NMEDIT=":"
7804  else
7805    case $cross_compiling:$ac_tool_warned in
7806yes:)
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809ac_tool_warned=yes ;;
7810esac
7811    NMEDIT=$ac_ct_NMEDIT
7812  fi
7813else
7814  NMEDIT="$ac_cv_prog_NMEDIT"
7815fi
7816
7817    if test -n "$ac_tool_prefix"; then
7818  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7819set dummy ${ac_tool_prefix}lipo; ac_word=$2
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821$as_echo_n "checking for $ac_word... " >&6; }
7822if ${ac_cv_prog_LIPO+:} false; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  if test -n "$LIPO"; then
7826  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7827else
7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831  IFS=$as_save_IFS
7832  test -z "$as_dir" && as_dir=.
7833    for ac_exec_ext in '' $ac_executable_extensions; do
7834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837    break 2
7838  fi
7839done
7840  done
7841IFS=$as_save_IFS
7842
7843fi
7844fi
7845LIPO=$ac_cv_prog_LIPO
7846if test -n "$LIPO"; then
7847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7848$as_echo "$LIPO" >&6; }
7849else
7850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851$as_echo "no" >&6; }
7852fi
7853
7854
7855fi
7856if test -z "$ac_cv_prog_LIPO"; then
7857  ac_ct_LIPO=$LIPO
7858  # Extract the first word of "lipo", so it can be a program name with args.
7859set dummy lipo; ac_word=$2
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861$as_echo_n "checking for $ac_word... " >&6; }
7862if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7863  $as_echo_n "(cached) " >&6
7864else
7865  if test -n "$ac_ct_LIPO"; then
7866  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7867else
7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869for as_dir in $PATH
7870do
7871  IFS=$as_save_IFS
7872  test -z "$as_dir" && as_dir=.
7873    for ac_exec_ext in '' $ac_executable_extensions; do
7874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875    ac_cv_prog_ac_ct_LIPO="lipo"
7876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877    break 2
7878  fi
7879done
7880  done
7881IFS=$as_save_IFS
7882
7883fi
7884fi
7885ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7886if test -n "$ac_ct_LIPO"; then
7887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7888$as_echo "$ac_ct_LIPO" >&6; }
7889else
7890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891$as_echo "no" >&6; }
7892fi
7893
7894  if test "x$ac_ct_LIPO" = x; then
7895    LIPO=":"
7896  else
7897    case $cross_compiling:$ac_tool_warned in
7898yes:)
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7901ac_tool_warned=yes ;;
7902esac
7903    LIPO=$ac_ct_LIPO
7904  fi
7905else
7906  LIPO="$ac_cv_prog_LIPO"
7907fi
7908
7909    if test -n "$ac_tool_prefix"; then
7910  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7911set dummy ${ac_tool_prefix}otool; ac_word=$2
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913$as_echo_n "checking for $ac_word... " >&6; }
7914if ${ac_cv_prog_OTOOL+:} false; then :
7915  $as_echo_n "(cached) " >&6
7916else
7917  if test -n "$OTOOL"; then
7918  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7919else
7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH
7922do
7923  IFS=$as_save_IFS
7924  test -z "$as_dir" && as_dir=.
7925    for ac_exec_ext in '' $ac_executable_extensions; do
7926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929    break 2
7930  fi
7931done
7932  done
7933IFS=$as_save_IFS
7934
7935fi
7936fi
7937OTOOL=$ac_cv_prog_OTOOL
7938if test -n "$OTOOL"; then
7939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7940$as_echo "$OTOOL" >&6; }
7941else
7942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943$as_echo "no" >&6; }
7944fi
7945
7946
7947fi
7948if test -z "$ac_cv_prog_OTOOL"; then
7949  ac_ct_OTOOL=$OTOOL
7950  # Extract the first word of "otool", so it can be a program name with args.
7951set dummy otool; ac_word=$2
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953$as_echo_n "checking for $ac_word... " >&6; }
7954if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7955  $as_echo_n "(cached) " >&6
7956else
7957  if test -n "$ac_ct_OTOOL"; then
7958  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7959else
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963  IFS=$as_save_IFS
7964  test -z "$as_dir" && as_dir=.
7965    for ac_exec_ext in '' $ac_executable_extensions; do
7966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967    ac_cv_prog_ac_ct_OTOOL="otool"
7968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969    break 2
7970  fi
7971done
7972  done
7973IFS=$as_save_IFS
7974
7975fi
7976fi
7977ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7978if test -n "$ac_ct_OTOOL"; then
7979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7980$as_echo "$ac_ct_OTOOL" >&6; }
7981else
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
7984fi
7985
7986  if test "x$ac_ct_OTOOL" = x; then
7987    OTOOL=":"
7988  else
7989    case $cross_compiling:$ac_tool_warned in
7990yes:)
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993ac_tool_warned=yes ;;
7994esac
7995    OTOOL=$ac_ct_OTOOL
7996  fi
7997else
7998  OTOOL="$ac_cv_prog_OTOOL"
7999fi
8000
8001    if test -n "$ac_tool_prefix"; then
8002  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8003set dummy ${ac_tool_prefix}otool64; ac_word=$2
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005$as_echo_n "checking for $ac_word... " >&6; }
8006if ${ac_cv_prog_OTOOL64+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  if test -n "$OTOOL64"; then
8010  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8011else
8012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013for as_dir in $PATH
8014do
8015  IFS=$as_save_IFS
8016  test -z "$as_dir" && as_dir=.
8017    for ac_exec_ext in '' $ac_executable_extensions; do
8018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021    break 2
8022  fi
8023done
8024  done
8025IFS=$as_save_IFS
8026
8027fi
8028fi
8029OTOOL64=$ac_cv_prog_OTOOL64
8030if test -n "$OTOOL64"; then
8031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8032$as_echo "$OTOOL64" >&6; }
8033else
8034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035$as_echo "no" >&6; }
8036fi
8037
8038
8039fi
8040if test -z "$ac_cv_prog_OTOOL64"; then
8041  ac_ct_OTOOL64=$OTOOL64
8042  # Extract the first word of "otool64", so it can be a program name with args.
8043set dummy otool64; ac_word=$2
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045$as_echo_n "checking for $ac_word... " >&6; }
8046if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8047  $as_echo_n "(cached) " >&6
8048else
8049  if test -n "$ac_ct_OTOOL64"; then
8050  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8051else
8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055  IFS=$as_save_IFS
8056  test -z "$as_dir" && as_dir=.
8057    for ac_exec_ext in '' $ac_executable_extensions; do
8058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8059    ac_cv_prog_ac_ct_OTOOL64="otool64"
8060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061    break 2
8062  fi
8063done
8064  done
8065IFS=$as_save_IFS
8066
8067fi
8068fi
8069ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8070if test -n "$ac_ct_OTOOL64"; then
8071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8072$as_echo "$ac_ct_OTOOL64" >&6; }
8073else
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075$as_echo "no" >&6; }
8076fi
8077
8078  if test "x$ac_ct_OTOOL64" = x; then
8079    OTOOL64=":"
8080  else
8081    case $cross_compiling:$ac_tool_warned in
8082yes:)
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8085ac_tool_warned=yes ;;
8086esac
8087    OTOOL64=$ac_ct_OTOOL64
8088  fi
8089else
8090  OTOOL64="$ac_cv_prog_OTOOL64"
8091fi
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8120$as_echo_n "checking for -single_module linker flag... " >&6; }
8121if ${lt_cv_apple_cc_single_mod+:} false; then :
8122  $as_echo_n "(cached) " >&6
8123else
8124  lt_cv_apple_cc_single_mod=no
8125      if test -z "$LT_MULTI_MODULE"; then
8126	# By default we will add the -single_module flag. You can override
8127	# by either setting the environment variable LT_MULTI_MODULE
8128	# non-empty at configure time, or by adding -multi_module to the
8129	# link flags.
8130	rm -rf libconftest.dylib*
8131	echo "int foo(void){return 1;}" > conftest.c
8132	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8133-dynamiclib -Wl,-single_module conftest.c" >&5
8134	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8135	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8136        _lt_result=$?
8137	# If there is a non-empty error log, and "single_module"
8138	# appears in it, assume the flag caused a linker warning
8139        if test -s conftest.err && $GREP single_module conftest.err; then
8140	  cat conftest.err >&5
8141	# Otherwise, if the output was created with a 0 exit code from
8142	# the compiler, it worked.
8143	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8144	  lt_cv_apple_cc_single_mod=yes
8145	else
8146	  cat conftest.err >&5
8147	fi
8148	rm -rf libconftest.dylib*
8149	rm -f conftest.*
8150      fi
8151fi
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8153$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8154
8155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8156$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8157if ${lt_cv_ld_exported_symbols_list+:} false; then :
8158  $as_echo_n "(cached) " >&6
8159else
8160  lt_cv_ld_exported_symbols_list=no
8161      save_LDFLAGS=$LDFLAGS
8162      echo "_main" > conftest.sym
8163      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8164      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166
8167int
8168main ()
8169{
8170
8171  ;
8172  return 0;
8173}
8174_ACEOF
8175if ac_fn_c_try_link "$LINENO"; then :
8176  lt_cv_ld_exported_symbols_list=yes
8177else
8178  lt_cv_ld_exported_symbols_list=no
8179fi
8180rm -f core conftest.err conftest.$ac_objext \
8181    conftest$ac_exeext conftest.$ac_ext
8182	LDFLAGS=$save_LDFLAGS
8183
8184fi
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8186$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8187
8188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8189$as_echo_n "checking for -force_load linker flag... " >&6; }
8190if ${lt_cv_ld_force_load+:} false; then :
8191  $as_echo_n "(cached) " >&6
8192else
8193  lt_cv_ld_force_load=no
8194      cat > conftest.c << _LT_EOF
8195int forced_loaded() { return 2;}
8196_LT_EOF
8197      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8198      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8199      echo "$AR cru libconftest.a conftest.o" >&5
8200      $AR cru libconftest.a conftest.o 2>&5
8201      echo "$RANLIB libconftest.a" >&5
8202      $RANLIB libconftest.a 2>&5
8203      cat > conftest.c << _LT_EOF
8204int main() { return 0;}
8205_LT_EOF
8206      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8207      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8208      _lt_result=$?
8209      if test -s conftest.err && $GREP force_load conftest.err; then
8210	cat conftest.err >&5
8211      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8212	lt_cv_ld_force_load=yes
8213      else
8214	cat conftest.err >&5
8215      fi
8216        rm -f conftest.err libconftest.a conftest conftest.c
8217        rm -rf conftest.dSYM
8218
8219fi
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8221$as_echo "$lt_cv_ld_force_load" >&6; }
8222    case $host_os in
8223    rhapsody* | darwin1.[012])
8224      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8225    darwin1.*)
8226      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8227    darwin*) # darwin 5.x on
8228      # if running on 10.5 or later, the deployment target defaults
8229      # to the OS version, if on x86, and 10.4, the deployment
8230      # target defaults to 10.4. Don't you love it?
8231      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8232	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8233	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8234	10.[012][,.]*)
8235	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8236	10.*)
8237	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8238      esac
8239    ;;
8240  esac
8241    if test yes = "$lt_cv_apple_cc_single_mod"; then
8242      _lt_dar_single_mod='$single_module'
8243    fi
8244    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8245      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8246    else
8247      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8248    fi
8249    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8250      _lt_dsymutil='~$DSYMUTIL $lib || :'
8251    else
8252      _lt_dsymutil=
8253    fi
8254    ;;
8255  esac
8256
8257# func_munge_path_list VARIABLE PATH
8258# -----------------------------------
8259# VARIABLE is name of variable containing _space_ separated list of
8260# directories to be munged by the contents of PATH, which is string
8261# having a format:
8262# "DIR[:DIR]:"
8263#       string "DIR[ DIR]" will be prepended to VARIABLE
8264# ":DIR[:DIR]"
8265#       string "DIR[ DIR]" will be appended to VARIABLE
8266# "DIRP[:DIRP]::[DIRA:]DIRA"
8267#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8268#       "DIRA[ DIRA]" will be appended to VARIABLE
8269# "DIR[:DIR]"
8270#       VARIABLE will be replaced by "DIR[ DIR]"
8271func_munge_path_list ()
8272{
8273    case x$2 in
8274    x)
8275        ;;
8276    *:)
8277        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8278        ;;
8279    x:*)
8280        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8281        ;;
8282    *::*)
8283        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8284        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8285        ;;
8286    *)
8287        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8288        ;;
8289    esac
8290}
8291
8292for ac_header in dlfcn.h
8293do :
8294  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8295"
8296if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8297  cat >>confdefs.h <<_ACEOF
8298#define HAVE_DLFCN_H 1
8299_ACEOF
8300
8301fi
8302
8303done
8304
8305
8306
8307
8308
8309# Set options
8310enable_win32_dll=yes
8311
8312case $host in
8313*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8314  if test -n "$ac_tool_prefix"; then
8315  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8316set dummy ${ac_tool_prefix}as; ac_word=$2
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318$as_echo_n "checking for $ac_word... " >&6; }
8319if ${ac_cv_prog_AS+:} false; then :
8320  $as_echo_n "(cached) " >&6
8321else
8322  if test -n "$AS"; then
8323  ac_cv_prog_AS="$AS" # Let the user override the test.
8324else
8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326for as_dir in $PATH
8327do
8328  IFS=$as_save_IFS
8329  test -z "$as_dir" && as_dir=.
8330    for ac_exec_ext in '' $ac_executable_extensions; do
8331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332    ac_cv_prog_AS="${ac_tool_prefix}as"
8333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334    break 2
8335  fi
8336done
8337  done
8338IFS=$as_save_IFS
8339
8340fi
8341fi
8342AS=$ac_cv_prog_AS
8343if test -n "$AS"; then
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8345$as_echo "$AS" >&6; }
8346else
8347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348$as_echo "no" >&6; }
8349fi
8350
8351
8352fi
8353if test -z "$ac_cv_prog_AS"; then
8354  ac_ct_AS=$AS
8355  # Extract the first word of "as", so it can be a program name with args.
8356set dummy as; ac_word=$2
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358$as_echo_n "checking for $ac_word... " >&6; }
8359if ${ac_cv_prog_ac_ct_AS+:} false; then :
8360  $as_echo_n "(cached) " >&6
8361else
8362  if test -n "$ac_ct_AS"; then
8363  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8364else
8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368  IFS=$as_save_IFS
8369  test -z "$as_dir" && as_dir=.
8370    for ac_exec_ext in '' $ac_executable_extensions; do
8371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8372    ac_cv_prog_ac_ct_AS="as"
8373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374    break 2
8375  fi
8376done
8377  done
8378IFS=$as_save_IFS
8379
8380fi
8381fi
8382ac_ct_AS=$ac_cv_prog_ac_ct_AS
8383if test -n "$ac_ct_AS"; then
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8385$as_echo "$ac_ct_AS" >&6; }
8386else
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391  if test "x$ac_ct_AS" = x; then
8392    AS="false"
8393  else
8394    case $cross_compiling:$ac_tool_warned in
8395yes:)
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398ac_tool_warned=yes ;;
8399esac
8400    AS=$ac_ct_AS
8401  fi
8402else
8403  AS="$ac_cv_prog_AS"
8404fi
8405
8406  if test -n "$ac_tool_prefix"; then
8407  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8408set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410$as_echo_n "checking for $ac_word... " >&6; }
8411if ${ac_cv_prog_DLLTOOL+:} false; then :
8412  $as_echo_n "(cached) " >&6
8413else
8414  if test -n "$DLLTOOL"; then
8415  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8416else
8417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418for as_dir in $PATH
8419do
8420  IFS=$as_save_IFS
8421  test -z "$as_dir" && as_dir=.
8422    for ac_exec_ext in '' $ac_executable_extensions; do
8423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8424    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426    break 2
8427  fi
8428done
8429  done
8430IFS=$as_save_IFS
8431
8432fi
8433fi
8434DLLTOOL=$ac_cv_prog_DLLTOOL
8435if test -n "$DLLTOOL"; then
8436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8437$as_echo "$DLLTOOL" >&6; }
8438else
8439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440$as_echo "no" >&6; }
8441fi
8442
8443
8444fi
8445if test -z "$ac_cv_prog_DLLTOOL"; then
8446  ac_ct_DLLTOOL=$DLLTOOL
8447  # Extract the first word of "dlltool", so it can be a program name with args.
8448set dummy dlltool; ac_word=$2
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450$as_echo_n "checking for $ac_word... " >&6; }
8451if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8452  $as_echo_n "(cached) " >&6
8453else
8454  if test -n "$ac_ct_DLLTOOL"; then
8455  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8456else
8457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458for as_dir in $PATH
8459do
8460  IFS=$as_save_IFS
8461  test -z "$as_dir" && as_dir=.
8462    for ac_exec_ext in '' $ac_executable_extensions; do
8463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466    break 2
8467  fi
8468done
8469  done
8470IFS=$as_save_IFS
8471
8472fi
8473fi
8474ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8475if test -n "$ac_ct_DLLTOOL"; then
8476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8477$as_echo "$ac_ct_DLLTOOL" >&6; }
8478else
8479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480$as_echo "no" >&6; }
8481fi
8482
8483  if test "x$ac_ct_DLLTOOL" = x; then
8484    DLLTOOL="false"
8485  else
8486    case $cross_compiling:$ac_tool_warned in
8487yes:)
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490ac_tool_warned=yes ;;
8491esac
8492    DLLTOOL=$ac_ct_DLLTOOL
8493  fi
8494else
8495  DLLTOOL="$ac_cv_prog_DLLTOOL"
8496fi
8497
8498  if test -n "$ac_tool_prefix"; then
8499  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8500set dummy ${ac_tool_prefix}objdump; ac_word=$2
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502$as_echo_n "checking for $ac_word... " >&6; }
8503if ${ac_cv_prog_OBJDUMP+:} false; then :
8504  $as_echo_n "(cached) " >&6
8505else
8506  if test -n "$OBJDUMP"; then
8507  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8508else
8509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512  IFS=$as_save_IFS
8513  test -z "$as_dir" && as_dir=.
8514    for ac_exec_ext in '' $ac_executable_extensions; do
8515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518    break 2
8519  fi
8520done
8521  done
8522IFS=$as_save_IFS
8523
8524fi
8525fi
8526OBJDUMP=$ac_cv_prog_OBJDUMP
8527if test -n "$OBJDUMP"; then
8528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8529$as_echo "$OBJDUMP" >&6; }
8530else
8531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532$as_echo "no" >&6; }
8533fi
8534
8535
8536fi
8537if test -z "$ac_cv_prog_OBJDUMP"; then
8538  ac_ct_OBJDUMP=$OBJDUMP
8539  # Extract the first word of "objdump", so it can be a program name with args.
8540set dummy objdump; ac_word=$2
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542$as_echo_n "checking for $ac_word... " >&6; }
8543if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8544  $as_echo_n "(cached) " >&6
8545else
8546  if test -n "$ac_ct_OBJDUMP"; then
8547  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8548else
8549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550for as_dir in $PATH
8551do
8552  IFS=$as_save_IFS
8553  test -z "$as_dir" && as_dir=.
8554    for ac_exec_ext in '' $ac_executable_extensions; do
8555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558    break 2
8559  fi
8560done
8561  done
8562IFS=$as_save_IFS
8563
8564fi
8565fi
8566ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8567if test -n "$ac_ct_OBJDUMP"; then
8568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8569$as_echo "$ac_ct_OBJDUMP" >&6; }
8570else
8571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572$as_echo "no" >&6; }
8573fi
8574
8575  if test "x$ac_ct_OBJDUMP" = x; then
8576    OBJDUMP="false"
8577  else
8578    case $cross_compiling:$ac_tool_warned in
8579yes:)
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8582ac_tool_warned=yes ;;
8583esac
8584    OBJDUMP=$ac_ct_OBJDUMP
8585  fi
8586else
8587  OBJDUMP="$ac_cv_prog_OBJDUMP"
8588fi
8589
8590  ;;
8591esac
8592
8593test -z "$AS" && AS=as
8594
8595
8596
8597
8598
8599test -z "$DLLTOOL" && DLLTOOL=dlltool
8600
8601
8602
8603
8604
8605test -z "$OBJDUMP" && OBJDUMP=objdump
8606
8607
8608
8609
8610
8611
8612
8613        enable_dlopen=no
8614
8615
8616
8617            # Check whether --enable-shared was given.
8618if test "${enable_shared+set}" = set; then :
8619  enableval=$enable_shared; p=${PACKAGE-default}
8620    case $enableval in
8621    yes) enable_shared=yes ;;
8622    no) enable_shared=no ;;
8623    *)
8624      enable_shared=no
8625      # Look at the argument we got.  We use all the common list separators.
8626      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8627      for pkg in $enableval; do
8628	IFS=$lt_save_ifs
8629	if test "X$pkg" = "X$p"; then
8630	  enable_shared=yes
8631	fi
8632      done
8633      IFS=$lt_save_ifs
8634      ;;
8635    esac
8636else
8637  enable_shared=yes
8638fi
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648  # Check whether --enable-static was given.
8649if test "${enable_static+set}" = set; then :
8650  enableval=$enable_static; p=${PACKAGE-default}
8651    case $enableval in
8652    yes) enable_static=yes ;;
8653    no) enable_static=no ;;
8654    *)
8655     enable_static=no
8656      # Look at the argument we got.  We use all the common list separators.
8657      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8658      for pkg in $enableval; do
8659	IFS=$lt_save_ifs
8660	if test "X$pkg" = "X$p"; then
8661	  enable_static=yes
8662	fi
8663      done
8664      IFS=$lt_save_ifs
8665      ;;
8666    esac
8667else
8668  enable_static=yes
8669fi
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680# Check whether --with-pic was given.
8681if test "${with_pic+set}" = set; then :
8682  withval=$with_pic; lt_p=${PACKAGE-default}
8683    case $withval in
8684    yes|no) pic_mode=$withval ;;
8685    *)
8686      pic_mode=default
8687      # Look at the argument we got.  We use all the common list separators.
8688      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8689      for lt_pkg in $withval; do
8690	IFS=$lt_save_ifs
8691	if test "X$lt_pkg" = "X$lt_p"; then
8692	  pic_mode=yes
8693	fi
8694      done
8695      IFS=$lt_save_ifs
8696      ;;
8697    esac
8698else
8699  pic_mode=default
8700fi
8701
8702
8703
8704
8705
8706
8707
8708
8709  # Check whether --enable-fast-install was given.
8710if test "${enable_fast_install+set}" = set; then :
8711  enableval=$enable_fast_install; p=${PACKAGE-default}
8712    case $enableval in
8713    yes) enable_fast_install=yes ;;
8714    no) enable_fast_install=no ;;
8715    *)
8716      enable_fast_install=no
8717      # Look at the argument we got.  We use all the common list separators.
8718      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8719      for pkg in $enableval; do
8720	IFS=$lt_save_ifs
8721	if test "X$pkg" = "X$p"; then
8722	  enable_fast_install=yes
8723	fi
8724      done
8725      IFS=$lt_save_ifs
8726      ;;
8727    esac
8728else
8729  enable_fast_install=yes
8730fi
8731
8732
8733
8734
8735
8736
8737
8738
8739  shared_archive_member_spec=
8740case $host,$enable_shared in
8741power*-*-aix[5-9]*,yes)
8742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8743$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8744
8745# Check whether --with-aix-soname was given.
8746if test "${with_aix_soname+set}" = set; then :
8747  withval=$with_aix_soname; case $withval in
8748    aix|svr4|both)
8749      ;;
8750    *)
8751      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8752      ;;
8753    esac
8754    lt_cv_with_aix_soname=$with_aix_soname
8755else
8756  if ${lt_cv_with_aix_soname+:} false; then :
8757  $as_echo_n "(cached) " >&6
8758else
8759  lt_cv_with_aix_soname=aix
8760fi
8761
8762    with_aix_soname=$lt_cv_with_aix_soname
8763fi
8764
8765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8766$as_echo "$with_aix_soname" >&6; }
8767  if test aix != "$with_aix_soname"; then
8768    # For the AIX way of multilib, we name the shared archive member
8769    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8770    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8771    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8772    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8773    if test 64 = "${OBJECT_MODE-32}"; then
8774      shared_archive_member_spec=shr_64
8775    else
8776      shared_archive_member_spec=shr
8777    fi
8778  fi
8779  ;;
8780*)
8781  with_aix_soname=aix
8782  ;;
8783esac
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794# This can be used to rebuild libtool when needed
8795LIBTOOL_DEPS=$ltmain
8796
8797# Always use our own libtool.
8798LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829test -z "$LN_S" && LN_S="ln -s"
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844if test -n "${ZSH_VERSION+set}"; then
8845   setopt NO_GLOB_SUBST
8846fi
8847
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8849$as_echo_n "checking for objdir... " >&6; }
8850if ${lt_cv_objdir+:} false; then :
8851  $as_echo_n "(cached) " >&6
8852else
8853  rm -f .libs 2>/dev/null
8854mkdir .libs 2>/dev/null
8855if test -d .libs; then
8856  lt_cv_objdir=.libs
8857else
8858  # MS-DOS does not allow filenames that begin with a dot.
8859  lt_cv_objdir=_libs
8860fi
8861rmdir .libs 2>/dev/null
8862fi
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8864$as_echo "$lt_cv_objdir" >&6; }
8865objdir=$lt_cv_objdir
8866
8867
8868
8869
8870
8871cat >>confdefs.h <<_ACEOF
8872#define LT_OBJDIR "$lt_cv_objdir/"
8873_ACEOF
8874
8875
8876
8877
8878case $host_os in
8879aix3*)
8880  # AIX sometimes has problems with the GCC collect2 program.  For some
8881  # reason, if we set the COLLECT_NAMES environment variable, the problems
8882  # vanish in a puff of smoke.
8883  if test set != "${COLLECT_NAMES+set}"; then
8884    COLLECT_NAMES=
8885    export COLLECT_NAMES
8886  fi
8887  ;;
8888esac
8889
8890# Global variables:
8891ofile=libtool
8892can_build_shared=yes
8893
8894# All known linkers require a '.a' archive for static linking (except MSVC,
8895# which needs '.lib').
8896libext=a
8897
8898with_gnu_ld=$lt_cv_prog_gnu_ld
8899
8900old_CC=$CC
8901old_CFLAGS=$CFLAGS
8902
8903# Set sane defaults for various variables
8904test -z "$CC" && CC=cc
8905test -z "$LTCC" && LTCC=$CC
8906test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8907test -z "$LD" && LD=ld
8908test -z "$ac_objext" && ac_objext=o
8909
8910func_cc_basename $compiler
8911cc_basename=$func_cc_basename_result
8912
8913
8914# Only perform the check for file, if the check method requires it
8915test -z "$MAGIC_CMD" && MAGIC_CMD=file
8916case $deplibs_check_method in
8917file_magic*)
8918  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8920$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8921if ${lt_cv_path_MAGIC_CMD+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  case $MAGIC_CMD in
8925[\\/*] |  ?:[\\/]*)
8926  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8927  ;;
8928*)
8929  lt_save_MAGIC_CMD=$MAGIC_CMD
8930  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8931  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8932  for ac_dir in $ac_dummy; do
8933    IFS=$lt_save_ifs
8934    test -z "$ac_dir" && ac_dir=.
8935    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8936      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8937      if test -n "$file_magic_test_file"; then
8938	case $deplibs_check_method in
8939	"file_magic "*)
8940	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8941	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8942	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8943	    $EGREP "$file_magic_regex" > /dev/null; then
8944	    :
8945	  else
8946	    cat <<_LT_EOF 1>&2
8947
8948*** Warning: the command libtool uses to detect shared libraries,
8949*** $file_magic_cmd, produces output that libtool cannot recognize.
8950*** The result is that libtool may fail to recognize shared libraries
8951*** as such.  This will affect the creation of libtool libraries that
8952*** depend on shared libraries, but programs linked with such libtool
8953*** libraries will work regardless of this problem.  Nevertheless, you
8954*** may want to report the problem to your system manager and/or to
8955*** bug-libtool@gnu.org
8956
8957_LT_EOF
8958	  fi ;;
8959	esac
8960      fi
8961      break
8962    fi
8963  done
8964  IFS=$lt_save_ifs
8965  MAGIC_CMD=$lt_save_MAGIC_CMD
8966  ;;
8967esac
8968fi
8969
8970MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8971if test -n "$MAGIC_CMD"; then
8972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8973$as_echo "$MAGIC_CMD" >&6; }
8974else
8975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976$as_echo "no" >&6; }
8977fi
8978
8979
8980
8981
8982
8983if test -z "$lt_cv_path_MAGIC_CMD"; then
8984  if test -n "$ac_tool_prefix"; then
8985    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8986$as_echo_n "checking for file... " >&6; }
8987if ${lt_cv_path_MAGIC_CMD+:} false; then :
8988  $as_echo_n "(cached) " >&6
8989else
8990  case $MAGIC_CMD in
8991[\\/*] |  ?:[\\/]*)
8992  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8993  ;;
8994*)
8995  lt_save_MAGIC_CMD=$MAGIC_CMD
8996  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8997  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8998  for ac_dir in $ac_dummy; do
8999    IFS=$lt_save_ifs
9000    test -z "$ac_dir" && ac_dir=.
9001    if test -f "$ac_dir/file"; then
9002      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9003      if test -n "$file_magic_test_file"; then
9004	case $deplibs_check_method in
9005	"file_magic "*)
9006	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9007	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9008	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9009	    $EGREP "$file_magic_regex" > /dev/null; then
9010	    :
9011	  else
9012	    cat <<_LT_EOF 1>&2
9013
9014*** Warning: the command libtool uses to detect shared libraries,
9015*** $file_magic_cmd, produces output that libtool cannot recognize.
9016*** The result is that libtool may fail to recognize shared libraries
9017*** as such.  This will affect the creation of libtool libraries that
9018*** depend on shared libraries, but programs linked with such libtool
9019*** libraries will work regardless of this problem.  Nevertheless, you
9020*** may want to report the problem to your system manager and/or to
9021*** bug-libtool@gnu.org
9022
9023_LT_EOF
9024	  fi ;;
9025	esac
9026      fi
9027      break
9028    fi
9029  done
9030  IFS=$lt_save_ifs
9031  MAGIC_CMD=$lt_save_MAGIC_CMD
9032  ;;
9033esac
9034fi
9035
9036MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9037if test -n "$MAGIC_CMD"; then
9038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9039$as_echo "$MAGIC_CMD" >&6; }
9040else
9041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
9043fi
9044
9045
9046  else
9047    MAGIC_CMD=:
9048  fi
9049fi
9050
9051  fi
9052  ;;
9053esac
9054
9055# Use C for the default configuration in the libtool script
9056
9057lt_save_CC=$CC
9058ac_ext=c
9059ac_cpp='$CPP $CPPFLAGS'
9060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9062ac_compiler_gnu=$ac_cv_c_compiler_gnu
9063
9064
9065# Source file extension for C test sources.
9066ac_ext=c
9067
9068# Object file extension for compiled C test sources.
9069objext=o
9070objext=$objext
9071
9072# Code to be used in simple compile tests
9073lt_simple_compile_test_code="int some_variable = 0;"
9074
9075# Code to be used in simple link tests
9076lt_simple_link_test_code='int main(){return(0);}'
9077
9078
9079
9080
9081
9082
9083
9084# If no C compiler was specified, use CC.
9085LTCC=${LTCC-"$CC"}
9086
9087# If no C compiler flags were specified, use CFLAGS.
9088LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9089
9090# Allow CC to be a program name with arguments.
9091compiler=$CC
9092
9093# Save the default compiler, since it gets overwritten when the other
9094# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9095compiler_DEFAULT=$CC
9096
9097# save warnings/boilerplate of simple test code
9098ac_outfile=conftest.$ac_objext
9099echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9100eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9101_lt_compiler_boilerplate=`cat conftest.err`
9102$RM conftest*
9103
9104ac_outfile=conftest.$ac_objext
9105echo "$lt_simple_link_test_code" >conftest.$ac_ext
9106eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9107_lt_linker_boilerplate=`cat conftest.err`
9108$RM -r conftest*
9109
9110
9111## CAVEAT EMPTOR:
9112## There is no encapsulation within the following macros, do not change
9113## the running order or otherwise move them around unless you know exactly
9114## what you are doing...
9115if test -n "$compiler"; then
9116
9117lt_prog_compiler_no_builtin_flag=
9118
9119if test yes = "$GCC"; then
9120  case $cc_basename in
9121  nvcc*)
9122    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9123  *)
9124    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9125  esac
9126
9127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9128$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9129if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9130  $as_echo_n "(cached) " >&6
9131else
9132  lt_cv_prog_compiler_rtti_exceptions=no
9133   ac_outfile=conftest.$ac_objext
9134   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9135   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9136   # Insert the option either (1) after the last *FLAGS variable, or
9137   # (2) before a word containing "conftest.", or (3) at the end.
9138   # Note that $ac_compile itself does not contain backslashes and begins
9139   # with a dollar sign (not a hyphen), so the echo should work correctly.
9140   # The option is referenced via a variable to avoid confusing sed.
9141   lt_compile=`echo "$ac_compile" | $SED \
9142   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9143   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9144   -e 's:$: $lt_compiler_flag:'`
9145   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9146   (eval "$lt_compile" 2>conftest.err)
9147   ac_status=$?
9148   cat conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   if (exit $ac_status) && test -s "$ac_outfile"; then
9151     # The compiler can only warn and ignore the option if not recognized
9152     # So say no if there are warnings other than the usual output.
9153     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9154     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9155     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9156       lt_cv_prog_compiler_rtti_exceptions=yes
9157     fi
9158   fi
9159   $RM conftest*
9160
9161fi
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9163$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9164
9165if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9166    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9167else
9168    :
9169fi
9170
9171fi
9172
9173
9174
9175
9176
9177
9178  lt_prog_compiler_wl=
9179lt_prog_compiler_pic=
9180lt_prog_compiler_static=
9181
9182
9183  if test yes = "$GCC"; then
9184    lt_prog_compiler_wl='-Wl,'
9185    lt_prog_compiler_static='-static'
9186
9187    case $host_os in
9188      aix*)
9189      # All AIX code is PIC.
9190      if test ia64 = "$host_cpu"; then
9191	# AIX 5 now supports IA64 processor
9192	lt_prog_compiler_static='-Bstatic'
9193      fi
9194      lt_prog_compiler_pic='-fPIC'
9195      ;;
9196
9197    amigaos*)
9198      case $host_cpu in
9199      powerpc)
9200            # see comment about AmigaOS4 .so support
9201            lt_prog_compiler_pic='-fPIC'
9202        ;;
9203      m68k)
9204            # FIXME: we need at least 68020 code to build shared libraries, but
9205            # adding the '-m68020' flag to GCC prevents building anything better,
9206            # like '-m68040'.
9207            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9208        ;;
9209      esac
9210      ;;
9211
9212    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9213      # PIC is the default for these OSes.
9214      ;;
9215
9216    mingw* | cygwin* | pw32* | os2* | cegcc*)
9217      # This hack is so that the source file can tell whether it is being
9218      # built for inclusion in a dll (and should export symbols for example).
9219      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9220      # (--disable-auto-import) libraries
9221      lt_prog_compiler_pic='-DDLL_EXPORT'
9222      case $host_os in
9223      os2*)
9224	lt_prog_compiler_static='$wl-static'
9225	;;
9226      esac
9227      ;;
9228
9229    darwin* | rhapsody*)
9230      # PIC is the default on this platform
9231      # Common symbols not allowed in MH_DYLIB files
9232      lt_prog_compiler_pic='-fno-common'
9233      ;;
9234
9235    haiku*)
9236      # PIC is the default for Haiku.
9237      # The "-static" flag exists, but is broken.
9238      lt_prog_compiler_static=
9239      ;;
9240
9241    hpux*)
9242      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9243      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9244      # sets the default TLS model and affects inlining.
9245      case $host_cpu in
9246      hppa*64*)
9247	# +Z the default
9248	;;
9249      *)
9250	lt_prog_compiler_pic='-fPIC'
9251	;;
9252      esac
9253      ;;
9254
9255    interix[3-9]*)
9256      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9257      # Instead, we relocate shared libraries at runtime.
9258      ;;
9259
9260    msdosdjgpp*)
9261      # Just because we use GCC doesn't mean we suddenly get shared libraries
9262      # on systems that don't support them.
9263      lt_prog_compiler_can_build_shared=no
9264      enable_shared=no
9265      ;;
9266
9267    *nto* | *qnx*)
9268      # QNX uses GNU C++, but need to define -shared option too, otherwise
9269      # it will coredump.
9270      lt_prog_compiler_pic='-fPIC -shared'
9271      ;;
9272
9273    sysv4*MP*)
9274      if test -d /usr/nec; then
9275	lt_prog_compiler_pic=-Kconform_pic
9276      fi
9277      ;;
9278
9279    *)
9280      lt_prog_compiler_pic='-fPIC'
9281      ;;
9282    esac
9283
9284    case $cc_basename in
9285    nvcc*) # Cuda Compiler Driver 2.2
9286      lt_prog_compiler_wl='-Xlinker '
9287      if test -n "$lt_prog_compiler_pic"; then
9288        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9289      fi
9290      ;;
9291    esac
9292  else
9293    # PORTME Check for flag to pass linker flags through the system compiler.
9294    case $host_os in
9295    aix*)
9296      lt_prog_compiler_wl='-Wl,'
9297      if test ia64 = "$host_cpu"; then
9298	# AIX 5 now supports IA64 processor
9299	lt_prog_compiler_static='-Bstatic'
9300      else
9301	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9302      fi
9303      ;;
9304
9305    darwin* | rhapsody*)
9306      # PIC is the default on this platform
9307      # Common symbols not allowed in MH_DYLIB files
9308      lt_prog_compiler_pic='-fno-common'
9309      case $cc_basename in
9310      nagfor*)
9311        # NAG Fortran compiler
9312        lt_prog_compiler_wl='-Wl,-Wl,,'
9313        lt_prog_compiler_pic='-PIC'
9314        lt_prog_compiler_static='-Bstatic'
9315        ;;
9316      esac
9317      ;;
9318
9319    mingw* | cygwin* | pw32* | os2* | cegcc*)
9320      # This hack is so that the source file can tell whether it is being
9321      # built for inclusion in a dll (and should export symbols for example).
9322      lt_prog_compiler_pic='-DDLL_EXPORT'
9323      case $host_os in
9324      os2*)
9325	lt_prog_compiler_static='$wl-static'
9326	;;
9327      esac
9328      ;;
9329
9330    hpux9* | hpux10* | hpux11*)
9331      lt_prog_compiler_wl='-Wl,'
9332      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9333      # not for PA HP-UX.
9334      case $host_cpu in
9335      hppa*64*|ia64*)
9336	# +Z the default
9337	;;
9338      *)
9339	lt_prog_compiler_pic='+Z'
9340	;;
9341      esac
9342      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9343      lt_prog_compiler_static='$wl-a ${wl}archive'
9344      ;;
9345
9346    irix5* | irix6* | nonstopux*)
9347      lt_prog_compiler_wl='-Wl,'
9348      # PIC (with -KPIC) is the default.
9349      lt_prog_compiler_static='-non_shared'
9350      ;;
9351
9352    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9353      case $cc_basename in
9354      # old Intel for x86_64, which still supported -KPIC.
9355      ecc*)
9356	lt_prog_compiler_wl='-Wl,'
9357	lt_prog_compiler_pic='-KPIC'
9358	lt_prog_compiler_static='-static'
9359        ;;
9360      # icc used to be incompatible with GCC.
9361      # ICC 10 doesn't accept -KPIC any more.
9362      icc* | ifort*)
9363	lt_prog_compiler_wl='-Wl,'
9364	lt_prog_compiler_pic='-fPIC'
9365	lt_prog_compiler_static='-static'
9366        ;;
9367      # Lahey Fortran 8.1.
9368      lf95*)
9369	lt_prog_compiler_wl='-Wl,'
9370	lt_prog_compiler_pic='--shared'
9371	lt_prog_compiler_static='--static'
9372	;;
9373      nagfor*)
9374	# NAG Fortran compiler
9375	lt_prog_compiler_wl='-Wl,-Wl,,'
9376	lt_prog_compiler_pic='-PIC'
9377	lt_prog_compiler_static='-Bstatic'
9378	;;
9379      tcc*)
9380	# Fabrice Bellard et al's Tiny C Compiler
9381	lt_prog_compiler_wl='-Wl,'
9382	lt_prog_compiler_pic='-fPIC'
9383	lt_prog_compiler_static='-static'
9384	;;
9385      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9386        # Portland Group compilers (*not* the Pentium gcc compiler,
9387	# which looks to be a dead project)
9388	lt_prog_compiler_wl='-Wl,'
9389	lt_prog_compiler_pic='-fpic'
9390	lt_prog_compiler_static='-Bstatic'
9391        ;;
9392      ccc*)
9393        lt_prog_compiler_wl='-Wl,'
9394        # All Alpha code is PIC.
9395        lt_prog_compiler_static='-non_shared'
9396        ;;
9397      xl* | bgxl* | bgf* | mpixl*)
9398	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9399	lt_prog_compiler_wl='-Wl,'
9400	lt_prog_compiler_pic='-qpic'
9401	lt_prog_compiler_static='-qstaticlink'
9402	;;
9403      *)
9404	case `$CC -V 2>&1 | sed 5q` in
9405	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9406	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9407	  lt_prog_compiler_pic='-KPIC'
9408	  lt_prog_compiler_static='-Bstatic'
9409	  lt_prog_compiler_wl=''
9410	  ;;
9411	*Sun\ F* | *Sun*Fortran*)
9412	  lt_prog_compiler_pic='-KPIC'
9413	  lt_prog_compiler_static='-Bstatic'
9414	  lt_prog_compiler_wl='-Qoption ld '
9415	  ;;
9416	*Sun\ C*)
9417	  # Sun C 5.9
9418	  lt_prog_compiler_pic='-KPIC'
9419	  lt_prog_compiler_static='-Bstatic'
9420	  lt_prog_compiler_wl='-Wl,'
9421	  ;;
9422        *Intel*\ [CF]*Compiler*)
9423	  lt_prog_compiler_wl='-Wl,'
9424	  lt_prog_compiler_pic='-fPIC'
9425	  lt_prog_compiler_static='-static'
9426	  ;;
9427	*Portland\ Group*)
9428	  lt_prog_compiler_wl='-Wl,'
9429	  lt_prog_compiler_pic='-fpic'
9430	  lt_prog_compiler_static='-Bstatic'
9431	  ;;
9432	esac
9433	;;
9434      esac
9435      ;;
9436
9437    newsos6)
9438      lt_prog_compiler_pic='-KPIC'
9439      lt_prog_compiler_static='-Bstatic'
9440      ;;
9441
9442    *nto* | *qnx*)
9443      # QNX uses GNU C++, but need to define -shared option too, otherwise
9444      # it will coredump.
9445      lt_prog_compiler_pic='-fPIC -shared'
9446      ;;
9447
9448    osf3* | osf4* | osf5*)
9449      lt_prog_compiler_wl='-Wl,'
9450      # All OSF/1 code is PIC.
9451      lt_prog_compiler_static='-non_shared'
9452      ;;
9453
9454    rdos*)
9455      lt_prog_compiler_static='-non_shared'
9456      ;;
9457
9458    solaris*)
9459      lt_prog_compiler_pic='-KPIC'
9460      lt_prog_compiler_static='-Bstatic'
9461      case $cc_basename in
9462      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9463	lt_prog_compiler_wl='-Qoption ld ';;
9464      *)
9465	lt_prog_compiler_wl='-Wl,';;
9466      esac
9467      ;;
9468
9469    sunos4*)
9470      lt_prog_compiler_wl='-Qoption ld '
9471      lt_prog_compiler_pic='-PIC'
9472      lt_prog_compiler_static='-Bstatic'
9473      ;;
9474
9475    sysv4 | sysv4.2uw2* | sysv4.3*)
9476      lt_prog_compiler_wl='-Wl,'
9477      lt_prog_compiler_pic='-KPIC'
9478      lt_prog_compiler_static='-Bstatic'
9479      ;;
9480
9481    sysv4*MP*)
9482      if test -d /usr/nec; then
9483	lt_prog_compiler_pic='-Kconform_pic'
9484	lt_prog_compiler_static='-Bstatic'
9485      fi
9486      ;;
9487
9488    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9489      lt_prog_compiler_wl='-Wl,'
9490      lt_prog_compiler_pic='-KPIC'
9491      lt_prog_compiler_static='-Bstatic'
9492      ;;
9493
9494    unicos*)
9495      lt_prog_compiler_wl='-Wl,'
9496      lt_prog_compiler_can_build_shared=no
9497      ;;
9498
9499    uts4*)
9500      lt_prog_compiler_pic='-pic'
9501      lt_prog_compiler_static='-Bstatic'
9502      ;;
9503
9504    *)
9505      lt_prog_compiler_can_build_shared=no
9506      ;;
9507    esac
9508  fi
9509
9510case $host_os in
9511  # For platforms that do not support PIC, -DPIC is meaningless:
9512  *djgpp*)
9513    lt_prog_compiler_pic=
9514    ;;
9515  *)
9516    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9517    ;;
9518esac
9519
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9521$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9522if ${lt_cv_prog_compiler_pic+:} false; then :
9523  $as_echo_n "(cached) " >&6
9524else
9525  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9526fi
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9528$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9529lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9530
9531#
9532# Check to make sure the PIC flag actually works.
9533#
9534if test -n "$lt_prog_compiler_pic"; then
9535  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9536$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9537if ${lt_cv_prog_compiler_pic_works+:} false; then :
9538  $as_echo_n "(cached) " >&6
9539else
9540  lt_cv_prog_compiler_pic_works=no
9541   ac_outfile=conftest.$ac_objext
9542   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9543   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9544   # Insert the option either (1) after the last *FLAGS variable, or
9545   # (2) before a word containing "conftest.", or (3) at the end.
9546   # Note that $ac_compile itself does not contain backslashes and begins
9547   # with a dollar sign (not a hyphen), so the echo should work correctly.
9548   # The option is referenced via a variable to avoid confusing sed.
9549   lt_compile=`echo "$ac_compile" | $SED \
9550   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9551   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9552   -e 's:$: $lt_compiler_flag:'`
9553   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9554   (eval "$lt_compile" 2>conftest.err)
9555   ac_status=$?
9556   cat conftest.err >&5
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   if (exit $ac_status) && test -s "$ac_outfile"; then
9559     # The compiler can only warn and ignore the option if not recognized
9560     # So say no if there are warnings other than the usual output.
9561     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9562     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9563     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9564       lt_cv_prog_compiler_pic_works=yes
9565     fi
9566   fi
9567   $RM conftest*
9568
9569fi
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9571$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9572
9573if test yes = "$lt_cv_prog_compiler_pic_works"; then
9574    case $lt_prog_compiler_pic in
9575     "" | " "*) ;;
9576     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9577     esac
9578else
9579    lt_prog_compiler_pic=
9580     lt_prog_compiler_can_build_shared=no
9581fi
9582
9583fi
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595#
9596# Check to make sure the static flag actually works.
9597#
9598wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9600$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9601if ${lt_cv_prog_compiler_static_works+:} false; then :
9602  $as_echo_n "(cached) " >&6
9603else
9604  lt_cv_prog_compiler_static_works=no
9605   save_LDFLAGS=$LDFLAGS
9606   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9607   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9608   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9609     # The linker can only warn and ignore the option if not recognized
9610     # So say no if there are warnings
9611     if test -s conftest.err; then
9612       # Append any errors to the config.log.
9613       cat conftest.err 1>&5
9614       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9615       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9616       if diff conftest.exp conftest.er2 >/dev/null; then
9617         lt_cv_prog_compiler_static_works=yes
9618       fi
9619     else
9620       lt_cv_prog_compiler_static_works=yes
9621     fi
9622   fi
9623   $RM -r conftest*
9624   LDFLAGS=$save_LDFLAGS
9625
9626fi
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9628$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9629
9630if test yes = "$lt_cv_prog_compiler_static_works"; then
9631    :
9632else
9633    lt_prog_compiler_static=
9634fi
9635
9636
9637
9638
9639
9640
9641
9642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9644if ${lt_cv_prog_compiler_c_o+:} false; then :
9645  $as_echo_n "(cached) " >&6
9646else
9647  lt_cv_prog_compiler_c_o=no
9648   $RM -r conftest 2>/dev/null
9649   mkdir conftest
9650   cd conftest
9651   mkdir out
9652   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9653
9654   lt_compiler_flag="-o out/conftest2.$ac_objext"
9655   # Insert the option either (1) after the last *FLAGS variable, or
9656   # (2) before a word containing "conftest.", or (3) at the end.
9657   # Note that $ac_compile itself does not contain backslashes and begins
9658   # with a dollar sign (not a hyphen), so the echo should work correctly.
9659   lt_compile=`echo "$ac_compile" | $SED \
9660   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9661   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9662   -e 's:$: $lt_compiler_flag:'`
9663   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9664   (eval "$lt_compile" 2>out/conftest.err)
9665   ac_status=$?
9666   cat out/conftest.err >&5
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9669   then
9670     # The compiler can only warn and ignore the option if not recognized
9671     # So say no if there are warnings
9672     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9673     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9674     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9675       lt_cv_prog_compiler_c_o=yes
9676     fi
9677   fi
9678   chmod u+w . 2>&5
9679   $RM conftest*
9680   # SGI C++ compiler will create directory out/ii_files/ for
9681   # template instantiation
9682   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9683   $RM out/* && rmdir out
9684   cd ..
9685   $RM -r conftest
9686   $RM conftest*
9687
9688fi
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9690$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9691
9692
9693
9694
9695
9696
9697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9698$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9699if ${lt_cv_prog_compiler_c_o+:} false; then :
9700  $as_echo_n "(cached) " >&6
9701else
9702  lt_cv_prog_compiler_c_o=no
9703   $RM -r conftest 2>/dev/null
9704   mkdir conftest
9705   cd conftest
9706   mkdir out
9707   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9708
9709   lt_compiler_flag="-o out/conftest2.$ac_objext"
9710   # Insert the option either (1) after the last *FLAGS variable, or
9711   # (2) before a word containing "conftest.", or (3) at the end.
9712   # Note that $ac_compile itself does not contain backslashes and begins
9713   # with a dollar sign (not a hyphen), so the echo should work correctly.
9714   lt_compile=`echo "$ac_compile" | $SED \
9715   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9716   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9717   -e 's:$: $lt_compiler_flag:'`
9718   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9719   (eval "$lt_compile" 2>out/conftest.err)
9720   ac_status=$?
9721   cat out/conftest.err >&5
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9724   then
9725     # The compiler can only warn and ignore the option if not recognized
9726     # So say no if there are warnings
9727     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9728     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9729     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9730       lt_cv_prog_compiler_c_o=yes
9731     fi
9732   fi
9733   chmod u+w . 2>&5
9734   $RM conftest*
9735   # SGI C++ compiler will create directory out/ii_files/ for
9736   # template instantiation
9737   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9738   $RM out/* && rmdir out
9739   cd ..
9740   $RM -r conftest
9741   $RM conftest*
9742
9743fi
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9745$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9746
9747
9748
9749
9750hard_links=nottested
9751if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9752  # do not overwrite the value of need_locks provided by the user
9753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9754$as_echo_n "checking if we can lock with hard links... " >&6; }
9755  hard_links=yes
9756  $RM conftest*
9757  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9758  touch conftest.a
9759  ln conftest.a conftest.b 2>&5 || hard_links=no
9760  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9762$as_echo "$hard_links" >&6; }
9763  if test no = "$hard_links"; then
9764    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9765$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9766    need_locks=warn
9767  fi
9768else
9769  need_locks=no
9770fi
9771
9772
9773
9774
9775
9776
9777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9778$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9779
9780  runpath_var=
9781  allow_undefined_flag=
9782  always_export_symbols=no
9783  archive_cmds=
9784  archive_expsym_cmds=
9785  compiler_needs_object=no
9786  enable_shared_with_static_runtimes=no
9787  export_dynamic_flag_spec=
9788  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9789  hardcode_automatic=no
9790  hardcode_direct=no
9791  hardcode_direct_absolute=no
9792  hardcode_libdir_flag_spec=
9793  hardcode_libdir_separator=
9794  hardcode_minus_L=no
9795  hardcode_shlibpath_var=unsupported
9796  inherit_rpath=no
9797  link_all_deplibs=unknown
9798  module_cmds=
9799  module_expsym_cmds=
9800  old_archive_from_new_cmds=
9801  old_archive_from_expsyms_cmds=
9802  thread_safe_flag_spec=
9803  whole_archive_flag_spec=
9804  # include_expsyms should be a list of space-separated symbols to be *always*
9805  # included in the symbol list
9806  include_expsyms=
9807  # exclude_expsyms can be an extended regexp of symbols to exclude
9808  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9809  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9810  # as well as any symbol that contains 'd'.
9811  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9812  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9813  # platforms (ab)use it in PIC code, but their linkers get confused if
9814  # the symbol is explicitly referenced.  Since portable code cannot
9815  # rely on this symbol name, it's probably fine to never include it in
9816  # preloaded symbol tables.
9817  # Exclude shared library initialization/finalization symbols.
9818  extract_expsyms_cmds=
9819
9820  case $host_os in
9821  cygwin* | mingw* | pw32* | cegcc*)
9822    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9823    # When not using gcc, we currently assume that we are using
9824    # Microsoft Visual C++.
9825    if test yes != "$GCC"; then
9826      with_gnu_ld=no
9827    fi
9828    ;;
9829  interix*)
9830    # we just hope/assume this is gcc and not c89 (= MSVC++)
9831    with_gnu_ld=yes
9832    ;;
9833  openbsd* | bitrig*)
9834    with_gnu_ld=no
9835    ;;
9836  linux* | k*bsd*-gnu | gnu*)
9837    link_all_deplibs=no
9838    ;;
9839  esac
9840
9841  ld_shlibs=yes
9842
9843  # On some targets, GNU ld is compatible enough with the native linker
9844  # that we're better off using the native interface for both.
9845  lt_use_gnu_ld_interface=no
9846  if test yes = "$with_gnu_ld"; then
9847    case $host_os in
9848      aix*)
9849	# The AIX port of GNU ld has always aspired to compatibility
9850	# with the native linker.  However, as the warning in the GNU ld
9851	# block says, versions before 2.19.5* couldn't really create working
9852	# shared libraries, regardless of the interface used.
9853	case `$LD -v 2>&1` in
9854	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9855	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9856	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9857	  *)
9858	    lt_use_gnu_ld_interface=yes
9859	    ;;
9860	esac
9861	;;
9862      *)
9863	lt_use_gnu_ld_interface=yes
9864	;;
9865    esac
9866  fi
9867
9868  if test yes = "$lt_use_gnu_ld_interface"; then
9869    # If archive_cmds runs LD, not CC, wlarc should be empty
9870    wlarc='$wl'
9871
9872    # Set some defaults for GNU ld with shared library support. These
9873    # are reset later if shared libraries are not supported. Putting them
9874    # here allows them to be overridden if necessary.
9875    runpath_var=LD_RUN_PATH
9876    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9877    export_dynamic_flag_spec='$wl--export-dynamic'
9878    # ancient GNU ld didn't support --whole-archive et. al.
9879    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9880      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9881    else
9882      whole_archive_flag_spec=
9883    fi
9884    supports_anon_versioning=no
9885    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9886      *GNU\ gold*) supports_anon_versioning=yes ;;
9887      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9888      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9889      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9890      *\ 2.11.*) ;; # other 2.11 versions
9891      *) supports_anon_versioning=yes ;;
9892    esac
9893
9894    # See if GNU ld supports shared libraries.
9895    case $host_os in
9896    aix[3-9]*)
9897      # On AIX/PPC, the GNU linker is very broken
9898      if test ia64 != "$host_cpu"; then
9899	ld_shlibs=no
9900	cat <<_LT_EOF 1>&2
9901
9902*** Warning: the GNU linker, at least up to release 2.19, is reported
9903*** to be unable to reliably create shared libraries on AIX.
9904*** Therefore, libtool is disabling shared libraries support.  If you
9905*** really care for shared libraries, you may want to install binutils
9906*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9907*** You will then need to restart the configuration process.
9908
9909_LT_EOF
9910      fi
9911      ;;
9912
9913    amigaos*)
9914      case $host_cpu in
9915      powerpc)
9916            # see comment about AmigaOS4 .so support
9917            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9918            archive_expsym_cmds=''
9919        ;;
9920      m68k)
9921            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)'
9922            hardcode_libdir_flag_spec='-L$libdir'
9923            hardcode_minus_L=yes
9924        ;;
9925      esac
9926      ;;
9927
9928    beos*)
9929      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9930	allow_undefined_flag=unsupported
9931	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9932	# support --undefined.  This deserves some investigation.  FIXME
9933	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9934      else
9935	ld_shlibs=no
9936      fi
9937      ;;
9938
9939    cygwin* | mingw* | pw32* | cegcc*)
9940      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9941      # as there is no search path for DLLs.
9942      hardcode_libdir_flag_spec='-L$libdir'
9943      export_dynamic_flag_spec='$wl--export-all-symbols'
9944      allow_undefined_flag=unsupported
9945      always_export_symbols=no
9946      enable_shared_with_static_runtimes=yes
9947      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'
9948      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9949
9950      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9951        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9952	# If the export-symbols file already is a .def file, use it as
9953	# is; otherwise, prepend EXPORTS...
9954	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9955          cp $export_symbols $output_objdir/$soname.def;
9956        else
9957          echo EXPORTS > $output_objdir/$soname.def;
9958          cat $export_symbols >> $output_objdir/$soname.def;
9959        fi~
9960        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9961      else
9962	ld_shlibs=no
9963      fi
9964      ;;
9965
9966    haiku*)
9967      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9968      link_all_deplibs=yes
9969      ;;
9970
9971    os2*)
9972      hardcode_libdir_flag_spec='-L$libdir'
9973      hardcode_minus_L=yes
9974      allow_undefined_flag=unsupported
9975      shrext_cmds=.dll
9976      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9977	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9978	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9979	$ECHO EXPORTS >> $output_objdir/$libname.def~
9980	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9981	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9982	emximp -o $lib $output_objdir/$libname.def'
9983      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9984	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9985	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9986	$ECHO EXPORTS >> $output_objdir/$libname.def~
9987	prefix_cmds="$SED"~
9988	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9989	  prefix_cmds="$prefix_cmds -e 1d";
9990	fi~
9991	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9992	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9993	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9994	emximp -o $lib $output_objdir/$libname.def'
9995      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9996      enable_shared_with_static_runtimes=yes
9997      ;;
9998
9999    interix[3-9]*)
10000      hardcode_direct=no
10001      hardcode_shlibpath_var=no
10002      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10003      export_dynamic_flag_spec='$wl-E'
10004      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10005      # Instead, shared libraries are loaded at an image base (0x10000000 by
10006      # default) and relocated if they conflict, which is a slow very memory
10007      # consuming and fragmenting process.  To avoid this, we pick a random,
10008      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10009      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10010      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10011      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'
10012      ;;
10013
10014    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10015      tmp_diet=no
10016      if test linux-dietlibc = "$host_os"; then
10017	case $cc_basename in
10018	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10019	esac
10020      fi
10021      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10022	 && test no = "$tmp_diet"
10023      then
10024	tmp_addflag=' $pic_flag'
10025	tmp_sharedflag='-shared'
10026	case $cc_basename,$host_cpu in
10027        pgcc*)				# Portland Group C compiler
10028	  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'
10029	  tmp_addflag=' $pic_flag'
10030	  ;;
10031	pgf77* | pgf90* | pgf95* | pgfortran*)
10032					# Portland Group f77 and f90 compilers
10033	  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'
10034	  tmp_addflag=' $pic_flag -Mnomain' ;;
10035	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10036	  tmp_addflag=' -i_dynamic' ;;
10037	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10038	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10039	ifc* | ifort*)			# Intel Fortran compiler
10040	  tmp_addflag=' -nofor_main' ;;
10041	lf95*)				# Lahey Fortran 8.1
10042	  whole_archive_flag_spec=
10043	  tmp_sharedflag='--shared' ;;
10044        nagfor*)                        # NAGFOR 5.3
10045          tmp_sharedflag='-Wl,-shared' ;;
10046	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10047	  tmp_sharedflag='-qmkshrobj'
10048	  tmp_addflag= ;;
10049	nvcc*)	# Cuda Compiler Driver 2.2
10050	  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'
10051	  compiler_needs_object=yes
10052	  ;;
10053	esac
10054	case `$CC -V 2>&1 | sed 5q` in
10055	*Sun\ C*)			# Sun C 5.9
10056	  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'
10057	  compiler_needs_object=yes
10058	  tmp_sharedflag='-G' ;;
10059	*Sun\ F*)			# Sun Fortran 8.3
10060	  tmp_sharedflag='-G' ;;
10061	esac
10062	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10063
10064        if test yes = "$supports_anon_versioning"; then
10065          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10066            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10067            echo "local: *; };" >> $output_objdir/$libname.ver~
10068            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10069        fi
10070
10071	case $cc_basename in
10072	tcc*)
10073	  export_dynamic_flag_spec='-rdynamic'
10074	  ;;
10075	xlf* | bgf* | bgxlf* | mpixlf*)
10076	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10077	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10078	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10079	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10080	  if test yes = "$supports_anon_versioning"; then
10081	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10082              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10083              echo "local: *; };" >> $output_objdir/$libname.ver~
10084              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10085	  fi
10086	  ;;
10087	esac
10088      else
10089        ld_shlibs=no
10090      fi
10091      ;;
10092
10093    netbsd* | netbsdelf*-gnu)
10094      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10095	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10096	wlarc=
10097      else
10098	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10099	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10100      fi
10101      ;;
10102
10103    solaris*)
10104      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10105	ld_shlibs=no
10106	cat <<_LT_EOF 1>&2
10107
10108*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10109*** create shared libraries on Solaris systems.  Therefore, libtool
10110*** is disabling shared libraries support.  We urge you to upgrade GNU
10111*** binutils to release 2.9.1 or newer.  Another option is to modify
10112*** your PATH or compiler configuration so that the native linker is
10113*** used, and then restart.
10114
10115_LT_EOF
10116      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10117	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10118	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10119      else
10120	ld_shlibs=no
10121      fi
10122      ;;
10123
10124    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10125      case `$LD -v 2>&1` in
10126        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10127	ld_shlibs=no
10128	cat <<_LT_EOF 1>&2
10129
10130*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10131*** reliably create shared libraries on SCO systems.  Therefore, libtool
10132*** is disabling shared libraries support.  We urge you to upgrade GNU
10133*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10134*** your PATH or compiler configuration so that the native linker is
10135*** used, and then restart.
10136
10137_LT_EOF
10138	;;
10139	*)
10140	  # For security reasons, it is highly recommended that you always
10141	  # use absolute paths for naming shared libraries, and exclude the
10142	  # DT_RUNPATH tag from executables and libraries.  But doing so
10143	  # requires that you compile everything twice, which is a pain.
10144	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10145	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10146	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10147	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10148	  else
10149	    ld_shlibs=no
10150	  fi
10151	;;
10152      esac
10153      ;;
10154
10155    sunos4*)
10156      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10157      wlarc=
10158      hardcode_direct=yes
10159      hardcode_shlibpath_var=no
10160      ;;
10161
10162    *)
10163      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10164	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10165	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10166      else
10167	ld_shlibs=no
10168      fi
10169      ;;
10170    esac
10171
10172    if test no = "$ld_shlibs"; then
10173      runpath_var=
10174      hardcode_libdir_flag_spec=
10175      export_dynamic_flag_spec=
10176      whole_archive_flag_spec=
10177    fi
10178  else
10179    # PORTME fill in a description of your system's linker (not GNU ld)
10180    case $host_os in
10181    aix3*)
10182      allow_undefined_flag=unsupported
10183      always_export_symbols=yes
10184      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'
10185      # Note: this linker hardcodes the directories in LIBPATH if there
10186      # are no directories specified by -L.
10187      hardcode_minus_L=yes
10188      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10189	# Neither direct hardcoding nor static linking is supported with a
10190	# broken collect2.
10191	hardcode_direct=unsupported
10192      fi
10193      ;;
10194
10195    aix[4-9]*)
10196      if test ia64 = "$host_cpu"; then
10197	# On IA64, the linker does run time linking by default, so we don't
10198	# have to do anything special.
10199	aix_use_runtimelinking=no
10200	exp_sym_flag='-Bexport'
10201	no_entry_flag=
10202      else
10203	# If we're using GNU nm, then we don't want the "-C" option.
10204	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10205	# Without the "-l" option, or with the "-B" option, AIX nm treats
10206	# weak defined symbols like other global defined symbols, whereas
10207	# GNU nm marks them as "W".
10208	# While the 'weak' keyword is ignored in the Export File, we need
10209	# it in the Import File for the 'aix-soname' feature, so we have
10210	# to replace the "-B" option with "-P" for AIX nm.
10211	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10212	  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'
10213	else
10214	  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'
10215	fi
10216	aix_use_runtimelinking=no
10217
10218	# Test if we are trying to use run time linking or normal
10219	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10220	# have runtime linking enabled, and use it for executables.
10221	# For shared libraries, we enable/disable runtime linking
10222	# depending on the kind of the shared library created -
10223	# when "with_aix_soname,aix_use_runtimelinking" is:
10224	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10225	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10226	#            lib.a           static archive
10227	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10228	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10229	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10230	#            lib.a(lib.so.V) shared, rtl:no
10231	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10232	#            lib.a           static archive
10233	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10234	  for ld_flag in $LDFLAGS; do
10235	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10236	    aix_use_runtimelinking=yes
10237	    break
10238	  fi
10239	  done
10240	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10241	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10242	    # so we don't have lib.a shared libs to link our executables.
10243	    # We have to force runtime linking in this case.
10244	    aix_use_runtimelinking=yes
10245	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10246	  fi
10247	  ;;
10248	esac
10249
10250	exp_sym_flag='-bexport'
10251	no_entry_flag='-bnoentry'
10252      fi
10253
10254      # When large executables or shared objects are built, AIX ld can
10255      # have problems creating the table of contents.  If linking a library
10256      # or program results in "error TOC overflow" add -mminimal-toc to
10257      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10258      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10259
10260      archive_cmds=''
10261      hardcode_direct=yes
10262      hardcode_direct_absolute=yes
10263      hardcode_libdir_separator=':'
10264      link_all_deplibs=yes
10265      file_list_spec='$wl-f,'
10266      case $with_aix_soname,$aix_use_runtimelinking in
10267      aix,*) ;; # traditional, no import file
10268      svr4,* | *,yes) # use import file
10269	# The Import File defines what to hardcode.
10270	hardcode_direct=no
10271	hardcode_direct_absolute=no
10272	;;
10273      esac
10274
10275      if test yes = "$GCC"; then
10276	case $host_os in aix4.[012]|aix4.[012].*)
10277	# We only want to do this on AIX 4.2 and lower, the check
10278	# below for broken collect2 doesn't work under 4.3+
10279	  collect2name=`$CC -print-prog-name=collect2`
10280	  if test -f "$collect2name" &&
10281	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10282	  then
10283	  # We have reworked collect2
10284	  :
10285	  else
10286	  # We have old collect2
10287	  hardcode_direct=unsupported
10288	  # It fails to find uninstalled libraries when the uninstalled
10289	  # path is not listed in the libpath.  Setting hardcode_minus_L
10290	  # to unsupported forces relinking
10291	  hardcode_minus_L=yes
10292	  hardcode_libdir_flag_spec='-L$libdir'
10293	  hardcode_libdir_separator=
10294	  fi
10295	  ;;
10296	esac
10297	shared_flag='-shared'
10298	if test yes = "$aix_use_runtimelinking"; then
10299	  shared_flag="$shared_flag "'$wl-G'
10300	fi
10301	# Need to ensure runtime linking is disabled for the traditional
10302	# shared library, or the linker may eventually find shared libraries
10303	# /with/ Import File - we do not want to mix them.
10304	shared_flag_aix='-shared'
10305	shared_flag_svr4='-shared $wl-G'
10306      else
10307	# not using gcc
10308	if test ia64 = "$host_cpu"; then
10309	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10310	# chokes on -Wl,-G. The following line is correct:
10311	  shared_flag='-G'
10312	else
10313	  if test yes = "$aix_use_runtimelinking"; then
10314	    shared_flag='$wl-G'
10315	  else
10316	    shared_flag='$wl-bM:SRE'
10317	  fi
10318	  shared_flag_aix='$wl-bM:SRE'
10319	  shared_flag_svr4='$wl-G'
10320	fi
10321      fi
10322
10323      export_dynamic_flag_spec='$wl-bexpall'
10324      # It seems that -bexpall does not export symbols beginning with
10325      # underscore (_), so it is better to generate a list of symbols to export.
10326      always_export_symbols=yes
10327      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10328	# Warning - without using the other runtime loading flags (-brtl),
10329	# -berok will link without error, but may produce a broken library.
10330	allow_undefined_flag='-berok'
10331        # Determine the default libpath from the value encoded in an
10332        # empty executable.
10333        if test set = "${lt_cv_aix_libpath+set}"; then
10334  aix_libpath=$lt_cv_aix_libpath
10335else
10336  if ${lt_cv_aix_libpath_+:} false; then :
10337  $as_echo_n "(cached) " >&6
10338else
10339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340/* end confdefs.h.  */
10341
10342int
10343main ()
10344{
10345
10346  ;
10347  return 0;
10348}
10349_ACEOF
10350if ac_fn_c_try_link "$LINENO"; then :
10351
10352  lt_aix_libpath_sed='
10353      /Import File Strings/,/^$/ {
10354	  /^0/ {
10355	      s/^0  *\([^ ]*\) *$/\1/
10356	      p
10357	  }
10358      }'
10359  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10360  # Check for a 64-bit object if we didn't find anything.
10361  if test -z "$lt_cv_aix_libpath_"; then
10362    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10363  fi
10364fi
10365rm -f core conftest.err conftest.$ac_objext \
10366    conftest$ac_exeext conftest.$ac_ext
10367  if test -z "$lt_cv_aix_libpath_"; then
10368    lt_cv_aix_libpath_=/usr/lib:/lib
10369  fi
10370
10371fi
10372
10373  aix_libpath=$lt_cv_aix_libpath_
10374fi
10375
10376        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10377        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
10378      else
10379	if test ia64 = "$host_cpu"; then
10380	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10381	  allow_undefined_flag="-z nodefs"
10382	  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"
10383	else
10384	 # Determine the default libpath from the value encoded in an
10385	 # empty executable.
10386	 if test set = "${lt_cv_aix_libpath+set}"; then
10387  aix_libpath=$lt_cv_aix_libpath
10388else
10389  if ${lt_cv_aix_libpath_+:} false; then :
10390  $as_echo_n "(cached) " >&6
10391else
10392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394
10395int
10396main ()
10397{
10398
10399  ;
10400  return 0;
10401}
10402_ACEOF
10403if ac_fn_c_try_link "$LINENO"; then :
10404
10405  lt_aix_libpath_sed='
10406      /Import File Strings/,/^$/ {
10407	  /^0/ {
10408	      s/^0  *\([^ ]*\) *$/\1/
10409	      p
10410	  }
10411      }'
10412  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10413  # Check for a 64-bit object if we didn't find anything.
10414  if test -z "$lt_cv_aix_libpath_"; then
10415    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10416  fi
10417fi
10418rm -f core conftest.err conftest.$ac_objext \
10419    conftest$ac_exeext conftest.$ac_ext
10420  if test -z "$lt_cv_aix_libpath_"; then
10421    lt_cv_aix_libpath_=/usr/lib:/lib
10422  fi
10423
10424fi
10425
10426  aix_libpath=$lt_cv_aix_libpath_
10427fi
10428
10429	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10430	  # Warning - without using the other run time loading flags,
10431	  # -berok will link without error, but may produce a broken library.
10432	  no_undefined_flag=' $wl-bernotok'
10433	  allow_undefined_flag=' $wl-berok'
10434	  if test yes = "$with_gnu_ld"; then
10435	    # We only use this code for GNU lds that support --whole-archive.
10436	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10437	  else
10438	    # Exported symbols can be pulled into shared objects from archives
10439	    whole_archive_flag_spec='$convenience'
10440	  fi
10441	  archive_cmds_need_lc=yes
10442	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10443	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10444	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10445	  if test svr4 != "$with_aix_soname"; then
10446	    # This is similar to how AIX traditionally builds its shared libraries.
10447	    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'
10448	  fi
10449	  if test aix != "$with_aix_soname"; then
10450	    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'
10451	  else
10452	    # used by -dlpreopen to get the symbols
10453	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10454	  fi
10455	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10456	fi
10457      fi
10458      ;;
10459
10460    amigaos*)
10461      case $host_cpu in
10462      powerpc)
10463            # see comment about AmigaOS4 .so support
10464            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10465            archive_expsym_cmds=''
10466        ;;
10467      m68k)
10468            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)'
10469            hardcode_libdir_flag_spec='-L$libdir'
10470            hardcode_minus_L=yes
10471        ;;
10472      esac
10473      ;;
10474
10475    bsdi[45]*)
10476      export_dynamic_flag_spec=-rdynamic
10477      ;;
10478
10479    cygwin* | mingw* | pw32* | cegcc*)
10480      # When not using gcc, we currently assume that we are using
10481      # Microsoft Visual C++.
10482      # hardcode_libdir_flag_spec is actually meaningless, as there is
10483      # no search path for DLLs.
10484      case $cc_basename in
10485      cl*)
10486	# Native MSVC
10487	hardcode_libdir_flag_spec=' '
10488	allow_undefined_flag=unsupported
10489	always_export_symbols=yes
10490	file_list_spec='@'
10491	# Tell ltmain to make .lib files, not .a files.
10492	libext=lib
10493	# Tell ltmain to make .dll files, not .so files.
10494	shrext_cmds=.dll
10495	# FIXME: Setting linknames here is a bad hack.
10496	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10497	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10498            cp "$export_symbols" "$output_objdir/$soname.def";
10499            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10500          else
10501            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10502          fi~
10503          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10504          linknames='
10505	# The linker will not automatically build a static lib if we build a DLL.
10506	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10507	enable_shared_with_static_runtimes=yes
10508	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10509	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10510	# Don't use ranlib
10511	old_postinstall_cmds='chmod 644 $oldlib'
10512	postlink_cmds='lt_outputfile="@OUTPUT@"~
10513          lt_tool_outputfile="@TOOL_OUTPUT@"~
10514          case $lt_outputfile in
10515            *.exe|*.EXE) ;;
10516            *)
10517              lt_outputfile=$lt_outputfile.exe
10518              lt_tool_outputfile=$lt_tool_outputfile.exe
10519              ;;
10520          esac~
10521          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10522            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10523            $RM "$lt_outputfile.manifest";
10524          fi'
10525	;;
10526      *)
10527	# Assume MSVC wrapper
10528	hardcode_libdir_flag_spec=' '
10529	allow_undefined_flag=unsupported
10530	# Tell ltmain to make .lib files, not .a files.
10531	libext=lib
10532	# Tell ltmain to make .dll files, not .so files.
10533	shrext_cmds=.dll
10534	# FIXME: Setting linknames here is a bad hack.
10535	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10536	# The linker will automatically build a .lib file if we build a DLL.
10537	old_archive_from_new_cmds='true'
10538	# FIXME: Should let the user specify the lib program.
10539	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10540	enable_shared_with_static_runtimes=yes
10541	;;
10542      esac
10543      ;;
10544
10545    darwin* | rhapsody*)
10546
10547
10548  archive_cmds_need_lc=no
10549  hardcode_direct=no
10550  hardcode_automatic=yes
10551  hardcode_shlibpath_var=unsupported
10552  if test yes = "$lt_cv_ld_force_load"; then
10553    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\"`'
10554
10555  else
10556    whole_archive_flag_spec=''
10557  fi
10558  link_all_deplibs=yes
10559  allow_undefined_flag=$_lt_dar_allow_undefined
10560  case $cc_basename in
10561     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10562     *) _lt_dar_can_shared=$GCC ;;
10563  esac
10564  if test yes = "$_lt_dar_can_shared"; then
10565    output_verbose_link_cmd=func_echo_all
10566    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10567    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10568    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"
10569    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"
10570
10571  else
10572  ld_shlibs=no
10573  fi
10574
10575      ;;
10576
10577    dgux*)
10578      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10579      hardcode_libdir_flag_spec='-L$libdir'
10580      hardcode_shlibpath_var=no
10581      ;;
10582
10583    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10584    # support.  Future versions do this automatically, but an explicit c++rt0.o
10585    # does not break anything, and helps significantly (at the cost of a little
10586    # extra space).
10587    freebsd2.2*)
10588      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10589      hardcode_libdir_flag_spec='-R$libdir'
10590      hardcode_direct=yes
10591      hardcode_shlibpath_var=no
10592      ;;
10593
10594    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10595    freebsd2.*)
10596      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10597      hardcode_direct=yes
10598      hardcode_minus_L=yes
10599      hardcode_shlibpath_var=no
10600      ;;
10601
10602    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10603    freebsd* | dragonfly*)
10604      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10605      hardcode_libdir_flag_spec='-R$libdir'
10606      hardcode_direct=yes
10607      hardcode_shlibpath_var=no
10608      ;;
10609
10610    hpux9*)
10611      if test yes = "$GCC"; then
10612	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'
10613      else
10614	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'
10615      fi
10616      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10617      hardcode_libdir_separator=:
10618      hardcode_direct=yes
10619
10620      # hardcode_minus_L: Not really in the search PATH,
10621      # but as the default location of the library.
10622      hardcode_minus_L=yes
10623      export_dynamic_flag_spec='$wl-E'
10624      ;;
10625
10626    hpux10*)
10627      if test yes,no = "$GCC,$with_gnu_ld"; then
10628	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10629      else
10630	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10631      fi
10632      if test no = "$with_gnu_ld"; then
10633	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10634	hardcode_libdir_separator=:
10635	hardcode_direct=yes
10636	hardcode_direct_absolute=yes
10637	export_dynamic_flag_spec='$wl-E'
10638	# hardcode_minus_L: Not really in the search PATH,
10639	# but as the default location of the library.
10640	hardcode_minus_L=yes
10641      fi
10642      ;;
10643
10644    hpux11*)
10645      if test yes,no = "$GCC,$with_gnu_ld"; then
10646	case $host_cpu in
10647	hppa*64*)
10648	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10649	  ;;
10650	ia64*)
10651	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10652	  ;;
10653	*)
10654	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10655	  ;;
10656	esac
10657      else
10658	case $host_cpu in
10659	hppa*64*)
10660	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10661	  ;;
10662	ia64*)
10663	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10664	  ;;
10665	*)
10666
10667	  # Older versions of the 11.00 compiler do not understand -b yet
10668	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10669	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10670$as_echo_n "checking if $CC understands -b... " >&6; }
10671if ${lt_cv_prog_compiler__b+:} false; then :
10672  $as_echo_n "(cached) " >&6
10673else
10674  lt_cv_prog_compiler__b=no
10675   save_LDFLAGS=$LDFLAGS
10676   LDFLAGS="$LDFLAGS -b"
10677   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10678   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10679     # The linker can only warn and ignore the option if not recognized
10680     # So say no if there are warnings
10681     if test -s conftest.err; then
10682       # Append any errors to the config.log.
10683       cat conftest.err 1>&5
10684       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10685       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10686       if diff conftest.exp conftest.er2 >/dev/null; then
10687         lt_cv_prog_compiler__b=yes
10688       fi
10689     else
10690       lt_cv_prog_compiler__b=yes
10691     fi
10692   fi
10693   $RM -r conftest*
10694   LDFLAGS=$save_LDFLAGS
10695
10696fi
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10698$as_echo "$lt_cv_prog_compiler__b" >&6; }
10699
10700if test yes = "$lt_cv_prog_compiler__b"; then
10701    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10702else
10703    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10704fi
10705
10706	  ;;
10707	esac
10708      fi
10709      if test no = "$with_gnu_ld"; then
10710	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10711	hardcode_libdir_separator=:
10712
10713	case $host_cpu in
10714	hppa*64*|ia64*)
10715	  hardcode_direct=no
10716	  hardcode_shlibpath_var=no
10717	  ;;
10718	*)
10719	  hardcode_direct=yes
10720	  hardcode_direct_absolute=yes
10721	  export_dynamic_flag_spec='$wl-E'
10722
10723	  # hardcode_minus_L: Not really in the search PATH,
10724	  # but as the default location of the library.
10725	  hardcode_minus_L=yes
10726	  ;;
10727	esac
10728      fi
10729      ;;
10730
10731    irix5* | irix6* | nonstopux*)
10732      if test yes = "$GCC"; then
10733	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'
10734	# Try to use the -exported_symbol ld option, if it does not
10735	# work, assume that -exports_file does not work either and
10736	# implicitly export all symbols.
10737	# This should be the same for all languages, so no per-tag cache variable.
10738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10739$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10740if ${lt_cv_irix_exported_symbol+:} false; then :
10741  $as_echo_n "(cached) " >&6
10742else
10743  save_LDFLAGS=$LDFLAGS
10744	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10745	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746/* end confdefs.h.  */
10747int foo (void) { return 0; }
10748_ACEOF
10749if ac_fn_c_try_link "$LINENO"; then :
10750  lt_cv_irix_exported_symbol=yes
10751else
10752  lt_cv_irix_exported_symbol=no
10753fi
10754rm -f core conftest.err conftest.$ac_objext \
10755    conftest$ac_exeext conftest.$ac_ext
10756           LDFLAGS=$save_LDFLAGS
10757fi
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10759$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10760	if test yes = "$lt_cv_irix_exported_symbol"; then
10761          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'
10762	fi
10763	link_all_deplibs=no
10764      else
10765	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'
10766	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'
10767      fi
10768      archive_cmds_need_lc='no'
10769      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10770      hardcode_libdir_separator=:
10771      inherit_rpath=yes
10772      link_all_deplibs=yes
10773      ;;
10774
10775    linux*)
10776      case $cc_basename in
10777      tcc*)
10778	# Fabrice Bellard et al's Tiny C Compiler
10779	ld_shlibs=yes
10780	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10781	;;
10782      esac
10783      ;;
10784
10785    netbsd* | netbsdelf*-gnu)
10786      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10787	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10788      else
10789	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10790      fi
10791      hardcode_libdir_flag_spec='-R$libdir'
10792      hardcode_direct=yes
10793      hardcode_shlibpath_var=no
10794      ;;
10795
10796    newsos6)
10797      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798      hardcode_direct=yes
10799      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10800      hardcode_libdir_separator=:
10801      hardcode_shlibpath_var=no
10802      ;;
10803
10804    *nto* | *qnx*)
10805      ;;
10806
10807    openbsd* | bitrig*)
10808      if test -f /usr/libexec/ld.so; then
10809	hardcode_direct=yes
10810	hardcode_shlibpath_var=no
10811	hardcode_direct_absolute=yes
10812	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10813	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10814	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10815	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10816	  export_dynamic_flag_spec='$wl-E'
10817	else
10818	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10819	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10820	fi
10821      else
10822	ld_shlibs=no
10823      fi
10824      ;;
10825
10826    os2*)
10827      hardcode_libdir_flag_spec='-L$libdir'
10828      hardcode_minus_L=yes
10829      allow_undefined_flag=unsupported
10830      shrext_cmds=.dll
10831      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10832	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10833	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10834	$ECHO EXPORTS >> $output_objdir/$libname.def~
10835	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10836	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10837	emximp -o $lib $output_objdir/$libname.def'
10838      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10839	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10840	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10841	$ECHO EXPORTS >> $output_objdir/$libname.def~
10842	prefix_cmds="$SED"~
10843	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10844	  prefix_cmds="$prefix_cmds -e 1d";
10845	fi~
10846	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10847	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10848	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10849	emximp -o $lib $output_objdir/$libname.def'
10850      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10851      enable_shared_with_static_runtimes=yes
10852      ;;
10853
10854    osf3*)
10855      if test yes = "$GCC"; then
10856	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10857	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'
10858      else
10859	allow_undefined_flag=' -expect_unresolved \*'
10860	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'
10861      fi
10862      archive_cmds_need_lc='no'
10863      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10864      hardcode_libdir_separator=:
10865      ;;
10866
10867    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10868      if test yes = "$GCC"; then
10869	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10870	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'
10871	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10872      else
10873	allow_undefined_flag=' -expect_unresolved \*'
10874	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'
10875	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~
10876          $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'
10877
10878	# Both c and cxx compiler support -rpath directly
10879	hardcode_libdir_flag_spec='-rpath $libdir'
10880      fi
10881      archive_cmds_need_lc='no'
10882      hardcode_libdir_separator=:
10883      ;;
10884
10885    solaris*)
10886      no_undefined_flag=' -z defs'
10887      if test yes = "$GCC"; then
10888	wlarc='$wl'
10889	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10890	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10891          $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'
10892      else
10893	case `$CC -V 2>&1` in
10894	*"Compilers 5.0"*)
10895	  wlarc=''
10896	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10897	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10898            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10899	  ;;
10900	*)
10901	  wlarc='$wl'
10902	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10903	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10904            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10905	  ;;
10906	esac
10907      fi
10908      hardcode_libdir_flag_spec='-R$libdir'
10909      hardcode_shlibpath_var=no
10910      case $host_os in
10911      solaris2.[0-5] | solaris2.[0-5].*) ;;
10912      *)
10913	# The compiler driver will combine and reorder linker options,
10914	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10915	# but is careful enough not to reorder.
10916	# Supported since Solaris 2.6 (maybe 2.5.1?)
10917	if test yes = "$GCC"; then
10918	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10919	else
10920	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10921	fi
10922	;;
10923      esac
10924      link_all_deplibs=yes
10925      ;;
10926
10927    sunos4*)
10928      if test sequent = "$host_vendor"; then
10929	# Use $CC to link under sequent, because it throws in some extra .o
10930	# files that make .init and .fini sections work.
10931	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10932      else
10933	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10934      fi
10935      hardcode_libdir_flag_spec='-L$libdir'
10936      hardcode_direct=yes
10937      hardcode_minus_L=yes
10938      hardcode_shlibpath_var=no
10939      ;;
10940
10941    sysv4)
10942      case $host_vendor in
10943	sni)
10944	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10945	  hardcode_direct=yes # is this really true???
10946	;;
10947	siemens)
10948	  ## LD is ld it makes a PLAMLIB
10949	  ## CC just makes a GrossModule.
10950	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10951	  reload_cmds='$CC -r -o $output$reload_objs'
10952	  hardcode_direct=no
10953        ;;
10954	motorola)
10955	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10957	;;
10958      esac
10959      runpath_var='LD_RUN_PATH'
10960      hardcode_shlibpath_var=no
10961      ;;
10962
10963    sysv4.3*)
10964      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965      hardcode_shlibpath_var=no
10966      export_dynamic_flag_spec='-Bexport'
10967      ;;
10968
10969    sysv4*MP*)
10970      if test -d /usr/nec; then
10971	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972	hardcode_shlibpath_var=no
10973	runpath_var=LD_RUN_PATH
10974	hardcode_runpath_var=yes
10975	ld_shlibs=yes
10976      fi
10977      ;;
10978
10979    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10980      no_undefined_flag='$wl-z,text'
10981      archive_cmds_need_lc=no
10982      hardcode_shlibpath_var=no
10983      runpath_var='LD_RUN_PATH'
10984
10985      if test yes = "$GCC"; then
10986	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10988      else
10989	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10991      fi
10992      ;;
10993
10994    sysv5* | sco3.2v5* | sco5v6*)
10995      # Note: We CANNOT use -z defs as we might desire, because we do not
10996      # link with -lc, and that would cause any symbols used from libc to
10997      # always be unresolved, which means just about no library would
10998      # ever link correctly.  If we're not using GNU ld we use -z text
10999      # though, which does catch some bad symbols but isn't as heavy-handed
11000      # as -z defs.
11001      no_undefined_flag='$wl-z,text'
11002      allow_undefined_flag='$wl-z,nodefs'
11003      archive_cmds_need_lc=no
11004      hardcode_shlibpath_var=no
11005      hardcode_libdir_flag_spec='$wl-R,$libdir'
11006      hardcode_libdir_separator=':'
11007      link_all_deplibs=yes
11008      export_dynamic_flag_spec='$wl-Bexport'
11009      runpath_var='LD_RUN_PATH'
11010
11011      if test yes = "$GCC"; then
11012	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014      else
11015	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11016	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017      fi
11018      ;;
11019
11020    uts4*)
11021      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11022      hardcode_libdir_flag_spec='-L$libdir'
11023      hardcode_shlibpath_var=no
11024      ;;
11025
11026    *)
11027      ld_shlibs=no
11028      ;;
11029    esac
11030
11031    if test sni = "$host_vendor"; then
11032      case $host in
11033      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11034	export_dynamic_flag_spec='$wl-Blargedynsym'
11035	;;
11036      esac
11037    fi
11038  fi
11039
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11041$as_echo "$ld_shlibs" >&6; }
11042test no = "$ld_shlibs" && can_build_shared=no
11043
11044with_gnu_ld=$with_gnu_ld
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060#
11061# Do we need to explicitly link libc?
11062#
11063case "x$archive_cmds_need_lc" in
11064x|xyes)
11065  # Assume -lc should be added
11066  archive_cmds_need_lc=yes
11067
11068  if test yes,yes = "$GCC,$enable_shared"; then
11069    case $archive_cmds in
11070    *'~'*)
11071      # FIXME: we may have to deal with multi-command sequences.
11072      ;;
11073    '$CC '*)
11074      # Test whether the compiler implicitly links with -lc since on some
11075      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11076      # to ld, don't add -lc before -lgcc.
11077      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11078$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11079if ${lt_cv_archive_cmds_need_lc+:} false; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  $RM conftest*
11083	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11084
11085	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11086  (eval $ac_compile) 2>&5
11087  ac_status=$?
11088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11089  test $ac_status = 0; } 2>conftest.err; then
11090	  soname=conftest
11091	  lib=conftest
11092	  libobjs=conftest.$ac_objext
11093	  deplibs=
11094	  wl=$lt_prog_compiler_wl
11095	  pic_flag=$lt_prog_compiler_pic
11096	  compiler_flags=-v
11097	  linker_flags=-v
11098	  verstring=
11099	  output_objdir=.
11100	  libname=conftest
11101	  lt_save_allow_undefined_flag=$allow_undefined_flag
11102	  allow_undefined_flag=
11103	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11104  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11105  ac_status=$?
11106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11107  test $ac_status = 0; }
11108	  then
11109	    lt_cv_archive_cmds_need_lc=no
11110	  else
11111	    lt_cv_archive_cmds_need_lc=yes
11112	  fi
11113	  allow_undefined_flag=$lt_save_allow_undefined_flag
11114	else
11115	  cat conftest.err 1>&5
11116	fi
11117	$RM conftest*
11118
11119fi
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11121$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11122      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11123      ;;
11124    esac
11125  fi
11126  ;;
11127esac
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
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11281$as_echo_n "checking dynamic linker characteristics... " >&6; }
11282
11283if test yes = "$GCC"; then
11284  case $host_os in
11285    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11286    *) lt_awk_arg='/^libraries:/' ;;
11287  esac
11288  case $host_os in
11289    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11290    *) lt_sed_strip_eq='s|=/|/|g' ;;
11291  esac
11292  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11293  case $lt_search_path_spec in
11294  *\;*)
11295    # if the path contains ";" then we assume it to be the separator
11296    # otherwise default to the standard path separator (i.e. ":") - it is
11297    # assumed that no part of a normal pathname contains ";" but that should
11298    # okay in the real world where ";" in dirpaths is itself problematic.
11299    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11300    ;;
11301  *)
11302    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11303    ;;
11304  esac
11305  # Ok, now we have the path, separated by spaces, we can step through it
11306  # and add multilib dir if necessary...
11307  lt_tmp_lt_search_path_spec=
11308  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11309  # ...but if some path component already ends with the multilib dir we assume
11310  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11311  case "$lt_multi_os_dir; $lt_search_path_spec " in
11312  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11313    lt_multi_os_dir=
11314    ;;
11315  esac
11316  for lt_sys_path in $lt_search_path_spec; do
11317    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11318      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11319    elif test -n "$lt_multi_os_dir"; then
11320      test -d "$lt_sys_path" && \
11321	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11322    fi
11323  done
11324  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11325BEGIN {RS = " "; FS = "/|\n";} {
11326  lt_foo = "";
11327  lt_count = 0;
11328  for (lt_i = NF; lt_i > 0; lt_i--) {
11329    if ($lt_i != "" && $lt_i != ".") {
11330      if ($lt_i == "..") {
11331        lt_count++;
11332      } else {
11333        if (lt_count == 0) {
11334          lt_foo = "/" $lt_i lt_foo;
11335        } else {
11336          lt_count--;
11337        }
11338      }
11339    }
11340  }
11341  if (lt_foo != "") { lt_freq[lt_foo]++; }
11342  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11343}'`
11344  # AWK program above erroneously prepends '/' to C:/dos/paths
11345  # for these hosts.
11346  case $host_os in
11347    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11348      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11349  esac
11350  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11351else
11352  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11353fi
11354library_names_spec=
11355libname_spec='lib$name'
11356soname_spec=
11357shrext_cmds=.so
11358postinstall_cmds=
11359postuninstall_cmds=
11360finish_cmds=
11361finish_eval=
11362shlibpath_var=
11363shlibpath_overrides_runpath=unknown
11364version_type=none
11365dynamic_linker="$host_os ld.so"
11366sys_lib_dlsearch_path_spec="/lib /usr/lib"
11367need_lib_prefix=unknown
11368hardcode_into_libs=no
11369
11370# when you set need_version to no, make sure it does not cause -set_version
11371# flags to be left without arguments
11372need_version=unknown
11373
11374
11375
11376case $host_os in
11377aix3*)
11378  version_type=linux # correct to gnu/linux during the next big refactor
11379  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11380  shlibpath_var=LIBPATH
11381
11382  # AIX 3 has no versioning support, so we append a major version to the name.
11383  soname_spec='$libname$release$shared_ext$major'
11384  ;;
11385
11386aix[4-9]*)
11387  version_type=linux # correct to gnu/linux during the next big refactor
11388  need_lib_prefix=no
11389  need_version=no
11390  hardcode_into_libs=yes
11391  if test ia64 = "$host_cpu"; then
11392    # AIX 5 supports IA64
11393    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11394    shlibpath_var=LD_LIBRARY_PATH
11395  else
11396    # With GCC up to 2.95.x, collect2 would create an import file
11397    # for dependence libraries.  The import file would start with
11398    # the line '#! .'.  This would cause the generated library to
11399    # depend on '.', always an invalid library.  This was fixed in
11400    # development snapshots of GCC prior to 3.0.
11401    case $host_os in
11402      aix4 | aix4.[01] | aix4.[01].*)
11403      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11404	   echo ' yes '
11405	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11406	:
11407      else
11408	can_build_shared=no
11409      fi
11410      ;;
11411    esac
11412    # Using Import Files as archive members, it is possible to support
11413    # filename-based versioning of shared library archives on AIX. While
11414    # this would work for both with and without runtime linking, it will
11415    # prevent static linking of such archives. So we do filename-based
11416    # shared library versioning with .so extension only, which is used
11417    # when both runtime linking and shared linking is enabled.
11418    # Unfortunately, runtime linking may impact performance, so we do
11419    # not want this to be the default eventually. Also, we use the
11420    # versioned .so libs for executables only if there is the -brtl
11421    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11422    # To allow for filename-based versioning support, we need to create
11423    # libNAME.so.V as an archive file, containing:
11424    # *) an Import File, referring to the versioned filename of the
11425    #    archive as well as the shared archive member, telling the
11426    #    bitwidth (32 or 64) of that shared object, and providing the
11427    #    list of exported symbols of that shared object, eventually
11428    #    decorated with the 'weak' keyword
11429    # *) the shared object with the F_LOADONLY flag set, to really avoid
11430    #    it being seen by the linker.
11431    # At run time we better use the real file rather than another symlink,
11432    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11433
11434    case $with_aix_soname,$aix_use_runtimelinking in
11435    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11436    # soname into executable. Probably we can add versioning support to
11437    # collect2, so additional links can be useful in future.
11438    aix,yes) # traditional libtool
11439      dynamic_linker='AIX unversionable lib.so'
11440      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11441      # instead of lib<name>.a to let people know that these are not
11442      # typical AIX shared libraries.
11443      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444      ;;
11445    aix,no) # traditional AIX only
11446      dynamic_linker='AIX lib.a(lib.so.V)'
11447      # We preserve .a as extension for shared libraries through AIX4.2
11448      # and later when we are not doing run time linking.
11449      library_names_spec='$libname$release.a $libname.a'
11450      soname_spec='$libname$release$shared_ext$major'
11451      ;;
11452    svr4,*) # full svr4 only
11453      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11454      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11455      # We do not specify a path in Import Files, so LIBPATH fires.
11456      shlibpath_overrides_runpath=yes
11457      ;;
11458    *,yes) # both, prefer svr4
11459      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11460      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11461      # unpreferred sharedlib libNAME.a needs extra handling
11462      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"'
11463      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"'
11464      # We do not specify a path in Import Files, so LIBPATH fires.
11465      shlibpath_overrides_runpath=yes
11466      ;;
11467    *,no) # both, prefer aix
11468      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11469      library_names_spec='$libname$release.a $libname.a'
11470      soname_spec='$libname$release$shared_ext$major'
11471      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11472      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)'
11473      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"'
11474      ;;
11475    esac
11476    shlibpath_var=LIBPATH
11477  fi
11478  ;;
11479
11480amigaos*)
11481  case $host_cpu in
11482  powerpc)
11483    # Since July 2007 AmigaOS4 officially supports .so libraries.
11484    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11485    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11486    ;;
11487  m68k)
11488    library_names_spec='$libname.ixlibrary $libname.a'
11489    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11490    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'
11491    ;;
11492  esac
11493  ;;
11494
11495beos*)
11496  library_names_spec='$libname$shared_ext'
11497  dynamic_linker="$host_os ld.so"
11498  shlibpath_var=LIBRARY_PATH
11499  ;;
11500
11501bsdi[45]*)
11502  version_type=linux # correct to gnu/linux during the next big refactor
11503  need_version=no
11504  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11505  soname_spec='$libname$release$shared_ext$major'
11506  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11507  shlibpath_var=LD_LIBRARY_PATH
11508  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11509  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11510  # the default ld.so.conf also contains /usr/contrib/lib and
11511  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11512  # libtool to hard-code these into programs
11513  ;;
11514
11515cygwin* | mingw* | pw32* | cegcc*)
11516  version_type=windows
11517  shrext_cmds=.dll
11518  need_version=no
11519  need_lib_prefix=no
11520
11521  case $GCC,$cc_basename in
11522  yes,*)
11523    # gcc
11524    library_names_spec='$libname.dll.a'
11525    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11526    postinstall_cmds='base_file=`basename \$file`~
11527      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11528      dldir=$destdir/`dirname \$dlpath`~
11529      test -d \$dldir || mkdir -p \$dldir~
11530      $install_prog $dir/$dlname \$dldir/$dlname~
11531      chmod a+x \$dldir/$dlname~
11532      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11533        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11534      fi'
11535    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11536      dlpath=$dir/\$dldll~
11537       $RM \$dlpath'
11538    shlibpath_overrides_runpath=yes
11539
11540    case $host_os in
11541    cygwin*)
11542      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11543      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11544
11545      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11546      ;;
11547    mingw* | cegcc*)
11548      # MinGW DLLs use traditional 'lib' prefix
11549      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11550      ;;
11551    pw32*)
11552      # pw32 DLLs use 'pw' prefix rather than 'lib'
11553      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11554      ;;
11555    esac
11556    dynamic_linker='Win32 ld.exe'
11557    ;;
11558
11559  *,cl*)
11560    # Native MSVC
11561    libname_spec='$name'
11562    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11563    library_names_spec='$libname.dll.lib'
11564
11565    case $build_os in
11566    mingw*)
11567      sys_lib_search_path_spec=
11568      lt_save_ifs=$IFS
11569      IFS=';'
11570      for lt_path in $LIB
11571      do
11572        IFS=$lt_save_ifs
11573        # Let DOS variable expansion print the short 8.3 style file name.
11574        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11575        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11576      done
11577      IFS=$lt_save_ifs
11578      # Convert to MSYS style.
11579      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11580      ;;
11581    cygwin*)
11582      # Convert to unix form, then to dos form, then back to unix form
11583      # but this time dos style (no spaces!) so that the unix form looks
11584      # like /cygdrive/c/PROGRA~1:/cygdr...
11585      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11586      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11587      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11588      ;;
11589    *)
11590      sys_lib_search_path_spec=$LIB
11591      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11592        # It is most probably a Windows format PATH.
11593        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11594      else
11595        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11596      fi
11597      # FIXME: find the short name or the path components, as spaces are
11598      # common. (e.g. "Program Files" -> "PROGRA~1")
11599      ;;
11600    esac
11601
11602    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11603    postinstall_cmds='base_file=`basename \$file`~
11604      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11605      dldir=$destdir/`dirname \$dlpath`~
11606      test -d \$dldir || mkdir -p \$dldir~
11607      $install_prog $dir/$dlname \$dldir/$dlname'
11608    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11609      dlpath=$dir/\$dldll~
11610       $RM \$dlpath'
11611    shlibpath_overrides_runpath=yes
11612    dynamic_linker='Win32 link.exe'
11613    ;;
11614
11615  *)
11616    # Assume MSVC wrapper
11617    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11618    dynamic_linker='Win32 ld.exe'
11619    ;;
11620  esac
11621  # FIXME: first we should search . and the directory the executable is in
11622  shlibpath_var=PATH
11623  ;;
11624
11625darwin* | rhapsody*)
11626  dynamic_linker="$host_os dyld"
11627  version_type=darwin
11628  need_lib_prefix=no
11629  need_version=no
11630  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11631  soname_spec='$libname$release$major$shared_ext'
11632  shlibpath_overrides_runpath=yes
11633  shlibpath_var=DYLD_LIBRARY_PATH
11634  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11635
11636  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11637  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11638  ;;
11639
11640dgux*)
11641  version_type=linux # correct to gnu/linux during the next big refactor
11642  need_lib_prefix=no
11643  need_version=no
11644  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11645  soname_spec='$libname$release$shared_ext$major'
11646  shlibpath_var=LD_LIBRARY_PATH
11647  ;;
11648
11649freebsd* | dragonfly*)
11650  # DragonFly does not have aout.  When/if they implement a new
11651  # versioning mechanism, adjust this.
11652  if test -x /usr/bin/objformat; then
11653    objformat=`/usr/bin/objformat`
11654  else
11655    case $host_os in
11656    freebsd[23].*) objformat=aout ;;
11657    *) objformat=elf ;;
11658    esac
11659  fi
11660  version_type=freebsd-$objformat
11661  case $version_type in
11662    freebsd-elf*)
11663      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11664      soname_spec='$libname$release$shared_ext$major'
11665      need_version=no
11666      need_lib_prefix=no
11667      ;;
11668    freebsd-*)
11669      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11670      need_version=yes
11671      ;;
11672  esac
11673  shlibpath_var=LD_LIBRARY_PATH
11674  case $host_os in
11675  freebsd2.*)
11676    shlibpath_overrides_runpath=yes
11677    ;;
11678  freebsd3.[01]* | freebsdelf3.[01]*)
11679    shlibpath_overrides_runpath=yes
11680    hardcode_into_libs=yes
11681    ;;
11682  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11683  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11684    shlibpath_overrides_runpath=no
11685    hardcode_into_libs=yes
11686    ;;
11687  *) # from 4.6 on, and DragonFly
11688    shlibpath_overrides_runpath=yes
11689    hardcode_into_libs=yes
11690    ;;
11691  esac
11692  ;;
11693
11694haiku*)
11695  version_type=linux # correct to gnu/linux during the next big refactor
11696  need_lib_prefix=no
11697  need_version=no
11698  dynamic_linker="$host_os runtime_loader"
11699  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11700  soname_spec='$libname$release$shared_ext$major'
11701  shlibpath_var=LIBRARY_PATH
11702  shlibpath_overrides_runpath=no
11703  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11704  hardcode_into_libs=yes
11705  ;;
11706
11707hpux9* | hpux10* | hpux11*)
11708  # Give a soname corresponding to the major version so that dld.sl refuses to
11709  # link against other versions.
11710  version_type=sunos
11711  need_lib_prefix=no
11712  need_version=no
11713  case $host_cpu in
11714  ia64*)
11715    shrext_cmds='.so'
11716    hardcode_into_libs=yes
11717    dynamic_linker="$host_os dld.so"
11718    shlibpath_var=LD_LIBRARY_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    if test 32 = "$HPUX_IA64_MODE"; then
11723      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11724      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11725    else
11726      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11727      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11728    fi
11729    ;;
11730  hppa*64*)
11731    shrext_cmds='.sl'
11732    hardcode_into_libs=yes
11733    dynamic_linker="$host_os dld.sl"
11734    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11735    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11736    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11737    soname_spec='$libname$release$shared_ext$major'
11738    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11739    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11740    ;;
11741  *)
11742    shrext_cmds='.sl'
11743    dynamic_linker="$host_os dld.sl"
11744    shlibpath_var=SHLIB_PATH
11745    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11746    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747    soname_spec='$libname$release$shared_ext$major'
11748    ;;
11749  esac
11750  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11751  postinstall_cmds='chmod 555 $lib'
11752  # or fails outright, so override atomically:
11753  install_override_mode=555
11754  ;;
11755
11756interix[3-9]*)
11757  version_type=linux # correct to gnu/linux during the next big refactor
11758  need_lib_prefix=no
11759  need_version=no
11760  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11761  soname_spec='$libname$release$shared_ext$major'
11762  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11763  shlibpath_var=LD_LIBRARY_PATH
11764  shlibpath_overrides_runpath=no
11765  hardcode_into_libs=yes
11766  ;;
11767
11768irix5* | irix6* | nonstopux*)
11769  case $host_os in
11770    nonstopux*) version_type=nonstopux ;;
11771    *)
11772	if test yes = "$lt_cv_prog_gnu_ld"; then
11773		version_type=linux # correct to gnu/linux during the next big refactor
11774	else
11775		version_type=irix
11776	fi ;;
11777  esac
11778  need_lib_prefix=no
11779  need_version=no
11780  soname_spec='$libname$release$shared_ext$major'
11781  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11782  case $host_os in
11783  irix5* | nonstopux*)
11784    libsuff= shlibsuff=
11785    ;;
11786  *)
11787    case $LD in # libtool.m4 will add one of these switches to LD
11788    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11789      libsuff= shlibsuff= libmagic=32-bit;;
11790    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11791      libsuff=32 shlibsuff=N32 libmagic=N32;;
11792    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11793      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11794    *) libsuff= shlibsuff= libmagic=never-match;;
11795    esac
11796    ;;
11797  esac
11798  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11799  shlibpath_overrides_runpath=no
11800  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11801  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11802  hardcode_into_libs=yes
11803  ;;
11804
11805# No shared lib support for Linux oldld, aout, or coff.
11806linux*oldld* | linux*aout* | linux*coff*)
11807  dynamic_linker=no
11808  ;;
11809
11810linux*android*)
11811  version_type=none # Android doesn't support versioned libraries.
11812  need_lib_prefix=no
11813  need_version=no
11814  library_names_spec='$libname$release$shared_ext'
11815  soname_spec='$libname$release$shared_ext'
11816  finish_cmds=
11817  shlibpath_var=LD_LIBRARY_PATH
11818  shlibpath_overrides_runpath=yes
11819
11820  # This implies no fast_install, which is unacceptable.
11821  # Some rework will be needed to allow for fast_install
11822  # before this can be enabled.
11823  hardcode_into_libs=yes
11824
11825  dynamic_linker='Android linker'
11826  # Don't embed -rpath directories since the linker doesn't support them.
11827  hardcode_libdir_flag_spec='-L$libdir'
11828  ;;
11829
11830# This must be glibc/ELF.
11831linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11832  version_type=linux # correct to gnu/linux during the next big refactor
11833  need_lib_prefix=no
11834  need_version=no
11835  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11836  soname_spec='$libname$release$shared_ext$major'
11837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11838  shlibpath_var=LD_LIBRARY_PATH
11839  shlibpath_overrides_runpath=no
11840
11841  # Some binutils ld are patched to set DT_RUNPATH
11842  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11843  $as_echo_n "(cached) " >&6
11844else
11845  lt_cv_shlibpath_overrides_runpath=no
11846    save_LDFLAGS=$LDFLAGS
11847    save_libdir=$libdir
11848    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11849	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11850    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851/* end confdefs.h.  */
11852
11853int
11854main ()
11855{
11856
11857  ;
11858  return 0;
11859}
11860_ACEOF
11861if ac_fn_c_try_link "$LINENO"; then :
11862  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11863  lt_cv_shlibpath_overrides_runpath=yes
11864fi
11865fi
11866rm -f core conftest.err conftest.$ac_objext \
11867    conftest$ac_exeext conftest.$ac_ext
11868    LDFLAGS=$save_LDFLAGS
11869    libdir=$save_libdir
11870
11871fi
11872
11873  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11874
11875  # This implies no fast_install, which is unacceptable.
11876  # Some rework will be needed to allow for fast_install
11877  # before this can be enabled.
11878  hardcode_into_libs=yes
11879
11880  # Ideally, we could use ldconfig to report *all* directores which are
11881  # searched for libraries, however this is still not possible.  Aside from not
11882  # being certain /sbin/ldconfig is available, command
11883  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11884  # even though it is searched at run-time.  Try to do the best guess by
11885  # appending ld.so.conf contents (and includes) to the search path.
11886  if test -f /etc/ld.so.conf; then
11887    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' ' '`
11888    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11889  fi
11890
11891  # We used to test for /lib/ld.so.1 and disable shared libraries on
11892  # powerpc, because MkLinux only supported shared libraries with the
11893  # GNU dynamic linker.  Since this was broken with cross compilers,
11894  # most powerpc-linux boxes support dynamic linking these days and
11895  # people can always --disable-shared, the test was removed, and we
11896  # assume the GNU/Linux dynamic linker is in use.
11897  dynamic_linker='GNU/Linux ld.so'
11898  ;;
11899
11900netbsdelf*-gnu)
11901  version_type=linux
11902  need_lib_prefix=no
11903  need_version=no
11904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11905  soname_spec='${libname}${release}${shared_ext}$major'
11906  shlibpath_var=LD_LIBRARY_PATH
11907  shlibpath_overrides_runpath=no
11908  hardcode_into_libs=yes
11909  dynamic_linker='NetBSD ld.elf_so'
11910  ;;
11911
11912netbsd*)
11913  version_type=sunos
11914  need_lib_prefix=no
11915  need_version=no
11916  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11917    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11918    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11919    dynamic_linker='NetBSD (a.out) ld.so'
11920  else
11921    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11922    soname_spec='$libname$release$shared_ext$major'
11923    dynamic_linker='NetBSD ld.elf_so'
11924  fi
11925  shlibpath_var=LD_LIBRARY_PATH
11926  shlibpath_overrides_runpath=yes
11927  hardcode_into_libs=yes
11928  ;;
11929
11930newsos6)
11931  version_type=linux # correct to gnu/linux during the next big refactor
11932  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11933  shlibpath_var=LD_LIBRARY_PATH
11934  shlibpath_overrides_runpath=yes
11935  ;;
11936
11937*nto* | *qnx*)
11938  version_type=qnx
11939  need_lib_prefix=no
11940  need_version=no
11941  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11942  soname_spec='$libname$release$shared_ext$major'
11943  shlibpath_var=LD_LIBRARY_PATH
11944  shlibpath_overrides_runpath=no
11945  hardcode_into_libs=yes
11946  dynamic_linker='ldqnx.so'
11947  ;;
11948
11949openbsd* | bitrig*)
11950  version_type=sunos
11951  sys_lib_dlsearch_path_spec=/usr/lib
11952  need_lib_prefix=no
11953  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11954    need_version=no
11955  else
11956    need_version=yes
11957  fi
11958  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11959  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11960  shlibpath_var=LD_LIBRARY_PATH
11961  shlibpath_overrides_runpath=yes
11962  ;;
11963
11964os2*)
11965  libname_spec='$name'
11966  version_type=windows
11967  shrext_cmds=.dll
11968  need_version=no
11969  need_lib_prefix=no
11970  # OS/2 can only load a DLL with a base name of 8 characters or less.
11971  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11972    v=$($ECHO $release$versuffix | tr -d .-);
11973    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11974    $ECHO $n$v`$shared_ext'
11975  library_names_spec='${libname}_dll.$libext'
11976  dynamic_linker='OS/2 ld.exe'
11977  shlibpath_var=BEGINLIBPATH
11978  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11979  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11980  postinstall_cmds='base_file=`basename \$file`~
11981    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11982    dldir=$destdir/`dirname \$dlpath`~
11983    test -d \$dldir || mkdir -p \$dldir~
11984    $install_prog $dir/$dlname \$dldir/$dlname~
11985    chmod a+x \$dldir/$dlname~
11986    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11987      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11988    fi'
11989  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11990    dlpath=$dir/\$dldll~
11991    $RM \$dlpath'
11992  ;;
11993
11994osf3* | osf4* | osf5*)
11995  version_type=osf
11996  need_lib_prefix=no
11997  need_version=no
11998  soname_spec='$libname$release$shared_ext$major'
11999  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12000  shlibpath_var=LD_LIBRARY_PATH
12001  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12002  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12003  ;;
12004
12005rdos*)
12006  dynamic_linker=no
12007  ;;
12008
12009solaris*)
12010  version_type=linux # correct to gnu/linux during the next big refactor
12011  need_lib_prefix=no
12012  need_version=no
12013  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12014  soname_spec='$libname$release$shared_ext$major'
12015  shlibpath_var=LD_LIBRARY_PATH
12016  shlibpath_overrides_runpath=yes
12017  hardcode_into_libs=yes
12018  # ldd complains unless libraries are executable
12019  postinstall_cmds='chmod +x $lib'
12020  ;;
12021
12022sunos4*)
12023  version_type=sunos
12024  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12025  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12026  shlibpath_var=LD_LIBRARY_PATH
12027  shlibpath_overrides_runpath=yes
12028  if test yes = "$with_gnu_ld"; then
12029    need_lib_prefix=no
12030  fi
12031  need_version=yes
12032  ;;
12033
12034sysv4 | sysv4.3*)
12035  version_type=linux # correct to gnu/linux during the next big refactor
12036  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12037  soname_spec='$libname$release$shared_ext$major'
12038  shlibpath_var=LD_LIBRARY_PATH
12039  case $host_vendor in
12040    sni)
12041      shlibpath_overrides_runpath=no
12042      need_lib_prefix=no
12043      runpath_var=LD_RUN_PATH
12044      ;;
12045    siemens)
12046      need_lib_prefix=no
12047      ;;
12048    motorola)
12049      need_lib_prefix=no
12050      need_version=no
12051      shlibpath_overrides_runpath=no
12052      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12053      ;;
12054  esac
12055  ;;
12056
12057sysv4*MP*)
12058  if test -d /usr/nec; then
12059    version_type=linux # correct to gnu/linux during the next big refactor
12060    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12061    soname_spec='$libname$shared_ext.$major'
12062    shlibpath_var=LD_LIBRARY_PATH
12063  fi
12064  ;;
12065
12066sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12067  version_type=sco
12068  need_lib_prefix=no
12069  need_version=no
12070  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12071  soname_spec='$libname$release$shared_ext$major'
12072  shlibpath_var=LD_LIBRARY_PATH
12073  shlibpath_overrides_runpath=yes
12074  hardcode_into_libs=yes
12075  if test yes = "$with_gnu_ld"; then
12076    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12077  else
12078    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12079    case $host_os in
12080      sco3.2v5*)
12081        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12082	;;
12083    esac
12084  fi
12085  sys_lib_dlsearch_path_spec='/usr/lib'
12086  ;;
12087
12088tpf*)
12089  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12090  version_type=linux # correct to gnu/linux during the next big refactor
12091  need_lib_prefix=no
12092  need_version=no
12093  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12094  shlibpath_var=LD_LIBRARY_PATH
12095  shlibpath_overrides_runpath=no
12096  hardcode_into_libs=yes
12097  ;;
12098
12099uts4*)
12100  version_type=linux # correct to gnu/linux during the next big refactor
12101  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12102  soname_spec='$libname$release$shared_ext$major'
12103  shlibpath_var=LD_LIBRARY_PATH
12104  ;;
12105
12106*)
12107  dynamic_linker=no
12108  ;;
12109esac
12110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12111$as_echo "$dynamic_linker" >&6; }
12112test no = "$dynamic_linker" && can_build_shared=no
12113
12114variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12115if test yes = "$GCC"; then
12116  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12117fi
12118
12119if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12120  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12121fi
12122
12123if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12124  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12125fi
12126
12127# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12128configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12129
12130# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12131func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12132
12133# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12134configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12233$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12234hardcode_action=
12235if test -n "$hardcode_libdir_flag_spec" ||
12236   test -n "$runpath_var" ||
12237   test yes = "$hardcode_automatic"; then
12238
12239  # We can hardcode non-existent directories.
12240  if test no != "$hardcode_direct" &&
12241     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12242     # have to relink, otherwise we might link with an installed library
12243     # when we should be linking with a yet-to-be-installed one
12244     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12245     test no != "$hardcode_minus_L"; then
12246    # Linking always hardcodes the temporary library directory.
12247    hardcode_action=relink
12248  else
12249    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12250    hardcode_action=immediate
12251  fi
12252else
12253  # We cannot hardcode anything, or else we can only hardcode existing
12254  # directories.
12255  hardcode_action=unsupported
12256fi
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12258$as_echo "$hardcode_action" >&6; }
12259
12260if test relink = "$hardcode_action" ||
12261   test yes = "$inherit_rpath"; then
12262  # Fast installation is not supported
12263  enable_fast_install=no
12264elif test yes = "$shlibpath_overrides_runpath" ||
12265     test no = "$enable_shared"; then
12266  # Fast installation is not necessary
12267  enable_fast_install=needless
12268fi
12269
12270
12271
12272
12273
12274
12275  if test yes != "$enable_dlopen"; then
12276  enable_dlopen=unknown
12277  enable_dlopen_self=unknown
12278  enable_dlopen_self_static=unknown
12279else
12280  lt_cv_dlopen=no
12281  lt_cv_dlopen_libs=
12282
12283  case $host_os in
12284  beos*)
12285    lt_cv_dlopen=load_add_on
12286    lt_cv_dlopen_libs=
12287    lt_cv_dlopen_self=yes
12288    ;;
12289
12290  mingw* | pw32* | cegcc*)
12291    lt_cv_dlopen=LoadLibrary
12292    lt_cv_dlopen_libs=
12293    ;;
12294
12295  cygwin*)
12296    lt_cv_dlopen=dlopen
12297    lt_cv_dlopen_libs=
12298    ;;
12299
12300  darwin*)
12301    # if libdl is installed we need to link against it
12302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12303$as_echo_n "checking for dlopen in -ldl... " >&6; }
12304if ${ac_cv_lib_dl_dlopen+:} false; then :
12305  $as_echo_n "(cached) " >&6
12306else
12307  ac_check_lib_save_LIBS=$LIBS
12308LIBS="-ldl  $LIBS"
12309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310/* end confdefs.h.  */
12311
12312/* Override any GCC internal prototype to avoid an error.
12313   Use char because int might match the return type of a GCC
12314   builtin and then its argument prototype would still apply.  */
12315#ifdef __cplusplus
12316extern "C"
12317#endif
12318char dlopen ();
12319int
12320main ()
12321{
12322return dlopen ();
12323  ;
12324  return 0;
12325}
12326_ACEOF
12327if ac_fn_c_try_link "$LINENO"; then :
12328  ac_cv_lib_dl_dlopen=yes
12329else
12330  ac_cv_lib_dl_dlopen=no
12331fi
12332rm -f core conftest.err conftest.$ac_objext \
12333    conftest$ac_exeext conftest.$ac_ext
12334LIBS=$ac_check_lib_save_LIBS
12335fi
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12337$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12338if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12339  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12340else
12341
12342    lt_cv_dlopen=dyld
12343    lt_cv_dlopen_libs=
12344    lt_cv_dlopen_self=yes
12345
12346fi
12347
12348    ;;
12349
12350  tpf*)
12351    # Don't try to run any link tests for TPF.  We know it's impossible
12352    # because TPF is a cross-compiler, and we know how we open DSOs.
12353    lt_cv_dlopen=dlopen
12354    lt_cv_dlopen_libs=
12355    lt_cv_dlopen_self=no
12356    ;;
12357
12358  *)
12359    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12360if test "x$ac_cv_func_shl_load" = xyes; then :
12361  lt_cv_dlopen=shl_load
12362else
12363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12364$as_echo_n "checking for shl_load in -ldld... " >&6; }
12365if ${ac_cv_lib_dld_shl_load+:} false; then :
12366  $as_echo_n "(cached) " >&6
12367else
12368  ac_check_lib_save_LIBS=$LIBS
12369LIBS="-ldld  $LIBS"
12370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371/* end confdefs.h.  */
12372
12373/* Override any GCC internal prototype to avoid an error.
12374   Use char because int might match the return type of a GCC
12375   builtin and then its argument prototype would still apply.  */
12376#ifdef __cplusplus
12377extern "C"
12378#endif
12379char shl_load ();
12380int
12381main ()
12382{
12383return shl_load ();
12384  ;
12385  return 0;
12386}
12387_ACEOF
12388if ac_fn_c_try_link "$LINENO"; then :
12389  ac_cv_lib_dld_shl_load=yes
12390else
12391  ac_cv_lib_dld_shl_load=no
12392fi
12393rm -f core conftest.err conftest.$ac_objext \
12394    conftest$ac_exeext conftest.$ac_ext
12395LIBS=$ac_check_lib_save_LIBS
12396fi
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12398$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12399if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12400  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12401else
12402  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12403if test "x$ac_cv_func_dlopen" = xyes; then :
12404  lt_cv_dlopen=dlopen
12405else
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12407$as_echo_n "checking for dlopen in -ldl... " >&6; }
12408if ${ac_cv_lib_dl_dlopen+:} false; then :
12409  $as_echo_n "(cached) " >&6
12410else
12411  ac_check_lib_save_LIBS=$LIBS
12412LIBS="-ldl  $LIBS"
12413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414/* end confdefs.h.  */
12415
12416/* Override any GCC internal prototype to avoid an error.
12417   Use char because int might match the return type of a GCC
12418   builtin and then its argument prototype would still apply.  */
12419#ifdef __cplusplus
12420extern "C"
12421#endif
12422char dlopen ();
12423int
12424main ()
12425{
12426return dlopen ();
12427  ;
12428  return 0;
12429}
12430_ACEOF
12431if ac_fn_c_try_link "$LINENO"; then :
12432  ac_cv_lib_dl_dlopen=yes
12433else
12434  ac_cv_lib_dl_dlopen=no
12435fi
12436rm -f core conftest.err conftest.$ac_objext \
12437    conftest$ac_exeext conftest.$ac_ext
12438LIBS=$ac_check_lib_save_LIBS
12439fi
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12441$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12442if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12443  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12444else
12445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12446$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12447if ${ac_cv_lib_svld_dlopen+:} false; then :
12448  $as_echo_n "(cached) " >&6
12449else
12450  ac_check_lib_save_LIBS=$LIBS
12451LIBS="-lsvld  $LIBS"
12452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453/* end confdefs.h.  */
12454
12455/* Override any GCC internal prototype to avoid an error.
12456   Use char because int might match the return type of a GCC
12457   builtin and then its argument prototype would still apply.  */
12458#ifdef __cplusplus
12459extern "C"
12460#endif
12461char dlopen ();
12462int
12463main ()
12464{
12465return dlopen ();
12466  ;
12467  return 0;
12468}
12469_ACEOF
12470if ac_fn_c_try_link "$LINENO"; then :
12471  ac_cv_lib_svld_dlopen=yes
12472else
12473  ac_cv_lib_svld_dlopen=no
12474fi
12475rm -f core conftest.err conftest.$ac_objext \
12476    conftest$ac_exeext conftest.$ac_ext
12477LIBS=$ac_check_lib_save_LIBS
12478fi
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12480$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12481if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12482  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12483else
12484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12485$as_echo_n "checking for dld_link in -ldld... " >&6; }
12486if ${ac_cv_lib_dld_dld_link+:} false; then :
12487  $as_echo_n "(cached) " >&6
12488else
12489  ac_check_lib_save_LIBS=$LIBS
12490LIBS="-ldld  $LIBS"
12491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492/* end confdefs.h.  */
12493
12494/* Override any GCC internal prototype to avoid an error.
12495   Use char because int might match the return type of a GCC
12496   builtin and then its argument prototype would still apply.  */
12497#ifdef __cplusplus
12498extern "C"
12499#endif
12500char dld_link ();
12501int
12502main ()
12503{
12504return dld_link ();
12505  ;
12506  return 0;
12507}
12508_ACEOF
12509if ac_fn_c_try_link "$LINENO"; then :
12510  ac_cv_lib_dld_dld_link=yes
12511else
12512  ac_cv_lib_dld_dld_link=no
12513fi
12514rm -f core conftest.err conftest.$ac_objext \
12515    conftest$ac_exeext conftest.$ac_ext
12516LIBS=$ac_check_lib_save_LIBS
12517fi
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12519$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12520if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12521  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12522fi
12523
12524
12525fi
12526
12527
12528fi
12529
12530
12531fi
12532
12533
12534fi
12535
12536
12537fi
12538
12539    ;;
12540  esac
12541
12542  if test no = "$lt_cv_dlopen"; then
12543    enable_dlopen=no
12544  else
12545    enable_dlopen=yes
12546  fi
12547
12548  case $lt_cv_dlopen in
12549  dlopen)
12550    save_CPPFLAGS=$CPPFLAGS
12551    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12552
12553    save_LDFLAGS=$LDFLAGS
12554    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12555
12556    save_LIBS=$LIBS
12557    LIBS="$lt_cv_dlopen_libs $LIBS"
12558
12559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12560$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12561if ${lt_cv_dlopen_self+:} false; then :
12562  $as_echo_n "(cached) " >&6
12563else
12564  	  if test yes = "$cross_compiling"; then :
12565  lt_cv_dlopen_self=cross
12566else
12567  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12568  lt_status=$lt_dlunknown
12569  cat > conftest.$ac_ext <<_LT_EOF
12570#line $LINENO "configure"
12571#include "confdefs.h"
12572
12573#if HAVE_DLFCN_H
12574#include <dlfcn.h>
12575#endif
12576
12577#include <stdio.h>
12578
12579#ifdef RTLD_GLOBAL
12580#  define LT_DLGLOBAL		RTLD_GLOBAL
12581#else
12582#  ifdef DL_GLOBAL
12583#    define LT_DLGLOBAL		DL_GLOBAL
12584#  else
12585#    define LT_DLGLOBAL		0
12586#  endif
12587#endif
12588
12589/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12590   find out it does not work in some platform. */
12591#ifndef LT_DLLAZY_OR_NOW
12592#  ifdef RTLD_LAZY
12593#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12594#  else
12595#    ifdef DL_LAZY
12596#      define LT_DLLAZY_OR_NOW		DL_LAZY
12597#    else
12598#      ifdef RTLD_NOW
12599#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12600#      else
12601#        ifdef DL_NOW
12602#          define LT_DLLAZY_OR_NOW	DL_NOW
12603#        else
12604#          define LT_DLLAZY_OR_NOW	0
12605#        endif
12606#      endif
12607#    endif
12608#  endif
12609#endif
12610
12611/* When -fvisibility=hidden is used, assume the code has been annotated
12612   correspondingly for the symbols needed.  */
12613#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12614int fnord () __attribute__((visibility("default")));
12615#endif
12616
12617int fnord () { return 42; }
12618int main ()
12619{
12620  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12621  int status = $lt_dlunknown;
12622
12623  if (self)
12624    {
12625      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12626      else
12627        {
12628	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12629          else puts (dlerror ());
12630	}
12631      /* dlclose (self); */
12632    }
12633  else
12634    puts (dlerror ());
12635
12636  return status;
12637}
12638_LT_EOF
12639  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12640  (eval $ac_link) 2>&5
12641  ac_status=$?
12642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12643  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12644    (./conftest; exit; ) >&5 2>/dev/null
12645    lt_status=$?
12646    case x$lt_status in
12647      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12648      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12649      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12650    esac
12651  else :
12652    # compilation failed
12653    lt_cv_dlopen_self=no
12654  fi
12655fi
12656rm -fr conftest*
12657
12658
12659fi
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12661$as_echo "$lt_cv_dlopen_self" >&6; }
12662
12663    if test yes = "$lt_cv_dlopen_self"; then
12664      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12665      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12666$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12667if ${lt_cv_dlopen_self_static+:} false; then :
12668  $as_echo_n "(cached) " >&6
12669else
12670  	  if test yes = "$cross_compiling"; then :
12671  lt_cv_dlopen_self_static=cross
12672else
12673  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12674  lt_status=$lt_dlunknown
12675  cat > conftest.$ac_ext <<_LT_EOF
12676#line $LINENO "configure"
12677#include "confdefs.h"
12678
12679#if HAVE_DLFCN_H
12680#include <dlfcn.h>
12681#endif
12682
12683#include <stdio.h>
12684
12685#ifdef RTLD_GLOBAL
12686#  define LT_DLGLOBAL		RTLD_GLOBAL
12687#else
12688#  ifdef DL_GLOBAL
12689#    define LT_DLGLOBAL		DL_GLOBAL
12690#  else
12691#    define LT_DLGLOBAL		0
12692#  endif
12693#endif
12694
12695/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12696   find out it does not work in some platform. */
12697#ifndef LT_DLLAZY_OR_NOW
12698#  ifdef RTLD_LAZY
12699#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12700#  else
12701#    ifdef DL_LAZY
12702#      define LT_DLLAZY_OR_NOW		DL_LAZY
12703#    else
12704#      ifdef RTLD_NOW
12705#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12706#      else
12707#        ifdef DL_NOW
12708#          define LT_DLLAZY_OR_NOW	DL_NOW
12709#        else
12710#          define LT_DLLAZY_OR_NOW	0
12711#        endif
12712#      endif
12713#    endif
12714#  endif
12715#endif
12716
12717/* When -fvisibility=hidden is used, assume the code has been annotated
12718   correspondingly for the symbols needed.  */
12719#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12720int fnord () __attribute__((visibility("default")));
12721#endif
12722
12723int fnord () { return 42; }
12724int main ()
12725{
12726  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12727  int status = $lt_dlunknown;
12728
12729  if (self)
12730    {
12731      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12732      else
12733        {
12734	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12735          else puts (dlerror ());
12736	}
12737      /* dlclose (self); */
12738    }
12739  else
12740    puts (dlerror ());
12741
12742  return status;
12743}
12744_LT_EOF
12745  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12746  (eval $ac_link) 2>&5
12747  ac_status=$?
12748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12749  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12750    (./conftest; exit; ) >&5 2>/dev/null
12751    lt_status=$?
12752    case x$lt_status in
12753      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12754      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12755      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12756    esac
12757  else :
12758    # compilation failed
12759    lt_cv_dlopen_self_static=no
12760  fi
12761fi
12762rm -fr conftest*
12763
12764
12765fi
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12767$as_echo "$lt_cv_dlopen_self_static" >&6; }
12768    fi
12769
12770    CPPFLAGS=$save_CPPFLAGS
12771    LDFLAGS=$save_LDFLAGS
12772    LIBS=$save_LIBS
12773    ;;
12774  esac
12775
12776  case $lt_cv_dlopen_self in
12777  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12778  *) enable_dlopen_self=unknown ;;
12779  esac
12780
12781  case $lt_cv_dlopen_self_static in
12782  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12783  *) enable_dlopen_self_static=unknown ;;
12784  esac
12785fi
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803striplib=
12804old_striplib=
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12806$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12807if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12808  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12809  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12811$as_echo "yes" >&6; }
12812else
12813# FIXME - insert some real tests, host_os isn't really good enough
12814  case $host_os in
12815  darwin*)
12816    if test -n "$STRIP"; then
12817      striplib="$STRIP -x"
12818      old_striplib="$STRIP -S"
12819      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12820$as_echo "yes" >&6; }
12821    else
12822      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823$as_echo "no" >&6; }
12824    fi
12825    ;;
12826  *)
12827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828$as_echo "no" >&6; }
12829    ;;
12830  esac
12831fi
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844  # Report what library types will actually be built
12845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12846$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12848$as_echo "$can_build_shared" >&6; }
12849
12850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12851$as_echo_n "checking whether to build shared libraries... " >&6; }
12852  test no = "$can_build_shared" && enable_shared=no
12853
12854  # On AIX, shared libraries and static libraries use the same namespace, and
12855  # are all built from PIC.
12856  case $host_os in
12857  aix3*)
12858    test yes = "$enable_shared" && enable_static=no
12859    if test -n "$RANLIB"; then
12860      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12861      postinstall_cmds='$RANLIB $lib'
12862    fi
12863    ;;
12864
12865  aix[4-9]*)
12866    if test ia64 != "$host_cpu"; then
12867      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12868      yes,aix,yes) ;;			# shared object as lib.so file only
12869      yes,svr4,*) ;;			# shared object as lib.so archive member only
12870      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12871      esac
12872    fi
12873    ;;
12874  esac
12875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12876$as_echo "$enable_shared" >&6; }
12877
12878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12879$as_echo_n "checking whether to build static libraries... " >&6; }
12880  # Make sure either enable_shared or enable_static is yes.
12881  test yes = "$enable_shared" || enable_static=yes
12882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12883$as_echo "$enable_static" >&6; }
12884
12885
12886
12887
12888fi
12889ac_ext=c
12890ac_cpp='$CPP $CPPFLAGS'
12891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12893ac_compiler_gnu=$ac_cv_c_compiler_gnu
12894
12895CC=$lt_save_CC
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911        ac_config_commands="$ac_config_commands libtool"
12912
12913
12914
12915
12916# Only expand once:
12917
12918
12919
12920# Require xorg-macros minimum of 1.18 - Initial version
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12933$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12934if ${ac_cv_prog_cc_c99+:} false; then :
12935  $as_echo_n "(cached) " >&6
12936else
12937  ac_cv_prog_cc_c99=no
12938ac_save_CC=$CC
12939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940/* end confdefs.h.  */
12941#include <stdarg.h>
12942#include <stdbool.h>
12943#include <stdlib.h>
12944#include <wchar.h>
12945#include <stdio.h>
12946
12947// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12948#define debug(...) fprintf (stderr, __VA_ARGS__)
12949#define showlist(...) puts (#__VA_ARGS__)
12950#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12951static void
12952test_varargs_macros (void)
12953{
12954  int x = 1234;
12955  int y = 5678;
12956  debug ("Flag");
12957  debug ("X = %d\n", x);
12958  showlist (The first, second, and third items.);
12959  report (x>y, "x is %d but y is %d", x, y);
12960}
12961
12962// Check long long types.
12963#define BIG64 18446744073709551615ull
12964#define BIG32 4294967295ul
12965#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12966#if !BIG_OK
12967  your preprocessor is broken;
12968#endif
12969#if BIG_OK
12970#else
12971  your preprocessor is broken;
12972#endif
12973static long long int bignum = -9223372036854775807LL;
12974static unsigned long long int ubignum = BIG64;
12975
12976struct incomplete_array
12977{
12978  int datasize;
12979  double data[];
12980};
12981
12982struct named_init {
12983  int number;
12984  const wchar_t *name;
12985  double average;
12986};
12987
12988typedef const char *ccp;
12989
12990static inline int
12991test_restrict (ccp restrict text)
12992{
12993  // See if C++-style comments work.
12994  // Iterate through items via the restricted pointer.
12995  // Also check for declarations in for loops.
12996  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12997    continue;
12998  return 0;
12999}
13000
13001// Check varargs and va_copy.
13002static void
13003test_varargs (const char *format, ...)
13004{
13005  va_list args;
13006  va_start (args, format);
13007  va_list args_copy;
13008  va_copy (args_copy, args);
13009
13010  const char *str;
13011  int number;
13012  float fnumber;
13013
13014  while (*format)
13015    {
13016      switch (*format++)
13017	{
13018	case 's': // string
13019	  str = va_arg (args_copy, const char *);
13020	  break;
13021	case 'd': // int
13022	  number = va_arg (args_copy, int);
13023	  break;
13024	case 'f': // float
13025	  fnumber = va_arg (args_copy, double);
13026	  break;
13027	default:
13028	  break;
13029	}
13030    }
13031  va_end (args_copy);
13032  va_end (args);
13033}
13034
13035int
13036main ()
13037{
13038
13039  // Check bool.
13040  _Bool success = false;
13041
13042  // Check restrict.
13043  if (test_restrict ("String literal") == 0)
13044    success = true;
13045  char *restrict newvar = "Another string";
13046
13047  // Check varargs.
13048  test_varargs ("s, d' f .", "string", 65, 34.234);
13049  test_varargs_macros ();
13050
13051  // Check flexible array members.
13052  struct incomplete_array *ia =
13053    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13054  ia->datasize = 10;
13055  for (int i = 0; i < ia->datasize; ++i)
13056    ia->data[i] = i * 1.234;
13057
13058  // Check named initializers.
13059  struct named_init ni = {
13060    .number = 34,
13061    .name = L"Test wide string",
13062    .average = 543.34343,
13063  };
13064
13065  ni.number = 58;
13066
13067  int dynamic_array[ni.number];
13068  dynamic_array[ni.number - 1] = 543;
13069
13070  // work around unused variable warnings
13071  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13072	  || dynamic_array[ni.number - 1] != 543);
13073
13074  ;
13075  return 0;
13076}
13077_ACEOF
13078for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13079do
13080  CC="$ac_save_CC $ac_arg"
13081  if ac_fn_c_try_compile "$LINENO"; then :
13082  ac_cv_prog_cc_c99=$ac_arg
13083fi
13084rm -f core conftest.err conftest.$ac_objext
13085  test "x$ac_cv_prog_cc_c99" != "xno" && break
13086done
13087rm -f conftest.$ac_ext
13088CC=$ac_save_CC
13089
13090fi
13091# AC_CACHE_VAL
13092case "x$ac_cv_prog_cc_c99" in
13093  x)
13094    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13095$as_echo "none needed" >&6; } ;;
13096  xno)
13097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13098$as_echo "unsupported" >&6; } ;;
13099  *)
13100    CC="$CC $ac_cv_prog_cc_c99"
13101    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13102$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13103esac
13104if test "x$ac_cv_prog_cc_c99" != xno; then :
13105
13106fi
13107
13108
13109
13110
13111
13112
13113ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
13114if test "x$ac_cv_have_decl___clang__" = xyes; then :
13115  CLANGCC="yes"
13116else
13117  CLANGCC="no"
13118fi
13119
13120ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
13121if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
13122  INTELCC="yes"
13123else
13124  INTELCC="no"
13125fi
13126
13127ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13128if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13129  SUNCC="yes"
13130else
13131  SUNCC="no"
13132fi
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13143	if test -n "$ac_tool_prefix"; then
13144  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13145set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147$as_echo_n "checking for $ac_word... " >&6; }
13148if ${ac_cv_path_PKG_CONFIG+:} false; then :
13149  $as_echo_n "(cached) " >&6
13150else
13151  case $PKG_CONFIG in
13152  [\\/]* | ?:[\\/]*)
13153  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13154  ;;
13155  *)
13156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157for as_dir in $PATH
13158do
13159  IFS=$as_save_IFS
13160  test -z "$as_dir" && as_dir=.
13161    for ac_exec_ext in '' $ac_executable_extensions; do
13162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165    break 2
13166  fi
13167done
13168  done
13169IFS=$as_save_IFS
13170
13171  ;;
13172esac
13173fi
13174PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13175if test -n "$PKG_CONFIG"; then
13176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13177$as_echo "$PKG_CONFIG" >&6; }
13178else
13179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180$as_echo "no" >&6; }
13181fi
13182
13183
13184fi
13185if test -z "$ac_cv_path_PKG_CONFIG"; then
13186  ac_pt_PKG_CONFIG=$PKG_CONFIG
13187  # Extract the first word of "pkg-config", so it can be a program name with args.
13188set dummy pkg-config; ac_word=$2
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190$as_echo_n "checking for $ac_word... " >&6; }
13191if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13192  $as_echo_n "(cached) " >&6
13193else
13194  case $ac_pt_PKG_CONFIG in
13195  [\\/]* | ?:[\\/]*)
13196  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13197  ;;
13198  *)
13199  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200for as_dir in $PATH
13201do
13202  IFS=$as_save_IFS
13203  test -z "$as_dir" && as_dir=.
13204    for ac_exec_ext in '' $ac_executable_extensions; do
13205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13206    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208    break 2
13209  fi
13210done
13211  done
13212IFS=$as_save_IFS
13213
13214  ;;
13215esac
13216fi
13217ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13218if test -n "$ac_pt_PKG_CONFIG"; then
13219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13220$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13221else
13222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223$as_echo "no" >&6; }
13224fi
13225
13226  if test "x$ac_pt_PKG_CONFIG" = x; then
13227    PKG_CONFIG=""
13228  else
13229    case $cross_compiling:$ac_tool_warned in
13230yes:)
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13233ac_tool_warned=yes ;;
13234esac
13235    PKG_CONFIG=$ac_pt_PKG_CONFIG
13236  fi
13237else
13238  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13239fi
13240
13241fi
13242if test -n "$PKG_CONFIG"; then
13243	_pkg_min_version=0.9.0
13244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13245$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13246	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13247		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13248$as_echo "yes" >&6; }
13249	else
13250		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251$as_echo "no" >&6; }
13252		PKG_CONFIG=""
13253	fi
13254fi
13255
13256
13257
13258
13259
13260# Check whether --enable-selective-werror was given.
13261if test "${enable_selective_werror+set}" = set; then :
13262  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13263else
13264  SELECTIVE_WERROR=yes
13265fi
13266
13267
13268
13269
13270
13271# -v is too short to test reliably with XORG_TESTSET_CFLAG
13272if test "x$SUNCC" = "xyes"; then
13273    BASE_CFLAGS="-v"
13274else
13275    BASE_CFLAGS=""
13276fi
13277
13278# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292xorg_testset_save_CFLAGS="$CFLAGS"
13293
13294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13299  $as_echo_n "(cached) " >&6
13300else
13301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302/* end confdefs.h.  */
13303int i;
13304_ACEOF
13305if ac_fn_c_try_compile "$LINENO"; then :
13306  xorg_cv_cc_flag_unknown_warning_option=yes
13307else
13308  xorg_cv_cc_flag_unknown_warning_option=no
13309fi
13310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311fi
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13315	CFLAGS="$xorg_testset_save_CFLAGS"
13316fi
13317
13318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13321	fi
13322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13326  $as_echo_n "(cached) " >&6
13327else
13328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329/* end confdefs.h.  */
13330int i;
13331_ACEOF
13332if ac_fn_c_try_compile "$LINENO"; then :
13333  xorg_cv_cc_flag_unused_command_line_argument=yes
13334else
13335  xorg_cv_cc_flag_unused_command_line_argument=no
13336fi
13337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338fi
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13342	CFLAGS="$xorg_testset_save_CFLAGS"
13343fi
13344
13345found="no"
13346
13347	if test $found = "no" ; then
13348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13350		fi
13351
13352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13354		fi
13355
13356		CFLAGS="$CFLAGS -Wall"
13357
13358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13359$as_echo_n "checking if $CC supports -Wall... " >&6; }
13360		cacheid=xorg_cv_cc_flag__Wall
13361		if eval \${$cacheid+:} false; then :
13362  $as_echo_n "(cached) " >&6
13363else
13364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365/* end confdefs.h.  */
13366int i;
13367int
13368main ()
13369{
13370
13371  ;
13372  return 0;
13373}
13374_ACEOF
13375if ac_fn_c_try_link "$LINENO"; then :
13376  eval $cacheid=yes
13377else
13378  eval $cacheid=no
13379fi
13380rm -f core conftest.err conftest.$ac_objext \
13381    conftest$ac_exeext conftest.$ac_ext
13382fi
13383
13384
13385		CFLAGS="$xorg_testset_save_CFLAGS"
13386
13387		eval supported=\$$cacheid
13388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13389$as_echo "$supported" >&6; }
13390		if test "$supported" = "yes" ; then
13391			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13392			found="yes"
13393		fi
13394	fi
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410xorg_testset_save_CFLAGS="$CFLAGS"
13411
13412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13417  $as_echo_n "(cached) " >&6
13418else
13419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420/* end confdefs.h.  */
13421int i;
13422_ACEOF
13423if ac_fn_c_try_compile "$LINENO"; then :
13424  xorg_cv_cc_flag_unknown_warning_option=yes
13425else
13426  xorg_cv_cc_flag_unknown_warning_option=no
13427fi
13428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429fi
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13433	CFLAGS="$xorg_testset_save_CFLAGS"
13434fi
13435
13436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13439	fi
13440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13444  $as_echo_n "(cached) " >&6
13445else
13446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448int i;
13449_ACEOF
13450if ac_fn_c_try_compile "$LINENO"; then :
13451  xorg_cv_cc_flag_unused_command_line_argument=yes
13452else
13453  xorg_cv_cc_flag_unused_command_line_argument=no
13454fi
13455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456fi
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13460	CFLAGS="$xorg_testset_save_CFLAGS"
13461fi
13462
13463found="no"
13464
13465	if test $found = "no" ; then
13466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13468		fi
13469
13470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13472		fi
13473
13474		CFLAGS="$CFLAGS -Wpointer-arith"
13475
13476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13477$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
13478		cacheid=xorg_cv_cc_flag__Wpointer_arith
13479		if eval \${$cacheid+:} false; then :
13480  $as_echo_n "(cached) " >&6
13481else
13482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483/* end confdefs.h.  */
13484int i;
13485int
13486main ()
13487{
13488
13489  ;
13490  return 0;
13491}
13492_ACEOF
13493if ac_fn_c_try_link "$LINENO"; then :
13494  eval $cacheid=yes
13495else
13496  eval $cacheid=no
13497fi
13498rm -f core conftest.err conftest.$ac_objext \
13499    conftest$ac_exeext conftest.$ac_ext
13500fi
13501
13502
13503		CFLAGS="$xorg_testset_save_CFLAGS"
13504
13505		eval supported=\$$cacheid
13506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13507$as_echo "$supported" >&6; }
13508		if test "$supported" = "yes" ; then
13509			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13510			found="yes"
13511		fi
13512	fi
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528xorg_testset_save_CFLAGS="$CFLAGS"
13529
13530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13535  $as_echo_n "(cached) " >&6
13536else
13537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538/* end confdefs.h.  */
13539int i;
13540_ACEOF
13541if ac_fn_c_try_compile "$LINENO"; then :
13542  xorg_cv_cc_flag_unknown_warning_option=yes
13543else
13544  xorg_cv_cc_flag_unknown_warning_option=no
13545fi
13546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547fi
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13551	CFLAGS="$xorg_testset_save_CFLAGS"
13552fi
13553
13554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13557	fi
13558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13562  $as_echo_n "(cached) " >&6
13563else
13564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565/* end confdefs.h.  */
13566int i;
13567_ACEOF
13568if ac_fn_c_try_compile "$LINENO"; then :
13569  xorg_cv_cc_flag_unused_command_line_argument=yes
13570else
13571  xorg_cv_cc_flag_unused_command_line_argument=no
13572fi
13573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13574fi
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13578	CFLAGS="$xorg_testset_save_CFLAGS"
13579fi
13580
13581found="no"
13582
13583	if test $found = "no" ; then
13584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13586		fi
13587
13588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13590		fi
13591
13592		CFLAGS="$CFLAGS -Wmissing-declarations"
13593
13594		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13595$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13596		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13597		if eval \${$cacheid+:} false; then :
13598  $as_echo_n "(cached) " >&6
13599else
13600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601/* end confdefs.h.  */
13602int i;
13603int
13604main ()
13605{
13606
13607  ;
13608  return 0;
13609}
13610_ACEOF
13611if ac_fn_c_try_link "$LINENO"; then :
13612  eval $cacheid=yes
13613else
13614  eval $cacheid=no
13615fi
13616rm -f core conftest.err conftest.$ac_objext \
13617    conftest$ac_exeext conftest.$ac_ext
13618fi
13619
13620
13621		CFLAGS="$xorg_testset_save_CFLAGS"
13622
13623		eval supported=\$$cacheid
13624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13625$as_echo "$supported" >&6; }
13626		if test "$supported" = "yes" ; then
13627			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13628			found="yes"
13629		fi
13630	fi
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646xorg_testset_save_CFLAGS="$CFLAGS"
13647
13648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13653  $as_echo_n "(cached) " >&6
13654else
13655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656/* end confdefs.h.  */
13657int i;
13658_ACEOF
13659if ac_fn_c_try_compile "$LINENO"; then :
13660  xorg_cv_cc_flag_unknown_warning_option=yes
13661else
13662  xorg_cv_cc_flag_unknown_warning_option=no
13663fi
13664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665fi
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13669	CFLAGS="$xorg_testset_save_CFLAGS"
13670fi
13671
13672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13675	fi
13676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13680  $as_echo_n "(cached) " >&6
13681else
13682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683/* end confdefs.h.  */
13684int i;
13685_ACEOF
13686if ac_fn_c_try_compile "$LINENO"; then :
13687  xorg_cv_cc_flag_unused_command_line_argument=yes
13688else
13689  xorg_cv_cc_flag_unused_command_line_argument=no
13690fi
13691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692fi
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13696	CFLAGS="$xorg_testset_save_CFLAGS"
13697fi
13698
13699found="no"
13700
13701	if test $found = "no" ; then
13702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704		fi
13705
13706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13708		fi
13709
13710		CFLAGS="$CFLAGS -Wformat=2"
13711
13712		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13713$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13714		cacheid=xorg_cv_cc_flag__Wformat_2
13715		if eval \${$cacheid+:} false; then :
13716  $as_echo_n "(cached) " >&6
13717else
13718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719/* end confdefs.h.  */
13720int i;
13721int
13722main ()
13723{
13724
13725  ;
13726  return 0;
13727}
13728_ACEOF
13729if ac_fn_c_try_link "$LINENO"; then :
13730  eval $cacheid=yes
13731else
13732  eval $cacheid=no
13733fi
13734rm -f core conftest.err conftest.$ac_objext \
13735    conftest$ac_exeext conftest.$ac_ext
13736fi
13737
13738
13739		CFLAGS="$xorg_testset_save_CFLAGS"
13740
13741		eval supported=\$$cacheid
13742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13743$as_echo "$supported" >&6; }
13744		if test "$supported" = "yes" ; then
13745			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13746			found="yes"
13747		fi
13748	fi
13749
13750	if test $found = "no" ; then
13751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13753		fi
13754
13755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13757		fi
13758
13759		CFLAGS="$CFLAGS -Wformat"
13760
13761		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13762$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13763		cacheid=xorg_cv_cc_flag__Wformat
13764		if eval \${$cacheid+:} false; then :
13765  $as_echo_n "(cached) " >&6
13766else
13767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768/* end confdefs.h.  */
13769int i;
13770int
13771main ()
13772{
13773
13774  ;
13775  return 0;
13776}
13777_ACEOF
13778if ac_fn_c_try_link "$LINENO"; then :
13779  eval $cacheid=yes
13780else
13781  eval $cacheid=no
13782fi
13783rm -f core conftest.err conftest.$ac_objext \
13784    conftest$ac_exeext conftest.$ac_ext
13785fi
13786
13787
13788		CFLAGS="$xorg_testset_save_CFLAGS"
13789
13790		eval supported=\$$cacheid
13791		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13792$as_echo "$supported" >&6; }
13793		if test "$supported" = "yes" ; then
13794			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13795			found="yes"
13796		fi
13797	fi
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815xorg_testset_save_CFLAGS="$CFLAGS"
13816
13817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13822  $as_echo_n "(cached) " >&6
13823else
13824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825/* end confdefs.h.  */
13826int i;
13827_ACEOF
13828if ac_fn_c_try_compile "$LINENO"; then :
13829  xorg_cv_cc_flag_unknown_warning_option=yes
13830else
13831  xorg_cv_cc_flag_unknown_warning_option=no
13832fi
13833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834fi
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13838	CFLAGS="$xorg_testset_save_CFLAGS"
13839fi
13840
13841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13844	fi
13845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13849  $as_echo_n "(cached) " >&6
13850else
13851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852/* end confdefs.h.  */
13853int i;
13854_ACEOF
13855if ac_fn_c_try_compile "$LINENO"; then :
13856  xorg_cv_cc_flag_unused_command_line_argument=yes
13857else
13858  xorg_cv_cc_flag_unused_command_line_argument=no
13859fi
13860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861fi
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13865	CFLAGS="$xorg_testset_save_CFLAGS"
13866fi
13867
13868found="no"
13869
13870	if test $found = "no" ; then
13871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13873		fi
13874
13875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13877		fi
13878
13879		CFLAGS="$CFLAGS -Wstrict-prototypes"
13880
13881		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13882$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13883		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13884		if eval \${$cacheid+:} false; then :
13885  $as_echo_n "(cached) " >&6
13886else
13887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888/* end confdefs.h.  */
13889int i;
13890int
13891main ()
13892{
13893
13894  ;
13895  return 0;
13896}
13897_ACEOF
13898if ac_fn_c_try_link "$LINENO"; then :
13899  eval $cacheid=yes
13900else
13901  eval $cacheid=no
13902fi
13903rm -f core conftest.err conftest.$ac_objext \
13904    conftest$ac_exeext conftest.$ac_ext
13905fi
13906
13907
13908		CFLAGS="$xorg_testset_save_CFLAGS"
13909
13910		eval supported=\$$cacheid
13911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13912$as_echo "$supported" >&6; }
13913		if test "$supported" = "yes" ; then
13914			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13915			found="yes"
13916		fi
13917	fi
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933xorg_testset_save_CFLAGS="$CFLAGS"
13934
13935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13940  $as_echo_n "(cached) " >&6
13941else
13942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943/* end confdefs.h.  */
13944int i;
13945_ACEOF
13946if ac_fn_c_try_compile "$LINENO"; then :
13947  xorg_cv_cc_flag_unknown_warning_option=yes
13948else
13949  xorg_cv_cc_flag_unknown_warning_option=no
13950fi
13951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952fi
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13956	CFLAGS="$xorg_testset_save_CFLAGS"
13957fi
13958
13959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13962	fi
13963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13967  $as_echo_n "(cached) " >&6
13968else
13969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970/* end confdefs.h.  */
13971int i;
13972_ACEOF
13973if ac_fn_c_try_compile "$LINENO"; then :
13974  xorg_cv_cc_flag_unused_command_line_argument=yes
13975else
13976  xorg_cv_cc_flag_unused_command_line_argument=no
13977fi
13978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979fi
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13982	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13983	CFLAGS="$xorg_testset_save_CFLAGS"
13984fi
13985
13986found="no"
13987
13988	if test $found = "no" ; then
13989		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13990			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13991		fi
13992
13993		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13994			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13995		fi
13996
13997		CFLAGS="$CFLAGS -Wmissing-prototypes"
13998
13999		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14000$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
14001		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14002		if eval \${$cacheid+:} false; then :
14003  $as_echo_n "(cached) " >&6
14004else
14005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14006/* end confdefs.h.  */
14007int i;
14008int
14009main ()
14010{
14011
14012  ;
14013  return 0;
14014}
14015_ACEOF
14016if ac_fn_c_try_link "$LINENO"; then :
14017  eval $cacheid=yes
14018else
14019  eval $cacheid=no
14020fi
14021rm -f core conftest.err conftest.$ac_objext \
14022    conftest$ac_exeext conftest.$ac_ext
14023fi
14024
14025
14026		CFLAGS="$xorg_testset_save_CFLAGS"
14027
14028		eval supported=\$$cacheid
14029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14030$as_echo "$supported" >&6; }
14031		if test "$supported" = "yes" ; then
14032			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14033			found="yes"
14034		fi
14035	fi
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051xorg_testset_save_CFLAGS="$CFLAGS"
14052
14053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14058  $as_echo_n "(cached) " >&6
14059else
14060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061/* end confdefs.h.  */
14062int i;
14063_ACEOF
14064if ac_fn_c_try_compile "$LINENO"; then :
14065  xorg_cv_cc_flag_unknown_warning_option=yes
14066else
14067  xorg_cv_cc_flag_unknown_warning_option=no
14068fi
14069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070fi
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14074	CFLAGS="$xorg_testset_save_CFLAGS"
14075fi
14076
14077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14080	fi
14081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14085  $as_echo_n "(cached) " >&6
14086else
14087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088/* end confdefs.h.  */
14089int i;
14090_ACEOF
14091if ac_fn_c_try_compile "$LINENO"; then :
14092  xorg_cv_cc_flag_unused_command_line_argument=yes
14093else
14094  xorg_cv_cc_flag_unused_command_line_argument=no
14095fi
14096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14097fi
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14101	CFLAGS="$xorg_testset_save_CFLAGS"
14102fi
14103
14104found="no"
14105
14106	if test $found = "no" ; then
14107		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14109		fi
14110
14111		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14113		fi
14114
14115		CFLAGS="$CFLAGS -Wnested-externs"
14116
14117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14118$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
14119		cacheid=xorg_cv_cc_flag__Wnested_externs
14120		if eval \${$cacheid+:} false; then :
14121  $as_echo_n "(cached) " >&6
14122else
14123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124/* end confdefs.h.  */
14125int i;
14126int
14127main ()
14128{
14129
14130  ;
14131  return 0;
14132}
14133_ACEOF
14134if ac_fn_c_try_link "$LINENO"; then :
14135  eval $cacheid=yes
14136else
14137  eval $cacheid=no
14138fi
14139rm -f core conftest.err conftest.$ac_objext \
14140    conftest$ac_exeext conftest.$ac_ext
14141fi
14142
14143
14144		CFLAGS="$xorg_testset_save_CFLAGS"
14145
14146		eval supported=\$$cacheid
14147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14148$as_echo "$supported" >&6; }
14149		if test "$supported" = "yes" ; then
14150			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14151			found="yes"
14152		fi
14153	fi
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169xorg_testset_save_CFLAGS="$CFLAGS"
14170
14171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14176  $as_echo_n "(cached) " >&6
14177else
14178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179/* end confdefs.h.  */
14180int i;
14181_ACEOF
14182if ac_fn_c_try_compile "$LINENO"; then :
14183  xorg_cv_cc_flag_unknown_warning_option=yes
14184else
14185  xorg_cv_cc_flag_unknown_warning_option=no
14186fi
14187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14188fi
14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14192	CFLAGS="$xorg_testset_save_CFLAGS"
14193fi
14194
14195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14198	fi
14199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14203  $as_echo_n "(cached) " >&6
14204else
14205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206/* end confdefs.h.  */
14207int i;
14208_ACEOF
14209if ac_fn_c_try_compile "$LINENO"; then :
14210  xorg_cv_cc_flag_unused_command_line_argument=yes
14211else
14212  xorg_cv_cc_flag_unused_command_line_argument=no
14213fi
14214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215fi
14216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14219	CFLAGS="$xorg_testset_save_CFLAGS"
14220fi
14221
14222found="no"
14223
14224	if test $found = "no" ; then
14225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14227		fi
14228
14229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14231		fi
14232
14233		CFLAGS="$CFLAGS -Wbad-function-cast"
14234
14235		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14236$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
14237		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14238		if eval \${$cacheid+:} false; then :
14239  $as_echo_n "(cached) " >&6
14240else
14241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242/* end confdefs.h.  */
14243int i;
14244int
14245main ()
14246{
14247
14248  ;
14249  return 0;
14250}
14251_ACEOF
14252if ac_fn_c_try_link "$LINENO"; then :
14253  eval $cacheid=yes
14254else
14255  eval $cacheid=no
14256fi
14257rm -f core conftest.err conftest.$ac_objext \
14258    conftest$ac_exeext conftest.$ac_ext
14259fi
14260
14261
14262		CFLAGS="$xorg_testset_save_CFLAGS"
14263
14264		eval supported=\$$cacheid
14265		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14266$as_echo "$supported" >&6; }
14267		if test "$supported" = "yes" ; then
14268			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14269			found="yes"
14270		fi
14271	fi
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287xorg_testset_save_CFLAGS="$CFLAGS"
14288
14289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14294  $as_echo_n "(cached) " >&6
14295else
14296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297/* end confdefs.h.  */
14298int i;
14299_ACEOF
14300if ac_fn_c_try_compile "$LINENO"; then :
14301  xorg_cv_cc_flag_unknown_warning_option=yes
14302else
14303  xorg_cv_cc_flag_unknown_warning_option=no
14304fi
14305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306fi
14307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14309	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14310	CFLAGS="$xorg_testset_save_CFLAGS"
14311fi
14312
14313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14314	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14315		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14316	fi
14317	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14321  $as_echo_n "(cached) " >&6
14322else
14323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324/* end confdefs.h.  */
14325int i;
14326_ACEOF
14327if ac_fn_c_try_compile "$LINENO"; then :
14328  xorg_cv_cc_flag_unused_command_line_argument=yes
14329else
14330  xorg_cv_cc_flag_unused_command_line_argument=no
14331fi
14332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333fi
14334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14336	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14337	CFLAGS="$xorg_testset_save_CFLAGS"
14338fi
14339
14340found="no"
14341
14342	if test $found = "no" ; then
14343		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14344			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14345		fi
14346
14347		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14348			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14349		fi
14350
14351		CFLAGS="$CFLAGS -Wold-style-definition"
14352
14353		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14354$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
14355		cacheid=xorg_cv_cc_flag__Wold_style_definition
14356		if eval \${$cacheid+:} false; then :
14357  $as_echo_n "(cached) " >&6
14358else
14359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360/* end confdefs.h.  */
14361int i;
14362int
14363main ()
14364{
14365
14366  ;
14367  return 0;
14368}
14369_ACEOF
14370if ac_fn_c_try_link "$LINENO"; then :
14371  eval $cacheid=yes
14372else
14373  eval $cacheid=no
14374fi
14375rm -f core conftest.err conftest.$ac_objext \
14376    conftest$ac_exeext conftest.$ac_ext
14377fi
14378
14379
14380		CFLAGS="$xorg_testset_save_CFLAGS"
14381
14382		eval supported=\$$cacheid
14383		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14384$as_echo "$supported" >&6; }
14385		if test "$supported" = "yes" ; then
14386			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14387			found="yes"
14388		fi
14389	fi
14390
14391	if test $found = "no" ; then
14392		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14394		fi
14395
14396		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14398		fi
14399
14400		CFLAGS="$CFLAGS -fd"
14401
14402		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14403$as_echo_n "checking if $CC supports -fd... " >&6; }
14404		cacheid=xorg_cv_cc_flag__fd
14405		if eval \${$cacheid+:} false; then :
14406  $as_echo_n "(cached) " >&6
14407else
14408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409/* end confdefs.h.  */
14410int i;
14411int
14412main ()
14413{
14414
14415  ;
14416  return 0;
14417}
14418_ACEOF
14419if ac_fn_c_try_link "$LINENO"; then :
14420  eval $cacheid=yes
14421else
14422  eval $cacheid=no
14423fi
14424rm -f core conftest.err conftest.$ac_objext \
14425    conftest$ac_exeext conftest.$ac_ext
14426fi
14427
14428
14429		CFLAGS="$xorg_testset_save_CFLAGS"
14430
14431		eval supported=\$$cacheid
14432		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14433$as_echo "$supported" >&6; }
14434		if test "$supported" = "yes" ; then
14435			BASE_CFLAGS="$BASE_CFLAGS -fd"
14436			found="yes"
14437		fi
14438	fi
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454xorg_testset_save_CFLAGS="$CFLAGS"
14455
14456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14457	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14461  $as_echo_n "(cached) " >&6
14462else
14463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464/* end confdefs.h.  */
14465int i;
14466_ACEOF
14467if ac_fn_c_try_compile "$LINENO"; then :
14468  xorg_cv_cc_flag_unknown_warning_option=yes
14469else
14470  xorg_cv_cc_flag_unknown_warning_option=no
14471fi
14472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473fi
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14477	CFLAGS="$xorg_testset_save_CFLAGS"
14478fi
14479
14480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14483	fi
14484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14488  $as_echo_n "(cached) " >&6
14489else
14490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491/* end confdefs.h.  */
14492int i;
14493_ACEOF
14494if ac_fn_c_try_compile "$LINENO"; then :
14495  xorg_cv_cc_flag_unused_command_line_argument=yes
14496else
14497  xorg_cv_cc_flag_unused_command_line_argument=no
14498fi
14499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500fi
14501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14503	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14504	CFLAGS="$xorg_testset_save_CFLAGS"
14505fi
14506
14507found="no"
14508
14509	if test $found = "no" ; then
14510		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14511			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14512		fi
14513
14514		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14515			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14516		fi
14517
14518		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14519
14520		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14521$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14522		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14523		if eval \${$cacheid+:} false; then :
14524  $as_echo_n "(cached) " >&6
14525else
14526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527/* end confdefs.h.  */
14528int i;
14529int
14530main ()
14531{
14532
14533  ;
14534  return 0;
14535}
14536_ACEOF
14537if ac_fn_c_try_link "$LINENO"; then :
14538  eval $cacheid=yes
14539else
14540  eval $cacheid=no
14541fi
14542rm -f core conftest.err conftest.$ac_objext \
14543    conftest$ac_exeext conftest.$ac_ext
14544fi
14545
14546
14547		CFLAGS="$xorg_testset_save_CFLAGS"
14548
14549		eval supported=\$$cacheid
14550		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14551$as_echo "$supported" >&6; }
14552		if test "$supported" = "yes" ; then
14553			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14554			found="yes"
14555		fi
14556	fi
14557
14558
14559
14560
14561
14562# This chunk adds additional warnings that could catch undesired effects.
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576xorg_testset_save_CFLAGS="$CFLAGS"
14577
14578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14579	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14583  $as_echo_n "(cached) " >&6
14584else
14585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586/* end confdefs.h.  */
14587int i;
14588_ACEOF
14589if ac_fn_c_try_compile "$LINENO"; then :
14590  xorg_cv_cc_flag_unknown_warning_option=yes
14591else
14592  xorg_cv_cc_flag_unknown_warning_option=no
14593fi
14594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595fi
14596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14598	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14599	CFLAGS="$xorg_testset_save_CFLAGS"
14600fi
14601
14602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14603	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14605	fi
14606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14610  $as_echo_n "(cached) " >&6
14611else
14612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613/* end confdefs.h.  */
14614int i;
14615_ACEOF
14616if ac_fn_c_try_compile "$LINENO"; then :
14617  xorg_cv_cc_flag_unused_command_line_argument=yes
14618else
14619  xorg_cv_cc_flag_unused_command_line_argument=no
14620fi
14621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622fi
14623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14625	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14626	CFLAGS="$xorg_testset_save_CFLAGS"
14627fi
14628
14629found="no"
14630
14631	if test $found = "no" ; then
14632		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14634		fi
14635
14636		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14638		fi
14639
14640		CFLAGS="$CFLAGS -Wunused"
14641
14642		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14643$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14644		cacheid=xorg_cv_cc_flag__Wunused
14645		if eval \${$cacheid+:} false; then :
14646  $as_echo_n "(cached) " >&6
14647else
14648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649/* end confdefs.h.  */
14650int i;
14651int
14652main ()
14653{
14654
14655  ;
14656  return 0;
14657}
14658_ACEOF
14659if ac_fn_c_try_link "$LINENO"; then :
14660  eval $cacheid=yes
14661else
14662  eval $cacheid=no
14663fi
14664rm -f core conftest.err conftest.$ac_objext \
14665    conftest$ac_exeext conftest.$ac_ext
14666fi
14667
14668
14669		CFLAGS="$xorg_testset_save_CFLAGS"
14670
14671		eval supported=\$$cacheid
14672		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14673$as_echo "$supported" >&6; }
14674		if test "$supported" = "yes" ; then
14675			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14676			found="yes"
14677		fi
14678	fi
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694xorg_testset_save_CFLAGS="$CFLAGS"
14695
14696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14697	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14699$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14700if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14701  $as_echo_n "(cached) " >&6
14702else
14703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704/* end confdefs.h.  */
14705int i;
14706_ACEOF
14707if ac_fn_c_try_compile "$LINENO"; then :
14708  xorg_cv_cc_flag_unknown_warning_option=yes
14709else
14710  xorg_cv_cc_flag_unknown_warning_option=no
14711fi
14712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713fi
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14715$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14716	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14717	CFLAGS="$xorg_testset_save_CFLAGS"
14718fi
14719
14720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14721	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14722		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14723	fi
14724	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14726$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14727if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14728  $as_echo_n "(cached) " >&6
14729else
14730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731/* end confdefs.h.  */
14732int i;
14733_ACEOF
14734if ac_fn_c_try_compile "$LINENO"; then :
14735  xorg_cv_cc_flag_unused_command_line_argument=yes
14736else
14737  xorg_cv_cc_flag_unused_command_line_argument=no
14738fi
14739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740fi
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14742$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14743	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14744	CFLAGS="$xorg_testset_save_CFLAGS"
14745fi
14746
14747found="no"
14748
14749	if test $found = "no" ; then
14750		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14751			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14752		fi
14753
14754		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14755			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14756		fi
14757
14758		CFLAGS="$CFLAGS -Wuninitialized"
14759
14760		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14761$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14762		cacheid=xorg_cv_cc_flag__Wuninitialized
14763		if eval \${$cacheid+:} false; then :
14764  $as_echo_n "(cached) " >&6
14765else
14766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767/* end confdefs.h.  */
14768int i;
14769int
14770main ()
14771{
14772
14773  ;
14774  return 0;
14775}
14776_ACEOF
14777if ac_fn_c_try_link "$LINENO"; then :
14778  eval $cacheid=yes
14779else
14780  eval $cacheid=no
14781fi
14782rm -f core conftest.err conftest.$ac_objext \
14783    conftest$ac_exeext conftest.$ac_ext
14784fi
14785
14786
14787		CFLAGS="$xorg_testset_save_CFLAGS"
14788
14789		eval supported=\$$cacheid
14790		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14791$as_echo "$supported" >&6; }
14792		if test "$supported" = "yes" ; then
14793			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14794			found="yes"
14795		fi
14796	fi
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812xorg_testset_save_CFLAGS="$CFLAGS"
14813
14814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14819  $as_echo_n "(cached) " >&6
14820else
14821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822/* end confdefs.h.  */
14823int i;
14824_ACEOF
14825if ac_fn_c_try_compile "$LINENO"; then :
14826  xorg_cv_cc_flag_unknown_warning_option=yes
14827else
14828  xorg_cv_cc_flag_unknown_warning_option=no
14829fi
14830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831fi
14832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14834	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14835	CFLAGS="$xorg_testset_save_CFLAGS"
14836fi
14837
14838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14839	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14840		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14841	fi
14842	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14843	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14846  $as_echo_n "(cached) " >&6
14847else
14848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849/* end confdefs.h.  */
14850int i;
14851_ACEOF
14852if ac_fn_c_try_compile "$LINENO"; then :
14853  xorg_cv_cc_flag_unused_command_line_argument=yes
14854else
14855  xorg_cv_cc_flag_unused_command_line_argument=no
14856fi
14857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858fi
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14861	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14862	CFLAGS="$xorg_testset_save_CFLAGS"
14863fi
14864
14865found="no"
14866
14867	if test $found = "no" ; then
14868		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14869			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14870		fi
14871
14872		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14873			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14874		fi
14875
14876		CFLAGS="$CFLAGS -Wshadow"
14877
14878		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14879$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14880		cacheid=xorg_cv_cc_flag__Wshadow
14881		if eval \${$cacheid+:} false; then :
14882  $as_echo_n "(cached) " >&6
14883else
14884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885/* end confdefs.h.  */
14886int i;
14887int
14888main ()
14889{
14890
14891  ;
14892  return 0;
14893}
14894_ACEOF
14895if ac_fn_c_try_link "$LINENO"; then :
14896  eval $cacheid=yes
14897else
14898  eval $cacheid=no
14899fi
14900rm -f core conftest.err conftest.$ac_objext \
14901    conftest$ac_exeext conftest.$ac_ext
14902fi
14903
14904
14905		CFLAGS="$xorg_testset_save_CFLAGS"
14906
14907		eval supported=\$$cacheid
14908		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14909$as_echo "$supported" >&6; }
14910		if test "$supported" = "yes" ; then
14911			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14912			found="yes"
14913		fi
14914	fi
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930xorg_testset_save_CFLAGS="$CFLAGS"
14931
14932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14934	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14935$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14936if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14937  $as_echo_n "(cached) " >&6
14938else
14939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940/* end confdefs.h.  */
14941int i;
14942_ACEOF
14943if ac_fn_c_try_compile "$LINENO"; then :
14944  xorg_cv_cc_flag_unknown_warning_option=yes
14945else
14946  xorg_cv_cc_flag_unknown_warning_option=no
14947fi
14948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949fi
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14951$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14952	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14953	CFLAGS="$xorg_testset_save_CFLAGS"
14954fi
14955
14956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14957	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14958		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14959	fi
14960	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14961	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14962$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14963if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14964  $as_echo_n "(cached) " >&6
14965else
14966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967/* end confdefs.h.  */
14968int i;
14969_ACEOF
14970if ac_fn_c_try_compile "$LINENO"; then :
14971  xorg_cv_cc_flag_unused_command_line_argument=yes
14972else
14973  xorg_cv_cc_flag_unused_command_line_argument=no
14974fi
14975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976fi
14977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14978$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14979	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14980	CFLAGS="$xorg_testset_save_CFLAGS"
14981fi
14982
14983found="no"
14984
14985	if test $found = "no" ; then
14986		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14987			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14988		fi
14989
14990		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14991			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14992		fi
14993
14994		CFLAGS="$CFLAGS -Wmissing-noreturn"
14995
14996		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14997$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14998		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14999		if eval \${$cacheid+:} false; then :
15000  $as_echo_n "(cached) " >&6
15001else
15002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003/* end confdefs.h.  */
15004int i;
15005int
15006main ()
15007{
15008
15009  ;
15010  return 0;
15011}
15012_ACEOF
15013if ac_fn_c_try_link "$LINENO"; then :
15014  eval $cacheid=yes
15015else
15016  eval $cacheid=no
15017fi
15018rm -f core conftest.err conftest.$ac_objext \
15019    conftest$ac_exeext conftest.$ac_ext
15020fi
15021
15022
15023		CFLAGS="$xorg_testset_save_CFLAGS"
15024
15025		eval supported=\$$cacheid
15026		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15027$as_echo "$supported" >&6; }
15028		if test "$supported" = "yes" ; then
15029			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15030			found="yes"
15031		fi
15032	fi
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048xorg_testset_save_CFLAGS="$CFLAGS"
15049
15050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15051	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15055  $as_echo_n "(cached) " >&6
15056else
15057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058/* end confdefs.h.  */
15059int i;
15060_ACEOF
15061if ac_fn_c_try_compile "$LINENO"; then :
15062  xorg_cv_cc_flag_unknown_warning_option=yes
15063else
15064  xorg_cv_cc_flag_unknown_warning_option=no
15065fi
15066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067fi
15068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15070	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15071	CFLAGS="$xorg_testset_save_CFLAGS"
15072fi
15073
15074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15075	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15076		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15077	fi
15078	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15079	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15081if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15082  $as_echo_n "(cached) " >&6
15083else
15084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085/* end confdefs.h.  */
15086int i;
15087_ACEOF
15088if ac_fn_c_try_compile "$LINENO"; then :
15089  xorg_cv_cc_flag_unused_command_line_argument=yes
15090else
15091  xorg_cv_cc_flag_unused_command_line_argument=no
15092fi
15093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094fi
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15098	CFLAGS="$xorg_testset_save_CFLAGS"
15099fi
15100
15101found="no"
15102
15103	if test $found = "no" ; then
15104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15106		fi
15107
15108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15110		fi
15111
15112		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15113
15114		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15115$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15116		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15117		if eval \${$cacheid+:} false; then :
15118  $as_echo_n "(cached) " >&6
15119else
15120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121/* end confdefs.h.  */
15122int i;
15123int
15124main ()
15125{
15126
15127  ;
15128  return 0;
15129}
15130_ACEOF
15131if ac_fn_c_try_link "$LINENO"; then :
15132  eval $cacheid=yes
15133else
15134  eval $cacheid=no
15135fi
15136rm -f core conftest.err conftest.$ac_objext \
15137    conftest$ac_exeext conftest.$ac_ext
15138fi
15139
15140
15141		CFLAGS="$xorg_testset_save_CFLAGS"
15142
15143		eval supported=\$$cacheid
15144		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15145$as_echo "$supported" >&6; }
15146		if test "$supported" = "yes" ; then
15147			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15148			found="yes"
15149		fi
15150	fi
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166xorg_testset_save_CFLAGS="$CFLAGS"
15167
15168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15173  $as_echo_n "(cached) " >&6
15174else
15175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176/* end confdefs.h.  */
15177int i;
15178_ACEOF
15179if ac_fn_c_try_compile "$LINENO"; then :
15180  xorg_cv_cc_flag_unknown_warning_option=yes
15181else
15182  xorg_cv_cc_flag_unknown_warning_option=no
15183fi
15184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185fi
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15189	CFLAGS="$xorg_testset_save_CFLAGS"
15190fi
15191
15192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15195	fi
15196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15200  $as_echo_n "(cached) " >&6
15201else
15202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h.  */
15204int i;
15205_ACEOF
15206if ac_fn_c_try_compile "$LINENO"; then :
15207  xorg_cv_cc_flag_unused_command_line_argument=yes
15208else
15209  xorg_cv_cc_flag_unused_command_line_argument=no
15210fi
15211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212fi
15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15215	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15216	CFLAGS="$xorg_testset_save_CFLAGS"
15217fi
15218
15219found="no"
15220
15221	if test $found = "no" ; then
15222		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224		fi
15225
15226		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15228		fi
15229
15230		CFLAGS="$CFLAGS -Wredundant-decls"
15231
15232		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15233$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
15234		cacheid=xorg_cv_cc_flag__Wredundant_decls
15235		if eval \${$cacheid+:} false; then :
15236  $as_echo_n "(cached) " >&6
15237else
15238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239/* end confdefs.h.  */
15240int i;
15241int
15242main ()
15243{
15244
15245  ;
15246  return 0;
15247}
15248_ACEOF
15249if ac_fn_c_try_link "$LINENO"; then :
15250  eval $cacheid=yes
15251else
15252  eval $cacheid=no
15253fi
15254rm -f core conftest.err conftest.$ac_objext \
15255    conftest$ac_exeext conftest.$ac_ext
15256fi
15257
15258
15259		CFLAGS="$xorg_testset_save_CFLAGS"
15260
15261		eval supported=\$$cacheid
15262		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15263$as_echo "$supported" >&6; }
15264		if test "$supported" = "yes" ; then
15265			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15266			found="yes"
15267		fi
15268	fi
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284xorg_testset_save_CFLAGS="$CFLAGS"
15285
15286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15287	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15288	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15291  $as_echo_n "(cached) " >&6
15292else
15293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294/* end confdefs.h.  */
15295int i;
15296_ACEOF
15297if ac_fn_c_try_compile "$LINENO"; then :
15298  xorg_cv_cc_flag_unknown_warning_option=yes
15299else
15300  xorg_cv_cc_flag_unknown_warning_option=no
15301fi
15302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303fi
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15307	CFLAGS="$xorg_testset_save_CFLAGS"
15308fi
15309
15310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15313	fi
15314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15315	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15318  $as_echo_n "(cached) " >&6
15319else
15320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321/* end confdefs.h.  */
15322int i;
15323_ACEOF
15324if ac_fn_c_try_compile "$LINENO"; then :
15325  xorg_cv_cc_flag_unused_command_line_argument=yes
15326else
15327  xorg_cv_cc_flag_unused_command_line_argument=no
15328fi
15329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330fi
15331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15333	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15334	CFLAGS="$xorg_testset_save_CFLAGS"
15335fi
15336
15337found="no"
15338
15339	if test $found = "no" ; then
15340		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15341			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15342		fi
15343
15344		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15345			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15346		fi
15347
15348		CFLAGS="$CFLAGS -Wlogical-op"
15349
15350		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15351$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
15352		cacheid=xorg_cv_cc_flag__Wlogical_op
15353		if eval \${$cacheid+:} false; then :
15354  $as_echo_n "(cached) " >&6
15355else
15356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h.  */
15358int i;
15359int
15360main ()
15361{
15362
15363  ;
15364  return 0;
15365}
15366_ACEOF
15367if ac_fn_c_try_link "$LINENO"; then :
15368  eval $cacheid=yes
15369else
15370  eval $cacheid=no
15371fi
15372rm -f core conftest.err conftest.$ac_objext \
15373    conftest$ac_exeext conftest.$ac_ext
15374fi
15375
15376
15377		CFLAGS="$xorg_testset_save_CFLAGS"
15378
15379		eval supported=\$$cacheid
15380		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15381$as_echo "$supported" >&6; }
15382		if test "$supported" = "yes" ; then
15383			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15384			found="yes"
15385		fi
15386	fi
15387
15388
15389
15390# These are currently disabled because they are noisy.  They will be enabled
15391# in the future once the codebase is sufficiently modernized to silence
15392# them.  For now, I don't want them to drown out the other warnings.
15393# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15394# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15395# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15396
15397# Turn some warnings into errors, so we don't accidently get successful builds
15398# when there are problems that should be fixed.
15399
15400if test "x$SELECTIVE_WERROR" = "xyes" ; then
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414xorg_testset_save_CFLAGS="$CFLAGS"
15415
15416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15421  $as_echo_n "(cached) " >&6
15422else
15423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424/* end confdefs.h.  */
15425int i;
15426_ACEOF
15427if ac_fn_c_try_compile "$LINENO"; then :
15428  xorg_cv_cc_flag_unknown_warning_option=yes
15429else
15430  xorg_cv_cc_flag_unknown_warning_option=no
15431fi
15432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433fi
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15437	CFLAGS="$xorg_testset_save_CFLAGS"
15438fi
15439
15440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15443	fi
15444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15448  $as_echo_n "(cached) " >&6
15449else
15450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451/* end confdefs.h.  */
15452int i;
15453_ACEOF
15454if ac_fn_c_try_compile "$LINENO"; then :
15455  xorg_cv_cc_flag_unused_command_line_argument=yes
15456else
15457  xorg_cv_cc_flag_unused_command_line_argument=no
15458fi
15459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460fi
15461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15463	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15464	CFLAGS="$xorg_testset_save_CFLAGS"
15465fi
15466
15467found="no"
15468
15469	if test $found = "no" ; then
15470		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15471			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15472		fi
15473
15474		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15475			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15476		fi
15477
15478		CFLAGS="$CFLAGS -Werror=implicit"
15479
15480		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15481$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
15482		cacheid=xorg_cv_cc_flag__Werror_implicit
15483		if eval \${$cacheid+:} false; then :
15484  $as_echo_n "(cached) " >&6
15485else
15486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487/* end confdefs.h.  */
15488int i;
15489int
15490main ()
15491{
15492
15493  ;
15494  return 0;
15495}
15496_ACEOF
15497if ac_fn_c_try_link "$LINENO"; then :
15498  eval $cacheid=yes
15499else
15500  eval $cacheid=no
15501fi
15502rm -f core conftest.err conftest.$ac_objext \
15503    conftest$ac_exeext conftest.$ac_ext
15504fi
15505
15506
15507		CFLAGS="$xorg_testset_save_CFLAGS"
15508
15509		eval supported=\$$cacheid
15510		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15511$as_echo "$supported" >&6; }
15512		if test "$supported" = "yes" ; then
15513			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15514			found="yes"
15515		fi
15516	fi
15517
15518	if test $found = "no" ; then
15519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15521		fi
15522
15523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15525		fi
15526
15527		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15528
15529		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15530$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15531		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15532		if eval \${$cacheid+:} false; then :
15533  $as_echo_n "(cached) " >&6
15534else
15535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536/* end confdefs.h.  */
15537int i;
15538int
15539main ()
15540{
15541
15542  ;
15543  return 0;
15544}
15545_ACEOF
15546if ac_fn_c_try_link "$LINENO"; then :
15547  eval $cacheid=yes
15548else
15549  eval $cacheid=no
15550fi
15551rm -f core conftest.err conftest.$ac_objext \
15552    conftest$ac_exeext conftest.$ac_ext
15553fi
15554
15555
15556		CFLAGS="$xorg_testset_save_CFLAGS"
15557
15558		eval supported=\$$cacheid
15559		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15560$as_echo "$supported" >&6; }
15561		if test "$supported" = "yes" ; then
15562			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15563			found="yes"
15564		fi
15565	fi
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581xorg_testset_save_CFLAGS="$CFLAGS"
15582
15583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15588  $as_echo_n "(cached) " >&6
15589else
15590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591/* end confdefs.h.  */
15592int i;
15593_ACEOF
15594if ac_fn_c_try_compile "$LINENO"; then :
15595  xorg_cv_cc_flag_unknown_warning_option=yes
15596else
15597  xorg_cv_cc_flag_unknown_warning_option=no
15598fi
15599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600fi
15601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15604	CFLAGS="$xorg_testset_save_CFLAGS"
15605fi
15606
15607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15610	fi
15611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15615  $as_echo_n "(cached) " >&6
15616else
15617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618/* end confdefs.h.  */
15619int i;
15620_ACEOF
15621if ac_fn_c_try_compile "$LINENO"; then :
15622  xorg_cv_cc_flag_unused_command_line_argument=yes
15623else
15624  xorg_cv_cc_flag_unused_command_line_argument=no
15625fi
15626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627fi
15628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15630	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15631	CFLAGS="$xorg_testset_save_CFLAGS"
15632fi
15633
15634found="no"
15635
15636	if test $found = "no" ; then
15637		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15639		fi
15640
15641		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15643		fi
15644
15645		CFLAGS="$CFLAGS -Werror=nonnull"
15646
15647		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15648$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15649		cacheid=xorg_cv_cc_flag__Werror_nonnull
15650		if eval \${$cacheid+:} false; then :
15651  $as_echo_n "(cached) " >&6
15652else
15653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654/* end confdefs.h.  */
15655int i;
15656int
15657main ()
15658{
15659
15660  ;
15661  return 0;
15662}
15663_ACEOF
15664if ac_fn_c_try_link "$LINENO"; then :
15665  eval $cacheid=yes
15666else
15667  eval $cacheid=no
15668fi
15669rm -f core conftest.err conftest.$ac_objext \
15670    conftest$ac_exeext conftest.$ac_ext
15671fi
15672
15673
15674		CFLAGS="$xorg_testset_save_CFLAGS"
15675
15676		eval supported=\$$cacheid
15677		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15678$as_echo "$supported" >&6; }
15679		if test "$supported" = "yes" ; then
15680			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15681			found="yes"
15682		fi
15683	fi
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699xorg_testset_save_CFLAGS="$CFLAGS"
15700
15701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15706  $as_echo_n "(cached) " >&6
15707else
15708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709/* end confdefs.h.  */
15710int i;
15711_ACEOF
15712if ac_fn_c_try_compile "$LINENO"; then :
15713  xorg_cv_cc_flag_unknown_warning_option=yes
15714else
15715  xorg_cv_cc_flag_unknown_warning_option=no
15716fi
15717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718fi
15719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15722	CFLAGS="$xorg_testset_save_CFLAGS"
15723fi
15724
15725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15728	fi
15729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15733  $as_echo_n "(cached) " >&6
15734else
15735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736/* end confdefs.h.  */
15737int i;
15738_ACEOF
15739if ac_fn_c_try_compile "$LINENO"; then :
15740  xorg_cv_cc_flag_unused_command_line_argument=yes
15741else
15742  xorg_cv_cc_flag_unused_command_line_argument=no
15743fi
15744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745fi
15746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15749	CFLAGS="$xorg_testset_save_CFLAGS"
15750fi
15751
15752found="no"
15753
15754	if test $found = "no" ; then
15755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757		fi
15758
15759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15761		fi
15762
15763		CFLAGS="$CFLAGS -Werror=init-self"
15764
15765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15766$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15767		cacheid=xorg_cv_cc_flag__Werror_init_self
15768		if eval \${$cacheid+:} false; then :
15769  $as_echo_n "(cached) " >&6
15770else
15771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772/* end confdefs.h.  */
15773int i;
15774int
15775main ()
15776{
15777
15778  ;
15779  return 0;
15780}
15781_ACEOF
15782if ac_fn_c_try_link "$LINENO"; then :
15783  eval $cacheid=yes
15784else
15785  eval $cacheid=no
15786fi
15787rm -f core conftest.err conftest.$ac_objext \
15788    conftest$ac_exeext conftest.$ac_ext
15789fi
15790
15791
15792		CFLAGS="$xorg_testset_save_CFLAGS"
15793
15794		eval supported=\$$cacheid
15795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15796$as_echo "$supported" >&6; }
15797		if test "$supported" = "yes" ; then
15798			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15799			found="yes"
15800		fi
15801	fi
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817xorg_testset_save_CFLAGS="$CFLAGS"
15818
15819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15824  $as_echo_n "(cached) " >&6
15825else
15826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827/* end confdefs.h.  */
15828int i;
15829_ACEOF
15830if ac_fn_c_try_compile "$LINENO"; then :
15831  xorg_cv_cc_flag_unknown_warning_option=yes
15832else
15833  xorg_cv_cc_flag_unknown_warning_option=no
15834fi
15835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836fi
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15840	CFLAGS="$xorg_testset_save_CFLAGS"
15841fi
15842
15843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846	fi
15847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15851  $as_echo_n "(cached) " >&6
15852else
15853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854/* end confdefs.h.  */
15855int i;
15856_ACEOF
15857if ac_fn_c_try_compile "$LINENO"; then :
15858  xorg_cv_cc_flag_unused_command_line_argument=yes
15859else
15860  xorg_cv_cc_flag_unused_command_line_argument=no
15861fi
15862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863fi
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15867	CFLAGS="$xorg_testset_save_CFLAGS"
15868fi
15869
15870found="no"
15871
15872	if test $found = "no" ; then
15873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15875		fi
15876
15877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15879		fi
15880
15881		CFLAGS="$CFLAGS -Werror=main"
15882
15883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15884$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15885		cacheid=xorg_cv_cc_flag__Werror_main
15886		if eval \${$cacheid+:} false; then :
15887  $as_echo_n "(cached) " >&6
15888else
15889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890/* end confdefs.h.  */
15891int i;
15892int
15893main ()
15894{
15895
15896  ;
15897  return 0;
15898}
15899_ACEOF
15900if ac_fn_c_try_link "$LINENO"; then :
15901  eval $cacheid=yes
15902else
15903  eval $cacheid=no
15904fi
15905rm -f core conftest.err conftest.$ac_objext \
15906    conftest$ac_exeext conftest.$ac_ext
15907fi
15908
15909
15910		CFLAGS="$xorg_testset_save_CFLAGS"
15911
15912		eval supported=\$$cacheid
15913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15914$as_echo "$supported" >&6; }
15915		if test "$supported" = "yes" ; then
15916			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15917			found="yes"
15918		fi
15919	fi
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935xorg_testset_save_CFLAGS="$CFLAGS"
15936
15937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15942  $as_echo_n "(cached) " >&6
15943else
15944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945/* end confdefs.h.  */
15946int i;
15947_ACEOF
15948if ac_fn_c_try_compile "$LINENO"; then :
15949  xorg_cv_cc_flag_unknown_warning_option=yes
15950else
15951  xorg_cv_cc_flag_unknown_warning_option=no
15952fi
15953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954fi
15955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15958	CFLAGS="$xorg_testset_save_CFLAGS"
15959fi
15960
15961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15964	fi
15965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15969  $as_echo_n "(cached) " >&6
15970else
15971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972/* end confdefs.h.  */
15973int i;
15974_ACEOF
15975if ac_fn_c_try_compile "$LINENO"; then :
15976  xorg_cv_cc_flag_unused_command_line_argument=yes
15977else
15978  xorg_cv_cc_flag_unused_command_line_argument=no
15979fi
15980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15981fi
15982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15985	CFLAGS="$xorg_testset_save_CFLAGS"
15986fi
15987
15988found="no"
15989
15990	if test $found = "no" ; then
15991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15993		fi
15994
15995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15997		fi
15998
15999		CFLAGS="$CFLAGS -Werror=missing-braces"
16000
16001		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16002$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
16003		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16004		if eval \${$cacheid+:} false; then :
16005  $as_echo_n "(cached) " >&6
16006else
16007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008/* end confdefs.h.  */
16009int i;
16010int
16011main ()
16012{
16013
16014  ;
16015  return 0;
16016}
16017_ACEOF
16018if ac_fn_c_try_link "$LINENO"; then :
16019  eval $cacheid=yes
16020else
16021  eval $cacheid=no
16022fi
16023rm -f core conftest.err conftest.$ac_objext \
16024    conftest$ac_exeext conftest.$ac_ext
16025fi
16026
16027
16028		CFLAGS="$xorg_testset_save_CFLAGS"
16029
16030		eval supported=\$$cacheid
16031		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16032$as_echo "$supported" >&6; }
16033		if test "$supported" = "yes" ; then
16034			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16035			found="yes"
16036		fi
16037	fi
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053xorg_testset_save_CFLAGS="$CFLAGS"
16054
16055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16060  $as_echo_n "(cached) " >&6
16061else
16062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063/* end confdefs.h.  */
16064int i;
16065_ACEOF
16066if ac_fn_c_try_compile "$LINENO"; then :
16067  xorg_cv_cc_flag_unknown_warning_option=yes
16068else
16069  xorg_cv_cc_flag_unknown_warning_option=no
16070fi
16071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072fi
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16075	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16076	CFLAGS="$xorg_testset_save_CFLAGS"
16077fi
16078
16079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16080	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16081		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16082	fi
16083	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16087  $as_echo_n "(cached) " >&6
16088else
16089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090/* end confdefs.h.  */
16091int i;
16092_ACEOF
16093if ac_fn_c_try_compile "$LINENO"; then :
16094  xorg_cv_cc_flag_unused_command_line_argument=yes
16095else
16096  xorg_cv_cc_flag_unused_command_line_argument=no
16097fi
16098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099fi
16100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16103	CFLAGS="$xorg_testset_save_CFLAGS"
16104fi
16105
16106found="no"
16107
16108	if test $found = "no" ; then
16109		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16111		fi
16112
16113		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16115		fi
16116
16117		CFLAGS="$CFLAGS -Werror=sequence-point"
16118
16119		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16120$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
16121		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16122		if eval \${$cacheid+:} false; then :
16123  $as_echo_n "(cached) " >&6
16124else
16125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126/* end confdefs.h.  */
16127int i;
16128int
16129main ()
16130{
16131
16132  ;
16133  return 0;
16134}
16135_ACEOF
16136if ac_fn_c_try_link "$LINENO"; then :
16137  eval $cacheid=yes
16138else
16139  eval $cacheid=no
16140fi
16141rm -f core conftest.err conftest.$ac_objext \
16142    conftest$ac_exeext conftest.$ac_ext
16143fi
16144
16145
16146		CFLAGS="$xorg_testset_save_CFLAGS"
16147
16148		eval supported=\$$cacheid
16149		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16150$as_echo "$supported" >&6; }
16151		if test "$supported" = "yes" ; then
16152			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16153			found="yes"
16154		fi
16155	fi
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171xorg_testset_save_CFLAGS="$CFLAGS"
16172
16173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16178  $as_echo_n "(cached) " >&6
16179else
16180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181/* end confdefs.h.  */
16182int i;
16183_ACEOF
16184if ac_fn_c_try_compile "$LINENO"; then :
16185  xorg_cv_cc_flag_unknown_warning_option=yes
16186else
16187  xorg_cv_cc_flag_unknown_warning_option=no
16188fi
16189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190fi
16191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16194	CFLAGS="$xorg_testset_save_CFLAGS"
16195fi
16196
16197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16200	fi
16201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16205  $as_echo_n "(cached) " >&6
16206else
16207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208/* end confdefs.h.  */
16209int i;
16210_ACEOF
16211if ac_fn_c_try_compile "$LINENO"; then :
16212  xorg_cv_cc_flag_unused_command_line_argument=yes
16213else
16214  xorg_cv_cc_flag_unused_command_line_argument=no
16215fi
16216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217fi
16218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16220	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16221	CFLAGS="$xorg_testset_save_CFLAGS"
16222fi
16223
16224found="no"
16225
16226	if test $found = "no" ; then
16227		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16228			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16229		fi
16230
16231		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16232			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16233		fi
16234
16235		CFLAGS="$CFLAGS -Werror=return-type"
16236
16237		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16238$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
16239		cacheid=xorg_cv_cc_flag__Werror_return_type
16240		if eval \${$cacheid+:} false; then :
16241  $as_echo_n "(cached) " >&6
16242else
16243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h.  */
16245int i;
16246int
16247main ()
16248{
16249
16250  ;
16251  return 0;
16252}
16253_ACEOF
16254if ac_fn_c_try_link "$LINENO"; then :
16255  eval $cacheid=yes
16256else
16257  eval $cacheid=no
16258fi
16259rm -f core conftest.err conftest.$ac_objext \
16260    conftest$ac_exeext conftest.$ac_ext
16261fi
16262
16263
16264		CFLAGS="$xorg_testset_save_CFLAGS"
16265
16266		eval supported=\$$cacheid
16267		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16268$as_echo "$supported" >&6; }
16269		if test "$supported" = "yes" ; then
16270			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16271			found="yes"
16272		fi
16273	fi
16274
16275	if test $found = "no" ; then
16276		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16278		fi
16279
16280		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16282		fi
16283
16284		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16285
16286		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16287$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16288		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16289		if eval \${$cacheid+:} false; then :
16290  $as_echo_n "(cached) " >&6
16291else
16292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293/* end confdefs.h.  */
16294int i;
16295int
16296main ()
16297{
16298
16299  ;
16300  return 0;
16301}
16302_ACEOF
16303if ac_fn_c_try_link "$LINENO"; then :
16304  eval $cacheid=yes
16305else
16306  eval $cacheid=no
16307fi
16308rm -f core conftest.err conftest.$ac_objext \
16309    conftest$ac_exeext conftest.$ac_ext
16310fi
16311
16312
16313		CFLAGS="$xorg_testset_save_CFLAGS"
16314
16315		eval supported=\$$cacheid
16316		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16317$as_echo "$supported" >&6; }
16318		if test "$supported" = "yes" ; then
16319			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16320			found="yes"
16321		fi
16322	fi
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338xorg_testset_save_CFLAGS="$CFLAGS"
16339
16340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16341	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16342	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16345  $as_echo_n "(cached) " >&6
16346else
16347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348/* end confdefs.h.  */
16349int i;
16350_ACEOF
16351if ac_fn_c_try_compile "$LINENO"; then :
16352  xorg_cv_cc_flag_unknown_warning_option=yes
16353else
16354  xorg_cv_cc_flag_unknown_warning_option=no
16355fi
16356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357fi
16358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16360	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16361	CFLAGS="$xorg_testset_save_CFLAGS"
16362fi
16363
16364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16365	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16366		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16367	fi
16368	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16372  $as_echo_n "(cached) " >&6
16373else
16374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375/* end confdefs.h.  */
16376int i;
16377_ACEOF
16378if ac_fn_c_try_compile "$LINENO"; then :
16379  xorg_cv_cc_flag_unused_command_line_argument=yes
16380else
16381  xorg_cv_cc_flag_unused_command_line_argument=no
16382fi
16383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384fi
16385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16387	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16388	CFLAGS="$xorg_testset_save_CFLAGS"
16389fi
16390
16391found="no"
16392
16393	if test $found = "no" ; then
16394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16396		fi
16397
16398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16400		fi
16401
16402		CFLAGS="$CFLAGS -Werror=trigraphs"
16403
16404		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16405$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
16406		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16407		if eval \${$cacheid+:} false; then :
16408  $as_echo_n "(cached) " >&6
16409else
16410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411/* end confdefs.h.  */
16412int i;
16413int
16414main ()
16415{
16416
16417  ;
16418  return 0;
16419}
16420_ACEOF
16421if ac_fn_c_try_link "$LINENO"; then :
16422  eval $cacheid=yes
16423else
16424  eval $cacheid=no
16425fi
16426rm -f core conftest.err conftest.$ac_objext \
16427    conftest$ac_exeext conftest.$ac_ext
16428fi
16429
16430
16431		CFLAGS="$xorg_testset_save_CFLAGS"
16432
16433		eval supported=\$$cacheid
16434		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16435$as_echo "$supported" >&6; }
16436		if test "$supported" = "yes" ; then
16437			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16438			found="yes"
16439		fi
16440	fi
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456xorg_testset_save_CFLAGS="$CFLAGS"
16457
16458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16463  $as_echo_n "(cached) " >&6
16464else
16465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466/* end confdefs.h.  */
16467int i;
16468_ACEOF
16469if ac_fn_c_try_compile "$LINENO"; then :
16470  xorg_cv_cc_flag_unknown_warning_option=yes
16471else
16472  xorg_cv_cc_flag_unknown_warning_option=no
16473fi
16474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475fi
16476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16479	CFLAGS="$xorg_testset_save_CFLAGS"
16480fi
16481
16482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16485	fi
16486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16490  $as_echo_n "(cached) " >&6
16491else
16492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493/* end confdefs.h.  */
16494int i;
16495_ACEOF
16496if ac_fn_c_try_compile "$LINENO"; then :
16497  xorg_cv_cc_flag_unused_command_line_argument=yes
16498else
16499  xorg_cv_cc_flag_unused_command_line_argument=no
16500fi
16501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502fi
16503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16506	CFLAGS="$xorg_testset_save_CFLAGS"
16507fi
16508
16509found="no"
16510
16511	if test $found = "no" ; then
16512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16514		fi
16515
16516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16518		fi
16519
16520		CFLAGS="$CFLAGS -Werror=array-bounds"
16521
16522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16523$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16524		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16525		if eval \${$cacheid+:} false; then :
16526  $as_echo_n "(cached) " >&6
16527else
16528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529/* end confdefs.h.  */
16530int i;
16531int
16532main ()
16533{
16534
16535  ;
16536  return 0;
16537}
16538_ACEOF
16539if ac_fn_c_try_link "$LINENO"; then :
16540  eval $cacheid=yes
16541else
16542  eval $cacheid=no
16543fi
16544rm -f core conftest.err conftest.$ac_objext \
16545    conftest$ac_exeext conftest.$ac_ext
16546fi
16547
16548
16549		CFLAGS="$xorg_testset_save_CFLAGS"
16550
16551		eval supported=\$$cacheid
16552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16553$as_echo "$supported" >&6; }
16554		if test "$supported" = "yes" ; then
16555			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16556			found="yes"
16557		fi
16558	fi
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574xorg_testset_save_CFLAGS="$CFLAGS"
16575
16576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16581  $as_echo_n "(cached) " >&6
16582else
16583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584/* end confdefs.h.  */
16585int i;
16586_ACEOF
16587if ac_fn_c_try_compile "$LINENO"; then :
16588  xorg_cv_cc_flag_unknown_warning_option=yes
16589else
16590  xorg_cv_cc_flag_unknown_warning_option=no
16591fi
16592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593fi
16594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16597	CFLAGS="$xorg_testset_save_CFLAGS"
16598fi
16599
16600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16603	fi
16604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16608  $as_echo_n "(cached) " >&6
16609else
16610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611/* end confdefs.h.  */
16612int i;
16613_ACEOF
16614if ac_fn_c_try_compile "$LINENO"; then :
16615  xorg_cv_cc_flag_unused_command_line_argument=yes
16616else
16617  xorg_cv_cc_flag_unused_command_line_argument=no
16618fi
16619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620fi
16621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16624	CFLAGS="$xorg_testset_save_CFLAGS"
16625fi
16626
16627found="no"
16628
16629	if test $found = "no" ; then
16630		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16632		fi
16633
16634		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16636		fi
16637
16638		CFLAGS="$CFLAGS -Werror=write-strings"
16639
16640		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16641$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16642		cacheid=xorg_cv_cc_flag__Werror_write_strings
16643		if eval \${$cacheid+:} false; then :
16644  $as_echo_n "(cached) " >&6
16645else
16646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647/* end confdefs.h.  */
16648int i;
16649int
16650main ()
16651{
16652
16653  ;
16654  return 0;
16655}
16656_ACEOF
16657if ac_fn_c_try_link "$LINENO"; then :
16658  eval $cacheid=yes
16659else
16660  eval $cacheid=no
16661fi
16662rm -f core conftest.err conftest.$ac_objext \
16663    conftest$ac_exeext conftest.$ac_ext
16664fi
16665
16666
16667		CFLAGS="$xorg_testset_save_CFLAGS"
16668
16669		eval supported=\$$cacheid
16670		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16671$as_echo "$supported" >&6; }
16672		if test "$supported" = "yes" ; then
16673			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16674			found="yes"
16675		fi
16676	fi
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692xorg_testset_save_CFLAGS="$CFLAGS"
16693
16694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16699  $as_echo_n "(cached) " >&6
16700else
16701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702/* end confdefs.h.  */
16703int i;
16704_ACEOF
16705if ac_fn_c_try_compile "$LINENO"; then :
16706  xorg_cv_cc_flag_unknown_warning_option=yes
16707else
16708  xorg_cv_cc_flag_unknown_warning_option=no
16709fi
16710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16711fi
16712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16714	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16715	CFLAGS="$xorg_testset_save_CFLAGS"
16716fi
16717
16718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16719	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16720		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16721	fi
16722	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16726  $as_echo_n "(cached) " >&6
16727else
16728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729/* end confdefs.h.  */
16730int i;
16731_ACEOF
16732if ac_fn_c_try_compile "$LINENO"; then :
16733  xorg_cv_cc_flag_unused_command_line_argument=yes
16734else
16735  xorg_cv_cc_flag_unused_command_line_argument=no
16736fi
16737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738fi
16739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16742	CFLAGS="$xorg_testset_save_CFLAGS"
16743fi
16744
16745found="no"
16746
16747	if test $found = "no" ; then
16748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16750		fi
16751
16752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16754		fi
16755
16756		CFLAGS="$CFLAGS -Werror=address"
16757
16758		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16759$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16760		cacheid=xorg_cv_cc_flag__Werror_address
16761		if eval \${$cacheid+:} false; then :
16762  $as_echo_n "(cached) " >&6
16763else
16764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765/* end confdefs.h.  */
16766int i;
16767int
16768main ()
16769{
16770
16771  ;
16772  return 0;
16773}
16774_ACEOF
16775if ac_fn_c_try_link "$LINENO"; then :
16776  eval $cacheid=yes
16777else
16778  eval $cacheid=no
16779fi
16780rm -f core conftest.err conftest.$ac_objext \
16781    conftest$ac_exeext conftest.$ac_ext
16782fi
16783
16784
16785		CFLAGS="$xorg_testset_save_CFLAGS"
16786
16787		eval supported=\$$cacheid
16788		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16789$as_echo "$supported" >&6; }
16790		if test "$supported" = "yes" ; then
16791			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16792			found="yes"
16793		fi
16794	fi
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810xorg_testset_save_CFLAGS="$CFLAGS"
16811
16812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16817  $as_echo_n "(cached) " >&6
16818else
16819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820/* end confdefs.h.  */
16821int i;
16822_ACEOF
16823if ac_fn_c_try_compile "$LINENO"; then :
16824  xorg_cv_cc_flag_unknown_warning_option=yes
16825else
16826  xorg_cv_cc_flag_unknown_warning_option=no
16827fi
16828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16829fi
16830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16833	CFLAGS="$xorg_testset_save_CFLAGS"
16834fi
16835
16836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16839	fi
16840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16844  $as_echo_n "(cached) " >&6
16845else
16846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847/* end confdefs.h.  */
16848int i;
16849_ACEOF
16850if ac_fn_c_try_compile "$LINENO"; then :
16851  xorg_cv_cc_flag_unused_command_line_argument=yes
16852else
16853  xorg_cv_cc_flag_unused_command_line_argument=no
16854fi
16855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856fi
16857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16859	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16860	CFLAGS="$xorg_testset_save_CFLAGS"
16861fi
16862
16863found="no"
16864
16865	if test $found = "no" ; then
16866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16868		fi
16869
16870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16872		fi
16873
16874		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16875
16876		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16877$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16878		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16879		if eval \${$cacheid+:} false; then :
16880  $as_echo_n "(cached) " >&6
16881else
16882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883/* end confdefs.h.  */
16884int i;
16885int
16886main ()
16887{
16888
16889  ;
16890  return 0;
16891}
16892_ACEOF
16893if ac_fn_c_try_link "$LINENO"; then :
16894  eval $cacheid=yes
16895else
16896  eval $cacheid=no
16897fi
16898rm -f core conftest.err conftest.$ac_objext \
16899    conftest$ac_exeext conftest.$ac_ext
16900fi
16901
16902
16903		CFLAGS="$xorg_testset_save_CFLAGS"
16904
16905		eval supported=\$$cacheid
16906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16907$as_echo "$supported" >&6; }
16908		if test "$supported" = "yes" ; then
16909			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16910			found="yes"
16911		fi
16912	fi
16913
16914	if test $found = "no" ; then
16915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16917		fi
16918
16919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16921		fi
16922
16923		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16924
16925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16926$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16927		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16928		if eval \${$cacheid+:} false; then :
16929  $as_echo_n "(cached) " >&6
16930else
16931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932/* end confdefs.h.  */
16933int i;
16934int
16935main ()
16936{
16937
16938  ;
16939  return 0;
16940}
16941_ACEOF
16942if ac_fn_c_try_link "$LINENO"; then :
16943  eval $cacheid=yes
16944else
16945  eval $cacheid=no
16946fi
16947rm -f core conftest.err conftest.$ac_objext \
16948    conftest$ac_exeext conftest.$ac_ext
16949fi
16950
16951
16952		CFLAGS="$xorg_testset_save_CFLAGS"
16953
16954		eval supported=\$$cacheid
16955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16956$as_echo "$supported" >&6; }
16957		if test "$supported" = "yes" ; then
16958			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16959			found="yes"
16960		fi
16961	fi
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977xorg_testset_save_CFLAGS="$CFLAGS"
16978
16979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16984  $as_echo_n "(cached) " >&6
16985else
16986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987/* end confdefs.h.  */
16988int i;
16989_ACEOF
16990if ac_fn_c_try_compile "$LINENO"; then :
16991  xorg_cv_cc_flag_unknown_warning_option=yes
16992else
16993  xorg_cv_cc_flag_unknown_warning_option=no
16994fi
16995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996fi
16997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17000	CFLAGS="$xorg_testset_save_CFLAGS"
17001fi
17002
17003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17006	fi
17007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17011  $as_echo_n "(cached) " >&6
17012else
17013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014/* end confdefs.h.  */
17015int i;
17016_ACEOF
17017if ac_fn_c_try_compile "$LINENO"; then :
17018  xorg_cv_cc_flag_unused_command_line_argument=yes
17019else
17020  xorg_cv_cc_flag_unused_command_line_argument=no
17021fi
17022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023fi
17024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17027	CFLAGS="$xorg_testset_save_CFLAGS"
17028fi
17029
17030found="no"
17031
17032	if test $found = "no" ; then
17033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17035		fi
17036
17037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17039		fi
17040
17041		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17042
17043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17044$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17045		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17046		if eval \${$cacheid+:} false; then :
17047  $as_echo_n "(cached) " >&6
17048else
17049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050/* end confdefs.h.  */
17051int i;
17052int
17053main ()
17054{
17055
17056  ;
17057  return 0;
17058}
17059_ACEOF
17060if ac_fn_c_try_link "$LINENO"; then :
17061  eval $cacheid=yes
17062else
17063  eval $cacheid=no
17064fi
17065rm -f core conftest.err conftest.$ac_objext \
17066    conftest$ac_exeext conftest.$ac_ext
17067fi
17068
17069
17070		CFLAGS="$xorg_testset_save_CFLAGS"
17071
17072		eval supported=\$$cacheid
17073		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17074$as_echo "$supported" >&6; }
17075		if test "$supported" = "yes" ; then
17076			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17077			found="yes"
17078		fi
17079	fi
17080
17081 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17082else
17083{ $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
17084$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;}
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098xorg_testset_save_CFLAGS="$CFLAGS"
17099
17100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17105  $as_echo_n "(cached) " >&6
17106else
17107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108/* end confdefs.h.  */
17109int i;
17110_ACEOF
17111if ac_fn_c_try_compile "$LINENO"; then :
17112  xorg_cv_cc_flag_unknown_warning_option=yes
17113else
17114  xorg_cv_cc_flag_unknown_warning_option=no
17115fi
17116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117fi
17118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17121	CFLAGS="$xorg_testset_save_CFLAGS"
17122fi
17123
17124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17127	fi
17128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17132  $as_echo_n "(cached) " >&6
17133else
17134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135/* end confdefs.h.  */
17136int i;
17137_ACEOF
17138if ac_fn_c_try_compile "$LINENO"; then :
17139  xorg_cv_cc_flag_unused_command_line_argument=yes
17140else
17141  xorg_cv_cc_flag_unused_command_line_argument=no
17142fi
17143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17144fi
17145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17148	CFLAGS="$xorg_testset_save_CFLAGS"
17149fi
17150
17151found="no"
17152
17153	if test $found = "no" ; then
17154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17156		fi
17157
17158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17160		fi
17161
17162		CFLAGS="$CFLAGS -Wimplicit"
17163
17164		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17165$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
17166		cacheid=xorg_cv_cc_flag__Wimplicit
17167		if eval \${$cacheid+:} false; then :
17168  $as_echo_n "(cached) " >&6
17169else
17170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171/* end confdefs.h.  */
17172int i;
17173int
17174main ()
17175{
17176
17177  ;
17178  return 0;
17179}
17180_ACEOF
17181if ac_fn_c_try_link "$LINENO"; then :
17182  eval $cacheid=yes
17183else
17184  eval $cacheid=no
17185fi
17186rm -f core conftest.err conftest.$ac_objext \
17187    conftest$ac_exeext conftest.$ac_ext
17188fi
17189
17190
17191		CFLAGS="$xorg_testset_save_CFLAGS"
17192
17193		eval supported=\$$cacheid
17194		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17195$as_echo "$supported" >&6; }
17196		if test "$supported" = "yes" ; then
17197			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17198			found="yes"
17199		fi
17200	fi
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216xorg_testset_save_CFLAGS="$CFLAGS"
17217
17218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17222if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17223  $as_echo_n "(cached) " >&6
17224else
17225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17226/* end confdefs.h.  */
17227int i;
17228_ACEOF
17229if ac_fn_c_try_compile "$LINENO"; then :
17230  xorg_cv_cc_flag_unknown_warning_option=yes
17231else
17232  xorg_cv_cc_flag_unknown_warning_option=no
17233fi
17234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235fi
17236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17237$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17239	CFLAGS="$xorg_testset_save_CFLAGS"
17240fi
17241
17242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17245	fi
17246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17249if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17250  $as_echo_n "(cached) " >&6
17251else
17252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253/* end confdefs.h.  */
17254int i;
17255_ACEOF
17256if ac_fn_c_try_compile "$LINENO"; then :
17257  xorg_cv_cc_flag_unused_command_line_argument=yes
17258else
17259  xorg_cv_cc_flag_unused_command_line_argument=no
17260fi
17261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262fi
17263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17264$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17265	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17266	CFLAGS="$xorg_testset_save_CFLAGS"
17267fi
17268
17269found="no"
17270
17271	if test $found = "no" ; then
17272		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17274		fi
17275
17276		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17278		fi
17279
17280		CFLAGS="$CFLAGS -Wnonnull"
17281
17282		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17283$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
17284		cacheid=xorg_cv_cc_flag__Wnonnull
17285		if eval \${$cacheid+:} false; then :
17286  $as_echo_n "(cached) " >&6
17287else
17288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289/* end confdefs.h.  */
17290int i;
17291int
17292main ()
17293{
17294
17295  ;
17296  return 0;
17297}
17298_ACEOF
17299if ac_fn_c_try_link "$LINENO"; then :
17300  eval $cacheid=yes
17301else
17302  eval $cacheid=no
17303fi
17304rm -f core conftest.err conftest.$ac_objext \
17305    conftest$ac_exeext conftest.$ac_ext
17306fi
17307
17308
17309		CFLAGS="$xorg_testset_save_CFLAGS"
17310
17311		eval supported=\$$cacheid
17312		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17313$as_echo "$supported" >&6; }
17314		if test "$supported" = "yes" ; then
17315			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17316			found="yes"
17317		fi
17318	fi
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334xorg_testset_save_CFLAGS="$CFLAGS"
17335
17336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17339$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17340if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17341  $as_echo_n "(cached) " >&6
17342else
17343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344/* end confdefs.h.  */
17345int i;
17346_ACEOF
17347if ac_fn_c_try_compile "$LINENO"; then :
17348  xorg_cv_cc_flag_unknown_warning_option=yes
17349else
17350  xorg_cv_cc_flag_unknown_warning_option=no
17351fi
17352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17353fi
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17355$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17356	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17357	CFLAGS="$xorg_testset_save_CFLAGS"
17358fi
17359
17360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17361	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17362		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17363	fi
17364	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17366$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17367if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17368  $as_echo_n "(cached) " >&6
17369else
17370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371/* end confdefs.h.  */
17372int i;
17373_ACEOF
17374if ac_fn_c_try_compile "$LINENO"; then :
17375  xorg_cv_cc_flag_unused_command_line_argument=yes
17376else
17377  xorg_cv_cc_flag_unused_command_line_argument=no
17378fi
17379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17380fi
17381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17382$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17384	CFLAGS="$xorg_testset_save_CFLAGS"
17385fi
17386
17387found="no"
17388
17389	if test $found = "no" ; then
17390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17392		fi
17393
17394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17396		fi
17397
17398		CFLAGS="$CFLAGS -Winit-self"
17399
17400		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17401$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
17402		cacheid=xorg_cv_cc_flag__Winit_self
17403		if eval \${$cacheid+:} false; then :
17404  $as_echo_n "(cached) " >&6
17405else
17406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407/* end confdefs.h.  */
17408int i;
17409int
17410main ()
17411{
17412
17413  ;
17414  return 0;
17415}
17416_ACEOF
17417if ac_fn_c_try_link "$LINENO"; then :
17418  eval $cacheid=yes
17419else
17420  eval $cacheid=no
17421fi
17422rm -f core conftest.err conftest.$ac_objext \
17423    conftest$ac_exeext conftest.$ac_ext
17424fi
17425
17426
17427		CFLAGS="$xorg_testset_save_CFLAGS"
17428
17429		eval supported=\$$cacheid
17430		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17431$as_echo "$supported" >&6; }
17432		if test "$supported" = "yes" ; then
17433			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17434			found="yes"
17435		fi
17436	fi
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452xorg_testset_save_CFLAGS="$CFLAGS"
17453
17454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17458if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17459  $as_echo_n "(cached) " >&6
17460else
17461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462/* end confdefs.h.  */
17463int i;
17464_ACEOF
17465if ac_fn_c_try_compile "$LINENO"; then :
17466  xorg_cv_cc_flag_unknown_warning_option=yes
17467else
17468  xorg_cv_cc_flag_unknown_warning_option=no
17469fi
17470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17471fi
17472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17473$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17474	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17475	CFLAGS="$xorg_testset_save_CFLAGS"
17476fi
17477
17478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17479	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17480		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17481	fi
17482	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17484$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17485if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17486  $as_echo_n "(cached) " >&6
17487else
17488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489/* end confdefs.h.  */
17490int i;
17491_ACEOF
17492if ac_fn_c_try_compile "$LINENO"; then :
17493  xorg_cv_cc_flag_unused_command_line_argument=yes
17494else
17495  xorg_cv_cc_flag_unused_command_line_argument=no
17496fi
17497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17498fi
17499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17500$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17502	CFLAGS="$xorg_testset_save_CFLAGS"
17503fi
17504
17505found="no"
17506
17507	if test $found = "no" ; then
17508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17510		fi
17511
17512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17514		fi
17515
17516		CFLAGS="$CFLAGS -Wmain"
17517
17518		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17519$as_echo_n "checking if $CC supports -Wmain... " >&6; }
17520		cacheid=xorg_cv_cc_flag__Wmain
17521		if eval \${$cacheid+:} false; then :
17522  $as_echo_n "(cached) " >&6
17523else
17524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525/* end confdefs.h.  */
17526int i;
17527int
17528main ()
17529{
17530
17531  ;
17532  return 0;
17533}
17534_ACEOF
17535if ac_fn_c_try_link "$LINENO"; then :
17536  eval $cacheid=yes
17537else
17538  eval $cacheid=no
17539fi
17540rm -f core conftest.err conftest.$ac_objext \
17541    conftest$ac_exeext conftest.$ac_ext
17542fi
17543
17544
17545		CFLAGS="$xorg_testset_save_CFLAGS"
17546
17547		eval supported=\$$cacheid
17548		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17549$as_echo "$supported" >&6; }
17550		if test "$supported" = "yes" ; then
17551			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17552			found="yes"
17553		fi
17554	fi
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570xorg_testset_save_CFLAGS="$CFLAGS"
17571
17572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17577  $as_echo_n "(cached) " >&6
17578else
17579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580/* end confdefs.h.  */
17581int i;
17582_ACEOF
17583if ac_fn_c_try_compile "$LINENO"; then :
17584  xorg_cv_cc_flag_unknown_warning_option=yes
17585else
17586  xorg_cv_cc_flag_unknown_warning_option=no
17587fi
17588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589fi
17590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17592	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17593	CFLAGS="$xorg_testset_save_CFLAGS"
17594fi
17595
17596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17597	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17598		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17599	fi
17600	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17604  $as_echo_n "(cached) " >&6
17605else
17606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607/* end confdefs.h.  */
17608int i;
17609_ACEOF
17610if ac_fn_c_try_compile "$LINENO"; then :
17611  xorg_cv_cc_flag_unused_command_line_argument=yes
17612else
17613  xorg_cv_cc_flag_unused_command_line_argument=no
17614fi
17615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616fi
17617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17620	CFLAGS="$xorg_testset_save_CFLAGS"
17621fi
17622
17623found="no"
17624
17625	if test $found = "no" ; then
17626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17628		fi
17629
17630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17632		fi
17633
17634		CFLAGS="$CFLAGS -Wmissing-braces"
17635
17636		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17637$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17638		cacheid=xorg_cv_cc_flag__Wmissing_braces
17639		if eval \${$cacheid+:} false; then :
17640  $as_echo_n "(cached) " >&6
17641else
17642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17643/* end confdefs.h.  */
17644int i;
17645int
17646main ()
17647{
17648
17649  ;
17650  return 0;
17651}
17652_ACEOF
17653if ac_fn_c_try_link "$LINENO"; then :
17654  eval $cacheid=yes
17655else
17656  eval $cacheid=no
17657fi
17658rm -f core conftest.err conftest.$ac_objext \
17659    conftest$ac_exeext conftest.$ac_ext
17660fi
17661
17662
17663		CFLAGS="$xorg_testset_save_CFLAGS"
17664
17665		eval supported=\$$cacheid
17666		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17667$as_echo "$supported" >&6; }
17668		if test "$supported" = "yes" ; then
17669			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17670			found="yes"
17671		fi
17672	fi
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688xorg_testset_save_CFLAGS="$CFLAGS"
17689
17690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17695  $as_echo_n "(cached) " >&6
17696else
17697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698/* end confdefs.h.  */
17699int i;
17700_ACEOF
17701if ac_fn_c_try_compile "$LINENO"; then :
17702  xorg_cv_cc_flag_unknown_warning_option=yes
17703else
17704  xorg_cv_cc_flag_unknown_warning_option=no
17705fi
17706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707fi
17708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17711	CFLAGS="$xorg_testset_save_CFLAGS"
17712fi
17713
17714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17717	fi
17718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17722  $as_echo_n "(cached) " >&6
17723else
17724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725/* end confdefs.h.  */
17726int i;
17727_ACEOF
17728if ac_fn_c_try_compile "$LINENO"; then :
17729  xorg_cv_cc_flag_unused_command_line_argument=yes
17730else
17731  xorg_cv_cc_flag_unused_command_line_argument=no
17732fi
17733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17734fi
17735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17737	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17738	CFLAGS="$xorg_testset_save_CFLAGS"
17739fi
17740
17741found="no"
17742
17743	if test $found = "no" ; then
17744		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17745			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17746		fi
17747
17748		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17749			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17750		fi
17751
17752		CFLAGS="$CFLAGS -Wsequence-point"
17753
17754		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17755$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17756		cacheid=xorg_cv_cc_flag__Wsequence_point
17757		if eval \${$cacheid+:} false; then :
17758  $as_echo_n "(cached) " >&6
17759else
17760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761/* end confdefs.h.  */
17762int i;
17763int
17764main ()
17765{
17766
17767  ;
17768  return 0;
17769}
17770_ACEOF
17771if ac_fn_c_try_link "$LINENO"; then :
17772  eval $cacheid=yes
17773else
17774  eval $cacheid=no
17775fi
17776rm -f core conftest.err conftest.$ac_objext \
17777    conftest$ac_exeext conftest.$ac_ext
17778fi
17779
17780
17781		CFLAGS="$xorg_testset_save_CFLAGS"
17782
17783		eval supported=\$$cacheid
17784		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17785$as_echo "$supported" >&6; }
17786		if test "$supported" = "yes" ; then
17787			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17788			found="yes"
17789		fi
17790	fi
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806xorg_testset_save_CFLAGS="$CFLAGS"
17807
17808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17809	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17813  $as_echo_n "(cached) " >&6
17814else
17815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816/* end confdefs.h.  */
17817int i;
17818_ACEOF
17819if ac_fn_c_try_compile "$LINENO"; then :
17820  xorg_cv_cc_flag_unknown_warning_option=yes
17821else
17822  xorg_cv_cc_flag_unknown_warning_option=no
17823fi
17824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17825fi
17826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17828	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17829	CFLAGS="$xorg_testset_save_CFLAGS"
17830fi
17831
17832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17833	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17834		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17835	fi
17836	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17840  $as_echo_n "(cached) " >&6
17841else
17842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843/* end confdefs.h.  */
17844int i;
17845_ACEOF
17846if ac_fn_c_try_compile "$LINENO"; then :
17847  xorg_cv_cc_flag_unused_command_line_argument=yes
17848else
17849  xorg_cv_cc_flag_unused_command_line_argument=no
17850fi
17851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852fi
17853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17855	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17856	CFLAGS="$xorg_testset_save_CFLAGS"
17857fi
17858
17859found="no"
17860
17861	if test $found = "no" ; then
17862		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17863			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17864		fi
17865
17866		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17867			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17868		fi
17869
17870		CFLAGS="$CFLAGS -Wreturn-type"
17871
17872		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17873$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17874		cacheid=xorg_cv_cc_flag__Wreturn_type
17875		if eval \${$cacheid+:} false; then :
17876  $as_echo_n "(cached) " >&6
17877else
17878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17879/* end confdefs.h.  */
17880int i;
17881int
17882main ()
17883{
17884
17885  ;
17886  return 0;
17887}
17888_ACEOF
17889if ac_fn_c_try_link "$LINENO"; then :
17890  eval $cacheid=yes
17891else
17892  eval $cacheid=no
17893fi
17894rm -f core conftest.err conftest.$ac_objext \
17895    conftest$ac_exeext conftest.$ac_ext
17896fi
17897
17898
17899		CFLAGS="$xorg_testset_save_CFLAGS"
17900
17901		eval supported=\$$cacheid
17902		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17903$as_echo "$supported" >&6; }
17904		if test "$supported" = "yes" ; then
17905			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17906			found="yes"
17907		fi
17908	fi
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924xorg_testset_save_CFLAGS="$CFLAGS"
17925
17926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17927	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17931  $as_echo_n "(cached) " >&6
17932else
17933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934/* end confdefs.h.  */
17935int i;
17936_ACEOF
17937if ac_fn_c_try_compile "$LINENO"; then :
17938  xorg_cv_cc_flag_unknown_warning_option=yes
17939else
17940  xorg_cv_cc_flag_unknown_warning_option=no
17941fi
17942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943fi
17944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17946	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17947	CFLAGS="$xorg_testset_save_CFLAGS"
17948fi
17949
17950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17951	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17952		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17953	fi
17954	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17957if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17958  $as_echo_n "(cached) " >&6
17959else
17960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961/* end confdefs.h.  */
17962int i;
17963_ACEOF
17964if ac_fn_c_try_compile "$LINENO"; then :
17965  xorg_cv_cc_flag_unused_command_line_argument=yes
17966else
17967  xorg_cv_cc_flag_unused_command_line_argument=no
17968fi
17969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17970fi
17971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17973	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17974	CFLAGS="$xorg_testset_save_CFLAGS"
17975fi
17976
17977found="no"
17978
17979	if test $found = "no" ; then
17980		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17981			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17982		fi
17983
17984		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17985			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17986		fi
17987
17988		CFLAGS="$CFLAGS -Wtrigraphs"
17989
17990		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17991$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17992		cacheid=xorg_cv_cc_flag__Wtrigraphs
17993		if eval \${$cacheid+:} false; then :
17994  $as_echo_n "(cached) " >&6
17995else
17996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997/* end confdefs.h.  */
17998int i;
17999int
18000main ()
18001{
18002
18003  ;
18004  return 0;
18005}
18006_ACEOF
18007if ac_fn_c_try_link "$LINENO"; then :
18008  eval $cacheid=yes
18009else
18010  eval $cacheid=no
18011fi
18012rm -f core conftest.err conftest.$ac_objext \
18013    conftest$ac_exeext conftest.$ac_ext
18014fi
18015
18016
18017		CFLAGS="$xorg_testset_save_CFLAGS"
18018
18019		eval supported=\$$cacheid
18020		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18021$as_echo "$supported" >&6; }
18022		if test "$supported" = "yes" ; then
18023			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18024			found="yes"
18025		fi
18026	fi
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042xorg_testset_save_CFLAGS="$CFLAGS"
18043
18044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18046	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18049  $as_echo_n "(cached) " >&6
18050else
18051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052/* end confdefs.h.  */
18053int i;
18054_ACEOF
18055if ac_fn_c_try_compile "$LINENO"; then :
18056  xorg_cv_cc_flag_unknown_warning_option=yes
18057else
18058  xorg_cv_cc_flag_unknown_warning_option=no
18059fi
18060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18061fi
18062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18064	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18065	CFLAGS="$xorg_testset_save_CFLAGS"
18066fi
18067
18068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18069	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18070		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18071	fi
18072	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18075if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18076  $as_echo_n "(cached) " >&6
18077else
18078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079/* end confdefs.h.  */
18080int i;
18081_ACEOF
18082if ac_fn_c_try_compile "$LINENO"; then :
18083  xorg_cv_cc_flag_unused_command_line_argument=yes
18084else
18085  xorg_cv_cc_flag_unused_command_line_argument=no
18086fi
18087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18088fi
18089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18091	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18092	CFLAGS="$xorg_testset_save_CFLAGS"
18093fi
18094
18095found="no"
18096
18097	if test $found = "no" ; then
18098		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18099			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18100		fi
18101
18102		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18103			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18104		fi
18105
18106		CFLAGS="$CFLAGS -Warray-bounds"
18107
18108		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18109$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
18110		cacheid=xorg_cv_cc_flag__Warray_bounds
18111		if eval \${$cacheid+:} false; then :
18112  $as_echo_n "(cached) " >&6
18113else
18114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18115/* end confdefs.h.  */
18116int i;
18117int
18118main ()
18119{
18120
18121  ;
18122  return 0;
18123}
18124_ACEOF
18125if ac_fn_c_try_link "$LINENO"; then :
18126  eval $cacheid=yes
18127else
18128  eval $cacheid=no
18129fi
18130rm -f core conftest.err conftest.$ac_objext \
18131    conftest$ac_exeext conftest.$ac_ext
18132fi
18133
18134
18135		CFLAGS="$xorg_testset_save_CFLAGS"
18136
18137		eval supported=\$$cacheid
18138		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18139$as_echo "$supported" >&6; }
18140		if test "$supported" = "yes" ; then
18141			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18142			found="yes"
18143		fi
18144	fi
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160xorg_testset_save_CFLAGS="$CFLAGS"
18161
18162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18163	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18164	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18167  $as_echo_n "(cached) " >&6
18168else
18169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170/* end confdefs.h.  */
18171int i;
18172_ACEOF
18173if ac_fn_c_try_compile "$LINENO"; then :
18174  xorg_cv_cc_flag_unknown_warning_option=yes
18175else
18176  xorg_cv_cc_flag_unknown_warning_option=no
18177fi
18178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179fi
18180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18182	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18183	CFLAGS="$xorg_testset_save_CFLAGS"
18184fi
18185
18186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18187	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18188		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18189	fi
18190	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18194  $as_echo_n "(cached) " >&6
18195else
18196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197/* end confdefs.h.  */
18198int i;
18199_ACEOF
18200if ac_fn_c_try_compile "$LINENO"; then :
18201  xorg_cv_cc_flag_unused_command_line_argument=yes
18202else
18203  xorg_cv_cc_flag_unused_command_line_argument=no
18204fi
18205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206fi
18207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18209	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18210	CFLAGS="$xorg_testset_save_CFLAGS"
18211fi
18212
18213found="no"
18214
18215	if test $found = "no" ; then
18216		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18217			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18218		fi
18219
18220		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18221			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18222		fi
18223
18224		CFLAGS="$CFLAGS -Wwrite-strings"
18225
18226		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18227$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
18228		cacheid=xorg_cv_cc_flag__Wwrite_strings
18229		if eval \${$cacheid+:} false; then :
18230  $as_echo_n "(cached) " >&6
18231else
18232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233/* end confdefs.h.  */
18234int i;
18235int
18236main ()
18237{
18238
18239  ;
18240  return 0;
18241}
18242_ACEOF
18243if ac_fn_c_try_link "$LINENO"; then :
18244  eval $cacheid=yes
18245else
18246  eval $cacheid=no
18247fi
18248rm -f core conftest.err conftest.$ac_objext \
18249    conftest$ac_exeext conftest.$ac_ext
18250fi
18251
18252
18253		CFLAGS="$xorg_testset_save_CFLAGS"
18254
18255		eval supported=\$$cacheid
18256		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18257$as_echo "$supported" >&6; }
18258		if test "$supported" = "yes" ; then
18259			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18260			found="yes"
18261		fi
18262	fi
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278xorg_testset_save_CFLAGS="$CFLAGS"
18279
18280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18285  $as_echo_n "(cached) " >&6
18286else
18287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288/* end confdefs.h.  */
18289int i;
18290_ACEOF
18291if ac_fn_c_try_compile "$LINENO"; then :
18292  xorg_cv_cc_flag_unknown_warning_option=yes
18293else
18294  xorg_cv_cc_flag_unknown_warning_option=no
18295fi
18296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18297fi
18298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18300	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18301	CFLAGS="$xorg_testset_save_CFLAGS"
18302fi
18303
18304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18305	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18306		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18307	fi
18308	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18312  $as_echo_n "(cached) " >&6
18313else
18314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315/* end confdefs.h.  */
18316int i;
18317_ACEOF
18318if ac_fn_c_try_compile "$LINENO"; then :
18319  xorg_cv_cc_flag_unused_command_line_argument=yes
18320else
18321  xorg_cv_cc_flag_unused_command_line_argument=no
18322fi
18323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18324fi
18325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18328	CFLAGS="$xorg_testset_save_CFLAGS"
18329fi
18330
18331found="no"
18332
18333	if test $found = "no" ; then
18334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18336		fi
18337
18338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18340		fi
18341
18342		CFLAGS="$CFLAGS -Waddress"
18343
18344		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18345$as_echo_n "checking if $CC supports -Waddress... " >&6; }
18346		cacheid=xorg_cv_cc_flag__Waddress
18347		if eval \${$cacheid+:} false; then :
18348  $as_echo_n "(cached) " >&6
18349else
18350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351/* end confdefs.h.  */
18352int i;
18353int
18354main ()
18355{
18356
18357  ;
18358  return 0;
18359}
18360_ACEOF
18361if ac_fn_c_try_link "$LINENO"; then :
18362  eval $cacheid=yes
18363else
18364  eval $cacheid=no
18365fi
18366rm -f core conftest.err conftest.$ac_objext \
18367    conftest$ac_exeext conftest.$ac_ext
18368fi
18369
18370
18371		CFLAGS="$xorg_testset_save_CFLAGS"
18372
18373		eval supported=\$$cacheid
18374		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18375$as_echo "$supported" >&6; }
18376		if test "$supported" = "yes" ; then
18377			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18378			found="yes"
18379		fi
18380	fi
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396xorg_testset_save_CFLAGS="$CFLAGS"
18397
18398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18403  $as_echo_n "(cached) " >&6
18404else
18405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406/* end confdefs.h.  */
18407int i;
18408_ACEOF
18409if ac_fn_c_try_compile "$LINENO"; then :
18410  xorg_cv_cc_flag_unknown_warning_option=yes
18411else
18412  xorg_cv_cc_flag_unknown_warning_option=no
18413fi
18414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415fi
18416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18419	CFLAGS="$xorg_testset_save_CFLAGS"
18420fi
18421
18422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18425	fi
18426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18430  $as_echo_n "(cached) " >&6
18431else
18432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433/* end confdefs.h.  */
18434int i;
18435_ACEOF
18436if ac_fn_c_try_compile "$LINENO"; then :
18437  xorg_cv_cc_flag_unused_command_line_argument=yes
18438else
18439  xorg_cv_cc_flag_unused_command_line_argument=no
18440fi
18441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18442fi
18443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18446	CFLAGS="$xorg_testset_save_CFLAGS"
18447fi
18448
18449found="no"
18450
18451	if test $found = "no" ; then
18452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18454		fi
18455
18456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18458		fi
18459
18460		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18461
18462		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18463$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18464		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18465		if eval \${$cacheid+:} false; then :
18466  $as_echo_n "(cached) " >&6
18467else
18468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469/* end confdefs.h.  */
18470int i;
18471int
18472main ()
18473{
18474
18475  ;
18476  return 0;
18477}
18478_ACEOF
18479if ac_fn_c_try_link "$LINENO"; then :
18480  eval $cacheid=yes
18481else
18482  eval $cacheid=no
18483fi
18484rm -f core conftest.err conftest.$ac_objext \
18485    conftest$ac_exeext conftest.$ac_ext
18486fi
18487
18488
18489		CFLAGS="$xorg_testset_save_CFLAGS"
18490
18491		eval supported=\$$cacheid
18492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18493$as_echo "$supported" >&6; }
18494		if test "$supported" = "yes" ; then
18495			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18496			found="yes"
18497		fi
18498	fi
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514xorg_testset_save_CFLAGS="$CFLAGS"
18515
18516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18517	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18521  $as_echo_n "(cached) " >&6
18522else
18523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524/* end confdefs.h.  */
18525int i;
18526_ACEOF
18527if ac_fn_c_try_compile "$LINENO"; then :
18528  xorg_cv_cc_flag_unknown_warning_option=yes
18529else
18530  xorg_cv_cc_flag_unknown_warning_option=no
18531fi
18532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18533fi
18534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18537	CFLAGS="$xorg_testset_save_CFLAGS"
18538fi
18539
18540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18543	fi
18544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18548  $as_echo_n "(cached) " >&6
18549else
18550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18551/* end confdefs.h.  */
18552int i;
18553_ACEOF
18554if ac_fn_c_try_compile "$LINENO"; then :
18555  xorg_cv_cc_flag_unused_command_line_argument=yes
18556else
18557  xorg_cv_cc_flag_unused_command_line_argument=no
18558fi
18559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18560fi
18561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18564	CFLAGS="$xorg_testset_save_CFLAGS"
18565fi
18566
18567found="no"
18568
18569	if test $found = "no" ; then
18570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18572		fi
18573
18574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18576		fi
18577
18578		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18579
18580		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18581$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18582		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18583		if eval \${$cacheid+:} false; then :
18584  $as_echo_n "(cached) " >&6
18585else
18586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587/* end confdefs.h.  */
18588int i;
18589int
18590main ()
18591{
18592
18593  ;
18594  return 0;
18595}
18596_ACEOF
18597if ac_fn_c_try_link "$LINENO"; then :
18598  eval $cacheid=yes
18599else
18600  eval $cacheid=no
18601fi
18602rm -f core conftest.err conftest.$ac_objext \
18603    conftest$ac_exeext conftest.$ac_ext
18604fi
18605
18606
18607		CFLAGS="$xorg_testset_save_CFLAGS"
18608
18609		eval supported=\$$cacheid
18610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18611$as_echo "$supported" >&6; }
18612		if test "$supported" = "yes" ; then
18613			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18614			found="yes"
18615		fi
18616	fi
18617
18618
18619fi
18620
18621
18622
18623
18624
18625
18626
18627		CWARNFLAGS="$BASE_CFLAGS"
18628		if  test "x$GCC" = xyes ; then
18629		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18630		fi
18631
18632
18633
18634
18635
18636
18637
18638
18639# Check whether --enable-strict-compilation was given.
18640if test "${enable_strict_compilation+set}" = set; then :
18641  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18642else
18643  STRICT_COMPILE=no
18644fi
18645
18646
18647
18648
18649
18650
18651STRICT_CFLAGS=""
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665xorg_testset_save_CFLAGS="$CFLAGS"
18666
18667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18668	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18669	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18670$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18671if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18672  $as_echo_n "(cached) " >&6
18673else
18674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18675/* end confdefs.h.  */
18676int i;
18677_ACEOF
18678if ac_fn_c_try_compile "$LINENO"; then :
18679  xorg_cv_cc_flag_unknown_warning_option=yes
18680else
18681  xorg_cv_cc_flag_unknown_warning_option=no
18682fi
18683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18684fi
18685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18686$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18688	CFLAGS="$xorg_testset_save_CFLAGS"
18689fi
18690
18691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18694	fi
18695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18697$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18698if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18699  $as_echo_n "(cached) " >&6
18700else
18701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702/* end confdefs.h.  */
18703int i;
18704_ACEOF
18705if ac_fn_c_try_compile "$LINENO"; then :
18706  xorg_cv_cc_flag_unused_command_line_argument=yes
18707else
18708  xorg_cv_cc_flag_unused_command_line_argument=no
18709fi
18710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711fi
18712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18713$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18714	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18715	CFLAGS="$xorg_testset_save_CFLAGS"
18716fi
18717
18718found="no"
18719
18720	if test $found = "no" ; then
18721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18723		fi
18724
18725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18727		fi
18728
18729		CFLAGS="$CFLAGS -pedantic"
18730
18731		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18732$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18733		cacheid=xorg_cv_cc_flag__pedantic
18734		if eval \${$cacheid+:} false; then :
18735  $as_echo_n "(cached) " >&6
18736else
18737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738/* end confdefs.h.  */
18739int i;
18740int
18741main ()
18742{
18743
18744  ;
18745  return 0;
18746}
18747_ACEOF
18748if ac_fn_c_try_link "$LINENO"; then :
18749  eval $cacheid=yes
18750else
18751  eval $cacheid=no
18752fi
18753rm -f core conftest.err conftest.$ac_objext \
18754    conftest$ac_exeext conftest.$ac_ext
18755fi
18756
18757
18758		CFLAGS="$xorg_testset_save_CFLAGS"
18759
18760		eval supported=\$$cacheid
18761		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18762$as_echo "$supported" >&6; }
18763		if test "$supported" = "yes" ; then
18764			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18765			found="yes"
18766		fi
18767	fi
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783xorg_testset_save_CFLAGS="$CFLAGS"
18784
18785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18786	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18788$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18789if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18790  $as_echo_n "(cached) " >&6
18791else
18792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18793/* end confdefs.h.  */
18794int i;
18795_ACEOF
18796if ac_fn_c_try_compile "$LINENO"; then :
18797  xorg_cv_cc_flag_unknown_warning_option=yes
18798else
18799  xorg_cv_cc_flag_unknown_warning_option=no
18800fi
18801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18802fi
18803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18804$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18805	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18806	CFLAGS="$xorg_testset_save_CFLAGS"
18807fi
18808
18809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18810	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18811		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18812	fi
18813	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18815$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18816if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18817  $as_echo_n "(cached) " >&6
18818else
18819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820/* end confdefs.h.  */
18821int i;
18822_ACEOF
18823if ac_fn_c_try_compile "$LINENO"; then :
18824  xorg_cv_cc_flag_unused_command_line_argument=yes
18825else
18826  xorg_cv_cc_flag_unused_command_line_argument=no
18827fi
18828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18829fi
18830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18831$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18833	CFLAGS="$xorg_testset_save_CFLAGS"
18834fi
18835
18836found="no"
18837
18838	if test $found = "no" ; then
18839		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18841		fi
18842
18843		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18845		fi
18846
18847		CFLAGS="$CFLAGS -Werror"
18848
18849		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18850$as_echo_n "checking if $CC supports -Werror... " >&6; }
18851		cacheid=xorg_cv_cc_flag__Werror
18852		if eval \${$cacheid+:} false; then :
18853  $as_echo_n "(cached) " >&6
18854else
18855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856/* end confdefs.h.  */
18857int i;
18858int
18859main ()
18860{
18861
18862  ;
18863  return 0;
18864}
18865_ACEOF
18866if ac_fn_c_try_link "$LINENO"; then :
18867  eval $cacheid=yes
18868else
18869  eval $cacheid=no
18870fi
18871rm -f core conftest.err conftest.$ac_objext \
18872    conftest$ac_exeext conftest.$ac_ext
18873fi
18874
18875
18876		CFLAGS="$xorg_testset_save_CFLAGS"
18877
18878		eval supported=\$$cacheid
18879		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18880$as_echo "$supported" >&6; }
18881		if test "$supported" = "yes" ; then
18882			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18883			found="yes"
18884		fi
18885	fi
18886
18887	if test $found = "no" ; then
18888		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18889			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18890		fi
18891
18892		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18893			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18894		fi
18895
18896		CFLAGS="$CFLAGS -errwarn"
18897
18898		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18899$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18900		cacheid=xorg_cv_cc_flag__errwarn
18901		if eval \${$cacheid+:} false; then :
18902  $as_echo_n "(cached) " >&6
18903else
18904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905/* end confdefs.h.  */
18906int i;
18907int
18908main ()
18909{
18910
18911  ;
18912  return 0;
18913}
18914_ACEOF
18915if ac_fn_c_try_link "$LINENO"; then :
18916  eval $cacheid=yes
18917else
18918  eval $cacheid=no
18919fi
18920rm -f core conftest.err conftest.$ac_objext \
18921    conftest$ac_exeext conftest.$ac_ext
18922fi
18923
18924
18925		CFLAGS="$xorg_testset_save_CFLAGS"
18926
18927		eval supported=\$$cacheid
18928		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18929$as_echo "$supported" >&6; }
18930		if test "$supported" = "yes" ; then
18931			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18932			found="yes"
18933		fi
18934	fi
18935
18936
18937
18938# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18939# activate it with -Werror, so we add it here explicitly.
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953xorg_testset_save_CFLAGS="$CFLAGS"
18954
18955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18960  $as_echo_n "(cached) " >&6
18961else
18962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963/* end confdefs.h.  */
18964int i;
18965_ACEOF
18966if ac_fn_c_try_compile "$LINENO"; then :
18967  xorg_cv_cc_flag_unknown_warning_option=yes
18968else
18969  xorg_cv_cc_flag_unknown_warning_option=no
18970fi
18971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18972fi
18973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18976	CFLAGS="$xorg_testset_save_CFLAGS"
18977fi
18978
18979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18982	fi
18983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18987  $as_echo_n "(cached) " >&6
18988else
18989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990/* end confdefs.h.  */
18991int i;
18992_ACEOF
18993if ac_fn_c_try_compile "$LINENO"; then :
18994  xorg_cv_cc_flag_unused_command_line_argument=yes
18995else
18996  xorg_cv_cc_flag_unused_command_line_argument=no
18997fi
18998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999fi
19000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19002	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19003	CFLAGS="$xorg_testset_save_CFLAGS"
19004fi
19005
19006found="no"
19007
19008	if test $found = "no" ; then
19009		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19010			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19011		fi
19012
19013		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19014			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19015		fi
19016
19017		CFLAGS="$CFLAGS -Werror=attributes"
19018
19019		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19020$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
19021		cacheid=xorg_cv_cc_flag__Werror_attributes
19022		if eval \${$cacheid+:} false; then :
19023  $as_echo_n "(cached) " >&6
19024else
19025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19026/* end confdefs.h.  */
19027int i;
19028int
19029main ()
19030{
19031
19032  ;
19033  return 0;
19034}
19035_ACEOF
19036if ac_fn_c_try_link "$LINENO"; then :
19037  eval $cacheid=yes
19038else
19039  eval $cacheid=no
19040fi
19041rm -f core conftest.err conftest.$ac_objext \
19042    conftest$ac_exeext conftest.$ac_ext
19043fi
19044
19045
19046		CFLAGS="$xorg_testset_save_CFLAGS"
19047
19048		eval supported=\$$cacheid
19049		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19050$as_echo "$supported" >&6; }
19051		if test "$supported" = "yes" ; then
19052			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19053			found="yes"
19054		fi
19055	fi
19056
19057
19058
19059if test "x$STRICT_COMPILE" = "xyes"; then
19060    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19061    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19062fi
19063
19064
19065
19066
19067
19068
19069cat >>confdefs.h <<_ACEOF
19070#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19071_ACEOF
19072
19073	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19074	if test "x$PVM" = "x"; then
19075		PVM="0"
19076	fi
19077
19078cat >>confdefs.h <<_ACEOF
19079#define PACKAGE_VERSION_MINOR $PVM
19080_ACEOF
19081
19082	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19083	if test "x$PVP" = "x"; then
19084		PVP="0"
19085	fi
19086
19087cat >>confdefs.h <<_ACEOF
19088#define PACKAGE_VERSION_PATCHLEVEL $PVP
19089_ACEOF
19090
19091
19092
19093CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
19094mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19095|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
19096echo 'git directory not found: installing possibly empty changelog.' >&2)"
19097
19098
19099
19100
19101macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19102INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19103mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19104|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
19105echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
19106
19107
19108
19109
19110
19111
19112if test x$APP_MAN_SUFFIX = x    ; then
19113    APP_MAN_SUFFIX=1
19114fi
19115if test x$APP_MAN_DIR = x    ; then
19116    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19117fi
19118
19119if test x$LIB_MAN_SUFFIX = x    ; then
19120    LIB_MAN_SUFFIX=3
19121fi
19122if test x$LIB_MAN_DIR = x    ; then
19123    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19124fi
19125
19126if test x$FILE_MAN_SUFFIX = x    ; then
19127    case $host_os in
19128	solaris*)	FILE_MAN_SUFFIX=4  ;;
19129	*)		FILE_MAN_SUFFIX=5  ;;
19130    esac
19131fi
19132if test x$FILE_MAN_DIR = x    ; then
19133    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19134fi
19135
19136if test x$MISC_MAN_SUFFIX = x    ; then
19137    case $host_os in
19138	solaris*)	MISC_MAN_SUFFIX=5  ;;
19139	*)		MISC_MAN_SUFFIX=7  ;;
19140    esac
19141fi
19142if test x$MISC_MAN_DIR = x    ; then
19143    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19144fi
19145
19146if test x$DRIVER_MAN_SUFFIX = x    ; then
19147    case $host_os in
19148	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
19149	*)		DRIVER_MAN_SUFFIX=4  ;;
19150    esac
19151fi
19152if test x$DRIVER_MAN_DIR = x    ; then
19153    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19154fi
19155
19156if test x$ADMIN_MAN_SUFFIX = x    ; then
19157    case $host_os in
19158	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
19159	*)		ADMIN_MAN_SUFFIX=8  ;;
19160    esac
19161fi
19162if test x$ADMIN_MAN_DIR = x    ; then
19163    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19164fi
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180XORG_MAN_PAGE="X Version 11"
19181
19182MAN_SUBSTS="\
19183	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19184	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19185	-e 's|__xservername__|Xorg|g' \
19186	-e 's|__xconfigfile__|xorg.conf|g' \
19187	-e 's|__projectroot__|\$(prefix)|g' \
19188	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19189	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19190	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19191	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19192	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19193	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19194	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19195
19196
19197
19198# Check whether --enable-silent-rules was given.
19199if test "${enable_silent_rules+set}" = set; then :
19200  enableval=$enable_silent_rules;
19201fi
19202
19203case $enable_silent_rules in # (((
19204  yes) AM_DEFAULT_VERBOSITY=0;;
19205   no) AM_DEFAULT_VERBOSITY=1;;
19206    *) AM_DEFAULT_VERBOSITY=0;;
19207esac
19208am_make=${MAKE-make}
19209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19210$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
19211if ${am_cv_make_support_nested_variables+:} false; then :
19212  $as_echo_n "(cached) " >&6
19213else
19214  if $as_echo 'TRUE=$(BAR$(V))
19215BAR0=false
19216BAR1=true
19217V=1
19218am__doit:
19219	@$(TRUE)
19220.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19221  am_cv_make_support_nested_variables=yes
19222else
19223  am_cv_make_support_nested_variables=no
19224fi
19225fi
19226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19227$as_echo "$am_cv_make_support_nested_variables" >&6; }
19228if test $am_cv_make_support_nested_variables = yes; then
19229    AM_V='$(V)'
19230  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19231else
19232  AM_V=$AM_DEFAULT_VERBOSITY
19233  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19234fi
19235AM_BACKSLASH='\'
19236
19237
19238
19239
19240# Check whether --enable-devel-docs was given.
19241if test "${enable_devel_docs+set}" = set; then :
19242  enableval=$enable_devel_docs; build_devel_docs=$enableval
19243else
19244  build_devel_docs=yes
19245fi
19246
19247
19248 if test x$build_devel_docs = xyes; then
19249  ENABLE_DEVEL_DOCS_TRUE=
19250  ENABLE_DEVEL_DOCS_FALSE='#'
19251else
19252  ENABLE_DEVEL_DOCS_TRUE='#'
19253  ENABLE_DEVEL_DOCS_FALSE=
19254fi
19255
19256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
19257$as_echo_n "checking whether to build developer documentation... " >&6; }
19258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
19259$as_echo "$build_devel_docs" >&6; }
19260
19261
19262
19263
19264
19265
19266# Check whether --with-doxygen was given.
19267if test "${with_doxygen+set}" = set; then :
19268  withval=$with_doxygen; use_doxygen=$withval
19269else
19270  use_doxygen=auto
19271fi
19272
19273
19274
19275if test "x$use_doxygen" = x"auto"; then
19276   # Extract the first word of "doxygen", so it can be a program name with args.
19277set dummy doxygen; ac_word=$2
19278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19279$as_echo_n "checking for $ac_word... " >&6; }
19280if ${ac_cv_path_DOXYGEN+:} false; then :
19281  $as_echo_n "(cached) " >&6
19282else
19283  case $DOXYGEN in
19284  [\\/]* | ?:[\\/]*)
19285  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19286  ;;
19287  *)
19288  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19289for as_dir in $PATH
19290do
19291  IFS=$as_save_IFS
19292  test -z "$as_dir" && as_dir=.
19293    for ac_exec_ext in '' $ac_executable_extensions; do
19294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19295    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19297    break 2
19298  fi
19299done
19300  done
19301IFS=$as_save_IFS
19302
19303  ;;
19304esac
19305fi
19306DOXYGEN=$ac_cv_path_DOXYGEN
19307if test -n "$DOXYGEN"; then
19308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19309$as_echo "$DOXYGEN" >&6; }
19310else
19311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19312$as_echo "no" >&6; }
19313fi
19314
19315
19316   if test "x$DOXYGEN" = "x"; then
19317        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
19318$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
19319	have_doxygen=no
19320   else
19321        have_doxygen=yes
19322   fi
19323elif test "x$use_doxygen" = x"yes" ; then
19324   # Extract the first word of "doxygen", so it can be a program name with args.
19325set dummy doxygen; ac_word=$2
19326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19327$as_echo_n "checking for $ac_word... " >&6; }
19328if ${ac_cv_path_DOXYGEN+:} false; then :
19329  $as_echo_n "(cached) " >&6
19330else
19331  case $DOXYGEN in
19332  [\\/]* | ?:[\\/]*)
19333  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19334  ;;
19335  *)
19336  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19337for as_dir in $PATH
19338do
19339  IFS=$as_save_IFS
19340  test -z "$as_dir" && as_dir=.
19341    for ac_exec_ext in '' $ac_executable_extensions; do
19342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19343    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19345    break 2
19346  fi
19347done
19348  done
19349IFS=$as_save_IFS
19350
19351  ;;
19352esac
19353fi
19354DOXYGEN=$ac_cv_path_DOXYGEN
19355if test -n "$DOXYGEN"; then
19356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19357$as_echo "$DOXYGEN" >&6; }
19358else
19359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19360$as_echo "no" >&6; }
19361fi
19362
19363
19364   if test "x$DOXYGEN" = "x"; then
19365        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
19366   fi
19367   have_doxygen=yes
19368elif test "x$use_doxygen" = x"no" ; then
19369   if test "x$DOXYGEN" != "x"; then
19370      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
19371$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
19372   fi
19373   have_doxygen=no
19374else
19375   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
19376fi
19377
19378
19379HAVE_DOT=no
19380if test "x$have_doxygen" = "xyes"; then
19381  # Extract the first word of "dot", so it can be a program name with args.
19382set dummy dot; ac_word=$2
19383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19384$as_echo_n "checking for $ac_word... " >&6; }
19385if ${ac_cv_path_DOT+:} false; then :
19386  $as_echo_n "(cached) " >&6
19387else
19388  case $DOT in
19389  [\\/]* | ?:[\\/]*)
19390  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19391  ;;
19392  *)
19393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19394for as_dir in $PATH
19395do
19396  IFS=$as_save_IFS
19397  test -z "$as_dir" && as_dir=.
19398    for ac_exec_ext in '' $ac_executable_extensions; do
19399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19400    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19402    break 2
19403  fi
19404done
19405  done
19406IFS=$as_save_IFS
19407
19408  ;;
19409esac
19410fi
19411DOT=$ac_cv_path_DOT
19412if test -n "$DOT"; then
19413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
19414$as_echo "$DOT" >&6; }
19415else
19416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19417$as_echo "no" >&6; }
19418fi
19419
19420
19421    if test "x$DOT" != "x"; then
19422      HAVE_DOT=yes
19423    fi
19424fi
19425
19426
19427 if test "$HAVE_DOT" = "yes"; then
19428  HAVE_DOT_TRUE=
19429  HAVE_DOT_FALSE='#'
19430else
19431  HAVE_DOT_TRUE='#'
19432  HAVE_DOT_FALSE=
19433fi
19434
19435 if test "$have_doxygen" = yes; then
19436  HAVE_DOXYGEN_TRUE=
19437  HAVE_DOXYGEN_FALSE='#'
19438else
19439  HAVE_DOXYGEN_TRUE='#'
19440  HAVE_DOXYGEN_FALSE=
19441fi
19442
19443
19444
19445# The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual
19446if test x"$HAVE_DOT" = xno; then
19447    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5
19448$as_echo "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;}
19449fi
19450
19451
19452pkg_failed=no
19453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
19454$as_echo_n "checking for CHECK... " >&6; }
19455
19456if test -n "$CHECK_CFLAGS"; then
19457    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
19458 elif test -n "$PKG_CONFIG"; then
19459    if test -n "$PKG_CONFIG" && \
19460    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
19461  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
19462  ac_status=$?
19463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19464  test $ac_status = 0; }; then
19465  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
19466		      test "x$?" != "x0" && pkg_failed=yes
19467else
19468  pkg_failed=yes
19469fi
19470 else
19471    pkg_failed=untried
19472fi
19473if test -n "$CHECK_LIBS"; then
19474    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
19475 elif test -n "$PKG_CONFIG"; then
19476    if test -n "$PKG_CONFIG" && \
19477    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
19478  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
19479  ac_status=$?
19480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19481  test $ac_status = 0; }; then
19482  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
19483		      test "x$?" != "x0" && pkg_failed=yes
19484else
19485  pkg_failed=yes
19486fi
19487 else
19488    pkg_failed=untried
19489fi
19490
19491
19492
19493if test $pkg_failed = yes; then
19494   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19495$as_echo "no" >&6; }
19496
19497if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19498        _pkg_short_errors_supported=yes
19499else
19500        _pkg_short_errors_supported=no
19501fi
19502        if test $_pkg_short_errors_supported = yes; then
19503	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
19504        else
19505	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
19506        fi
19507	# Put the nasty error message in config.log where it belongs
19508	echo "$CHECK_PKG_ERRORS" >&5
19509
19510	HAVE_CHECK=no
19511elif test $pkg_failed = untried; then
19512     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19513$as_echo "no" >&6; }
19514	HAVE_CHECK=no
19515else
19516	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
19517	CHECK_LIBS=$pkg_cv_CHECK_LIBS
19518        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19519$as_echo "yes" >&6; }
19520	HAVE_CHECK=yes
19521fi
19522 if test x$HAVE_CHECK = xyes; then
19523  HAVE_CHECK_TRUE=
19524  HAVE_CHECK_FALSE='#'
19525else
19526  HAVE_CHECK_TRUE='#'
19527  HAVE_CHECK_FALSE=
19528fi
19529
19530
19531XSLTPROC=no
19532HTML_CHECK_RESULT=no
19533if test x"$HAVE_CHECK" = xyes; then
19534        # Extract the first word of "xsltproc", so it can be a program name with args.
19535set dummy xsltproc; ac_word=$2
19536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19537$as_echo_n "checking for $ac_word... " >&6; }
19538if ${ac_cv_path_XSLTPROC+:} false; then :
19539  $as_echo_n "(cached) " >&6
19540else
19541  case $XSLTPROC in
19542  [\\/]* | ?:[\\/]*)
19543  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19544  ;;
19545  *)
19546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19547for as_dir in $PATH
19548do
19549  IFS=$as_save_IFS
19550  test -z "$as_dir" && as_dir=.
19551    for ac_exec_ext in '' $ac_executable_extensions; do
19552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19553    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19555    break 2
19556  fi
19557done
19558  done
19559IFS=$as_save_IFS
19560
19561  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
19562  ;;
19563esac
19564fi
19565XSLTPROC=$ac_cv_path_XSLTPROC
19566if test -n "$XSLTPROC"; then
19567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19568$as_echo "$XSLTPROC" >&6; }
19569else
19570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19571$as_echo "no" >&6; }
19572fi
19573
19574
19575        if test x"$XSLTPROC" != xno; then
19576                HTML_CHECK_RESULT=yes
19577        fi
19578fi
19579
19580
19581# Checks for pkg-config packages
19582
19583pkg_failed=no
19584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5
19585$as_echo_n "checking for XCBPROTO... " >&6; }
19586
19587if test -n "$XCBPROTO_CFLAGS"; then
19588    pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
19589 elif test -n "$PKG_CONFIG"; then
19590    if test -n "$PKG_CONFIG" && \
19591    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.13\""; } >&5
19592  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.13") 2>&5
19593  ac_status=$?
19594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19595  test $ac_status = 0; }; then
19596  pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.13" 2>/dev/null`
19597		      test "x$?" != "x0" && pkg_failed=yes
19598else
19599  pkg_failed=yes
19600fi
19601 else
19602    pkg_failed=untried
19603fi
19604if test -n "$XCBPROTO_LIBS"; then
19605    pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
19606 elif test -n "$PKG_CONFIG"; then
19607    if test -n "$PKG_CONFIG" && \
19608    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.13\""; } >&5
19609  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.13") 2>&5
19610  ac_status=$?
19611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19612  test $ac_status = 0; }; then
19613  pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.13" 2>/dev/null`
19614		      test "x$?" != "x0" && pkg_failed=yes
19615else
19616  pkg_failed=yes
19617fi
19618 else
19619    pkg_failed=untried
19620fi
19621
19622
19623
19624if test $pkg_failed = yes; then
19625   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19626$as_echo "no" >&6; }
19627
19628if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19629        _pkg_short_errors_supported=yes
19630else
19631        _pkg_short_errors_supported=no
19632fi
19633        if test $_pkg_short_errors_supported = yes; then
19634	        XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.13" 2>&1`
19635        else
19636	        XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.13" 2>&1`
19637        fi
19638	# Put the nasty error message in config.log where it belongs
19639	echo "$XCBPROTO_PKG_ERRORS" >&5
19640
19641	as_fn_error $? "Package requirements (xcb-proto >= 1.13) were not met:
19642
19643$XCBPROTO_PKG_ERRORS
19644
19645Consider adjusting the PKG_CONFIG_PATH environment variable if you
19646installed software in a non-standard prefix.
19647
19648Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19649and XCBPROTO_LIBS to avoid the need to call pkg-config.
19650See the pkg-config man page for more details." "$LINENO" 5
19651elif test $pkg_failed = untried; then
19652     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653$as_echo "no" >&6; }
19654	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19656as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19657is in your PATH or set the PKG_CONFIG environment variable to the full
19658path to pkg-config.
19659
19660Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19661and XCBPROTO_LIBS to avoid the need to call pkg-config.
19662See the pkg-config man page for more details.
19663
19664To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19665See \`config.log' for more details" "$LINENO" 5; }
19666else
19667	XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
19668	XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
19669        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19670$as_echo "yes" >&6; }
19671
19672fi
19673NEEDED="pthread-stubs xau >= 0.99.2"
19674
19675pkg_failed=no
19676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5
19677$as_echo_n "checking for NEEDED... " >&6; }
19678
19679if test -n "$NEEDED_CFLAGS"; then
19680    pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
19681 elif test -n "$PKG_CONFIG"; then
19682    if test -n "$PKG_CONFIG" && \
19683    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19684  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19685  ac_status=$?
19686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19687  test $ac_status = 0; }; then
19688  pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
19689		      test "x$?" != "x0" && pkg_failed=yes
19690else
19691  pkg_failed=yes
19692fi
19693 else
19694    pkg_failed=untried
19695fi
19696if test -n "$NEEDED_LIBS"; then
19697    pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
19698 elif test -n "$PKG_CONFIG"; then
19699    if test -n "$PKG_CONFIG" && \
19700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19701  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19702  ac_status=$?
19703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19704  test $ac_status = 0; }; then
19705  pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
19706		      test "x$?" != "x0" && pkg_failed=yes
19707else
19708  pkg_failed=yes
19709fi
19710 else
19711    pkg_failed=untried
19712fi
19713
19714
19715
19716if test $pkg_failed = yes; then
19717   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19718$as_echo "no" >&6; }
19719
19720if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19721        _pkg_short_errors_supported=yes
19722else
19723        _pkg_short_errors_supported=no
19724fi
19725        if test $_pkg_short_errors_supported = yes; then
19726	        NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1`
19727        else
19728	        NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1`
19729        fi
19730	# Put the nasty error message in config.log where it belongs
19731	echo "$NEEDED_PKG_ERRORS" >&5
19732
19733	as_fn_error $? "Package requirements ($NEEDED) were not met:
19734
19735$NEEDED_PKG_ERRORS
19736
19737Consider adjusting the PKG_CONFIG_PATH environment variable if you
19738installed software in a non-standard prefix.
19739
19740Alternatively, you may set the environment variables NEEDED_CFLAGS
19741and NEEDED_LIBS to avoid the need to call pkg-config.
19742See the pkg-config man page for more details." "$LINENO" 5
19743elif test $pkg_failed = untried; then
19744     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19745$as_echo "no" >&6; }
19746	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19748as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19749is in your PATH or set the PKG_CONFIG environment variable to the full
19750path to pkg-config.
19751
19752Alternatively, you may set the environment variables NEEDED_CFLAGS
19753and NEEDED_LIBS to avoid the need to call pkg-config.
19754See the pkg-config man page for more details.
19755
19756To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19757See \`config.log' for more details" "$LINENO" 5; }
19758else
19759	NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
19760	NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
19761        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19762$as_echo "yes" >&6; }
19763
19764fi
19765
19766have_xdmcp="no"
19767
19768pkg_failed=no
19769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
19770$as_echo_n "checking for XDMCP... " >&6; }
19771
19772if test -n "$XDMCP_CFLAGS"; then
19773    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
19774 elif test -n "$PKG_CONFIG"; then
19775    if test -n "$PKG_CONFIG" && \
19776    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19777  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19778  ac_status=$?
19779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19780  test $ac_status = 0; }; then
19781  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
19782		      test "x$?" != "x0" && pkg_failed=yes
19783else
19784  pkg_failed=yes
19785fi
19786 else
19787    pkg_failed=untried
19788fi
19789if test -n "$XDMCP_LIBS"; then
19790    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
19791 elif test -n "$PKG_CONFIG"; then
19792    if test -n "$PKG_CONFIG" && \
19793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19794  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19795  ac_status=$?
19796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19797  test $ac_status = 0; }; then
19798  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
19799		      test "x$?" != "x0" && pkg_failed=yes
19800else
19801  pkg_failed=yes
19802fi
19803 else
19804    pkg_failed=untried
19805fi
19806
19807
19808
19809if test $pkg_failed = yes; then
19810   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19811$as_echo "no" >&6; }
19812
19813if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19814        _pkg_short_errors_supported=yes
19815else
19816        _pkg_short_errors_supported=no
19817fi
19818        if test $_pkg_short_errors_supported = yes; then
19819	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
19820        else
19821	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
19822        fi
19823	# Put the nasty error message in config.log where it belongs
19824	echo "$XDMCP_PKG_ERRORS" >&5
19825
19826	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827$as_echo "no" >&6; }
19828elif test $pkg_failed = untried; then
19829     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19830$as_echo "no" >&6; }
19831	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19832$as_echo "no" >&6; }
19833else
19834	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
19835	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
19836        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19837$as_echo "yes" >&6; }
19838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
19839$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
19840if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
19841  $as_echo_n "(cached) " >&6
19842else
19843  ac_check_lib_save_LIBS=$LIBS
19844LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
19845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846/* end confdefs.h.  */
19847
19848/* Override any GCC internal prototype to avoid an error.
19849   Use char because int might match the return type of a GCC
19850   builtin and then its argument prototype would still apply.  */
19851#ifdef __cplusplus
19852extern "C"
19853#endif
19854char XdmcpWrap ();
19855int
19856main ()
19857{
19858return XdmcpWrap ();
19859  ;
19860  return 0;
19861}
19862_ACEOF
19863if ac_fn_c_try_link "$LINENO"; then :
19864  ac_cv_lib_Xdmcp_XdmcpWrap=yes
19865else
19866  ac_cv_lib_Xdmcp_XdmcpWrap=no
19867fi
19868rm -f core conftest.err conftest.$ac_objext \
19869    conftest$ac_exeext conftest.$ac_ext
19870LIBS=$ac_check_lib_save_LIBS
19871fi
19872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
19873$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
19874if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
19875
19876
19877$as_echo "#define HASXDMAUTH 1" >>confdefs.h
19878
19879                NEEDED="$NEEDED xdmcp"
19880                have_xdmcp="yes"
19881
19882else
19883
19884                XDMCP_CFLAGS=
19885                XDMCP_LIBS=
19886
19887fi
19888
19889fi
19890
19891
19892
19893# Find the xcb-proto protocol descriptions
19894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5
19895$as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; }
19896XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
19897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5
19898$as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; }
19899
19900
19901# Find the xcb-proto version
19902XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto`
19903
19904
19905# Find the xcbgen Python package
19906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5
19907$as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; }
19908XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
19909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5
19910$as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; }
19911
19912
19913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19914$as_echo_n "checking for ANSI C header files... " >&6; }
19915if ${ac_cv_header_stdc+:} false; then :
19916  $as_echo_n "(cached) " >&6
19917else
19918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919/* end confdefs.h.  */
19920#include <stdlib.h>
19921#include <stdarg.h>
19922#include <string.h>
19923#include <float.h>
19924
19925int
19926main ()
19927{
19928
19929  ;
19930  return 0;
19931}
19932_ACEOF
19933if ac_fn_c_try_compile "$LINENO"; then :
19934  ac_cv_header_stdc=yes
19935else
19936  ac_cv_header_stdc=no
19937fi
19938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939
19940if test $ac_cv_header_stdc = yes; then
19941  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19943/* end confdefs.h.  */
19944#include <string.h>
19945
19946_ACEOF
19947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19948  $EGREP "memchr" >/dev/null 2>&1; then :
19949
19950else
19951  ac_cv_header_stdc=no
19952fi
19953rm -f conftest*
19954
19955fi
19956
19957if test $ac_cv_header_stdc = yes; then
19958  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960/* end confdefs.h.  */
19961#include <stdlib.h>
19962
19963_ACEOF
19964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19965  $EGREP "free" >/dev/null 2>&1; then :
19966
19967else
19968  ac_cv_header_stdc=no
19969fi
19970rm -f conftest*
19971
19972fi
19973
19974if test $ac_cv_header_stdc = yes; then
19975  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19976  if test "$cross_compiling" = yes; then :
19977  :
19978else
19979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19980/* end confdefs.h.  */
19981#include <ctype.h>
19982#include <stdlib.h>
19983#if ((' ' & 0x0FF) == 0x020)
19984# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19985# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19986#else
19987# define ISLOWER(c) \
19988		   (('a' <= (c) && (c) <= 'i') \
19989		     || ('j' <= (c) && (c) <= 'r') \
19990		     || ('s' <= (c) && (c) <= 'z'))
19991# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19992#endif
19993
19994#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19995int
19996main ()
19997{
19998  int i;
19999  for (i = 0; i < 256; i++)
20000    if (XOR (islower (i), ISLOWER (i))
20001	|| toupper (i) != TOUPPER (i))
20002      return 2;
20003  return 0;
20004}
20005_ACEOF
20006if ac_fn_c_try_run "$LINENO"; then :
20007
20008else
20009  ac_cv_header_stdc=no
20010fi
20011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20012  conftest.$ac_objext conftest.beam conftest.$ac_ext
20013fi
20014
20015fi
20016fi
20017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20018$as_echo "$ac_cv_header_stdc" >&6; }
20019if test $ac_cv_header_stdc = yes; then
20020
20021$as_echo "#define STDC_HEADERS 1" >>confdefs.h
20022
20023fi
20024
20025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
20026$as_echo_n "checking for library containing getaddrinfo... " >&6; }
20027if ${ac_cv_search_getaddrinfo+:} false; then :
20028  $as_echo_n "(cached) " >&6
20029else
20030  ac_func_search_save_LIBS=$LIBS
20031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032/* end confdefs.h.  */
20033
20034/* Override any GCC internal prototype to avoid an error.
20035   Use char because int might match the return type of a GCC
20036   builtin and then its argument prototype would still apply.  */
20037#ifdef __cplusplus
20038extern "C"
20039#endif
20040char getaddrinfo ();
20041int
20042main ()
20043{
20044return getaddrinfo ();
20045  ;
20046  return 0;
20047}
20048_ACEOF
20049for ac_lib in '' socket; do
20050  if test -z "$ac_lib"; then
20051    ac_res="none required"
20052  else
20053    ac_res=-l$ac_lib
20054    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20055  fi
20056  if ac_fn_c_try_link "$LINENO"; then :
20057  ac_cv_search_getaddrinfo=$ac_res
20058fi
20059rm -f core conftest.err conftest.$ac_objext \
20060    conftest$ac_exeext
20061  if ${ac_cv_search_getaddrinfo+:} false; then :
20062  break
20063fi
20064done
20065if ${ac_cv_search_getaddrinfo+:} false; then :
20066
20067else
20068  ac_cv_search_getaddrinfo=no
20069fi
20070rm conftest.$ac_ext
20071LIBS=$ac_func_search_save_LIBS
20072fi
20073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
20074$as_echo "$ac_cv_search_getaddrinfo" >&6; }
20075ac_res=$ac_cv_search_getaddrinfo
20076if test "$ac_res" != no; then :
20077  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20078
20079fi
20080
20081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
20082$as_echo_n "checking for library containing connect... " >&6; }
20083if ${ac_cv_search_connect+:} false; then :
20084  $as_echo_n "(cached) " >&6
20085else
20086  ac_func_search_save_LIBS=$LIBS
20087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20088/* end confdefs.h.  */
20089
20090/* Override any GCC internal prototype to avoid an error.
20091   Use char because int might match the return type of a GCC
20092   builtin and then its argument prototype would still apply.  */
20093#ifdef __cplusplus
20094extern "C"
20095#endif
20096char connect ();
20097int
20098main ()
20099{
20100return connect ();
20101  ;
20102  return 0;
20103}
20104_ACEOF
20105for ac_lib in '' socket; do
20106  if test -z "$ac_lib"; then
20107    ac_res="none required"
20108  else
20109    ac_res=-l$ac_lib
20110    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20111  fi
20112  if ac_fn_c_try_link "$LINENO"; then :
20113  ac_cv_search_connect=$ac_res
20114fi
20115rm -f core conftest.err conftest.$ac_objext \
20116    conftest$ac_exeext
20117  if ${ac_cv_search_connect+:} false; then :
20118  break
20119fi
20120done
20121if ${ac_cv_search_connect+:} false; then :
20122
20123else
20124  ac_cv_search_connect=no
20125fi
20126rm conftest.$ac_ext
20127LIBS=$ac_func_search_save_LIBS
20128fi
20129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
20130$as_echo "$ac_cv_search_connect" >&6; }
20131ac_res=$ac_cv_search_connect
20132if test "$ac_res" != no; then :
20133  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20134
20135fi
20136
20137
20138# Find support for sending a message from a socket
20139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
20140$as_echo_n "checking for library containing sendmsg... " >&6; }
20141if ${ac_cv_search_sendmsg+:} false; then :
20142  $as_echo_n "(cached) " >&6
20143else
20144  ac_func_search_save_LIBS=$LIBS
20145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20146/* end confdefs.h.  */
20147
20148/* Override any GCC internal prototype to avoid an error.
20149   Use char because int might match the return type of a GCC
20150   builtin and then its argument prototype would still apply.  */
20151#ifdef __cplusplus
20152extern "C"
20153#endif
20154char sendmsg ();
20155int
20156main ()
20157{
20158return sendmsg ();
20159  ;
20160  return 0;
20161}
20162_ACEOF
20163for ac_lib in '' socket; do
20164  if test -z "$ac_lib"; then
20165    ac_res="none required"
20166  else
20167    ac_res=-l$ac_lib
20168    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20169  fi
20170  if ac_fn_c_try_link "$LINENO"; then :
20171  ac_cv_search_sendmsg=$ac_res
20172fi
20173rm -f core conftest.err conftest.$ac_objext \
20174    conftest$ac_exeext
20175  if ${ac_cv_search_sendmsg+:} false; then :
20176  break
20177fi
20178done
20179if ${ac_cv_search_sendmsg+:} false; then :
20180
20181else
20182  ac_cv_search_sendmsg=no
20183fi
20184rm conftest.$ac_ext
20185LIBS=$ac_func_search_save_LIBS
20186fi
20187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
20188$as_echo "$ac_cv_search_sendmsg" >&6; }
20189ac_res=$ac_cv_search_sendmsg
20190if test "$ac_res" != no; then :
20191  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20192  have_sendmsg="yes"
20193else
20194  have_sendmsg="no"
20195fi
20196
20197
20198# XPG4v2/UNIX95 added msg_control - check to see if we need to define
20199# _XOPEN_SOURCE to get it (such as on Solaris)
20200ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20201$ac_includes_default
20202#include <sys/socket.h>
20203
20204"
20205if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20206
20207fi
20208
20209# First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20210if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20211    unset ac_cv_member_struct_msghdr_msg_control
20212    { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20213$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20214    ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20215#define _XOPEN_SOURCE 600
20216$ac_includes_default
20217#include <sys/socket.h>
20218
20219"
20220if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20221
20222$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
20223
20224
20225fi
20226
20227fi
20228# If that didn't work, fall back to XPG5/UNIX98 with C89
20229if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20230    unset ac_cv_member_struct_msghdr_msg_control
20231    { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20232$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20233    ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20234#define _XOPEN_SOURCE 500
20235$ac_includes_default
20236#include <sys/socket.h>
20237
20238"
20239if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20240
20241$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
20242
20243
20244else
20245  have_sendmsg="no"
20246fi
20247
20248fi
20249
20250case x$have_sendmsg in
20251xyes)
20252
20253$as_echo "#define HAVE_SENDMSG 1" >>confdefs.h
20254
20255        ;;
20256esac
20257
20258have_win32="no"
20259lt_enable_auto_import=""
20260case $host_os in
20261mingw*)
20262        have_win32="yes"
20263        lt_enable_auto_import="-Wl,--enable-auto-import"
20264        ;;
20265linux*)
20266
20267$as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h
20268
20269        ;;
20270esac
20271
20272
20273 if test "x${have_win32}" = "xyes"; then
20274  XCB_HAVE_WIN32_TRUE=
20275  XCB_HAVE_WIN32_FALSE='#'
20276else
20277  XCB_HAVE_WIN32_TRUE='#'
20278  XCB_HAVE_WIN32_FALSE=
20279fi
20280
20281
20282
20283# Check whether --with-queue-size was given.
20284if test "${with_queue_size+set}" = set; then :
20285  withval=$with_queue_size; xcb_queue_buffer_size="$withval"
20286else
20287  xcb_queue_buffer_size=16384
20288fi
20289
20290
20291cat >>confdefs.h <<_ACEOF
20292#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size
20293_ACEOF
20294
20295
20296ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
20297                  #include <sys/un.h>
20298
20299"
20300if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20301
20302$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
20303
20304fi
20305
20306
20307for ac_header in tsol/label.h
20308do :
20309  ac_fn_c_check_header_mongrel "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default"
20310if test "x$ac_cv_header_tsol_label_h" = xyes; then :
20311  cat >>confdefs.h <<_ACEOF
20312#define HAVE_TSOL_LABEL_H 1
20313_ACEOF
20314
20315fi
20316
20317done
20318
20319for ac_func in is_system_labeled
20320do :
20321  ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled"
20322if test "x$ac_cv_func_is_system_labeled" = xyes; then :
20323  cat >>confdefs.h <<_ACEOF
20324#define HAVE_IS_SYSTEM_LABELED 1
20325_ACEOF
20326
20327fi
20328done
20329
20330
20331ac_fn_c_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h>
20332"
20333if test "x$ac_cv_have_decl_IOV_MAX" = xyes; then :
20334
20335else
20336  ac_fn_c_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h>
20337"
20338if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes; then :
20339  $as_echo "#define IOV_MAX UIO_MAXIOV" >>confdefs.h
20340
20341else
20342
20343$as_echo "#define IOV_MAX 16" >>confdefs.h
20344
20345fi
20346
20347fi
20348
20349
20350xcbincludedir='${includedir}/xcb'
20351
20352
20353
20354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5
20355$as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; }
20356
20357save_CFLAGS=${CFLAGS}
20358CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
20359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20360/* end confdefs.h.  */
20361
20362#pragma GCC visibility push(hidden)
20363extern void f(int);
20364#pragma GCC visibility pop
20365
20366int
20367main ()
20368{
20369
20370
20371  ;
20372  return 0;
20373}
20374_ACEOF
20375if ac_fn_c_try_compile "$LINENO"; then :
20376
20377$as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h
20378
20379    :
20380    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20381$as_echo "yes" >&6; }
20382else
20383  :
20384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20385$as_echo "no" >&6; }
20386fi
20387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20388
20389CFLAGS=${save_CFLAGS}
20390
20391
20392ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20393if test "x$ac_cv_func_getaddrinfo" = xyes; then :
20394
20395$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20396
20397fi
20398
20399
20400case $host_os in
20401        # darwin through Snow Leopard has poll() but can't be used to poll character devices.
20402        darwin[789]*|darwin10*) ;;
20403        darwin*)
20404                _ac_xorg_macosx_version_min=""
20405                if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
20406                        _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
20407                else
20408                        _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
20409                fi
20410                case $_ac_xorg_macosx_version_min in
20411                        10.[0123456]|10.[0123456].*) ;;
20412                        *)
20413                                ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20414if test "x$ac_cv_func_poll" = xyes; then :
20415
20416$as_echo "#define USE_POLL 1" >>confdefs.h
20417
20418fi
20419
20420                        ;;
20421                esac
20422                unset _ac_xorg_macosx_version_min
20423                ;;
20424        *)
20425                ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20426if test "x$ac_cv_func_poll" = xyes; then :
20427
20428$as_echo "#define USE_POLL 1" >>confdefs.h
20429
20430fi
20431
20432        ;;
20433esac
20434
20435case $host_os in
20436        *mingw*)
20437                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20438$as_echo_n "checking for main in -lws2_32... " >&6; }
20439if ${ac_cv_lib_ws2_32_main+:} false; then :
20440  $as_echo_n "(cached) " >&6
20441else
20442  ac_check_lib_save_LIBS=$LIBS
20443LIBS="-lws2_32  $LIBS"
20444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20445/* end confdefs.h.  */
20446
20447
20448int
20449main ()
20450{
20451return main ();
20452  ;
20453  return 0;
20454}
20455_ACEOF
20456if ac_fn_c_try_link "$LINENO"; then :
20457  ac_cv_lib_ws2_32_main=yes
20458else
20459  ac_cv_lib_ws2_32_main=no
20460fi
20461rm -f core conftest.err conftest.$ac_objext \
20462    conftest$ac_exeext conftest.$ac_ext
20463LIBS=$ac_check_lib_save_LIBS
20464fi
20465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20466$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
20467if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
20468  cat >>confdefs.h <<_ACEOF
20469#define HAVE_LIBWS2_32 1
20470_ACEOF
20471
20472  LIBS="-lws2_32 $LIBS"
20473
20474fi
20475
20476                ;;
20477        *)
20478                ;;
20479esac
20480
20481
20482# Check whether --enable-composite was given.
20483if test "${enable_composite+set}" = set; then :
20484  enableval=$enable_composite; BUILD_COMPOSITE=$enableval
20485else
20486  BUILD_COMPOSITE=yes
20487fi
20488
20489
20490
20491 if test "x$BUILD_COMPOSITE" = "xyes"; then
20492  BUILD_COMPOSITE_TRUE=
20493  BUILD_COMPOSITE_FALSE='#'
20494else
20495  BUILD_COMPOSITE_TRUE='#'
20496  BUILD_COMPOSITE_FALSE=
20497fi
20498
20499
20500
20501# Check whether --enable-damage was given.
20502if test "${enable_damage+set}" = set; then :
20503  enableval=$enable_damage; BUILD_DAMAGE=$enableval
20504else
20505  BUILD_DAMAGE=yes
20506fi
20507
20508
20509
20510 if test "x$BUILD_DAMAGE" = "xyes"; then
20511  BUILD_DAMAGE_TRUE=
20512  BUILD_DAMAGE_FALSE='#'
20513else
20514  BUILD_DAMAGE_TRUE='#'
20515  BUILD_DAMAGE_FALSE=
20516fi
20517
20518
20519
20520# Check whether --enable-dpms was given.
20521if test "${enable_dpms+set}" = set; then :
20522  enableval=$enable_dpms; BUILD_DPMS=$enableval
20523else
20524  BUILD_DPMS=yes
20525fi
20526
20527
20528
20529 if test "x$BUILD_DPMS" = "xyes"; then
20530  BUILD_DPMS_TRUE=
20531  BUILD_DPMS_FALSE='#'
20532else
20533  BUILD_DPMS_TRUE='#'
20534  BUILD_DPMS_FALSE=
20535fi
20536
20537
20538
20539# Check whether --enable-dri2 was given.
20540if test "${enable_dri2+set}" = set; then :
20541  enableval=$enable_dri2; BUILD_DRI2=$enableval
20542else
20543  BUILD_DRI2=yes
20544fi
20545
20546
20547
20548 if test "x$BUILD_DRI2" = "xyes"; then
20549  BUILD_DRI2_TRUE=
20550  BUILD_DRI2_FALSE='#'
20551else
20552  BUILD_DRI2_TRUE='#'
20553  BUILD_DRI2_FALSE=
20554fi
20555
20556
20557
20558# Check whether --enable-dri3 was given.
20559if test "${enable_dri3+set}" = set; then :
20560  enableval=$enable_dri3; BUILD_DRI3=$enableval
20561else
20562  BUILD_DRI3=auto
20563fi
20564
20565
20566# This extension has a default value of "auto" and depends on the value of $have_sendmsg
20567if test "x$BUILD_DRI3" = "xauto" ; then
20568    BUILD_DRI3=$have_sendmsg
20569fi
20570if test "x$BUILD_DRI3" = "xyes" ; then
20571    if test "x$have_sendmsg" = "xno" ; then
20572      as_fn_error $? "Extension DRI3 requested, but dependencies are not met" "$LINENO" 5
20573    fi
20574fi
20575
20576 if test "x$BUILD_DRI3" = "xyes"; then
20577  BUILD_DRI3_TRUE=
20578  BUILD_DRI3_FALSE='#'
20579else
20580  BUILD_DRI3_TRUE='#'
20581  BUILD_DRI3_FALSE=
20582fi
20583
20584
20585
20586# Check whether --enable-ge was given.
20587if test "${enable_ge+set}" = set; then :
20588  enableval=$enable_ge; BUILD_GE=$enableval
20589else
20590  BUILD_GE=no
20591fi
20592
20593
20594
20595 if test "x$BUILD_GE" = "xyes"; then
20596  BUILD_GE_TRUE=
20597  BUILD_GE_FALSE='#'
20598else
20599  BUILD_GE_TRUE='#'
20600  BUILD_GE_FALSE=
20601fi
20602
20603
20604
20605# Check whether --enable-glx was given.
20606if test "${enable_glx+set}" = set; then :
20607  enableval=$enable_glx; BUILD_GLX=$enableval
20608else
20609  BUILD_GLX=yes
20610fi
20611
20612
20613
20614 if test "x$BUILD_GLX" = "xyes"; then
20615  BUILD_GLX_TRUE=
20616  BUILD_GLX_FALSE='#'
20617else
20618  BUILD_GLX_TRUE='#'
20619  BUILD_GLX_FALSE=
20620fi
20621
20622
20623
20624# Check whether --enable-present was given.
20625if test "${enable_present+set}" = set; then :
20626  enableval=$enable_present; BUILD_PRESENT=$enableval
20627else
20628  BUILD_PRESENT=yes
20629fi
20630
20631
20632
20633 if test "x$BUILD_PRESENT" = "xyes"; then
20634  BUILD_PRESENT_TRUE=
20635  BUILD_PRESENT_FALSE='#'
20636else
20637  BUILD_PRESENT_TRUE='#'
20638  BUILD_PRESENT_FALSE=
20639fi
20640
20641
20642
20643# Check whether --enable-randr was given.
20644if test "${enable_randr+set}" = set; then :
20645  enableval=$enable_randr; BUILD_RANDR=$enableval
20646else
20647  BUILD_RANDR=yes
20648fi
20649
20650
20651
20652 if test "x$BUILD_RANDR" = "xyes"; then
20653  BUILD_RANDR_TRUE=
20654  BUILD_RANDR_FALSE='#'
20655else
20656  BUILD_RANDR_TRUE='#'
20657  BUILD_RANDR_FALSE=
20658fi
20659
20660
20661
20662# Check whether --enable-record was given.
20663if test "${enable_record+set}" = set; then :
20664  enableval=$enable_record; BUILD_RECORD=$enableval
20665else
20666  BUILD_RECORD=yes
20667fi
20668
20669
20670
20671 if test "x$BUILD_RECORD" = "xyes"; then
20672  BUILD_RECORD_TRUE=
20673  BUILD_RECORD_FALSE='#'
20674else
20675  BUILD_RECORD_TRUE='#'
20676  BUILD_RECORD_FALSE=
20677fi
20678
20679
20680
20681# Check whether --enable-render was given.
20682if test "${enable_render+set}" = set; then :
20683  enableval=$enable_render; BUILD_RENDER=$enableval
20684else
20685  BUILD_RENDER=yes
20686fi
20687
20688
20689
20690 if test "x$BUILD_RENDER" = "xyes"; then
20691  BUILD_RENDER_TRUE=
20692  BUILD_RENDER_FALSE='#'
20693else
20694  BUILD_RENDER_TRUE='#'
20695  BUILD_RENDER_FALSE=
20696fi
20697
20698
20699
20700# Check whether --enable-resource was given.
20701if test "${enable_resource+set}" = set; then :
20702  enableval=$enable_resource; BUILD_RESOURCE=$enableval
20703else
20704  BUILD_RESOURCE=yes
20705fi
20706
20707
20708
20709 if test "x$BUILD_RESOURCE" = "xyes"; then
20710  BUILD_RESOURCE_TRUE=
20711  BUILD_RESOURCE_FALSE='#'
20712else
20713  BUILD_RESOURCE_TRUE='#'
20714  BUILD_RESOURCE_FALSE=
20715fi
20716
20717
20718
20719# Check whether --enable-screensaver was given.
20720if test "${enable_screensaver+set}" = set; then :
20721  enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
20722else
20723  BUILD_SCREENSAVER=yes
20724fi
20725
20726
20727
20728 if test "x$BUILD_SCREENSAVER" = "xyes"; then
20729  BUILD_SCREENSAVER_TRUE=
20730  BUILD_SCREENSAVER_FALSE='#'
20731else
20732  BUILD_SCREENSAVER_TRUE='#'
20733  BUILD_SCREENSAVER_FALSE=
20734fi
20735
20736
20737
20738# Check whether --enable-shape was given.
20739if test "${enable_shape+set}" = set; then :
20740  enableval=$enable_shape; BUILD_SHAPE=$enableval
20741else
20742  BUILD_SHAPE=yes
20743fi
20744
20745
20746
20747 if test "x$BUILD_SHAPE" = "xyes"; then
20748  BUILD_SHAPE_TRUE=
20749  BUILD_SHAPE_FALSE='#'
20750else
20751  BUILD_SHAPE_TRUE='#'
20752  BUILD_SHAPE_FALSE=
20753fi
20754
20755
20756
20757# Check whether --enable-shm was given.
20758if test "${enable_shm+set}" = set; then :
20759  enableval=$enable_shm; BUILD_SHM=$enableval
20760else
20761  BUILD_SHM=yes
20762fi
20763
20764
20765
20766 if test "x$BUILD_SHM" = "xyes"; then
20767  BUILD_SHM_TRUE=
20768  BUILD_SHM_FALSE='#'
20769else
20770  BUILD_SHM_TRUE='#'
20771  BUILD_SHM_FALSE=
20772fi
20773
20774
20775
20776# Check whether --enable-sync was given.
20777if test "${enable_sync+set}" = set; then :
20778  enableval=$enable_sync; BUILD_SYNC=$enableval
20779else
20780  BUILD_SYNC=yes
20781fi
20782
20783
20784
20785 if test "x$BUILD_SYNC" = "xyes"; then
20786  BUILD_SYNC_TRUE=
20787  BUILD_SYNC_FALSE='#'
20788else
20789  BUILD_SYNC_TRUE='#'
20790  BUILD_SYNC_FALSE=
20791fi
20792
20793
20794
20795# Check whether --enable-xevie was given.
20796if test "${enable_xevie+set}" = set; then :
20797  enableval=$enable_xevie; BUILD_XEVIE=$enableval
20798else
20799  BUILD_XEVIE=no
20800fi
20801
20802
20803
20804 if test "x$BUILD_XEVIE" = "xyes"; then
20805  BUILD_XEVIE_TRUE=
20806  BUILD_XEVIE_FALSE='#'
20807else
20808  BUILD_XEVIE_TRUE='#'
20809  BUILD_XEVIE_FALSE=
20810fi
20811
20812
20813
20814# Check whether --enable-xfixes was given.
20815if test "${enable_xfixes+set}" = set; then :
20816  enableval=$enable_xfixes; BUILD_XFIXES=$enableval
20817else
20818  BUILD_XFIXES=yes
20819fi
20820
20821
20822
20823 if test "x$BUILD_XFIXES" = "xyes"; then
20824  BUILD_XFIXES_TRUE=
20825  BUILD_XFIXES_FALSE='#'
20826else
20827  BUILD_XFIXES_TRUE='#'
20828  BUILD_XFIXES_FALSE=
20829fi
20830
20831
20832
20833# Check whether --enable-xfree86-dri was given.
20834if test "${enable_xfree86_dri+set}" = set; then :
20835  enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
20836else
20837  BUILD_XFREE86_DRI=yes
20838fi
20839
20840
20841
20842 if test "x$BUILD_XFREE86_DRI" = "xyes"; then
20843  BUILD_XFREE86_DRI_TRUE=
20844  BUILD_XFREE86_DRI_FALSE='#'
20845else
20846  BUILD_XFREE86_DRI_TRUE='#'
20847  BUILD_XFREE86_DRI_FALSE=
20848fi
20849
20850
20851
20852# Check whether --enable-xinerama was given.
20853if test "${enable_xinerama+set}" = set; then :
20854  enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
20855else
20856  BUILD_XINERAMA=yes
20857fi
20858
20859
20860
20861 if test "x$BUILD_XINERAMA" = "xyes"; then
20862  BUILD_XINERAMA_TRUE=
20863  BUILD_XINERAMA_FALSE='#'
20864else
20865  BUILD_XINERAMA_TRUE='#'
20866  BUILD_XINERAMA_FALSE=
20867fi
20868
20869
20870
20871# Check whether --enable-xinput was given.
20872if test "${enable_xinput+set}" = set; then :
20873  enableval=$enable_xinput; BUILD_XINPUT=$enableval
20874else
20875  BUILD_XINPUT=yes
20876fi
20877
20878
20879
20880 if test "x$BUILD_XINPUT" = "xyes"; then
20881  BUILD_XINPUT_TRUE=
20882  BUILD_XINPUT_FALSE='#'
20883else
20884  BUILD_XINPUT_TRUE='#'
20885  BUILD_XINPUT_FALSE=
20886fi
20887
20888
20889
20890# Check whether --enable-xkb was given.
20891if test "${enable_xkb+set}" = set; then :
20892  enableval=$enable_xkb; BUILD_XKB=$enableval
20893else
20894  BUILD_XKB=yes
20895fi
20896
20897
20898
20899 if test "x$BUILD_XKB" = "xyes"; then
20900  BUILD_XKB_TRUE=
20901  BUILD_XKB_FALSE='#'
20902else
20903  BUILD_XKB_TRUE='#'
20904  BUILD_XKB_FALSE=
20905fi
20906
20907
20908
20909# Check whether --enable-xprint was given.
20910if test "${enable_xprint+set}" = set; then :
20911  enableval=$enable_xprint; BUILD_XPRINT=$enableval
20912else
20913  BUILD_XPRINT=no
20914fi
20915
20916
20917
20918 if test "x$BUILD_XPRINT" = "xyes"; then
20919  BUILD_XPRINT_TRUE=
20920  BUILD_XPRINT_FALSE='#'
20921else
20922  BUILD_XPRINT_TRUE='#'
20923  BUILD_XPRINT_FALSE=
20924fi
20925
20926
20927
20928# Check whether --enable-selinux was given.
20929if test "${enable_selinux+set}" = set; then :
20930  enableval=$enable_selinux; BUILD_SELINUX=$enableval
20931else
20932  BUILD_SELINUX=no
20933fi
20934
20935
20936
20937 if test "x$BUILD_SELINUX" = "xyes"; then
20938  BUILD_SELINUX_TRUE=
20939  BUILD_SELINUX_FALSE='#'
20940else
20941  BUILD_SELINUX_TRUE='#'
20942  BUILD_SELINUX_FALSE=
20943fi
20944
20945
20946
20947# Check whether --enable-xtest was given.
20948if test "${enable_xtest+set}" = set; then :
20949  enableval=$enable_xtest; BUILD_XTEST=$enableval
20950else
20951  BUILD_XTEST=yes
20952fi
20953
20954
20955
20956 if test "x$BUILD_XTEST" = "xyes"; then
20957  BUILD_XTEST_TRUE=
20958  BUILD_XTEST_FALSE='#'
20959else
20960  BUILD_XTEST_TRUE='#'
20961  BUILD_XTEST_FALSE=
20962fi
20963
20964
20965
20966# Check whether --enable-xv was given.
20967if test "${enable_xv+set}" = set; then :
20968  enableval=$enable_xv; BUILD_XV=$enableval
20969else
20970  BUILD_XV=yes
20971fi
20972
20973
20974
20975 if test "x$BUILD_XV" = "xyes"; then
20976  BUILD_XV_TRUE=
20977  BUILD_XV_FALSE='#'
20978else
20979  BUILD_XV_TRUE='#'
20980  BUILD_XV_FALSE=
20981fi
20982
20983
20984
20985# Check whether --enable-xvmc was given.
20986if test "${enable_xvmc+set}" = set; then :
20987  enableval=$enable_xvmc; BUILD_XVMC=$enableval
20988else
20989  BUILD_XVMC=yes
20990fi
20991
20992
20993
20994 if test "x$BUILD_XVMC" = "xyes"; then
20995  BUILD_XVMC_TRUE=
20996  BUILD_XVMC_FALSE='#'
20997else
20998  BUILD_XVMC_TRUE='#'
20999  BUILD_XVMC_FALSE=
21000fi
21001
21002
21003
21004
21005# Check whether --with-launchd was given.
21006if test "${with_launchd+set}" = set; then :
21007  withval=$with_launchd; LAUNCHD=$withval
21008else
21009  LAUNCHD=auto
21010fi
21011
21012if test "x$LAUNCHD" = xauto; then
21013        unset LAUNCHD
21014        # Extract the first word of "launchd", so it can be a program name with args.
21015set dummy launchd; ac_word=$2
21016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21017$as_echo_n "checking for $ac_word... " >&6; }
21018if ${ac_cv_prog_LAUNCHD+:} false; then :
21019  $as_echo_n "(cached) " >&6
21020else
21021  if test -n "$LAUNCHD"; then
21022  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
21023else
21024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21025for as_dir in $PATH$PATH_SEPARATOR/sbin
21026do
21027  IFS=$as_save_IFS
21028  test -z "$as_dir" && as_dir=.
21029    for ac_exec_ext in '' $ac_executable_extensions; do
21030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21031    ac_cv_prog_LAUNCHD="yes"
21032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21033    break 2
21034  fi
21035done
21036  done
21037IFS=$as_save_IFS
21038
21039  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
21040fi
21041fi
21042LAUNCHD=$ac_cv_prog_LAUNCHD
21043if test -n "$LAUNCHD"; then
21044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
21045$as_echo "$LAUNCHD" >&6; }
21046else
21047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21048$as_echo "no" >&6; }
21049fi
21050
21051
21052fi
21053
21054if test "x$LAUNCHD" = xyes ; then
21055
21056$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
21057
21058fi
21059
21060
21061# Check whether --with-serverside-support was given.
21062if test "${with_serverside_support+set}" = set; then :
21063  withval=$with_serverside_support; XCB_SERVERSIDE_SUPPORT=$withval
21064else
21065  XCB_SERVERSIDE_SUPPORT=no
21066fi
21067
21068
21069 if test "x$XCB_SERVERSIDE_SUPPORT" = "xyes"; then
21070  XCB_SERVERSIDE_SUPPORT_TRUE=
21071  XCB_SERVERSIDE_SUPPORT_FALSE='#'
21072else
21073  XCB_SERVERSIDE_SUPPORT_TRUE='#'
21074  XCB_SERVERSIDE_SUPPORT_FALSE=
21075fi
21076
21077
21078ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile"
21079
21080
21081ac_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"
21082
21083
21084ac_config_files="$ac_config_files doc/xcb.doxygen"
21085
21086
21087cat >confcache <<\_ACEOF
21088# This file is a shell script that caches the results of configure
21089# tests run on this system so they can be shared between configure
21090# scripts and configure runs, see configure's option --config-cache.
21091# It is not useful on other systems.  If it contains results you don't
21092# want to keep, you may remove or edit it.
21093#
21094# config.status only pays attention to the cache file if you give it
21095# the --recheck option to rerun configure.
21096#
21097# `ac_cv_env_foo' variables (set or unset) will be overridden when
21098# loading this file, other *unset* `ac_cv_foo' will be assigned the
21099# following values.
21100
21101_ACEOF
21102
21103# The following way of writing the cache mishandles newlines in values,
21104# but we know of no workaround that is simple, portable, and efficient.
21105# So, we kill variables containing newlines.
21106# Ultrix sh set writes to stderr and can't be redirected directly,
21107# and sets the high bit in the cache file unless we assign to the vars.
21108(
21109  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21110    eval ac_val=\$$ac_var
21111    case $ac_val in #(
21112    *${as_nl}*)
21113      case $ac_var in #(
21114      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21115$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21116      esac
21117      case $ac_var in #(
21118      _ | IFS | as_nl) ;; #(
21119      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21120      *) { eval $ac_var=; unset $ac_var;} ;;
21121      esac ;;
21122    esac
21123  done
21124
21125  (set) 2>&1 |
21126    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21127    *${as_nl}ac_space=\ *)
21128      # `set' does not quote correctly, so add quotes: double-quote
21129      # substitution turns \\\\ into \\, and sed turns \\ into \.
21130      sed -n \
21131	"s/'/'\\\\''/g;
21132	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21133      ;; #(
21134    *)
21135      # `set' quotes correctly as required by POSIX, so do not add quotes.
21136      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21137      ;;
21138    esac |
21139    sort
21140) |
21141  sed '
21142     /^ac_cv_env_/b end
21143     t clear
21144     :clear
21145     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21146     t end
21147     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21148     :end' >>confcache
21149if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21150  if test -w "$cache_file"; then
21151    if test "x$cache_file" != "x/dev/null"; then
21152      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21153$as_echo "$as_me: updating cache $cache_file" >&6;}
21154      if test ! -f "$cache_file" || test -h "$cache_file"; then
21155	cat confcache >"$cache_file"
21156      else
21157        case $cache_file in #(
21158        */* | ?:*)
21159	  mv -f confcache "$cache_file"$$ &&
21160	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21161        *)
21162	  mv -f confcache "$cache_file" ;;
21163	esac
21164      fi
21165    fi
21166  else
21167    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21168$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21169  fi
21170fi
21171rm -f confcache
21172
21173test "x$prefix" = xNONE && prefix=$ac_default_prefix
21174# Let make expand exec_prefix.
21175test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21176
21177DEFS=-DHAVE_CONFIG_H
21178
21179ac_libobjs=
21180ac_ltlibobjs=
21181U=
21182for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21183  # 1. Remove the extension, and $U if already installed.
21184  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21185  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21186  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21187  #    will be set to the directory where LIBOBJS objects are built.
21188  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21189  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21190done
21191LIBOBJS=$ac_libobjs
21192
21193LTLIBOBJS=$ac_ltlibobjs
21194
21195
21196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21197$as_echo_n "checking that generated files are newer than configure... " >&6; }
21198   if test -n "$am_sleep_pid"; then
21199     # Hide warnings about reused PIDs.
21200     wait $am_sleep_pid 2>/dev/null
21201   fi
21202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21203$as_echo "done" >&6; }
21204 if test -n "$EXEEXT"; then
21205  am__EXEEXT_TRUE=
21206  am__EXEEXT_FALSE='#'
21207else
21208  am__EXEEXT_TRUE='#'
21209  am__EXEEXT_FALSE=
21210fi
21211
21212if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21213  as_fn_error $? "conditional \"AMDEP\" was never defined.
21214Usually this means the macro was only invoked conditionally." "$LINENO" 5
21215fi
21216if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21217  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21218Usually this means the macro was only invoked conditionally." "$LINENO" 5
21219fi
21220if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
21221  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
21222Usually this means the macro was only invoked conditionally." "$LINENO" 5
21223fi
21224if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
21225  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
21226Usually this means the macro was only invoked conditionally." "$LINENO" 5
21227fi
21228if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
21229  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
21230Usually this means the macro was only invoked conditionally." "$LINENO" 5
21231fi
21232if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
21233  as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
21234Usually this means the macro was only invoked conditionally." "$LINENO" 5
21235fi
21236if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then
21237  as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined.
21238Usually this means the macro was only invoked conditionally." "$LINENO" 5
21239fi
21240if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
21241  as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined.
21242Usually this means the macro was only invoked conditionally." "$LINENO" 5
21243fi
21244if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
21245  as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined.
21246Usually this means the macro was only invoked conditionally." "$LINENO" 5
21247fi
21248if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
21249  as_fn_error $? "conditional \"BUILD_DPMS\" was never defined.
21250Usually this means the macro was only invoked conditionally." "$LINENO" 5
21251fi
21252if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then
21253  as_fn_error $? "conditional \"BUILD_DRI2\" was never defined.
21254Usually this means the macro was only invoked conditionally." "$LINENO" 5
21255fi
21256if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then
21257  as_fn_error $? "conditional \"BUILD_DRI3\" was never defined.
21258Usually this means the macro was only invoked conditionally." "$LINENO" 5
21259fi
21260if test -z "${BUILD_GE_TRUE}" && test -z "${BUILD_GE_FALSE}"; then
21261  as_fn_error $? "conditional \"BUILD_GE\" was never defined.
21262Usually this means the macro was only invoked conditionally." "$LINENO" 5
21263fi
21264if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
21265  as_fn_error $? "conditional \"BUILD_GLX\" was never defined.
21266Usually this means the macro was only invoked conditionally." "$LINENO" 5
21267fi
21268if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then
21269  as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined.
21270Usually this means the macro was only invoked conditionally." "$LINENO" 5
21271fi
21272if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
21273  as_fn_error $? "conditional \"BUILD_RANDR\" was never defined.
21274Usually this means the macro was only invoked conditionally." "$LINENO" 5
21275fi
21276if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
21277  as_fn_error $? "conditional \"BUILD_RECORD\" was never defined.
21278Usually this means the macro was only invoked conditionally." "$LINENO" 5
21279fi
21280if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
21281  as_fn_error $? "conditional \"BUILD_RENDER\" was never defined.
21282Usually this means the macro was only invoked conditionally." "$LINENO" 5
21283fi
21284if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
21285  as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined.
21286Usually this means the macro was only invoked conditionally." "$LINENO" 5
21287fi
21288if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
21289  as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined.
21290Usually this means the macro was only invoked conditionally." "$LINENO" 5
21291fi
21292if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
21293  as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined.
21294Usually this means the macro was only invoked conditionally." "$LINENO" 5
21295fi
21296if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
21297  as_fn_error $? "conditional \"BUILD_SHM\" was never defined.
21298Usually this means the macro was only invoked conditionally." "$LINENO" 5
21299fi
21300if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
21301  as_fn_error $? "conditional \"BUILD_SYNC\" was never defined.
21302Usually this means the macro was only invoked conditionally." "$LINENO" 5
21303fi
21304if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
21305  as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined.
21306Usually this means the macro was only invoked conditionally." "$LINENO" 5
21307fi
21308if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
21309  as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined.
21310Usually this means the macro was only invoked conditionally." "$LINENO" 5
21311fi
21312if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
21313  as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined.
21314Usually this means the macro was only invoked conditionally." "$LINENO" 5
21315fi
21316if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
21317  as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined.
21318Usually this means the macro was only invoked conditionally." "$LINENO" 5
21319fi
21320if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
21321  as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined.
21322Usually this means the macro was only invoked conditionally." "$LINENO" 5
21323fi
21324if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then
21325  as_fn_error $? "conditional \"BUILD_XKB\" was never defined.
21326Usually this means the macro was only invoked conditionally." "$LINENO" 5
21327fi
21328if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
21329  as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined.
21330Usually this means the macro was only invoked conditionally." "$LINENO" 5
21331fi
21332if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
21333  as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined.
21334Usually this means the macro was only invoked conditionally." "$LINENO" 5
21335fi
21336if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
21337  as_fn_error $? "conditional \"BUILD_XTEST\" was never defined.
21338Usually this means the macro was only invoked conditionally." "$LINENO" 5
21339fi
21340if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
21341  as_fn_error $? "conditional \"BUILD_XV\" was never defined.
21342Usually this means the macro was only invoked conditionally." "$LINENO" 5
21343fi
21344if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
21345  as_fn_error $? "conditional \"BUILD_XVMC\" was never defined.
21346Usually this means the macro was only invoked conditionally." "$LINENO" 5
21347fi
21348if test -z "${XCB_SERVERSIDE_SUPPORT_TRUE}" && test -z "${XCB_SERVERSIDE_SUPPORT_FALSE}"; then
21349  as_fn_error $? "conditional \"XCB_SERVERSIDE_SUPPORT\" was never defined.
21350Usually this means the macro was only invoked conditionally." "$LINENO" 5
21351fi
21352
21353: "${CONFIG_STATUS=./config.status}"
21354ac_write_fail=0
21355ac_clean_files_save=$ac_clean_files
21356ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21357{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21358$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21359as_write_fail=0
21360cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21361#! $SHELL
21362# Generated by $as_me.
21363# Run this file to recreate the current configuration.
21364# Compiler output produced by configure, useful for debugging
21365# configure, is in config.log if it exists.
21366
21367debug=false
21368ac_cs_recheck=false
21369ac_cs_silent=false
21370
21371SHELL=\${CONFIG_SHELL-$SHELL}
21372export SHELL
21373_ASEOF
21374cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21375## -------------------- ##
21376## M4sh Initialization. ##
21377## -------------------- ##
21378
21379# Be more Bourne compatible
21380DUALCASE=1; export DUALCASE # for MKS sh
21381if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21382  emulate sh
21383  NULLCMD=:
21384  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21385  # is contrary to our usage.  Disable this feature.
21386  alias -g '${1+"$@"}'='"$@"'
21387  setopt NO_GLOB_SUBST
21388else
21389  case `(set -o) 2>/dev/null` in #(
21390  *posix*) :
21391    set -o posix ;; #(
21392  *) :
21393     ;;
21394esac
21395fi
21396
21397
21398as_nl='
21399'
21400export as_nl
21401# Printing a long string crashes Solaris 7 /usr/bin/printf.
21402as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21403as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21404as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21405# Prefer a ksh shell builtin over an external printf program on Solaris,
21406# but without wasting forks for bash or zsh.
21407if test -z "$BASH_VERSION$ZSH_VERSION" \
21408    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21409  as_echo='print -r --'
21410  as_echo_n='print -rn --'
21411elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21412  as_echo='printf %s\n'
21413  as_echo_n='printf %s'
21414else
21415  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21416    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21417    as_echo_n='/usr/ucb/echo -n'
21418  else
21419    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21420    as_echo_n_body='eval
21421      arg=$1;
21422      case $arg in #(
21423      *"$as_nl"*)
21424	expr "X$arg" : "X\\(.*\\)$as_nl";
21425	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21426      esac;
21427      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21428    '
21429    export as_echo_n_body
21430    as_echo_n='sh -c $as_echo_n_body as_echo'
21431  fi
21432  export as_echo_body
21433  as_echo='sh -c $as_echo_body as_echo'
21434fi
21435
21436# The user is always right.
21437if test "${PATH_SEPARATOR+set}" != set; then
21438  PATH_SEPARATOR=:
21439  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21440    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21441      PATH_SEPARATOR=';'
21442  }
21443fi
21444
21445
21446# IFS
21447# We need space, tab and new line, in precisely that order.  Quoting is
21448# there to prevent editors from complaining about space-tab.
21449# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21450# splitting by setting IFS to empty value.)
21451IFS=" ""	$as_nl"
21452
21453# Find who we are.  Look in the path if we contain no directory separator.
21454as_myself=
21455case $0 in #((
21456  *[\\/]* ) as_myself=$0 ;;
21457  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21458for as_dir in $PATH
21459do
21460  IFS=$as_save_IFS
21461  test -z "$as_dir" && as_dir=.
21462    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21463  done
21464IFS=$as_save_IFS
21465
21466     ;;
21467esac
21468# We did not find ourselves, most probably we were run as `sh COMMAND'
21469# in which case we are not to be found in the path.
21470if test "x$as_myself" = x; then
21471  as_myself=$0
21472fi
21473if test ! -f "$as_myself"; then
21474  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21475  exit 1
21476fi
21477
21478# Unset variables that we do not need and which cause bugs (e.g. in
21479# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21480# suppresses any "Segmentation fault" message there.  '((' could
21481# trigger a bug in pdksh 5.2.14.
21482for as_var in BASH_ENV ENV MAIL MAILPATH
21483do eval test x\${$as_var+set} = xset \
21484  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21485done
21486PS1='$ '
21487PS2='> '
21488PS4='+ '
21489
21490# NLS nuisances.
21491LC_ALL=C
21492export LC_ALL
21493LANGUAGE=C
21494export LANGUAGE
21495
21496# CDPATH.
21497(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21498
21499
21500# as_fn_error STATUS ERROR [LINENO LOG_FD]
21501# ----------------------------------------
21502# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21503# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21504# script with STATUS, using 1 if that was 0.
21505as_fn_error ()
21506{
21507  as_status=$1; test $as_status -eq 0 && as_status=1
21508  if test "$4"; then
21509    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21510    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21511  fi
21512  $as_echo "$as_me: error: $2" >&2
21513  as_fn_exit $as_status
21514} # as_fn_error
21515
21516
21517# as_fn_set_status STATUS
21518# -----------------------
21519# Set $? to STATUS, without forking.
21520as_fn_set_status ()
21521{
21522  return $1
21523} # as_fn_set_status
21524
21525# as_fn_exit STATUS
21526# -----------------
21527# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21528as_fn_exit ()
21529{
21530  set +e
21531  as_fn_set_status $1
21532  exit $1
21533} # as_fn_exit
21534
21535# as_fn_unset VAR
21536# ---------------
21537# Portably unset VAR.
21538as_fn_unset ()
21539{
21540  { eval $1=; unset $1;}
21541}
21542as_unset=as_fn_unset
21543# as_fn_append VAR VALUE
21544# ----------------------
21545# Append the text in VALUE to the end of the definition contained in VAR. Take
21546# advantage of any shell optimizations that allow amortized linear growth over
21547# repeated appends, instead of the typical quadratic growth present in naive
21548# implementations.
21549if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21550  eval 'as_fn_append ()
21551  {
21552    eval $1+=\$2
21553  }'
21554else
21555  as_fn_append ()
21556  {
21557    eval $1=\$$1\$2
21558  }
21559fi # as_fn_append
21560
21561# as_fn_arith ARG...
21562# ------------------
21563# Perform arithmetic evaluation on the ARGs, and store the result in the
21564# global $as_val. Take advantage of shells that can avoid forks. The arguments
21565# must be portable across $(()) and expr.
21566if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21567  eval 'as_fn_arith ()
21568  {
21569    as_val=$(( $* ))
21570  }'
21571else
21572  as_fn_arith ()
21573  {
21574    as_val=`expr "$@" || test $? -eq 1`
21575  }
21576fi # as_fn_arith
21577
21578
21579if expr a : '\(a\)' >/dev/null 2>&1 &&
21580   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21581  as_expr=expr
21582else
21583  as_expr=false
21584fi
21585
21586if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21587  as_basename=basename
21588else
21589  as_basename=false
21590fi
21591
21592if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21593  as_dirname=dirname
21594else
21595  as_dirname=false
21596fi
21597
21598as_me=`$as_basename -- "$0" ||
21599$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21600	 X"$0" : 'X\(//\)$' \| \
21601	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21602$as_echo X/"$0" |
21603    sed '/^.*\/\([^/][^/]*\)\/*$/{
21604	    s//\1/
21605	    q
21606	  }
21607	  /^X\/\(\/\/\)$/{
21608	    s//\1/
21609	    q
21610	  }
21611	  /^X\/\(\/\).*/{
21612	    s//\1/
21613	    q
21614	  }
21615	  s/.*/./; q'`
21616
21617# Avoid depending upon Character Ranges.
21618as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21619as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21620as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21621as_cr_digits='0123456789'
21622as_cr_alnum=$as_cr_Letters$as_cr_digits
21623
21624ECHO_C= ECHO_N= ECHO_T=
21625case `echo -n x` in #(((((
21626-n*)
21627  case `echo 'xy\c'` in
21628  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21629  xy)  ECHO_C='\c';;
21630  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21631       ECHO_T='	';;
21632  esac;;
21633*)
21634  ECHO_N='-n';;
21635esac
21636
21637rm -f conf$$ conf$$.exe conf$$.file
21638if test -d conf$$.dir; then
21639  rm -f conf$$.dir/conf$$.file
21640else
21641  rm -f conf$$.dir
21642  mkdir conf$$.dir 2>/dev/null
21643fi
21644if (echo >conf$$.file) 2>/dev/null; then
21645  if ln -s conf$$.file conf$$ 2>/dev/null; then
21646    as_ln_s='ln -s'
21647    # ... but there are two gotchas:
21648    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21649    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21650    # In both cases, we have to default to `cp -pR'.
21651    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21652      as_ln_s='cp -pR'
21653  elif ln conf$$.file conf$$ 2>/dev/null; then
21654    as_ln_s=ln
21655  else
21656    as_ln_s='cp -pR'
21657  fi
21658else
21659  as_ln_s='cp -pR'
21660fi
21661rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21662rmdir conf$$.dir 2>/dev/null
21663
21664
21665# as_fn_mkdir_p
21666# -------------
21667# Create "$as_dir" as a directory, including parents if necessary.
21668as_fn_mkdir_p ()
21669{
21670
21671  case $as_dir in #(
21672  -*) as_dir=./$as_dir;;
21673  esac
21674  test -d "$as_dir" || eval $as_mkdir_p || {
21675    as_dirs=
21676    while :; do
21677      case $as_dir in #(
21678      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21679      *) as_qdir=$as_dir;;
21680      esac
21681      as_dirs="'$as_qdir' $as_dirs"
21682      as_dir=`$as_dirname -- "$as_dir" ||
21683$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21684	 X"$as_dir" : 'X\(//\)[^/]' \| \
21685	 X"$as_dir" : 'X\(//\)$' \| \
21686	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21687$as_echo X"$as_dir" |
21688    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21689	    s//\1/
21690	    q
21691	  }
21692	  /^X\(\/\/\)[^/].*/{
21693	    s//\1/
21694	    q
21695	  }
21696	  /^X\(\/\/\)$/{
21697	    s//\1/
21698	    q
21699	  }
21700	  /^X\(\/\).*/{
21701	    s//\1/
21702	    q
21703	  }
21704	  s/.*/./; q'`
21705      test -d "$as_dir" && break
21706    done
21707    test -z "$as_dirs" || eval "mkdir $as_dirs"
21708  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21709
21710
21711} # as_fn_mkdir_p
21712if mkdir -p . 2>/dev/null; then
21713  as_mkdir_p='mkdir -p "$as_dir"'
21714else
21715  test -d ./-p && rmdir ./-p
21716  as_mkdir_p=false
21717fi
21718
21719
21720# as_fn_executable_p FILE
21721# -----------------------
21722# Test if FILE is an executable regular file.
21723as_fn_executable_p ()
21724{
21725  test -f "$1" && test -x "$1"
21726} # as_fn_executable_p
21727as_test_x='test -x'
21728as_executable_p=as_fn_executable_p
21729
21730# Sed expression to map a string onto a valid CPP name.
21731as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21732
21733# Sed expression to map a string onto a valid variable name.
21734as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21735
21736
21737exec 6>&1
21738## ----------------------------------- ##
21739## Main body of $CONFIG_STATUS script. ##
21740## ----------------------------------- ##
21741_ASEOF
21742test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21743
21744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21745# Save the log message, to keep $0 and so on meaningful, and to
21746# report actual input values of CONFIG_FILES etc. instead of their
21747# values after options handling.
21748ac_log="
21749This file was extended by libxcb $as_me 1.13.1, which was
21750generated by GNU Autoconf 2.69.  Invocation command line was
21751
21752  CONFIG_FILES    = $CONFIG_FILES
21753  CONFIG_HEADERS  = $CONFIG_HEADERS
21754  CONFIG_LINKS    = $CONFIG_LINKS
21755  CONFIG_COMMANDS = $CONFIG_COMMANDS
21756  $ $0 $@
21757
21758on `(hostname || uname -n) 2>/dev/null | sed 1q`
21759"
21760
21761_ACEOF
21762
21763case $ac_config_files in *"
21764"*) set x $ac_config_files; shift; ac_config_files=$*;;
21765esac
21766
21767case $ac_config_headers in *"
21768"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21769esac
21770
21771
21772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21773# Files that config.status was made for.
21774config_files="$ac_config_files"
21775config_headers="$ac_config_headers"
21776config_commands="$ac_config_commands"
21777
21778_ACEOF
21779
21780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21781ac_cs_usage="\
21782\`$as_me' instantiates files and other configuration actions
21783from templates according to the current configuration.  Unless the files
21784and actions are specified as TAGs, all are instantiated by default.
21785
21786Usage: $0 [OPTION]... [TAG]...
21787
21788  -h, --help       print this help, then exit
21789  -V, --version    print version number and configuration settings, then exit
21790      --config     print configuration, then exit
21791  -q, --quiet, --silent
21792                   do not print progress messages
21793  -d, --debug      don't remove temporary files
21794      --recheck    update $as_me by reconfiguring in the same conditions
21795      --file=FILE[:TEMPLATE]
21796                   instantiate the configuration file FILE
21797      --header=FILE[:TEMPLATE]
21798                   instantiate the configuration header FILE
21799
21800Configuration files:
21801$config_files
21802
21803Configuration headers:
21804$config_headers
21805
21806Configuration commands:
21807$config_commands
21808
21809Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>."
21810
21811_ACEOF
21812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21813ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21814ac_cs_version="\\
21815libxcb config.status 1.13.1
21816configured by $0, generated by GNU Autoconf 2.69,
21817  with options \\"\$ac_cs_config\\"
21818
21819Copyright (C) 2012 Free Software Foundation, Inc.
21820This config.status script is free software; the Free Software Foundation
21821gives unlimited permission to copy, distribute and modify it."
21822
21823ac_pwd='$ac_pwd'
21824srcdir='$srcdir'
21825INSTALL='$INSTALL'
21826MKDIR_P='$MKDIR_P'
21827AWK='$AWK'
21828test -n "\$AWK" || AWK=awk
21829_ACEOF
21830
21831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21832# The default lists apply if the user does not specify any file.
21833ac_need_defaults=:
21834while test $# != 0
21835do
21836  case $1 in
21837  --*=?*)
21838    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21839    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21840    ac_shift=:
21841    ;;
21842  --*=)
21843    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21844    ac_optarg=
21845    ac_shift=:
21846    ;;
21847  *)
21848    ac_option=$1
21849    ac_optarg=$2
21850    ac_shift=shift
21851    ;;
21852  esac
21853
21854  case $ac_option in
21855  # Handling of the options.
21856  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21857    ac_cs_recheck=: ;;
21858  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21859    $as_echo "$ac_cs_version"; exit ;;
21860  --config | --confi | --conf | --con | --co | --c )
21861    $as_echo "$ac_cs_config"; exit ;;
21862  --debug | --debu | --deb | --de | --d | -d )
21863    debug=: ;;
21864  --file | --fil | --fi | --f )
21865    $ac_shift
21866    case $ac_optarg in
21867    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21868    '') as_fn_error $? "missing file argument" ;;
21869    esac
21870    as_fn_append CONFIG_FILES " '$ac_optarg'"
21871    ac_need_defaults=false;;
21872  --header | --heade | --head | --hea )
21873    $ac_shift
21874    case $ac_optarg in
21875    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21876    esac
21877    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21878    ac_need_defaults=false;;
21879  --he | --h)
21880    # Conflict between --help and --header
21881    as_fn_error $? "ambiguous option: \`$1'
21882Try \`$0 --help' for more information.";;
21883  --help | --hel | -h )
21884    $as_echo "$ac_cs_usage"; exit ;;
21885  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21886  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21887    ac_cs_silent=: ;;
21888
21889  # This is an error.
21890  -*) as_fn_error $? "unrecognized option: \`$1'
21891Try \`$0 --help' for more information." ;;
21892
21893  *) as_fn_append ac_config_targets " $1"
21894     ac_need_defaults=false ;;
21895
21896  esac
21897  shift
21898done
21899
21900ac_configure_extra_args=
21901
21902if $ac_cs_silent; then
21903  exec 6>/dev/null
21904  ac_configure_extra_args="$ac_configure_extra_args --silent"
21905fi
21906
21907_ACEOF
21908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21909if \$ac_cs_recheck; then
21910  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21911  shift
21912  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21913  CONFIG_SHELL='$SHELL'
21914  export CONFIG_SHELL
21915  exec "\$@"
21916fi
21917
21918_ACEOF
21919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21920exec 5>>config.log
21921{
21922  echo
21923  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21924## Running $as_me. ##
21925_ASBOX
21926  $as_echo "$ac_log"
21927} >&5
21928
21929_ACEOF
21930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21931#
21932# INIT-COMMANDS
21933#
21934AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21935
21936
21937# The HP-UX ksh and POSIX shell print the target directory to stdout
21938# if CDPATH is set.
21939(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21940
21941sed_quote_subst='$sed_quote_subst'
21942double_quote_subst='$double_quote_subst'
21943delay_variable_subst='$delay_variable_subst'
21944macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21945macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21946AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21947DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21948OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21949enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21950enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21951pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21952enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21953shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21954SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21955ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21956PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21957host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21958host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21959host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21960build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21961build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21962build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21963SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21964Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21965GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21966EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21967FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21968LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21969NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21970LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21971max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21972ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21973exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21974lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21975lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21976lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21977lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21978lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21979reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21980reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21981deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21982file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21983file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21984want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21985sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21986AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21987AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21988archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21989STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21990RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21991old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21992old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21993old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21994lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21995CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21996CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21997compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21998GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21999lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22000lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22001lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22002lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22003lt_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"`'
22004lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22005nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22006lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22007lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22008objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22009MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22010lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22011lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22012lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22013lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22014lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22015need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22016MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22017DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22018NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22019LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22020OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22021OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22022libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22023shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22024extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22025archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22026enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22027export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22028whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22029compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22030old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22031old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22032archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22033archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22034module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22035module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22036with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22037allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22038no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22039hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22040hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22041hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22042hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22043hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22044hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22045hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22046inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22047link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22048always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22049export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22050exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22051include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22052prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22053postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22054file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22055variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22056need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22057need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22058version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22059runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22060shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22061shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22062libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22063library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22064soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22065install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22066postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22067postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22068finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22069finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22070hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22071sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22072configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22073configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22074hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22075enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22076enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22077enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22078old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22079striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22080
22081LTCC='$LTCC'
22082LTCFLAGS='$LTCFLAGS'
22083compiler='$compiler_DEFAULT'
22084
22085# A function that is used when there is no print builtin or printf.
22086func_fallback_echo ()
22087{
22088  eval 'cat <<_LTECHO_EOF
22089\$1
22090_LTECHO_EOF'
22091}
22092
22093# Quote evaled strings.
22094for var in AS \
22095DLLTOOL \
22096OBJDUMP \
22097SHELL \
22098ECHO \
22099PATH_SEPARATOR \
22100SED \
22101GREP \
22102EGREP \
22103FGREP \
22104LD \
22105NM \
22106LN_S \
22107lt_SP2NL \
22108lt_NL2SP \
22109reload_flag \
22110deplibs_check_method \
22111file_magic_cmd \
22112file_magic_glob \
22113want_nocaseglob \
22114sharedlib_from_linklib_cmd \
22115AR \
22116AR_FLAGS \
22117archiver_list_spec \
22118STRIP \
22119RANLIB \
22120CC \
22121CFLAGS \
22122compiler \
22123lt_cv_sys_global_symbol_pipe \
22124lt_cv_sys_global_symbol_to_cdecl \
22125lt_cv_sys_global_symbol_to_import \
22126lt_cv_sys_global_symbol_to_c_name_address \
22127lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22128lt_cv_nm_interface \
22129nm_file_list_spec \
22130lt_cv_truncate_bin \
22131lt_prog_compiler_no_builtin_flag \
22132lt_prog_compiler_pic \
22133lt_prog_compiler_wl \
22134lt_prog_compiler_static \
22135lt_cv_prog_compiler_c_o \
22136need_locks \
22137MANIFEST_TOOL \
22138DSYMUTIL \
22139NMEDIT \
22140LIPO \
22141OTOOL \
22142OTOOL64 \
22143shrext_cmds \
22144export_dynamic_flag_spec \
22145whole_archive_flag_spec \
22146compiler_needs_object \
22147with_gnu_ld \
22148allow_undefined_flag \
22149no_undefined_flag \
22150hardcode_libdir_flag_spec \
22151hardcode_libdir_separator \
22152exclude_expsyms \
22153include_expsyms \
22154file_list_spec \
22155variables_saved_for_relink \
22156libname_spec \
22157library_names_spec \
22158soname_spec \
22159install_override_mode \
22160finish_eval \
22161old_striplib \
22162striplib; do
22163    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22164    *[\\\\\\\`\\"\\\$]*)
22165      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22166      ;;
22167    *)
22168      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22169      ;;
22170    esac
22171done
22172
22173# Double-quote double-evaled strings.
22174for var in reload_cmds \
22175old_postinstall_cmds \
22176old_postuninstall_cmds \
22177old_archive_cmds \
22178extract_expsyms_cmds \
22179old_archive_from_new_cmds \
22180old_archive_from_expsyms_cmds \
22181archive_cmds \
22182archive_expsym_cmds \
22183module_cmds \
22184module_expsym_cmds \
22185export_symbols_cmds \
22186prelink_cmds \
22187postlink_cmds \
22188postinstall_cmds \
22189postuninstall_cmds \
22190finish_cmds \
22191sys_lib_search_path_spec \
22192configure_time_dlsearch_path \
22193configure_time_lt_sys_library_path; do
22194    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22195    *[\\\\\\\`\\"\\\$]*)
22196      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22197      ;;
22198    *)
22199      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22200      ;;
22201    esac
22202done
22203
22204ac_aux_dir='$ac_aux_dir'
22205
22206# See if we are running on zsh, and set the options that allow our
22207# commands through without removal of \ escapes INIT.
22208if test -n "\${ZSH_VERSION+set}"; then
22209   setopt NO_GLOB_SUBST
22210fi
22211
22212
22213    PACKAGE='$PACKAGE'
22214    VERSION='$VERSION'
22215    RM='$RM'
22216    ofile='$ofile'
22217
22218
22219
22220
22221_ACEOF
22222
22223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22224
22225# Handling of arguments.
22226for ac_config_target in $ac_config_targets
22227do
22228  case $ac_config_target in
22229    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22230    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22231    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22232    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22233    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22234    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22235    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22236    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22237    "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
22238    "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
22239    "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
22240    "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
22241    "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;;
22242    "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;;
22243    "xcb-ge.pc") CONFIG_FILES="$CONFIG_FILES xcb-ge.pc" ;;
22244    "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
22245    "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;;
22246    "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
22247    "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
22248    "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
22249    "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
22250    "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
22251    "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
22252    "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
22253    "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
22254    "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
22255    "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
22256    "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
22257    "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
22258    "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
22259    "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;;
22260    "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
22261    "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
22262    "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
22263    "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
22264    "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
22265    "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
22266
22267  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22268  esac
22269done
22270
22271
22272# If the user did not use the arguments to specify the items to instantiate,
22273# then the envvar interface is used.  Set only those that are not.
22274# We use the long form for the default assignment because of an extremely
22275# bizarre bug on SunOS 4.1.3.
22276if $ac_need_defaults; then
22277  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22278  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22279  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22280fi
22281
22282# Have a temporary directory for convenience.  Make it in the build tree
22283# simply because there is no reason against having it here, and in addition,
22284# creating and moving files from /tmp can sometimes cause problems.
22285# Hook for its removal unless debugging.
22286# Note that there is a small window in which the directory will not be cleaned:
22287# after its creation but before its name has been assigned to `$tmp'.
22288$debug ||
22289{
22290  tmp= ac_tmp=
22291  trap 'exit_status=$?
22292  : "${ac_tmp:=$tmp}"
22293  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22294' 0
22295  trap 'as_fn_exit 1' 1 2 13 15
22296}
22297# Create a (secure) tmp directory for tmp files.
22298
22299{
22300  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22301  test -d "$tmp"
22302}  ||
22303{
22304  tmp=./conf$$-$RANDOM
22305  (umask 077 && mkdir "$tmp")
22306} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22307ac_tmp=$tmp
22308
22309# Set up the scripts for CONFIG_FILES section.
22310# No need to generate them if there are no CONFIG_FILES.
22311# This happens for instance with `./config.status config.h'.
22312if test -n "$CONFIG_FILES"; then
22313
22314
22315ac_cr=`echo X | tr X '\015'`
22316# On cygwin, bash can eat \r inside `` if the user requested igncr.
22317# But we know of no other shell where ac_cr would be empty at this
22318# point, so we can use a bashism as a fallback.
22319if test "x$ac_cr" = x; then
22320  eval ac_cr=\$\'\\r\'
22321fi
22322ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22323if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22324  ac_cs_awk_cr='\\r'
22325else
22326  ac_cs_awk_cr=$ac_cr
22327fi
22328
22329echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22330_ACEOF
22331
22332
22333{
22334  echo "cat >conf$$subs.awk <<_ACEOF" &&
22335  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22336  echo "_ACEOF"
22337} >conf$$subs.sh ||
22338  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22339ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22340ac_delim='%!_!# '
22341for ac_last_try in false false false false false :; do
22342  . ./conf$$subs.sh ||
22343    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22344
22345  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22346  if test $ac_delim_n = $ac_delim_num; then
22347    break
22348  elif $ac_last_try; then
22349    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22350  else
22351    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22352  fi
22353done
22354rm -f conf$$subs.sh
22355
22356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22357cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22358_ACEOF
22359sed -n '
22360h
22361s/^/S["/; s/!.*/"]=/
22362p
22363g
22364s/^[^!]*!//
22365:repl
22366t repl
22367s/'"$ac_delim"'$//
22368t delim
22369:nl
22370h
22371s/\(.\{148\}\)..*/\1/
22372t more1
22373s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22374p
22375n
22376b repl
22377:more1
22378s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22379p
22380g
22381s/.\{148\}//
22382t nl
22383:delim
22384h
22385s/\(.\{148\}\)..*/\1/
22386t more2
22387s/["\\]/\\&/g; s/^/"/; s/$/"/
22388p
22389b
22390:more2
22391s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22392p
22393g
22394s/.\{148\}//
22395t delim
22396' <conf$$subs.awk | sed '
22397/^[^""]/{
22398  N
22399  s/\n//
22400}
22401' >>$CONFIG_STATUS || ac_write_fail=1
22402rm -f conf$$subs.awk
22403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22404_ACAWK
22405cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22406  for (key in S) S_is_set[key] = 1
22407  FS = ""
22408
22409}
22410{
22411  line = $ 0
22412  nfields = split(line, field, "@")
22413  substed = 0
22414  len = length(field[1])
22415  for (i = 2; i < nfields; i++) {
22416    key = field[i]
22417    keylen = length(key)
22418    if (S_is_set[key]) {
22419      value = S[key]
22420      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22421      len += length(value) + length(field[++i])
22422      substed = 1
22423    } else
22424      len += 1 + keylen
22425  }
22426
22427  print line
22428}
22429
22430_ACAWK
22431_ACEOF
22432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22433if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22434  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22435else
22436  cat
22437fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22438  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22439_ACEOF
22440
22441# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22442# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22443# trailing colons and then remove the whole line if VPATH becomes empty
22444# (actually we leave an empty line to preserve line numbers).
22445if test "x$srcdir" = x.; then
22446  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22447h
22448s///
22449s/^/:/
22450s/[	 ]*$/:/
22451s/:\$(srcdir):/:/g
22452s/:\${srcdir}:/:/g
22453s/:@srcdir@:/:/g
22454s/^:*//
22455s/:*$//
22456x
22457s/\(=[	 ]*\).*/\1/
22458G
22459s/\n//
22460s/^[^=]*=[	 ]*$//
22461}'
22462fi
22463
22464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22465fi # test -n "$CONFIG_FILES"
22466
22467# Set up the scripts for CONFIG_HEADERS section.
22468# No need to generate them if there are no CONFIG_HEADERS.
22469# This happens for instance with `./config.status Makefile'.
22470if test -n "$CONFIG_HEADERS"; then
22471cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22472BEGIN {
22473_ACEOF
22474
22475# Transform confdefs.h into an awk script `defines.awk', embedded as
22476# here-document in config.status, that substitutes the proper values into
22477# config.h.in to produce config.h.
22478
22479# Create a delimiter string that does not exist in confdefs.h, to ease
22480# handling of long lines.
22481ac_delim='%!_!# '
22482for ac_last_try in false false :; do
22483  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22484  if test -z "$ac_tt"; then
22485    break
22486  elif $ac_last_try; then
22487    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22488  else
22489    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22490  fi
22491done
22492
22493# For the awk script, D is an array of macro values keyed by name,
22494# likewise P contains macro parameters if any.  Preserve backslash
22495# newline sequences.
22496
22497ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22498sed -n '
22499s/.\{148\}/&'"$ac_delim"'/g
22500t rset
22501:rset
22502s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22503t def
22504d
22505:def
22506s/\\$//
22507t bsnl
22508s/["\\]/\\&/g
22509s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22510D["\1"]=" \3"/p
22511s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22512d
22513:bsnl
22514s/["\\]/\\&/g
22515s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22516D["\1"]=" \3\\\\\\n"\\/p
22517t cont
22518s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22519t cont
22520d
22521:cont
22522n
22523s/.\{148\}/&'"$ac_delim"'/g
22524t clear
22525:clear
22526s/\\$//
22527t bsnlc
22528s/["\\]/\\&/g; s/^/"/; s/$/"/p
22529d
22530:bsnlc
22531s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22532b cont
22533' <confdefs.h | sed '
22534s/'"$ac_delim"'/"\\\
22535"/g' >>$CONFIG_STATUS || ac_write_fail=1
22536
22537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22538  for (key in D) D_is_set[key] = 1
22539  FS = ""
22540}
22541/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22542  line = \$ 0
22543  split(line, arg, " ")
22544  if (arg[1] == "#") {
22545    defundef = arg[2]
22546    mac1 = arg[3]
22547  } else {
22548    defundef = substr(arg[1], 2)
22549    mac1 = arg[2]
22550  }
22551  split(mac1, mac2, "(") #)
22552  macro = mac2[1]
22553  prefix = substr(line, 1, index(line, defundef) - 1)
22554  if (D_is_set[macro]) {
22555    # Preserve the white space surrounding the "#".
22556    print prefix "define", macro P[macro] D[macro]
22557    next
22558  } else {
22559    # Replace #undef with comments.  This is necessary, for example,
22560    # in the case of _POSIX_SOURCE, which is predefined and required
22561    # on some systems where configure will not decide to define it.
22562    if (defundef == "undef") {
22563      print "/*", prefix defundef, macro, "*/"
22564      next
22565    }
22566  }
22567}
22568{ print }
22569_ACAWK
22570_ACEOF
22571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22572  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22573fi # test -n "$CONFIG_HEADERS"
22574
22575
22576eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22577shift
22578for ac_tag
22579do
22580  case $ac_tag in
22581  :[FHLC]) ac_mode=$ac_tag; continue;;
22582  esac
22583  case $ac_mode$ac_tag in
22584  :[FHL]*:*);;
22585  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22586  :[FH]-) ac_tag=-:-;;
22587  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22588  esac
22589  ac_save_IFS=$IFS
22590  IFS=:
22591  set x $ac_tag
22592  IFS=$ac_save_IFS
22593  shift
22594  ac_file=$1
22595  shift
22596
22597  case $ac_mode in
22598  :L) ac_source=$1;;
22599  :[FH])
22600    ac_file_inputs=
22601    for ac_f
22602    do
22603      case $ac_f in
22604      -) ac_f="$ac_tmp/stdin";;
22605      *) # Look for the file first in the build tree, then in the source tree
22606	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22607	 # because $ac_f cannot contain `:'.
22608	 test -f "$ac_f" ||
22609	   case $ac_f in
22610	   [\\/$]*) false;;
22611	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22612	   esac ||
22613	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22614      esac
22615      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22616      as_fn_append ac_file_inputs " '$ac_f'"
22617    done
22618
22619    # Let's still pretend it is `configure' which instantiates (i.e., don't
22620    # use $as_me), people would be surprised to read:
22621    #    /* config.h.  Generated by config.status.  */
22622    configure_input='Generated from '`
22623	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22624	`' by configure.'
22625    if test x"$ac_file" != x-; then
22626      configure_input="$ac_file.  $configure_input"
22627      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22628$as_echo "$as_me: creating $ac_file" >&6;}
22629    fi
22630    # Neutralize special characters interpreted by sed in replacement strings.
22631    case $configure_input in #(
22632    *\&* | *\|* | *\\* )
22633       ac_sed_conf_input=`$as_echo "$configure_input" |
22634       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22635    *) ac_sed_conf_input=$configure_input;;
22636    esac
22637
22638    case $ac_tag in
22639    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22640      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22641    esac
22642    ;;
22643  esac
22644
22645  ac_dir=`$as_dirname -- "$ac_file" ||
22646$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22647	 X"$ac_file" : 'X\(//\)[^/]' \| \
22648	 X"$ac_file" : 'X\(//\)$' \| \
22649	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22650$as_echo X"$ac_file" |
22651    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22652	    s//\1/
22653	    q
22654	  }
22655	  /^X\(\/\/\)[^/].*/{
22656	    s//\1/
22657	    q
22658	  }
22659	  /^X\(\/\/\)$/{
22660	    s//\1/
22661	    q
22662	  }
22663	  /^X\(\/\).*/{
22664	    s//\1/
22665	    q
22666	  }
22667	  s/.*/./; q'`
22668  as_dir="$ac_dir"; as_fn_mkdir_p
22669  ac_builddir=.
22670
22671case "$ac_dir" in
22672.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22673*)
22674  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22675  # A ".." for each directory in $ac_dir_suffix.
22676  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22677  case $ac_top_builddir_sub in
22678  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22679  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22680  esac ;;
22681esac
22682ac_abs_top_builddir=$ac_pwd
22683ac_abs_builddir=$ac_pwd$ac_dir_suffix
22684# for backward compatibility:
22685ac_top_builddir=$ac_top_build_prefix
22686
22687case $srcdir in
22688  .)  # We are building in place.
22689    ac_srcdir=.
22690    ac_top_srcdir=$ac_top_builddir_sub
22691    ac_abs_top_srcdir=$ac_pwd ;;
22692  [\\/]* | ?:[\\/]* )  # Absolute name.
22693    ac_srcdir=$srcdir$ac_dir_suffix;
22694    ac_top_srcdir=$srcdir
22695    ac_abs_top_srcdir=$srcdir ;;
22696  *) # Relative name.
22697    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22698    ac_top_srcdir=$ac_top_build_prefix$srcdir
22699    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22700esac
22701ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22702
22703
22704  case $ac_mode in
22705  :F)
22706  #
22707  # CONFIG_FILE
22708  #
22709
22710  case $INSTALL in
22711  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22712  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22713  esac
22714  ac_MKDIR_P=$MKDIR_P
22715  case $MKDIR_P in
22716  [\\/$]* | ?:[\\/]* ) ;;
22717  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22718  esac
22719_ACEOF
22720
22721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22722# If the template does not know about datarootdir, expand it.
22723# FIXME: This hack should be removed a few years after 2.60.
22724ac_datarootdir_hack=; ac_datarootdir_seen=
22725ac_sed_dataroot='
22726/datarootdir/ {
22727  p
22728  q
22729}
22730/@datadir@/p
22731/@docdir@/p
22732/@infodir@/p
22733/@localedir@/p
22734/@mandir@/p'
22735case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22736*datarootdir*) ac_datarootdir_seen=yes;;
22737*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22738  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22739$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22740_ACEOF
22741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22742  ac_datarootdir_hack='
22743  s&@datadir@&$datadir&g
22744  s&@docdir@&$docdir&g
22745  s&@infodir@&$infodir&g
22746  s&@localedir@&$localedir&g
22747  s&@mandir@&$mandir&g
22748  s&\\\${datarootdir}&$datarootdir&g' ;;
22749esac
22750_ACEOF
22751
22752# Neutralize VPATH when `$srcdir' = `.'.
22753# Shell code in configure.ac might set extrasub.
22754# FIXME: do we really want to maintain this feature?
22755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22756ac_sed_extra="$ac_vpsub
22757$extrasub
22758_ACEOF
22759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22760:t
22761/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22762s|@configure_input@|$ac_sed_conf_input|;t t
22763s&@top_builddir@&$ac_top_builddir_sub&;t t
22764s&@top_build_prefix@&$ac_top_build_prefix&;t t
22765s&@srcdir@&$ac_srcdir&;t t
22766s&@abs_srcdir@&$ac_abs_srcdir&;t t
22767s&@top_srcdir@&$ac_top_srcdir&;t t
22768s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22769s&@builddir@&$ac_builddir&;t t
22770s&@abs_builddir@&$ac_abs_builddir&;t t
22771s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22772s&@INSTALL@&$ac_INSTALL&;t t
22773s&@MKDIR_P@&$ac_MKDIR_P&;t t
22774$ac_datarootdir_hack
22775"
22776eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22777  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22778
22779test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22780  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22781  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22782      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22783  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22784which seems to be undefined.  Please make sure it is defined" >&5
22785$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22786which seems to be undefined.  Please make sure it is defined" >&2;}
22787
22788  rm -f "$ac_tmp/stdin"
22789  case $ac_file in
22790  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22791  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22792  esac \
22793  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22794 ;;
22795  :H)
22796  #
22797  # CONFIG_HEADER
22798  #
22799  if test x"$ac_file" != x-; then
22800    {
22801      $as_echo "/* $configure_input  */" \
22802      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22803    } >"$ac_tmp/config.h" \
22804      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22805    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22806      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22807$as_echo "$as_me: $ac_file is unchanged" >&6;}
22808    else
22809      rm -f "$ac_file"
22810      mv "$ac_tmp/config.h" "$ac_file" \
22811	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22812    fi
22813  else
22814    $as_echo "/* $configure_input  */" \
22815      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22816      || as_fn_error $? "could not create -" "$LINENO" 5
22817  fi
22818# Compute "$ac_file"'s index in $config_headers.
22819_am_arg="$ac_file"
22820_am_stamp_count=1
22821for _am_header in $config_headers :; do
22822  case $_am_header in
22823    $_am_arg | $_am_arg:* )
22824      break ;;
22825    * )
22826      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22827  esac
22828done
22829echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22830$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22831	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22832	 X"$_am_arg" : 'X\(//\)$' \| \
22833	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22834$as_echo X"$_am_arg" |
22835    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22836	    s//\1/
22837	    q
22838	  }
22839	  /^X\(\/\/\)[^/].*/{
22840	    s//\1/
22841	    q
22842	  }
22843	  /^X\(\/\/\)$/{
22844	    s//\1/
22845	    q
22846	  }
22847	  /^X\(\/\).*/{
22848	    s//\1/
22849	    q
22850	  }
22851	  s/.*/./; q'`/stamp-h$_am_stamp_count
22852 ;;
22853
22854  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22855$as_echo "$as_me: executing $ac_file commands" >&6;}
22856 ;;
22857  esac
22858
22859
22860  case $ac_file$ac_mode in
22861    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22862  # Older Autoconf quotes --file arguments for eval, but not when files
22863  # are listed without --file.  Let's play safe and only enable the eval
22864  # if we detect the quoting.
22865  # TODO: see whether this extra hack can be removed once we start
22866  # requiring Autoconf 2.70 or later.
22867  case $CONFIG_FILES in #(
22868  *\'*) :
22869    eval set x "$CONFIG_FILES" ;; #(
22870  *) :
22871    set x $CONFIG_FILES ;; #(
22872  *) :
22873     ;;
22874esac
22875  shift
22876  # Used to flag and report bootstrapping failures.
22877  am_rc=0
22878  for am_mf
22879  do
22880    # Strip MF so we end up with the name of the file.
22881    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22882    # Check whether this is an Automake generated Makefile which includes
22883    # dependency-tracking related rules and includes.
22884    # Grep'ing the whole file directly is not great: AIX grep has a line
22885    # limit of 2048, but all sed's we know have understand at least 4000.
22886    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22887      || continue
22888    am_dirpart=`$as_dirname -- "$am_mf" ||
22889$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22890	 X"$am_mf" : 'X\(//\)[^/]' \| \
22891	 X"$am_mf" : 'X\(//\)$' \| \
22892	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22893$as_echo X"$am_mf" |
22894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22895	    s//\1/
22896	    q
22897	  }
22898	  /^X\(\/\/\)[^/].*/{
22899	    s//\1/
22900	    q
22901	  }
22902	  /^X\(\/\/\)$/{
22903	    s//\1/
22904	    q
22905	  }
22906	  /^X\(\/\).*/{
22907	    s//\1/
22908	    q
22909	  }
22910	  s/.*/./; q'`
22911    am_filepart=`$as_basename -- "$am_mf" ||
22912$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22913	 X"$am_mf" : 'X\(//\)$' \| \
22914	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22915$as_echo X/"$am_mf" |
22916    sed '/^.*\/\([^/][^/]*\)\/*$/{
22917	    s//\1/
22918	    q
22919	  }
22920	  /^X\/\(\/\/\)$/{
22921	    s//\1/
22922	    q
22923	  }
22924	  /^X\/\(\/\).*/{
22925	    s//\1/
22926	    q
22927	  }
22928	  s/.*/./; q'`
22929    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22930      && sed -e '/# am--include-marker/d' "$am_filepart" \
22931        | $MAKE -f - am--depfiles" >&5
22932   (cd "$am_dirpart" \
22933      && sed -e '/# am--include-marker/d' "$am_filepart" \
22934        | $MAKE -f - am--depfiles) >&5 2>&5
22935   ac_status=$?
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); } || am_rc=$?
22938  done
22939  if test $am_rc -ne 0; then
22940    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22942as_fn_error $? "Something went wrong bootstrapping makefile fragments
22943    for automatic dependency tracking.  Try re-running configure with the
22944    '--disable-dependency-tracking' option to at least be able to build
22945    the package (albeit without support for automatic dependency tracking).
22946See \`config.log' for more details" "$LINENO" 5; }
22947  fi
22948  { am_dirpart=; unset am_dirpart;}
22949  { am_filepart=; unset am_filepart;}
22950  { am_mf=; unset am_mf;}
22951  { am_rc=; unset am_rc;}
22952  rm -f conftest-deps.mk
22953}
22954 ;;
22955    "libtool":C)
22956
22957    # See if we are running on zsh, and set the options that allow our
22958    # commands through without removal of \ escapes.
22959    if test -n "${ZSH_VERSION+set}"; then
22960      setopt NO_GLOB_SUBST
22961    fi
22962
22963    cfgfile=${ofile}T
22964    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22965    $RM "$cfgfile"
22966
22967    cat <<_LT_EOF >> "$cfgfile"
22968#! $SHELL
22969# Generated automatically by $as_me ($PACKAGE) $VERSION
22970# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22971
22972# Provide generalized library-building support services.
22973# Written by Gordon Matzigkeit, 1996
22974
22975# Copyright (C) 2014 Free Software Foundation, Inc.
22976# This is free software; see the source for copying conditions.  There is NO
22977# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22978
22979# GNU Libtool is free software; you can redistribute it and/or modify
22980# it under the terms of the GNU General Public License as published by
22981# the Free Software Foundation; either version 2 of of the License, or
22982# (at your option) any later version.
22983#
22984# As a special exception to the GNU General Public License, if you
22985# distribute this file as part of a program or library that is built
22986# using GNU Libtool, you may include this file under the  same
22987# distribution terms that you use for the rest of that program.
22988#
22989# GNU Libtool is distributed in the hope that it will be useful, but
22990# WITHOUT ANY WARRANTY; without even the implied warranty of
22991# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22992# GNU General Public License for more details.
22993#
22994# You should have received a copy of the GNU General Public License
22995# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22996
22997
22998# The names of the tagged configurations supported by this script.
22999available_tags=''
23000
23001# Configured defaults for sys_lib_dlsearch_path munging.
23002: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23003
23004# ### BEGIN LIBTOOL CONFIG
23005
23006# Which release of libtool.m4 was used?
23007macro_version=$macro_version
23008macro_revision=$macro_revision
23009
23010# Assembler program.
23011AS=$lt_AS
23012
23013# DLL creation program.
23014DLLTOOL=$lt_DLLTOOL
23015
23016# Object dumper program.
23017OBJDUMP=$lt_OBJDUMP
23018
23019# Whether or not to build shared libraries.
23020build_libtool_libs=$enable_shared
23021
23022# Whether or not to build static libraries.
23023build_old_libs=$enable_static
23024
23025# What type of objects to build.
23026pic_mode=$pic_mode
23027
23028# Whether or not to optimize for fast installation.
23029fast_install=$enable_fast_install
23030
23031# Shared archive member basename,for filename based shared library versioning on AIX.
23032shared_archive_member_spec=$shared_archive_member_spec
23033
23034# Shell to use when invoking shell scripts.
23035SHELL=$lt_SHELL
23036
23037# An echo program that protects backslashes.
23038ECHO=$lt_ECHO
23039
23040# The PATH separator for the build system.
23041PATH_SEPARATOR=$lt_PATH_SEPARATOR
23042
23043# The host system.
23044host_alias=$host_alias
23045host=$host
23046host_os=$host_os
23047
23048# The build system.
23049build_alias=$build_alias
23050build=$build
23051build_os=$build_os
23052
23053# A sed program that does not truncate output.
23054SED=$lt_SED
23055
23056# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23057Xsed="\$SED -e 1s/^X//"
23058
23059# A grep program that handles long lines.
23060GREP=$lt_GREP
23061
23062# An ERE matcher.
23063EGREP=$lt_EGREP
23064
23065# A literal string matcher.
23066FGREP=$lt_FGREP
23067
23068# A BSD- or MS-compatible name lister.
23069NM=$lt_NM
23070
23071# Whether we need soft or hard links.
23072LN_S=$lt_LN_S
23073
23074# What is the maximum length of a command?
23075max_cmd_len=$max_cmd_len
23076
23077# Object file suffix (normally "o").
23078objext=$ac_objext
23079
23080# Executable file suffix (normally "").
23081exeext=$exeext
23082
23083# whether the shell understands "unset".
23084lt_unset=$lt_unset
23085
23086# turn spaces into newlines.
23087SP2NL=$lt_lt_SP2NL
23088
23089# turn newlines into spaces.
23090NL2SP=$lt_lt_NL2SP
23091
23092# convert \$build file names to \$host format.
23093to_host_file_cmd=$lt_cv_to_host_file_cmd
23094
23095# convert \$build files to toolchain format.
23096to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23097
23098# Method to check whether dependent libraries are shared objects.
23099deplibs_check_method=$lt_deplibs_check_method
23100
23101# Command to use when deplibs_check_method = "file_magic".
23102file_magic_cmd=$lt_file_magic_cmd
23103
23104# How to find potential files when deplibs_check_method = "file_magic".
23105file_magic_glob=$lt_file_magic_glob
23106
23107# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23108want_nocaseglob=$lt_want_nocaseglob
23109
23110# Command to associate shared and link libraries.
23111sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23112
23113# The archiver.
23114AR=$lt_AR
23115
23116# Flags to create an archive.
23117AR_FLAGS=$lt_AR_FLAGS
23118
23119# How to feed a file listing to the archiver.
23120archiver_list_spec=$lt_archiver_list_spec
23121
23122# A symbol stripping program.
23123STRIP=$lt_STRIP
23124
23125# Commands used to install an old-style archive.
23126RANLIB=$lt_RANLIB
23127old_postinstall_cmds=$lt_old_postinstall_cmds
23128old_postuninstall_cmds=$lt_old_postuninstall_cmds
23129
23130# Whether to use a lock for old archive extraction.
23131lock_old_archive_extraction=$lock_old_archive_extraction
23132
23133# A C compiler.
23134LTCC=$lt_CC
23135
23136# LTCC compiler flags.
23137LTCFLAGS=$lt_CFLAGS
23138
23139# Take the output of nm and produce a listing of raw symbols and C names.
23140global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23141
23142# Transform the output of nm in a proper C declaration.
23143global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23144
23145# Transform the output of nm into a list of symbols to manually relocate.
23146global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23147
23148# Transform the output of nm in a C name address pair.
23149global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23150
23151# Transform the output of nm in a C name address pair when lib prefix is needed.
23152global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23153
23154# The name lister interface.
23155nm_interface=$lt_lt_cv_nm_interface
23156
23157# Specify filename containing input files for \$NM.
23158nm_file_list_spec=$lt_nm_file_list_spec
23159
23160# The root where to search for dependent libraries,and where our libraries should be installed.
23161lt_sysroot=$lt_sysroot
23162
23163# Command to truncate a binary pipe.
23164lt_truncate_bin=$lt_lt_cv_truncate_bin
23165
23166# The name of the directory that contains temporary libtool files.
23167objdir=$objdir
23168
23169# Used to examine libraries when file_magic_cmd begins with "file".
23170MAGIC_CMD=$MAGIC_CMD
23171
23172# Must we lock files when doing compilation?
23173need_locks=$lt_need_locks
23174
23175# Manifest tool.
23176MANIFEST_TOOL=$lt_MANIFEST_TOOL
23177
23178# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23179DSYMUTIL=$lt_DSYMUTIL
23180
23181# Tool to change global to local symbols on Mac OS X.
23182NMEDIT=$lt_NMEDIT
23183
23184# Tool to manipulate fat objects and archives on Mac OS X.
23185LIPO=$lt_LIPO
23186
23187# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23188OTOOL=$lt_OTOOL
23189
23190# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23191OTOOL64=$lt_OTOOL64
23192
23193# Old archive suffix (normally "a").
23194libext=$libext
23195
23196# Shared library suffix (normally ".so").
23197shrext_cmds=$lt_shrext_cmds
23198
23199# The commands to extract the exported symbol list from a shared archive.
23200extract_expsyms_cmds=$lt_extract_expsyms_cmds
23201
23202# Variables whose values should be saved in libtool wrapper scripts and
23203# restored at link time.
23204variables_saved_for_relink=$lt_variables_saved_for_relink
23205
23206# Do we need the "lib" prefix for modules?
23207need_lib_prefix=$need_lib_prefix
23208
23209# Do we need a version for libraries?
23210need_version=$need_version
23211
23212# Library versioning type.
23213version_type=$version_type
23214
23215# Shared library runtime path variable.
23216runpath_var=$runpath_var
23217
23218# Shared library path variable.
23219shlibpath_var=$shlibpath_var
23220
23221# Is shlibpath searched before the hard-coded library search path?
23222shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23223
23224# Format of library name prefix.
23225libname_spec=$lt_libname_spec
23226
23227# List of archive names.  First name is the real one, the rest are links.
23228# The last name is the one that the linker finds with -lNAME
23229library_names_spec=$lt_library_names_spec
23230
23231# The coded name of the library, if different from the real name.
23232soname_spec=$lt_soname_spec
23233
23234# Permission mode override for installation of shared libraries.
23235install_override_mode=$lt_install_override_mode
23236
23237# Command to use after installation of a shared archive.
23238postinstall_cmds=$lt_postinstall_cmds
23239
23240# Command to use after uninstallation of a shared archive.
23241postuninstall_cmds=$lt_postuninstall_cmds
23242
23243# Commands used to finish a libtool library installation in a directory.
23244finish_cmds=$lt_finish_cmds
23245
23246# As "finish_cmds", except a single script fragment to be evaled but
23247# not shown.
23248finish_eval=$lt_finish_eval
23249
23250# Whether we should hardcode library paths into libraries.
23251hardcode_into_libs=$hardcode_into_libs
23252
23253# Compile-time system search path for libraries.
23254sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23255
23256# Detected run-time system search path for libraries.
23257sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23258
23259# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23260configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23261
23262# Whether dlopen is supported.
23263dlopen_support=$enable_dlopen
23264
23265# Whether dlopen of programs is supported.
23266dlopen_self=$enable_dlopen_self
23267
23268# Whether dlopen of statically linked programs is supported.
23269dlopen_self_static=$enable_dlopen_self_static
23270
23271# Commands to strip libraries.
23272old_striplib=$lt_old_striplib
23273striplib=$lt_striplib
23274
23275
23276# The linker used to build libraries.
23277LD=$lt_LD
23278
23279# How to create reloadable object files.
23280reload_flag=$lt_reload_flag
23281reload_cmds=$lt_reload_cmds
23282
23283# Commands used to build an old-style archive.
23284old_archive_cmds=$lt_old_archive_cmds
23285
23286# A language specific compiler.
23287CC=$lt_compiler
23288
23289# Is the compiler the GNU compiler?
23290with_gcc=$GCC
23291
23292# Compiler flag to turn off builtin functions.
23293no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23294
23295# Additional compiler flags for building library objects.
23296pic_flag=$lt_lt_prog_compiler_pic
23297
23298# How to pass a linker flag through the compiler.
23299wl=$lt_lt_prog_compiler_wl
23300
23301# Compiler flag to prevent dynamic linking.
23302link_static_flag=$lt_lt_prog_compiler_static
23303
23304# Does compiler simultaneously support -c and -o options?
23305compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23306
23307# Whether or not to add -lc for building shared libraries.
23308build_libtool_need_lc=$archive_cmds_need_lc
23309
23310# Whether or not to disallow shared libs when runtime libs are static.
23311allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23312
23313# Compiler flag to allow reflexive dlopens.
23314export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23315
23316# Compiler flag to generate shared objects directly from archives.
23317whole_archive_flag_spec=$lt_whole_archive_flag_spec
23318
23319# Whether the compiler copes with passing no objects directly.
23320compiler_needs_object=$lt_compiler_needs_object
23321
23322# Create an old-style archive from a shared archive.
23323old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23324
23325# Create a temporary old-style archive to link instead of a shared archive.
23326old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23327
23328# Commands used to build a shared archive.
23329archive_cmds=$lt_archive_cmds
23330archive_expsym_cmds=$lt_archive_expsym_cmds
23331
23332# Commands used to build a loadable module if different from building
23333# a shared archive.
23334module_cmds=$lt_module_cmds
23335module_expsym_cmds=$lt_module_expsym_cmds
23336
23337# Whether we are building with GNU ld or not.
23338with_gnu_ld=$lt_with_gnu_ld
23339
23340# Flag that allows shared libraries with undefined symbols to be built.
23341allow_undefined_flag=$lt_allow_undefined_flag
23342
23343# Flag that enforces no undefined symbols.
23344no_undefined_flag=$lt_no_undefined_flag
23345
23346# Flag to hardcode \$libdir into a binary during linking.
23347# This must work even if \$libdir does not exist
23348hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23349
23350# Whether we need a single "-rpath" flag with a separated argument.
23351hardcode_libdir_separator=$lt_hardcode_libdir_separator
23352
23353# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23354# DIR into the resulting binary.
23355hardcode_direct=$hardcode_direct
23356
23357# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23358# DIR into the resulting binary and the resulting library dependency is
23359# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23360# library is relocated.
23361hardcode_direct_absolute=$hardcode_direct_absolute
23362
23363# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23364# into the resulting binary.
23365hardcode_minus_L=$hardcode_minus_L
23366
23367# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23368# into the resulting binary.
23369hardcode_shlibpath_var=$hardcode_shlibpath_var
23370
23371# Set to "yes" if building a shared library automatically hardcodes DIR
23372# into the library and all subsequent libraries and executables linked
23373# against it.
23374hardcode_automatic=$hardcode_automatic
23375
23376# Set to yes if linker adds runtime paths of dependent libraries
23377# to runtime path list.
23378inherit_rpath=$inherit_rpath
23379
23380# Whether libtool must link a program against all its dependency libraries.
23381link_all_deplibs=$link_all_deplibs
23382
23383# Set to "yes" if exported symbols are required.
23384always_export_symbols=$always_export_symbols
23385
23386# The commands to list exported symbols.
23387export_symbols_cmds=$lt_export_symbols_cmds
23388
23389# Symbols that should not be listed in the preloaded symbols.
23390exclude_expsyms=$lt_exclude_expsyms
23391
23392# Symbols that must always be exported.
23393include_expsyms=$lt_include_expsyms
23394
23395# Commands necessary for linking programs (against libraries) with templates.
23396prelink_cmds=$lt_prelink_cmds
23397
23398# Commands necessary for finishing linking programs.
23399postlink_cmds=$lt_postlink_cmds
23400
23401# Specify filename containing input files.
23402file_list_spec=$lt_file_list_spec
23403
23404# How to hardcode a shared library path into an executable.
23405hardcode_action=$hardcode_action
23406
23407# ### END LIBTOOL CONFIG
23408
23409_LT_EOF
23410
23411    cat <<'_LT_EOF' >> "$cfgfile"
23412
23413# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23414
23415# func_munge_path_list VARIABLE PATH
23416# -----------------------------------
23417# VARIABLE is name of variable containing _space_ separated list of
23418# directories to be munged by the contents of PATH, which is string
23419# having a format:
23420# "DIR[:DIR]:"
23421#       string "DIR[ DIR]" will be prepended to VARIABLE
23422# ":DIR[:DIR]"
23423#       string "DIR[ DIR]" will be appended to VARIABLE
23424# "DIRP[:DIRP]::[DIRA:]DIRA"
23425#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23426#       "DIRA[ DIRA]" will be appended to VARIABLE
23427# "DIR[:DIR]"
23428#       VARIABLE will be replaced by "DIR[ DIR]"
23429func_munge_path_list ()
23430{
23431    case x$2 in
23432    x)
23433        ;;
23434    *:)
23435        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23436        ;;
23437    x:*)
23438        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23439        ;;
23440    *::*)
23441        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23442        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23443        ;;
23444    *)
23445        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23446        ;;
23447    esac
23448}
23449
23450
23451# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23452func_cc_basename ()
23453{
23454    for cc_temp in $*""; do
23455      case $cc_temp in
23456        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23457        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23458        \-*) ;;
23459        *) break;;
23460      esac
23461    done
23462    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23463}
23464
23465
23466# ### END FUNCTIONS SHARED WITH CONFIGURE
23467
23468_LT_EOF
23469
23470  case $host_os in
23471  aix3*)
23472    cat <<\_LT_EOF >> "$cfgfile"
23473# AIX sometimes has problems with the GCC collect2 program.  For some
23474# reason, if we set the COLLECT_NAMES environment variable, the problems
23475# vanish in a puff of smoke.
23476if test set != "${COLLECT_NAMES+set}"; then
23477  COLLECT_NAMES=
23478  export COLLECT_NAMES
23479fi
23480_LT_EOF
23481    ;;
23482  esac
23483
23484
23485ltmain=$ac_aux_dir/ltmain.sh
23486
23487
23488  # We use sed instead of cat because bash on DJGPP gets confused if
23489  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23490  # text mode, it properly converts lines to CR/LF.  This bash problem
23491  # is reportedly fixed, but why not run on old versions too?
23492  sed '$q' "$ltmain" >> "$cfgfile" \
23493     || (rm -f "$cfgfile"; exit 1)
23494
23495   mv -f "$cfgfile" "$ofile" ||
23496    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23497  chmod +x "$ofile"
23498
23499 ;;
23500
23501  esac
23502done # for ac_tag
23503
23504
23505as_fn_exit 0
23506_ACEOF
23507ac_clean_files=$ac_clean_files_save
23508
23509test $ac_write_fail = 0 ||
23510  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23511
23512
23513# configure is writing to config.log, and then calls config.status.
23514# config.status does its own redirection, appending to config.log.
23515# Unfortunately, on DOS this fails, as config.log is still kept open
23516# by configure, so config.status won't be able to write to it; its
23517# output is simply discarded.  So we exec the FD to /dev/null,
23518# effectively closing config.log, so it can be properly (re)opened and
23519# appended to by config.status.  When coming back to configure, we
23520# need to make the FD available again.
23521if test "$no_create" != yes; then
23522  ac_cs_success=:
23523  ac_config_status_args=
23524  test "$silent" = yes &&
23525    ac_config_status_args="$ac_config_status_args --quiet"
23526  exec 5>/dev/null
23527  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23528  exec 5>>config.log
23529  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23530  # would make configure fail if this is the last instruction.
23531  $ac_cs_success || as_fn_exit 1
23532fi
23533if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23534  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23535$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23536fi
23537
23538
23539
23540echo ""
23541echo "  Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
23542echo ""
23543echo "  Configuration"
23544echo "    XDM support.........: ${have_xdmcp}"
23545echo "    sendmsg fd passing..: ${have_sendmsg}"
23546echo "    Build unit tests....: ${HAVE_CHECK}"
23547echo "      with html results.: ${HTML_CHECK_RESULT}"
23548echo "    XCB buffer size.....: ${xcb_queue_buffer_size}"
23549echo ""
23550echo "  X11 extensions"
23551echo "    Composite...........: ${BUILD_COMPOSITE}"
23552echo "    Damage..............: ${BUILD_DAMAGE}"
23553echo "    Dpms................: ${BUILD_DPMS}"
23554echo "    Dri2................: ${BUILD_DRI2}"
23555echo "    Dri3................: ${BUILD_DRI3}"
23556echo "    GenericEvent........: ${BUILD_GE}"
23557echo "    Glx.................: ${BUILD_GLX}"
23558echo "    Randr...............: ${BUILD_RANDR}"
23559echo "    Record..............: ${BUILD_RECORD}"
23560echo "    Render..............: ${BUILD_RENDER}"
23561echo "    Resource............: ${BUILD_RESOURCE}"
23562echo "    Screensaver.........: ${BUILD_SCREENSAVER}"
23563echo "    selinux.............: ${BUILD_SELINUX}"
23564echo "    Shape...............: ${BUILD_SHAPE}"
23565echo "    Shm.................: ${BUILD_SHM}"
23566echo "    Sync................: ${BUILD_SYNC}"
23567echo "    Xevie...............: ${BUILD_XEVIE}"
23568echo "    Xfixes..............: ${BUILD_XFIXES}"
23569echo "    Xfree86-dri.........: ${BUILD_XFREE86_DRI}"
23570echo "    xinerama............: ${BUILD_XINERAMA}"
23571echo "    xinput..............: ${BUILD_XINPUT}"
23572echo "    xkb.................: ${BUILD_XKB}"
23573echo "    xprint..............: ${BUILD_XPRINT}"
23574echo "    xtest...............: ${BUILD_XTEST}"
23575echo "    xv..................: ${BUILD_XV}"
23576echo "    xvmc................: ${BUILD_XVMC}"
23577echo ""
23578echo "  Used CFLAGS:"
23579echo "    CPPFLAGS............: ${CPPFLAGS}"
23580echo "    CFLAGS..............: ${CFLAGS}"
23581echo ""
23582echo "  Installation:"
23583echo "    Prefix..............: ${prefix}"
23584echo ""
23585