1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xcb-util-image 0.4.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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&component=Utils
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='xcb-util-image'
593PACKAGE_TARNAME='xcb-util-image'
594PACKAGE_VERSION='0.4.0'
595PACKAGE_STRING='xcb-util-image 0.4.0'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
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_UTIL_LIBS
641XCB_UTIL_CFLAGS
642XPROTO_LIBS
643XPROTO_CFLAGS
644XCB_SHM_LIBS
645XCB_SHM_CFLAGS
646HAVE_SHM_FALSE
647HAVE_SHM_TRUE
648HAVE_DOXYGEN_FALSE
649HAVE_DOXYGEN_TRUE
650HAVE_DOT_FALSE
651HAVE_DOT_TRUE
652HAVE_DOT
653DOT
654DOXYGEN
655ENABLE_DEVEL_DOCS_FALSE
656ENABLE_DEVEL_DOCS_TRUE
657MAN_SUBSTS
658XORG_MAN_PAGE
659ADMIN_MAN_DIR
660DRIVER_MAN_DIR
661MISC_MAN_DIR
662FILE_MAN_DIR
663LIB_MAN_DIR
664APP_MAN_DIR
665ADMIN_MAN_SUFFIX
666DRIVER_MAN_SUFFIX
667MISC_MAN_SUFFIX
668FILE_MAN_SUFFIX
669LIB_MAN_SUFFIX
670APP_MAN_SUFFIX
671INSTALL_CMD
672CHANGELOG_CMD
673STRICT_CFLAGS
674CWARNFLAGS
675BASE_CFLAGS
676XCB_LIBS
677XCB_CFLAGS
678PKG_CONFIG_LIBDIR
679PKG_CONFIG_PATH
680PKG_CONFIG
681pkgconfigdir
682xcbincludedir
683CPP
684OTOOL64
685OTOOL
686LIPO
687NMEDIT
688DSYMUTIL
689MANIFEST_TOOL
690RANLIB
691ac_ct_AR
692AR
693DLLTOOL
694OBJDUMP
695LN_S
696NM
697ac_ct_DUMPBIN
698DUMPBIN
699LD
700FGREP
701EGREP
702GREP
703SED
704am__fastdepCC_FALSE
705am__fastdepCC_TRUE
706CCDEPMODE
707am__nodep
708AMDEPBACKSLASH
709AMDEP_FALSE
710AMDEP_TRUE
711am__quote
712am__include
713DEPDIR
714OBJEXT
715EXEEXT
716ac_ct_CC
717CPPFLAGS
718LDFLAGS
719CFLAGS
720CC
721host_os
722host_vendor
723host_cpu
724host
725build_os
726build_vendor
727build_cpu
728build
729LIBTOOL
730MAINT
731MAINTAINER_MODE_FALSE
732MAINTAINER_MODE_TRUE
733AM_BACKSLASH
734AM_DEFAULT_VERBOSITY
735AM_DEFAULT_V
736AM_V
737am__untar
738am__tar
739AMTAR
740am__leading_dot
741SET_MAKE
742AWK
743mkdir_p
744MKDIR_P
745INSTALL_STRIP_PROGRAM
746STRIP
747install_sh
748MAKEINFO
749AUTOHEADER
750AUTOMAKE
751AUTOCONF
752ACLOCAL
753VERSION
754PACKAGE
755CYGPATH_W
756am__isrc
757INSTALL_DATA
758INSTALL_SCRIPT
759INSTALL_PROGRAM
760target_alias
761host_alias
762build_alias
763LIBS
764ECHO_T
765ECHO_N
766ECHO_C
767DEFS
768mandir
769localedir
770libdir
771psdir
772pdfdir
773dvidir
774htmldir
775infodir
776docdir
777oldincludedir
778includedir
779localstatedir
780sharedstatedir
781sysconfdir
782datadir
783datarootdir
784libexecdir
785sbindir
786bindir
787program_transform_name
788prefix
789exec_prefix
790PACKAGE_URL
791PACKAGE_BUGREPORT
792PACKAGE_STRING
793PACKAGE_VERSION
794PACKAGE_TARNAME
795PACKAGE_NAME
796PATH_SEPARATOR
797SHELL'
798ac_subst_files=''
799ac_user_opts='
800enable_option_checking
801enable_silent_rules
802enable_maintainer_mode
803enable_shared
804enable_static
805with_pic
806enable_fast_install
807enable_dependency_tracking
808with_gnu_ld
809with_sysroot
810enable_libtool_lock
811enable_selective_werror
812enable_strict_compilation
813enable_devel_docs
814with_doxygen
815'
816      ac_precious_vars='build_alias
817host_alias
818target_alias
819CC
820CFLAGS
821LDFLAGS
822LIBS
823CPPFLAGS
824CPP
825PKG_CONFIG
826PKG_CONFIG_PATH
827PKG_CONFIG_LIBDIR
828XCB_CFLAGS
829XCB_LIBS
830DOXYGEN
831DOT
832XCB_SHM_CFLAGS
833XCB_SHM_LIBS
834XPROTO_CFLAGS
835XPROTO_LIBS
836XCB_UTIL_CFLAGS
837XCB_UTIL_LIBS'
838
839
840# Initialize some variables set by options.
841ac_init_help=
842ac_init_version=false
843ac_unrecognized_opts=
844ac_unrecognized_sep=
845# The variables have the same names as the options, with
846# dashes changed to underlines.
847cache_file=/dev/null
848exec_prefix=NONE
849no_create=
850no_recursion=
851prefix=NONE
852program_prefix=NONE
853program_suffix=NONE
854program_transform_name=s,x,x,
855silent=
856site=
857srcdir=
858verbose=
859x_includes=NONE
860x_libraries=NONE
861
862# Installation directory options.
863# These are left unexpanded so users can "make install exec_prefix=/foo"
864# and all the variables that are supposed to be based on exec_prefix
865# by default will actually change.
866# Use braces instead of parens because sh, perl, etc. also accept them.
867# (The list follows the same order as the GNU Coding Standards.)
868bindir='${exec_prefix}/bin'
869sbindir='${exec_prefix}/sbin'
870libexecdir='${exec_prefix}/libexec'
871datarootdir='${prefix}/share'
872datadir='${datarootdir}'
873sysconfdir='${prefix}/etc'
874sharedstatedir='${prefix}/com'
875localstatedir='${prefix}/var'
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
878docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
887
888ac_prev=
889ac_dashdash=
890for ac_option
891do
892  # If the previous option needs an argument, assign it.
893  if test -n "$ac_prev"; then
894    eval $ac_prev=\$ac_option
895    ac_prev=
896    continue
897  fi
898
899  case $ac_option in
900  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901  *=)   ac_optarg= ;;
902  *)    ac_optarg=yes ;;
903  esac
904
905  # Accept the important Cygnus configure options, so we can diagnose typos.
906
907  case $ac_dashdash$ac_option in
908  --)
909    ac_dashdash=yes ;;
910
911  -bindir | --bindir | --bindi | --bind | --bin | --bi)
912    ac_prev=bindir ;;
913  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914    bindir=$ac_optarg ;;
915
916  -build | --build | --buil | --bui | --bu)
917    ac_prev=build_alias ;;
918  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919    build_alias=$ac_optarg ;;
920
921  -cache-file | --cache-file | --cache-fil | --cache-fi \
922  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923    ac_prev=cache_file ;;
924  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926    cache_file=$ac_optarg ;;
927
928  --config-cache | -C)
929    cache_file=config.cache ;;
930
931  -datadir | --datadir | --datadi | --datad)
932    ac_prev=datadir ;;
933  -datadir=* | --datadir=* | --datadi=* | --datad=*)
934    datadir=$ac_optarg ;;
935
936  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937  | --dataroo | --dataro | --datar)
938    ac_prev=datarootdir ;;
939  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941    datarootdir=$ac_optarg ;;
942
943  -disable-* | --disable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: $ac_useropt"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=no ;;
958
959  -docdir | --docdir | --docdi | --doc | --do)
960    ac_prev=docdir ;;
961  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962    docdir=$ac_optarg ;;
963
964  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965    ac_prev=dvidir ;;
966  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967    dvidir=$ac_optarg ;;
968
969  -enable-* | --enable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: $ac_useropt"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=\$ac_optarg ;;
984
985  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987  | --exec | --exe | --ex)
988    ac_prev=exec_prefix ;;
989  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991  | --exec=* | --exe=* | --ex=*)
992    exec_prefix=$ac_optarg ;;
993
994  -gas | --gas | --ga | --g)
995    # Obsolete; use --with-gas.
996    with_gas=yes ;;
997
998  -help | --help | --hel | --he | -h)
999    ac_init_help=long ;;
1000  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001    ac_init_help=recursive ;;
1002  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003    ac_init_help=short ;;
1004
1005  -host | --host | --hos | --ho)
1006    ac_prev=host_alias ;;
1007  -host=* | --host=* | --hos=* | --ho=*)
1008    host_alias=$ac_optarg ;;
1009
1010  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011    ac_prev=htmldir ;;
1012  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013  | --ht=*)
1014    htmldir=$ac_optarg ;;
1015
1016  -includedir | --includedir | --includedi | --included | --include \
1017  | --includ | --inclu | --incl | --inc)
1018    ac_prev=includedir ;;
1019  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020  | --includ=* | --inclu=* | --incl=* | --inc=*)
1021    includedir=$ac_optarg ;;
1022
1023  -infodir | --infodir | --infodi | --infod | --info | --inf)
1024    ac_prev=infodir ;;
1025  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026    infodir=$ac_optarg ;;
1027
1028  -libdir | --libdir | --libdi | --libd)
1029    ac_prev=libdir ;;
1030  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031    libdir=$ac_optarg ;;
1032
1033  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034  | --libexe | --libex | --libe)
1035    ac_prev=libexecdir ;;
1036  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037  | --libexe=* | --libex=* | --libe=*)
1038    libexecdir=$ac_optarg ;;
1039
1040  -localedir | --localedir | --localedi | --localed | --locale)
1041    ac_prev=localedir ;;
1042  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043    localedir=$ac_optarg ;;
1044
1045  -localstatedir | --localstatedir | --localstatedi | --localstated \
1046  | --localstate | --localstat | --localsta | --localst | --locals)
1047    ac_prev=localstatedir ;;
1048  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050    localstatedir=$ac_optarg ;;
1051
1052  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053    ac_prev=mandir ;;
1054  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055    mandir=$ac_optarg ;;
1056
1057  -nfp | --nfp | --nf)
1058    # Obsolete; use --without-fp.
1059    with_fp=no ;;
1060
1061  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062  | --no-cr | --no-c | -n)
1063    no_create=yes ;;
1064
1065  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067    no_recursion=yes ;;
1068
1069  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071  | --oldin | --oldi | --old | --ol | --o)
1072    ac_prev=oldincludedir ;;
1073  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076    oldincludedir=$ac_optarg ;;
1077
1078  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079    ac_prev=prefix ;;
1080  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081    prefix=$ac_optarg ;;
1082
1083  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084  | --program-pre | --program-pr | --program-p)
1085    ac_prev=program_prefix ;;
1086  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088    program_prefix=$ac_optarg ;;
1089
1090  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091  | --program-suf | --program-su | --program-s)
1092    ac_prev=program_suffix ;;
1093  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095    program_suffix=$ac_optarg ;;
1096
1097  -program-transform-name | --program-transform-name \
1098  | --program-transform-nam | --program-transform-na \
1099  | --program-transform-n | --program-transform- \
1100  | --program-transform | --program-transfor \
1101  | --program-transfo | --program-transf \
1102  | --program-trans | --program-tran \
1103  | --progr-tra | --program-tr | --program-t)
1104    ac_prev=program_transform_name ;;
1105  -program-transform-name=* | --program-transform-name=* \
1106  | --program-transform-nam=* | --program-transform-na=* \
1107  | --program-transform-n=* | --program-transform-=* \
1108  | --program-transform=* | --program-transfor=* \
1109  | --program-transfo=* | --program-transf=* \
1110  | --program-trans=* | --program-tran=* \
1111  | --progr-tra=* | --program-tr=* | --program-t=*)
1112    program_transform_name=$ac_optarg ;;
1113
1114  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115    ac_prev=pdfdir ;;
1116  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117    pdfdir=$ac_optarg ;;
1118
1119  -psdir | --psdir | --psdi | --psd | --ps)
1120    ac_prev=psdir ;;
1121  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122    psdir=$ac_optarg ;;
1123
1124  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125  | -silent | --silent | --silen | --sile | --sil)
1126    silent=yes ;;
1127
1128  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129    ac_prev=sbindir ;;
1130  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131  | --sbi=* | --sb=*)
1132    sbindir=$ac_optarg ;;
1133
1134  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136  | --sharedst | --shareds | --shared | --share | --shar \
1137  | --sha | --sh)
1138    ac_prev=sharedstatedir ;;
1139  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142  | --sha=* | --sh=*)
1143    sharedstatedir=$ac_optarg ;;
1144
1145  -site | --site | --sit)
1146    ac_prev=site ;;
1147  -site=* | --site=* | --sit=*)
1148    site=$ac_optarg ;;
1149
1150  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151    ac_prev=srcdir ;;
1152  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153    srcdir=$ac_optarg ;;
1154
1155  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156  | --syscon | --sysco | --sysc | --sys | --sy)
1157    ac_prev=sysconfdir ;;
1158  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160    sysconfdir=$ac_optarg ;;
1161
1162  -target | --target | --targe | --targ | --tar | --ta | --t)
1163    ac_prev=target_alias ;;
1164  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165    target_alias=$ac_optarg ;;
1166
1167  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168    verbose=yes ;;
1169
1170  -version | --version | --versio | --versi | --vers | -V)
1171    ac_init_version=: ;;
1172
1173  -with-* | --with-*)
1174    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175    # Reject names that are not valid shell variable names.
1176    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177      as_fn_error $? "invalid package name: $ac_useropt"
1178    ac_useropt_orig=$ac_useropt
1179    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180    case $ac_user_opts in
1181      *"
1182"with_$ac_useropt"
1183"*) ;;
1184      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185	 ac_unrecognized_sep=', ';;
1186    esac
1187    eval with_$ac_useropt=\$ac_optarg ;;
1188
1189  -without-* | --without-*)
1190    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191    # Reject names that are not valid shell variable names.
1192    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193      as_fn_error $? "invalid package name: $ac_useropt"
1194    ac_useropt_orig=$ac_useropt
1195    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196    case $ac_user_opts in
1197      *"
1198"with_$ac_useropt"
1199"*) ;;
1200      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201	 ac_unrecognized_sep=', ';;
1202    esac
1203    eval with_$ac_useropt=no ;;
1204
1205  --x)
1206    # Obsolete; use --with-x.
1207    with_x=yes ;;
1208
1209  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210  | --x-incl | --x-inc | --x-in | --x-i)
1211    ac_prev=x_includes ;;
1212  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214    x_includes=$ac_optarg ;;
1215
1216  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218    ac_prev=x_libraries ;;
1219  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221    x_libraries=$ac_optarg ;;
1222
1223  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224Try \`$0 --help' for more information"
1225    ;;
1226
1227  *=*)
1228    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229    # Reject names that are not valid shell variable names.
1230    case $ac_envvar in #(
1231      '' | [0-9]* | *[!_$as_cr_alnum]* )
1232      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233    esac
1234    eval $ac_envvar=\$ac_optarg
1235    export $ac_envvar ;;
1236
1237  *)
1238    # FIXME: should be removed in autoconf 3.0.
1239    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243    ;;
1244
1245  esac
1246done
1247
1248if test -n "$ac_prev"; then
1249  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250  as_fn_error $? "missing argument to $ac_option"
1251fi
1252
1253if test -n "$ac_unrecognized_opts"; then
1254  case $enable_option_checking in
1255    no) ;;
1256    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258  esac
1259fi
1260
1261# Check all directory arguments for consistency.
1262for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263		datadir sysconfdir sharedstatedir localstatedir includedir \
1264		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265		libdir localedir mandir
1266do
1267  eval ac_val=\$$ac_var
1268  # Remove trailing slashes.
1269  case $ac_val in
1270    */ )
1271      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272      eval $ac_var=\$ac_val;;
1273  esac
1274  # Be sure to have absolute directory names.
1275  case $ac_val in
1276    [\\/$]* | ?:[\\/]* )  continue;;
1277    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278  esac
1279  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280done
1281
1282# There might be people who depend on the old broken behavior: `$host'
1283# used to hold the argument of --host etc.
1284# FIXME: To remove some day.
1285build=$build_alias
1286host=$host_alias
1287target=$target_alias
1288
1289# FIXME: To remove some day.
1290if test "x$host_alias" != x; then
1291  if test "x$build_alias" = x; then
1292    cross_compiling=maybe
1293  elif test "x$build_alias" != "x$host_alias"; then
1294    cross_compiling=yes
1295  fi
1296fi
1297
1298ac_tool_prefix=
1299test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301test "$silent" = yes && exec 6>/dev/null
1302
1303
1304ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305ac_ls_di=`ls -di .` &&
1306ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307  as_fn_error $? "working directory cannot be determined"
1308test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309  as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312# Find the source files, if location was not specified.
1313if test -z "$srcdir"; then
1314  ac_srcdir_defaulted=yes
1315  # Try the directory containing this script, then the parent directory.
1316  ac_confdir=`$as_dirname -- "$as_myself" ||
1317$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318	 X"$as_myself" : 'X\(//\)[^/]' \| \
1319	 X"$as_myself" : 'X\(//\)$' \| \
1320	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321$as_echo X"$as_myself" |
1322    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\/\)[^/].*/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\/\)$/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\).*/{
1335	    s//\1/
1336	    q
1337	  }
1338	  s/.*/./; q'`
1339  srcdir=$ac_confdir
1340  if test ! -r "$srcdir/$ac_unique_file"; then
1341    srcdir=..
1342  fi
1343else
1344  ac_srcdir_defaulted=no
1345fi
1346if test ! -r "$srcdir/$ac_unique_file"; then
1347  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349fi
1350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351ac_abs_confdir=`(
1352	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353	pwd)`
1354# When building in place, set srcdir=.
1355if test "$ac_abs_confdir" = "$ac_pwd"; then
1356  srcdir=.
1357fi
1358# Remove unnecessary trailing slashes from srcdir.
1359# Double slashes in file names in object file debugging info
1360# mess up M-x gdb in Emacs.
1361case $srcdir in
1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363esac
1364for ac_var in $ac_precious_vars; do
1365  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366  eval ac_env_${ac_var}_value=\$${ac_var}
1367  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
1370
1371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375  # Omit some internal or obsolete options to make the list less imposing.
1376  # This message is too long to be a string in the A/UX 3.1 sh.
1377  cat <<_ACEOF
1378\`configure' configures xcb-util-image 0.4.0 to adapt to many kinds of systems.
1379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388  -h, --help              display this help and exit
1389      --help=short        display options specific to this package
1390      --help=recursive    display the short help of all the included packages
1391  -V, --version           display version information and exit
1392  -q, --quiet, --silent   do not print \`checking ...' messages
1393      --cache-file=FILE   cache test results in FILE [disabled]
1394  -C, --config-cache      alias for \`--cache-file=config.cache'
1395  -n, --no-create         do not create output files
1396      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398Installation directories:
1399  --prefix=PREFIX         install architecture-independent files in PREFIX
1400                          [$ac_default_prefix]
1401  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                          [PREFIX]
1403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
1412  --bindir=DIR            user executables [EPREFIX/bin]
1413  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414  --libexecdir=DIR        program executables [EPREFIX/libexec]
1415  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418  --libdir=DIR            object code libraries [EPREFIX/lib]
1419  --includedir=DIR        C header files [PREFIX/include]
1420  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423  --infodir=DIR           info documentation [DATAROOTDIR/info]
1424  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425  --mandir=DIR            man documentation [DATAROOTDIR/man]
1426  --docdir=DIR            documentation root [DATAROOTDIR/doc/xcb-util-image]
1427  --htmldir=DIR           html documentation [DOCDIR]
1428  --dvidir=DIR            dvi documentation [DOCDIR]
1429  --pdfdir=DIR            pdf documentation [DOCDIR]
1430  --psdir=DIR             ps documentation [DOCDIR]
1431_ACEOF
1432
1433  cat <<\_ACEOF
1434
1435Program names:
1436  --program-prefix=PREFIX            prepend PREFIX to installed program names
1437  --program-suffix=SUFFIX            append SUFFIX to installed program names
1438  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1439
1440System types:
1441  --build=BUILD     configure for building on BUILD [guessed]
1442  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443_ACEOF
1444fi
1445
1446if test -n "$ac_init_help"; then
1447  case $ac_init_help in
1448     short | recursive ) echo "Configuration of xcb-util-image 0.4.0:";;
1449   esac
1450  cat <<\_ACEOF
1451
1452Optional Features:
1453  --disable-option-checking  ignore unrecognized --enable/--with options
1454  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1455  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1456  --enable-silent-rules   less verbose build output (undo: "make V=1")
1457  --disable-silent-rules  verbose build output (undo: "make V=0")
1458  --enable-maintainer-mode
1459                          enable make rules and dependencies not useful (and
1460                          sometimes confusing) to the casual installer
1461  --enable-shared[=PKGS]  build shared libraries [default=yes]
1462  --enable-static[=PKGS]  build static libraries [default=yes]
1463  --enable-fast-install[=PKGS]
1464                          optimize for fast installation [default=yes]
1465  --enable-dependency-tracking
1466                          do not reject slow dependency extractors
1467  --disable-dependency-tracking
1468                          speeds up one-time build
1469  --disable-libtool-lock  avoid locking (might break parallel builds)
1470  --disable-selective-werror
1471                          Turn off selective compiler errors. (default:
1472                          enabled)
1473  --enable-strict-compilation
1474                          Enable all warnings from compiler and make them
1475                          errors (default: disabled)
1476  --enable-devel-docs     Enable building the developer documentation
1477                          (default: yes)
1478
1479Optional Packages:
1480  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1483                          both]
1484  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1485  --with-sysroot=DIR Search for dependent libraries within DIR
1486                        (or the compiler's sysroot if not specified).
1487  --with-doxygen          Use doxygen to regenerate documentation (default:
1488                          auto)
1489
1490Some influential environment variables:
1491  CC          C compiler command
1492  CFLAGS      C compiler flags
1493  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494              nonstandard directory <lib dir>
1495  LIBS        libraries to pass to the linker, e.g. -l<library>
1496  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497              you have headers in a nonstandard directory <include dir>
1498  CPP         C preprocessor
1499  PKG_CONFIG  path to pkg-config utility
1500  PKG_CONFIG_PATH
1501              directories to add to pkg-config's search path
1502  PKG_CONFIG_LIBDIR
1503              path overriding pkg-config's built-in search path
1504  XCB_CFLAGS  C compiler flags for XCB, overriding pkg-config
1505  XCB_LIBS    linker flags for XCB, overriding pkg-config
1506  DOXYGEN     Path to doxygen command
1507  DOT         Path to the dot graphics utility
1508  XCB_SHM_CFLAGS
1509              C compiler flags for XCB_SHM, overriding pkg-config
1510  XCB_SHM_LIBS
1511              linker flags for XCB_SHM, overriding pkg-config
1512  XPROTO_CFLAGS
1513              C compiler flags for XPROTO, overriding pkg-config
1514  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1515  XCB_UTIL_CFLAGS
1516              C compiler flags for XCB_UTIL, overriding pkg-config
1517  XCB_UTIL_LIBS
1518              linker flags for XCB_UTIL, overriding pkg-config
1519
1520Use these variables to override the choices made by `configure' or to help
1521it to find libraries and programs with nonstandard names/locations.
1522
1523Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>.
1524_ACEOF
1525ac_status=$?
1526fi
1527
1528if test "$ac_init_help" = "recursive"; then
1529  # If there are subdirs, report their specific --help.
1530  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531    test -d "$ac_dir" ||
1532      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533      continue
1534    ac_builddir=.
1535
1536case "$ac_dir" in
1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538*)
1539  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540  # A ".." for each directory in $ac_dir_suffix.
1541  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542  case $ac_top_builddir_sub in
1543  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545  esac ;;
1546esac
1547ac_abs_top_builddir=$ac_pwd
1548ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549# for backward compatibility:
1550ac_top_builddir=$ac_top_build_prefix
1551
1552case $srcdir in
1553  .)  # We are building in place.
1554    ac_srcdir=.
1555    ac_top_srcdir=$ac_top_builddir_sub
1556    ac_abs_top_srcdir=$ac_pwd ;;
1557  [\\/]* | ?:[\\/]* )  # Absolute name.
1558    ac_srcdir=$srcdir$ac_dir_suffix;
1559    ac_top_srcdir=$srcdir
1560    ac_abs_top_srcdir=$srcdir ;;
1561  *) # Relative name.
1562    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563    ac_top_srcdir=$ac_top_build_prefix$srcdir
1564    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565esac
1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568    cd "$ac_dir" || { ac_status=$?; continue; }
1569    # Check for guested configure.
1570    if test -f "$ac_srcdir/configure.gnu"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573    elif test -f "$ac_srcdir/configure"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure" --help=recursive
1576    else
1577      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578    fi || ac_status=$?
1579    cd "$ac_pwd" || { ac_status=$?; break; }
1580  done
1581fi
1582
1583test -n "$ac_init_help" && exit $ac_status
1584if $ac_init_version; then
1585  cat <<\_ACEOF
1586xcb-util-image configure 0.4.0
1587generated by GNU Autoconf 2.69
1588
1589Copyright (C) 2012 Free Software Foundation, Inc.
1590This configure script is free software; the Free Software Foundation
1591gives unlimited permission to copy, distribute and modify it.
1592_ACEOF
1593  exit
1594fi
1595
1596## ------------------------ ##
1597## Autoconf initialization. ##
1598## ------------------------ ##
1599
1600# ac_fn_c_try_compile LINENO
1601# --------------------------
1602# Try to compile conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_compile ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  rm -f conftest.$ac_objext
1607  if { { ac_try="$ac_compile"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614  (eval "$ac_compile") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && {
1623	 test -z "$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       } && test -s conftest.$ac_objext; then :
1626  ac_retval=0
1627else
1628  $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631	ac_retval=1
1632fi
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634  as_fn_set_status $ac_retval
1635
1636} # ac_fn_c_try_compile
1637
1638# ac_fn_c_try_link LINENO
1639# -----------------------
1640# Try to link conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_link ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  rm -f conftest.$ac_objext conftest$ac_exeext
1645  if { { ac_try="$ac_link"
1646case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_link") 2>conftest.err
1653  ac_status=$?
1654  if test -s conftest.err; then
1655    grep -v '^ *+' conftest.err >conftest.er1
1656    cat conftest.er1 >&5
1657    mv -f conftest.er1 conftest.err
1658  fi
1659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660  test $ac_status = 0; } && {
1661	 test -z "$ac_c_werror_flag" ||
1662	 test ! -s conftest.err
1663       } && test -s conftest$ac_exeext && {
1664	 test "$cross_compiling" = yes ||
1665	 test -x conftest$ac_exeext
1666       }; then :
1667  ac_retval=0
1668else
1669  $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672	ac_retval=1
1673fi
1674  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1675  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1676  # interfere with the next link command; also delete a directory that is
1677  # left behind by Apple's compiler.  We do this before executing the actions.
1678  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_link
1683
1684# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685# -------------------------------------------------------
1686# Tests whether HEADER exists and can be compiled using the include files in
1687# INCLUDES, setting the cache variable VAR accordingly.
1688ac_fn_c_check_header_compile ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692$as_echo_n "checking for $2... " >&6; }
1693if eval \${$3+:} false; then :
1694  $as_echo_n "(cached) " >&6
1695else
1696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h.  */
1698$4
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"; then :
1702  eval "$3=yes"
1703else
1704  eval "$3=no"
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707fi
1708eval ac_res=\$$3
1709	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_c_check_header_compile
1714
1715# ac_fn_c_try_cpp LINENO
1716# ----------------------
1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_cpp ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  if { { ac_try="$ac_cpp conftest.$ac_ext"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729  ac_status=$?
1730  if test -s conftest.err; then
1731    grep -v '^ *+' conftest.err >conftest.er1
1732    cat conftest.er1 >&5
1733    mv -f conftest.er1 conftest.err
1734  fi
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } > conftest.i && {
1737	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738	 test ! -s conftest.err
1739       }; then :
1740  ac_retval=0
1741else
1742  $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745    ac_retval=1
1746fi
1747  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748  as_fn_set_status $ac_retval
1749
1750} # ac_fn_c_try_cpp
1751
1752# ac_fn_c_try_run LINENO
1753# ----------------------
1754# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755# that executables *can* be run.
1756ac_fn_c_try_run ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  if { { ac_try="$ac_link"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_link") 2>&5
1767  ac_status=$?
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770  { { case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_try") 2>&5
1777  ac_status=$?
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; }; }; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: program exited with status $ac_status" >&5
1783       $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786       ac_retval=$ac_status
1787fi
1788  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790  as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_run
1793
1794# ac_fn_c_check_func LINENO FUNC VAR
1795# ----------------------------------
1796# Tests whether FUNC exists, setting the cache variable VAR accordingly
1797ac_fn_c_check_func ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if eval \${$3+:} false; then :
1803  $as_echo_n "(cached) " >&6
1804else
1805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h.  */
1807/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1809#define $2 innocuous_$2
1810
1811/* System header to define __stub macros and hopefully few prototypes,
1812    which can conflict with char $2 (); below.
1813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814    <limits.h> exists even on freestanding compilers.  */
1815
1816#ifdef __STDC__
1817# include <limits.h>
1818#else
1819# include <assert.h>
1820#endif
1821
1822#undef $2
1823
1824/* Override any GCC internal prototype to avoid an error.
1825   Use char because int might match the return type of a GCC
1826   builtin and then its argument prototype would still apply.  */
1827#ifdef __cplusplus
1828extern "C"
1829#endif
1830char $2 ();
1831/* The GNU C library defines this for functions which it implements
1832    to always fail with ENOSYS.  Some functions are actually named
1833    something starting with __ and the normal name is an alias.  */
1834#if defined __stub_$2 || defined __stub___$2
1835choke me
1836#endif
1837
1838int
1839main ()
1840{
1841return $2 ();
1842  ;
1843  return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_link "$LINENO"; then :
1847  eval "$3=yes"
1848else
1849  eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext \
1852    conftest$ac_exeext conftest.$ac_ext
1853fi
1854eval ac_res=\$$3
1855	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_func
1860
1861# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1862# ---------------------------------------------
1863# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1864# accordingly.
1865ac_fn_c_check_decl ()
1866{
1867  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868  as_decl_name=`echo $2|sed 's/ *(.*//'`
1869  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1871$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1872if eval \${$3+:} false; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877$4
1878int
1879main ()
1880{
1881#ifndef $as_decl_name
1882#ifdef __cplusplus
1883  (void) $as_decl_use;
1884#else
1885  (void) $as_decl_name;
1886#endif
1887#endif
1888
1889  ;
1890  return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894  eval "$3=yes"
1895else
1896  eval "$3=no"
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899fi
1900eval ac_res=\$$3
1901	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
1903  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905} # ac_fn_c_check_decl
1906
1907# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1908# -------------------------------------------------------
1909# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1910# the include files in INCLUDES and setting the cache variable VAR
1911# accordingly.
1912ac_fn_c_check_header_mongrel ()
1913{
1914  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915  if eval \${$3+:} false; then :
1916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917$as_echo_n "checking for $2... " >&6; }
1918if eval \${$3+:} false; then :
1919  $as_echo_n "(cached) " >&6
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924else
1925  # Is the header compilable?
1926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1927$as_echo_n "checking $2 usability... " >&6; }
1928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h.  */
1930$4
1931#include <$2>
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934  ac_header_compiler=yes
1935else
1936  ac_header_compiler=no
1937fi
1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1940$as_echo "$ac_header_compiler" >&6; }
1941
1942# Is the header present?
1943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1944$as_echo_n "checking $2 presence... " >&6; }
1945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947#include <$2>
1948_ACEOF
1949if ac_fn_c_try_cpp "$LINENO"; then :
1950  ac_header_preproc=yes
1951else
1952  ac_header_preproc=no
1953fi
1954rm -f conftest.err conftest.i conftest.$ac_ext
1955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1956$as_echo "$ac_header_preproc" >&6; }
1957
1958# So?  What about this header?
1959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960  yes:no: )
1961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1962$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1963    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965    ;;
1966  no:yes:* )
1967    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1968$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1970$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1971    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1972$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1974$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977( $as_echo "## ------------------------------------------------------------------------------------- ##
1978## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils ##
1979## ------------------------------------------------------------------------------------- ##"
1980     ) | sed "s/^/$as_me: WARNING:     /" >&2
1981    ;;
1982esac
1983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984$as_echo_n "checking for $2... " >&6; }
1985if eval \${$3+:} false; then :
1986  $as_echo_n "(cached) " >&6
1987else
1988  eval "$3=\$ac_header_compiler"
1989fi
1990eval ac_res=\$$3
1991	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993fi
1994  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996} # ac_fn_c_check_header_mongrel
1997cat >config.log <<_ACEOF
1998This file contains any messages produced by compilers while
1999running configure, to aid debugging if configure makes a mistake.
2000
2001It was created by xcb-util-image $as_me 0.4.0, which was
2002generated by GNU Autoconf 2.69.  Invocation command line was
2003
2004  $ $0 $@
2005
2006_ACEOF
2007exec 5>>config.log
2008{
2009cat <<_ASUNAME
2010## --------- ##
2011## Platform. ##
2012## --------- ##
2013
2014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018uname -v = `(uname -v) 2>/dev/null || echo unknown`
2019
2020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2022
2023/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2024/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2027/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2028/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2029/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2030
2031_ASUNAME
2032
2033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH
2035do
2036  IFS=$as_save_IFS
2037  test -z "$as_dir" && as_dir=.
2038    $as_echo "PATH: $as_dir"
2039  done
2040IFS=$as_save_IFS
2041
2042} >&5
2043
2044cat >&5 <<_ACEOF
2045
2046
2047## ----------- ##
2048## Core tests. ##
2049## ----------- ##
2050
2051_ACEOF
2052
2053
2054# Keep a trace of the command line.
2055# Strip out --no-create and --no-recursion so they do not pile up.
2056# Strip out --silent because we don't want to record it for future runs.
2057# Also quote any args containing shell meta-characters.
2058# Make two passes to allow for proper duplicate-argument suppression.
2059ac_configure_args=
2060ac_configure_args0=
2061ac_configure_args1=
2062ac_must_keep_next=false
2063for ac_pass in 1 2
2064do
2065  for ac_arg
2066  do
2067    case $ac_arg in
2068    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070    | -silent | --silent | --silen | --sile | --sil)
2071      continue ;;
2072    *\'*)
2073      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074    esac
2075    case $ac_pass in
2076    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2077    2)
2078      as_fn_append ac_configure_args1 " '$ac_arg'"
2079      if test $ac_must_keep_next = true; then
2080	ac_must_keep_next=false # Got value, back to normal.
2081      else
2082	case $ac_arg in
2083	  *=* | --config-cache | -C | -disable-* | --disable-* \
2084	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086	  | -with-* | --with-* | -without-* | --without-* | --x)
2087	    case "$ac_configure_args0 " in
2088	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089	    esac
2090	    ;;
2091	  -* ) ac_must_keep_next=true ;;
2092	esac
2093      fi
2094      as_fn_append ac_configure_args " '$ac_arg'"
2095      ;;
2096    esac
2097  done
2098done
2099{ ac_configure_args0=; unset ac_configure_args0;}
2100{ ac_configure_args1=; unset ac_configure_args1;}
2101
2102# When interrupted or exit'd, cleanup temporary files, and complete
2103# config.log.  We remove comments because anyway the quotes in there
2104# would cause problems or look ugly.
2105# WARNING: Use '\'' to represent an apostrophe within the trap.
2106# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107trap 'exit_status=$?
2108  # Save into config.log some information that might help in debugging.
2109  {
2110    echo
2111
2112    $as_echo "## ---------------- ##
2113## Cache variables. ##
2114## ---------------- ##"
2115    echo
2116    # The following way of writing the cache mishandles newlines in values,
2117(
2118  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119    eval ac_val=\$$ac_var
2120    case $ac_val in #(
2121    *${as_nl}*)
2122      case $ac_var in #(
2123      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125      esac
2126      case $ac_var in #(
2127      _ | IFS | as_nl) ;; #(
2128      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129      *) { eval $ac_var=; unset $ac_var;} ;;
2130      esac ;;
2131    esac
2132  done
2133  (set) 2>&1 |
2134    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135    *${as_nl}ac_space=\ *)
2136      sed -n \
2137	"s/'\''/'\''\\\\'\'''\''/g;
2138	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139      ;; #(
2140    *)
2141      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2142      ;;
2143    esac |
2144    sort
2145)
2146    echo
2147
2148    $as_echo "## ----------------- ##
2149## Output variables. ##
2150## ----------------- ##"
2151    echo
2152    for ac_var in $ac_subst_vars
2153    do
2154      eval ac_val=\$$ac_var
2155      case $ac_val in
2156      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157      esac
2158      $as_echo "$ac_var='\''$ac_val'\''"
2159    done | sort
2160    echo
2161
2162    if test -n "$ac_subst_files"; then
2163      $as_echo "## ------------------- ##
2164## File substitutions. ##
2165## ------------------- ##"
2166      echo
2167      for ac_var in $ac_subst_files
2168      do
2169	eval ac_val=\$$ac_var
2170	case $ac_val in
2171	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172	esac
2173	$as_echo "$ac_var='\''$ac_val'\''"
2174      done | sort
2175      echo
2176    fi
2177
2178    if test -s confdefs.h; then
2179      $as_echo "## ----------- ##
2180## confdefs.h. ##
2181## ----------- ##"
2182      echo
2183      cat confdefs.h
2184      echo
2185    fi
2186    test "$ac_signal" != 0 &&
2187      $as_echo "$as_me: caught signal $ac_signal"
2188    $as_echo "$as_me: exit $exit_status"
2189  } >&5
2190  rm -f core *.core core.conftest.* &&
2191    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192    exit $exit_status
2193' 0
2194for ac_signal in 1 2 13 15; do
2195  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196done
2197ac_signal=0
2198
2199# confdefs.h avoids OS command line length limits that DEFS can exceed.
2200rm -f -r conftest* confdefs.h
2201
2202$as_echo "/* confdefs.h */" > confdefs.h
2203
2204# Predefined preprocessor variables.
2205
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_NAME "$PACKAGE_NAME"
2208_ACEOF
2209
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2212_ACEOF
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_VERSION "$PACKAGE_VERSION"
2216_ACEOF
2217
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_STRING "$PACKAGE_STRING"
2220_ACEOF
2221
2222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2224_ACEOF
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_URL "$PACKAGE_URL"
2228_ACEOF
2229
2230
2231# Let the site file select an alternate cache file if it wants to.
2232# Prefer an explicitly selected file to automatically selected ones.
2233ac_site_file1=NONE
2234ac_site_file2=NONE
2235if test -n "$CONFIG_SITE"; then
2236  # We do not want a PATH search for config.site.
2237  case $CONFIG_SITE in #((
2238    -*)  ac_site_file1=./$CONFIG_SITE;;
2239    */*) ac_site_file1=$CONFIG_SITE;;
2240    *)   ac_site_file1=./$CONFIG_SITE;;
2241  esac
2242elif test "x$prefix" != xNONE; then
2243  ac_site_file1=$prefix/share/config.site
2244  ac_site_file2=$prefix/etc/config.site
2245else
2246  ac_site_file1=$ac_default_prefix/share/config.site
2247  ac_site_file2=$ac_default_prefix/etc/config.site
2248fi
2249for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2250do
2251  test "x$ac_site_file" = xNONE && continue
2252  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2253    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2255    sed 's/^/| /' "$ac_site_file" >&5
2256    . "$ac_site_file" \
2257      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259as_fn_error $? "failed to load site script $ac_site_file
2260See \`config.log' for more details" "$LINENO" 5; }
2261  fi
2262done
2263
2264if test -r "$cache_file"; then
2265  # Some versions of bash will fail to source /dev/null (special files
2266  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2267  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269$as_echo "$as_me: loading cache $cache_file" >&6;}
2270    case $cache_file in
2271      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272      *)                      . "./$cache_file";;
2273    esac
2274  fi
2275else
2276  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277$as_echo "$as_me: creating cache $cache_file" >&6;}
2278  >$cache_file
2279fi
2280
2281# Check that the precious variables saved in the cache have kept the same
2282# value.
2283ac_cache_corrupted=false
2284for ac_var in $ac_precious_vars; do
2285  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2286  eval ac_new_set=\$ac_env_${ac_var}_set
2287  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2288  eval ac_new_val=\$ac_env_${ac_var}_value
2289  case $ac_old_set,$ac_new_set in
2290    set,)
2291      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2292$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2293      ac_cache_corrupted=: ;;
2294    ,set)
2295      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2296$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2297      ac_cache_corrupted=: ;;
2298    ,);;
2299    *)
2300      if test "x$ac_old_val" != "x$ac_new_val"; then
2301	# differences in whitespace do not lead to failure.
2302	ac_old_val_w=`echo x $ac_old_val`
2303	ac_new_val_w=`echo x $ac_new_val`
2304	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2305	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2306$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2307	  ac_cache_corrupted=:
2308	else
2309	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2310$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2311	  eval $ac_var=\$ac_old_val
2312	fi
2313	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2314$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2315	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2316$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2317      fi;;
2318  esac
2319  # Pass precious variables to config.status.
2320  if test "$ac_new_set" = set; then
2321    case $ac_new_val in
2322    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2323    *) ac_arg=$ac_var=$ac_new_val ;;
2324    esac
2325    case " $ac_configure_args " in
2326      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2327      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2328    esac
2329  fi
2330done
2331if $ac_cache_corrupted; then
2332  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2335$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2336  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2337fi
2338## -------------------- ##
2339## Main body of script. ##
2340## -------------------- ##
2341
2342ac_ext=c
2343ac_cpp='$CPP $CPPFLAGS'
2344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348
2349
2350ac_config_headers="$ac_config_headers config.h"
2351
2352
2353am__api_version='1.14'
2354
2355ac_aux_dir=
2356for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2357  if test -f "$ac_dir/install-sh"; then
2358    ac_aux_dir=$ac_dir
2359    ac_install_sh="$ac_aux_dir/install-sh -c"
2360    break
2361  elif test -f "$ac_dir/install.sh"; then
2362    ac_aux_dir=$ac_dir
2363    ac_install_sh="$ac_aux_dir/install.sh -c"
2364    break
2365  elif test -f "$ac_dir/shtool"; then
2366    ac_aux_dir=$ac_dir
2367    ac_install_sh="$ac_aux_dir/shtool install -c"
2368    break
2369  fi
2370done
2371if test -z "$ac_aux_dir"; then
2372  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2373fi
2374
2375# These three variables are undocumented and unsupported,
2376# and are intended to be withdrawn in a future Autoconf release.
2377# They can cause serious problems if a builder's source tree is in a directory
2378# whose full name contains unusual characters.
2379ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2380ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2381ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2382
2383
2384# Find a good install program.  We prefer a C program (faster),
2385# so one script is as good as another.  But avoid the broken or
2386# incompatible versions:
2387# SysV /etc/install, /usr/sbin/install
2388# SunOS /usr/etc/install
2389# IRIX /sbin/install
2390# AIX /bin/install
2391# AmigaOS /C/install, which installs bootblocks on floppy discs
2392# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395# OS/2's system install, which has a completely different semantic
2396# ./install, which can be erroneously created by make from ./install.sh.
2397# Reject install programs that cannot install multiple files.
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399$as_echo_n "checking for a BSD-compatible install... " >&6; }
2400if test -z "$INSTALL"; then
2401if ${ac_cv_path_install+:} false; then :
2402  $as_echo_n "(cached) " >&6
2403else
2404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407  IFS=$as_save_IFS
2408  test -z "$as_dir" && as_dir=.
2409    # Account for people who put trailing slashes in PATH elements.
2410case $as_dir/ in #((
2411  ./ | .// | /[cC]/* | \
2412  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2413  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2414  /usr/ucb/* ) ;;
2415  *)
2416    # OSF1 and SCO ODT 3.0 have their own names for install.
2417    # Don't use installbsd from OSF since it installs stuff as root
2418    # by default.
2419    for ac_prog in ginstall scoinst install; do
2420      for ac_exec_ext in '' $ac_executable_extensions; do
2421	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2422	  if test $ac_prog = install &&
2423	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424	    # AIX install.  It has an incompatible calling convention.
2425	    :
2426	  elif test $ac_prog = install &&
2427	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428	    # program-specific install script used by HP pwplus--don't use.
2429	    :
2430	  else
2431	    rm -rf conftest.one conftest.two conftest.dir
2432	    echo one > conftest.one
2433	    echo two > conftest.two
2434	    mkdir conftest.dir
2435	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436	      test -s conftest.one && test -s conftest.two &&
2437	      test -s conftest.dir/conftest.one &&
2438	      test -s conftest.dir/conftest.two
2439	    then
2440	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441	      break 3
2442	    fi
2443	  fi
2444	fi
2445      done
2446    done
2447    ;;
2448esac
2449
2450  done
2451IFS=$as_save_IFS
2452
2453rm -rf conftest.one conftest.two conftest.dir
2454
2455fi
2456  if test "${ac_cv_path_install+set}" = set; then
2457    INSTALL=$ac_cv_path_install
2458  else
2459    # As a last resort, use the slow shell script.  Don't cache a
2460    # value for INSTALL within a source directory, because that will
2461    # break other packages using the cache if that directory is
2462    # removed, or if the value is a relative name.
2463    INSTALL=$ac_install_sh
2464  fi
2465fi
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467$as_echo "$INSTALL" >&6; }
2468
2469# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470# It thinks the first close brace ends the variable substitution.
2471test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472
2473test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474
2475test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2478$as_echo_n "checking whether build environment is sane... " >&6; }
2479# Reject unsafe characters in $srcdir or the absolute working directory
2480# name.  Accept space and tab only in the latter.
2481am_lf='
2482'
2483case `pwd` in
2484  *[\\\"\#\$\&\'\`$am_lf]*)
2485    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2486esac
2487case $srcdir in
2488  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2489    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2490esac
2491
2492# Do 'set' in a subshell so we don't clobber the current shell's
2493# arguments.  Must try -L first in case configure is actually a
2494# symlink; some systems play weird games with the mod time of symlinks
2495# (eg FreeBSD returns the mod time of the symlink's containing
2496# directory).
2497if (
2498   am_has_slept=no
2499   for am_try in 1 2; do
2500     echo "timestamp, slept: $am_has_slept" > conftest.file
2501     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2502     if test "$*" = "X"; then
2503	# -L didn't work.
2504	set X `ls -t "$srcdir/configure" conftest.file`
2505     fi
2506     if test "$*" != "X $srcdir/configure conftest.file" \
2507	&& test "$*" != "X conftest.file $srcdir/configure"; then
2508
2509	# If neither matched, then we have a broken ls.  This can happen
2510	# if, for instance, CONFIG_SHELL is bash and it inherits a
2511	# broken ls alias from the environment.  This has actually
2512	# happened.  Such a system could not be considered "sane".
2513	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2514  alias in your environment" "$LINENO" 5
2515     fi
2516     if test "$2" = conftest.file || test $am_try -eq 2; then
2517       break
2518     fi
2519     # Just in case.
2520     sleep 1
2521     am_has_slept=yes
2522   done
2523   test "$2" = conftest.file
2524   )
2525then
2526   # Ok.
2527   :
2528else
2529   as_fn_error $? "newly created file is older than distributed files!
2530Check your system clock" "$LINENO" 5
2531fi
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533$as_echo "yes" >&6; }
2534# If we didn't sleep, we still need to ensure time stamps of config.status and
2535# generated files are strictly newer.
2536am_sleep_pid=
2537if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2538  ( sleep 1 ) &
2539  am_sleep_pid=$!
2540fi
2541
2542rm -f conftest.file
2543
2544test "$program_prefix" != NONE &&
2545  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2546# Use a double $ so make ignores it.
2547test "$program_suffix" != NONE &&
2548  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2549# Double any \ or $.
2550# By default was `s,x,x', remove it if useless.
2551ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2552program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2553
2554# expand $ac_aux_dir to an absolute path
2555am_aux_dir=`cd $ac_aux_dir && pwd`
2556
2557if test x"${MISSING+set}" != xset; then
2558  case $am_aux_dir in
2559  *\ * | *\	*)
2560    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2561  *)
2562    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2563  esac
2564fi
2565# Use eval to expand $SHELL
2566if eval "$MISSING --is-lightweight"; then
2567  am_missing_run="$MISSING "
2568else
2569  am_missing_run=
2570  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2571$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2572fi
2573
2574if test x"${install_sh}" != xset; then
2575  case $am_aux_dir in
2576  *\ * | *\	*)
2577    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2578  *)
2579    install_sh="\${SHELL} $am_aux_dir/install-sh"
2580  esac
2581fi
2582
2583# Installed binaries are usually stripped using 'strip' when the user
2584# run "make install-strip".  However 'strip' might not be the right
2585# tool to use in cross-compilation environments, therefore Automake
2586# will honor the 'STRIP' environment variable to overrule this program.
2587if test "$cross_compiling" != no; then
2588  if test -n "$ac_tool_prefix"; then
2589  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2590set dummy ${ac_tool_prefix}strip; ac_word=$2
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592$as_echo_n "checking for $ac_word... " >&6; }
2593if ${ac_cv_prog_STRIP+:} false; then :
2594  $as_echo_n "(cached) " >&6
2595else
2596  if test -n "$STRIP"; then
2597  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602  IFS=$as_save_IFS
2603  test -z "$as_dir" && as_dir=.
2604    for ac_exec_ext in '' $ac_executable_extensions; do
2605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608    break 2
2609  fi
2610done
2611  done
2612IFS=$as_save_IFS
2613
2614fi
2615fi
2616STRIP=$ac_cv_prog_STRIP
2617if test -n "$STRIP"; then
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2619$as_echo "$STRIP" >&6; }
2620else
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622$as_echo "no" >&6; }
2623fi
2624
2625
2626fi
2627if test -z "$ac_cv_prog_STRIP"; then
2628  ac_ct_STRIP=$STRIP
2629  # Extract the first word of "strip", so it can be a program name with args.
2630set dummy strip; ac_word=$2
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632$as_echo_n "checking for $ac_word... " >&6; }
2633if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2634  $as_echo_n "(cached) " >&6
2635else
2636  if test -n "$ac_ct_STRIP"; then
2637  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642  IFS=$as_save_IFS
2643  test -z "$as_dir" && as_dir=.
2644    for ac_exec_ext in '' $ac_executable_extensions; do
2645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646    ac_cv_prog_ac_ct_STRIP="strip"
2647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648    break 2
2649  fi
2650done
2651  done
2652IFS=$as_save_IFS
2653
2654fi
2655fi
2656ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2657if test -n "$ac_ct_STRIP"; then
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2659$as_echo "$ac_ct_STRIP" >&6; }
2660else
2661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662$as_echo "no" >&6; }
2663fi
2664
2665  if test "x$ac_ct_STRIP" = x; then
2666    STRIP=":"
2667  else
2668    case $cross_compiling:$ac_tool_warned in
2669yes:)
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2672ac_tool_warned=yes ;;
2673esac
2674    STRIP=$ac_ct_STRIP
2675  fi
2676else
2677  STRIP="$ac_cv_prog_STRIP"
2678fi
2679
2680fi
2681INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2682
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2684$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2685if test -z "$MKDIR_P"; then
2686  if ${ac_cv_path_mkdir+:} false; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694    for ac_prog in mkdir gmkdir; do
2695	 for ac_exec_ext in '' $ac_executable_extensions; do
2696	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2697	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2698	     'mkdir (GNU coreutils) '* | \
2699	     'mkdir (coreutils) '* | \
2700	     'mkdir (fileutils) '4.1*)
2701	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2702	       break 3;;
2703	   esac
2704	 done
2705       done
2706  done
2707IFS=$as_save_IFS
2708
2709fi
2710
2711  test -d ./--version && rmdir ./--version
2712  if test "${ac_cv_path_mkdir+set}" = set; then
2713    MKDIR_P="$ac_cv_path_mkdir -p"
2714  else
2715    # As a last resort, use the slow shell script.  Don't cache a
2716    # value for MKDIR_P within a source directory, because that will
2717    # break other packages using the cache if that directory is
2718    # removed, or if the value is a relative name.
2719    MKDIR_P="$ac_install_sh -d"
2720  fi
2721fi
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2723$as_echo "$MKDIR_P" >&6; }
2724
2725for ac_prog in gawk mawk nawk awk
2726do
2727  # Extract the first word of "$ac_prog", so it can be a program name with args.
2728set dummy $ac_prog; ac_word=$2
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730$as_echo_n "checking for $ac_word... " >&6; }
2731if ${ac_cv_prog_AWK+:} false; then :
2732  $as_echo_n "(cached) " >&6
2733else
2734  if test -n "$AWK"; then
2735  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  test -z "$as_dir" && as_dir=.
2742    for ac_exec_ext in '' $ac_executable_extensions; do
2743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744    ac_cv_prog_AWK="$ac_prog"
2745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746    break 2
2747  fi
2748done
2749  done
2750IFS=$as_save_IFS
2751
2752fi
2753fi
2754AWK=$ac_cv_prog_AWK
2755if test -n "$AWK"; then
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2757$as_echo "$AWK" >&6; }
2758else
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760$as_echo "no" >&6; }
2761fi
2762
2763
2764  test -n "$AWK" && break
2765done
2766
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2768$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2769set x ${MAKE-make}
2770ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2771if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  cat >conftest.make <<\_ACEOF
2775SHELL = /bin/sh
2776all:
2777	@echo '@@@%%%=$(MAKE)=@@@%%%'
2778_ACEOF
2779# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2780case `${MAKE-make} -f conftest.make 2>/dev/null` in
2781  *@@@%%%=?*=@@@%%%*)
2782    eval ac_cv_prog_make_${ac_make}_set=yes;;
2783  *)
2784    eval ac_cv_prog_make_${ac_make}_set=no;;
2785esac
2786rm -f conftest.make
2787fi
2788if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790$as_echo "yes" >&6; }
2791  SET_MAKE=
2792else
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794$as_echo "no" >&6; }
2795  SET_MAKE="MAKE=${MAKE-make}"
2796fi
2797
2798rm -rf .tst 2>/dev/null
2799mkdir .tst 2>/dev/null
2800if test -d .tst; then
2801  am__leading_dot=.
2802else
2803  am__leading_dot=_
2804fi
2805rmdir .tst 2>/dev/null
2806
2807# Check whether --enable-silent-rules was given.
2808if test "${enable_silent_rules+set}" = set; then :
2809  enableval=$enable_silent_rules;
2810fi
2811
2812case $enable_silent_rules in # (((
2813  yes) AM_DEFAULT_VERBOSITY=0;;
2814   no) AM_DEFAULT_VERBOSITY=1;;
2815    *) AM_DEFAULT_VERBOSITY=1;;
2816esac
2817am_make=${MAKE-make}
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2819$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2820if ${am_cv_make_support_nested_variables+:} false; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  if $as_echo 'TRUE=$(BAR$(V))
2824BAR0=false
2825BAR1=true
2826V=1
2827am__doit:
2828	@$(TRUE)
2829.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2830  am_cv_make_support_nested_variables=yes
2831else
2832  am_cv_make_support_nested_variables=no
2833fi
2834fi
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2836$as_echo "$am_cv_make_support_nested_variables" >&6; }
2837if test $am_cv_make_support_nested_variables = yes; then
2838    AM_V='$(V)'
2839  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2840else
2841  AM_V=$AM_DEFAULT_VERBOSITY
2842  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2843fi
2844AM_BACKSLASH='\'
2845
2846if test "`cd $srcdir && pwd`" != "`pwd`"; then
2847  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2848  # is not polluted with repeated "-I."
2849  am__isrc=' -I$(srcdir)'
2850  # test to see if srcdir already configured
2851  if test -f $srcdir/config.status; then
2852    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2853  fi
2854fi
2855
2856# test whether we have cygpath
2857if test -z "$CYGPATH_W"; then
2858  if (cygpath --version) >/dev/null 2>/dev/null; then
2859    CYGPATH_W='cygpath -w'
2860  else
2861    CYGPATH_W=echo
2862  fi
2863fi
2864
2865
2866# Define the identity of the package.
2867 PACKAGE='xcb-util-image'
2868 VERSION='0.4.0'
2869
2870
2871cat >>confdefs.h <<_ACEOF
2872#define PACKAGE "$PACKAGE"
2873_ACEOF
2874
2875
2876cat >>confdefs.h <<_ACEOF
2877#define VERSION "$VERSION"
2878_ACEOF
2879
2880# Some tools Automake needs.
2881
2882ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2883
2884
2885AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2886
2887
2888AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2889
2890
2891AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2892
2893
2894MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2895
2896# For better backward compatibility.  To be removed once Automake 1.9.x
2897# dies out for good.  For more background, see:
2898# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2899# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2900mkdir_p='$(MKDIR_P)'
2901
2902# We need awk for the "check" target.  The system "awk" is bad on
2903# some platforms.
2904# Always define AMTAR for backward compatibility.  Yes, it's still used
2905# in the wild :-(  We should find a proper way to deprecate it ...
2906AMTAR='$${TAR-tar}'
2907
2908
2909# We'll loop over all known methods to create a tar archive until one works.
2910_am_tools='gnutar  pax cpio none'
2911
2912am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2913
2914
2915
2916
2917
2918
2919# POSIX will say in a future version that running "rm -f" with no argument
2920# is OK; and we want to be able to make that assumption in our Makefile
2921# recipes.  So use an aggressive probe to check that the usage we want is
2922# actually supported "in the wild" to an acceptable degree.
2923# See automake bug#10828.
2924# To make any issue more visible, cause the running configure to be aborted
2925# by default if the 'rm' program in use doesn't match our expectations; the
2926# user can still override this though.
2927if rm -f && rm -fr && rm -rf; then : OK; else
2928  cat >&2 <<'END'
2929Oops!
2930
2931Your 'rm' program seems unable to run without file operands specified
2932on the command line, even when the '-f' option is present.  This is contrary
2933to the behaviour of most rm programs out there, and not conforming with
2934the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2935
2936Please tell bug-automake@gnu.org about your system, including the value
2937of your $PATH and any error possibly output before this message.  This
2938can help us improve future automake versions.
2939
2940END
2941  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2942    echo 'Configuration will proceed anyway, since you have set the' >&2
2943    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2944    echo >&2
2945  else
2946    cat >&2 <<'END'
2947Aborting the configuration process, to ensure you take notice of the issue.
2948
2949You can download and install GNU coreutils to get an 'rm' implementation
2950that behaves properly: <http://www.gnu.org/software/coreutils/>.
2951
2952If you want to complete the configuration process using your problematic
2953'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2954to "yes", and re-run configure.
2955
2956END
2957    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2958  fi
2959fi
2960
2961
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2963$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2964    # Check whether --enable-maintainer-mode was given.
2965if test "${enable_maintainer_mode+set}" = set; then :
2966  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2967else
2968  USE_MAINTAINER_MODE=no
2969fi
2970
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2972$as_echo "$USE_MAINTAINER_MODE" >&6; }
2973   if test $USE_MAINTAINER_MODE = yes; then
2974  MAINTAINER_MODE_TRUE=
2975  MAINTAINER_MODE_FALSE='#'
2976else
2977  MAINTAINER_MODE_TRUE='#'
2978  MAINTAINER_MODE_FALSE=
2979fi
2980
2981  MAINT=$MAINTAINER_MODE_TRUE
2982
2983
2984
2985case `pwd` in
2986  *\ * | *\	*)
2987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2988$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2989esac
2990
2991
2992
2993macro_version='2.4.2'
2994macro_revision='1.3337'
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008ltmain="$ac_aux_dir/ltmain.sh"
3009
3010# Make sure we can run config.sub.
3011$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3012  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3013
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3015$as_echo_n "checking build system type... " >&6; }
3016if ${ac_cv_build+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  ac_build_alias=$build_alias
3020test "x$ac_build_alias" = x &&
3021  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3022test "x$ac_build_alias" = x &&
3023  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3024ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3025  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3026
3027fi
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3029$as_echo "$ac_cv_build" >&6; }
3030case $ac_cv_build in
3031*-*-*) ;;
3032*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3033esac
3034build=$ac_cv_build
3035ac_save_IFS=$IFS; IFS='-'
3036set x $ac_cv_build
3037shift
3038build_cpu=$1
3039build_vendor=$2
3040shift; shift
3041# Remember, the first character of IFS is used to create $*,
3042# except with old shells:
3043build_os=$*
3044IFS=$ac_save_IFS
3045case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3046
3047
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3049$as_echo_n "checking host system type... " >&6; }
3050if ${ac_cv_host+:} false; then :
3051  $as_echo_n "(cached) " >&6
3052else
3053  if test "x$host_alias" = x; then
3054  ac_cv_host=$ac_cv_build
3055else
3056  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3057    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3058fi
3059
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3062$as_echo "$ac_cv_host" >&6; }
3063case $ac_cv_host in
3064*-*-*) ;;
3065*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3066esac
3067host=$ac_cv_host
3068ac_save_IFS=$IFS; IFS='-'
3069set x $ac_cv_host
3070shift
3071host_cpu=$1
3072host_vendor=$2
3073shift; shift
3074# Remember, the first character of IFS is used to create $*,
3075# except with old shells:
3076host_os=$*
3077IFS=$ac_save_IFS
3078case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3079
3080
3081# Backslashify metacharacters that are still active within
3082# double-quoted strings.
3083sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3084
3085# Same as above, but do not quote variable references.
3086double_quote_subst='s/\(["`\\]\)/\\\1/g'
3087
3088# Sed substitution to delay expansion of an escaped shell variable in a
3089# double_quote_subst'ed string.
3090delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3091
3092# Sed substitution to delay expansion of an escaped single quote.
3093delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3094
3095# Sed substitution to avoid accidental globbing in evaled expressions
3096no_glob_subst='s/\*/\\\*/g'
3097
3098ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3099ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3100ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3101
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3103$as_echo_n "checking how to print strings... " >&6; }
3104# Test print first, because it will be a builtin if present.
3105if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3106   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3107  ECHO='print -r --'
3108elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3109  ECHO='printf %s\n'
3110else
3111  # Use this function as a fallback that always works.
3112  func_fallback_echo ()
3113  {
3114    eval 'cat <<_LTECHO_EOF
3115$1
3116_LTECHO_EOF'
3117  }
3118  ECHO='func_fallback_echo'
3119fi
3120
3121# func_echo_all arg...
3122# Invoke $ECHO with all args, space-separated.
3123func_echo_all ()
3124{
3125    $ECHO ""
3126}
3127
3128case "$ECHO" in
3129  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3130$as_echo "printf" >&6; } ;;
3131  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3132$as_echo "print -r" >&6; } ;;
3133  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3134$as_echo "cat" >&6; } ;;
3135esac
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150DEPDIR="${am__leading_dot}deps"
3151
3152ac_config_commands="$ac_config_commands depfiles"
3153
3154
3155am_make=${MAKE-make}
3156cat > confinc << 'END'
3157am__doit:
3158	@echo this is the am__doit target
3159.PHONY: am__doit
3160END
3161# If we don't find an include directive, just comment out the code.
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3163$as_echo_n "checking for style of include used by $am_make... " >&6; }
3164am__include="#"
3165am__quote=
3166_am_result=none
3167# First try GNU make style include.
3168echo "include confinc" > confmf
3169# Ignore all kinds of additional output from 'make'.
3170case `$am_make -s -f confmf 2> /dev/null` in #(
3171*the\ am__doit\ target*)
3172  am__include=include
3173  am__quote=
3174  _am_result=GNU
3175  ;;
3176esac
3177# Now try BSD make style include.
3178if test "$am__include" = "#"; then
3179   echo '.include "confinc"' > confmf
3180   case `$am_make -s -f confmf 2> /dev/null` in #(
3181   *the\ am__doit\ target*)
3182     am__include=.include
3183     am__quote="\""
3184     _am_result=BSD
3185     ;;
3186   esac
3187fi
3188
3189
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3191$as_echo "$_am_result" >&6; }
3192rm -f confinc confmf
3193
3194# Check whether --enable-dependency-tracking was given.
3195if test "${enable_dependency_tracking+set}" = set; then :
3196  enableval=$enable_dependency_tracking;
3197fi
3198
3199if test "x$enable_dependency_tracking" != xno; then
3200  am_depcomp="$ac_aux_dir/depcomp"
3201  AMDEPBACKSLASH='\'
3202  am__nodep='_no'
3203fi
3204 if test "x$enable_dependency_tracking" != xno; then
3205  AMDEP_TRUE=
3206  AMDEP_FALSE='#'
3207else
3208  AMDEP_TRUE='#'
3209  AMDEP_FALSE=
3210fi
3211
3212
3213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218if test -n "$ac_tool_prefix"; then
3219  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3220set dummy ${ac_tool_prefix}gcc; ac_word=$2
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
3223if ${ac_cv_prog_CC+:} false; then :
3224  $as_echo_n "(cached) " >&6
3225else
3226  if test -n "$CC"; then
3227  ac_cv_prog_CC="$CC" # Let the user override the test.
3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232  IFS=$as_save_IFS
3233  test -z "$as_dir" && as_dir=.
3234    for ac_exec_ext in '' $ac_executable_extensions; do
3235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238    break 2
3239  fi
3240done
3241  done
3242IFS=$as_save_IFS
3243
3244fi
3245fi
3246CC=$ac_cv_prog_CC
3247if test -n "$CC"; then
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249$as_echo "$CC" >&6; }
3250else
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253fi
3254
3255
3256fi
3257if test -z "$ac_cv_prog_CC"; then
3258  ac_ct_CC=$CC
3259  # Extract the first word of "gcc", so it can be a program name with args.
3260set dummy gcc; ac_word=$2
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262$as_echo_n "checking for $ac_word... " >&6; }
3263if ${ac_cv_prog_ac_ct_CC+:} false; then :
3264  $as_echo_n "(cached) " >&6
3265else
3266  if test -n "$ac_ct_CC"; then
3267  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272  IFS=$as_save_IFS
3273  test -z "$as_dir" && as_dir=.
3274    for ac_exec_ext in '' $ac_executable_extensions; do
3275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276    ac_cv_prog_ac_ct_CC="gcc"
3277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278    break 2
3279  fi
3280done
3281  done
3282IFS=$as_save_IFS
3283
3284fi
3285fi
3286ac_ct_CC=$ac_cv_prog_ac_ct_CC
3287if test -n "$ac_ct_CC"; then
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3289$as_echo "$ac_ct_CC" >&6; }
3290else
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293fi
3294
3295  if test "x$ac_ct_CC" = x; then
3296    CC=""
3297  else
3298    case $cross_compiling:$ac_tool_warned in
3299yes:)
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302ac_tool_warned=yes ;;
3303esac
3304    CC=$ac_ct_CC
3305  fi
3306else
3307  CC="$ac_cv_prog_CC"
3308fi
3309
3310if test -z "$CC"; then
3311          if test -n "$ac_tool_prefix"; then
3312    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3313set dummy ${ac_tool_prefix}cc; ac_word=$2
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315$as_echo_n "checking for $ac_word... " >&6; }
3316if ${ac_cv_prog_CC+:} false; then :
3317  $as_echo_n "(cached) " >&6
3318else
3319  if test -n "$CC"; then
3320  ac_cv_prog_CC="$CC" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325  IFS=$as_save_IFS
3326  test -z "$as_dir" && as_dir=.
3327    for ac_exec_ext in '' $ac_executable_extensions; do
3328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329    ac_cv_prog_CC="${ac_tool_prefix}cc"
3330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331    break 2
3332  fi
3333done
3334  done
3335IFS=$as_save_IFS
3336
3337fi
3338fi
3339CC=$ac_cv_prog_CC
3340if test -n "$CC"; then
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342$as_echo "$CC" >&6; }
3343else
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346fi
3347
3348
3349  fi
3350fi
3351if test -z "$CC"; then
3352  # Extract the first word of "cc", so it can be a program name with args.
3353set dummy cc; ac_word=$2
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355$as_echo_n "checking for $ac_word... " >&6; }
3356if ${ac_cv_prog_CC+:} false; then :
3357  $as_echo_n "(cached) " >&6
3358else
3359  if test -n "$CC"; then
3360  ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
3362  ac_prog_rejected=no
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366  IFS=$as_save_IFS
3367  test -z "$as_dir" && as_dir=.
3368    for ac_exec_ext in '' $ac_executable_extensions; do
3369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371       ac_prog_rejected=yes
3372       continue
3373     fi
3374    ac_cv_prog_CC="cc"
3375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376    break 2
3377  fi
3378done
3379  done
3380IFS=$as_save_IFS
3381
3382if test $ac_prog_rejected = yes; then
3383  # We found a bogon in the path, so make sure we never use it.
3384  set dummy $ac_cv_prog_CC
3385  shift
3386  if test $# != 0; then
3387    # We chose a different compiler from the bogus one.
3388    # However, it has the same basename, so the bogon will be chosen
3389    # first if we set CC to just the basename; use the full file name.
3390    shift
3391    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3392  fi
3393fi
3394fi
3395fi
3396CC=$ac_cv_prog_CC
3397if test -n "$CC"; then
3398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399$as_echo "$CC" >&6; }
3400else
3401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402$as_echo "no" >&6; }
3403fi
3404
3405
3406fi
3407if test -z "$CC"; then
3408  if test -n "$ac_tool_prefix"; then
3409  for ac_prog in cl.exe
3410  do
3411    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414$as_echo_n "checking for $ac_word... " >&6; }
3415if ${ac_cv_prog_CC+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418  if test -n "$CC"; then
3419  ac_cv_prog_CC="$CC" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424  IFS=$as_save_IFS
3425  test -z "$as_dir" && as_dir=.
3426    for ac_exec_ext in '' $ac_executable_extensions; do
3427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430    break 2
3431  fi
3432done
3433  done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438CC=$ac_cv_prog_CC
3439if test -n "$CC"; then
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441$as_echo "$CC" >&6; }
3442else
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448    test -n "$CC" && break
3449  done
3450fi
3451if test -z "$CC"; then
3452  ac_ct_CC=$CC
3453  for ac_prog in cl.exe
3454do
3455  # Extract the first word of "$ac_prog", so it can be a program name with args.
3456set dummy $ac_prog; ac_word=$2
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458$as_echo_n "checking for $ac_word... " >&6; }
3459if ${ac_cv_prog_ac_ct_CC+:} false; then :
3460  $as_echo_n "(cached) " >&6
3461else
3462  if test -n "$ac_ct_CC"; then
3463  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468  IFS=$as_save_IFS
3469  test -z "$as_dir" && as_dir=.
3470    for ac_exec_ext in '' $ac_executable_extensions; do
3471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472    ac_cv_prog_ac_ct_CC="$ac_prog"
3473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474    break 2
3475  fi
3476done
3477  done
3478IFS=$as_save_IFS
3479
3480fi
3481fi
3482ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483if test -n "$ac_ct_CC"; then
3484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3485$as_echo "$ac_ct_CC" >&6; }
3486else
3487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
3489fi
3490
3491
3492  test -n "$ac_ct_CC" && break
3493done
3494
3495  if test "x$ac_ct_CC" = x; then
3496    CC=""
3497  else
3498    case $cross_compiling:$ac_tool_warned in
3499yes:)
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502ac_tool_warned=yes ;;
3503esac
3504    CC=$ac_ct_CC
3505  fi
3506fi
3507
3508fi
3509
3510
3511test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513as_fn_error $? "no acceptable C compiler found in \$PATH
3514See \`config.log' for more details" "$LINENO" 5; }
3515
3516# Provide some information about the compiler.
3517$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3518set X $ac_compile
3519ac_compiler=$2
3520for ac_option in --version -v -V -qversion; do
3521  { { ac_try="$ac_compiler $ac_option >&5"
3522case "(($ac_try" in
3523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524  *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527$as_echo "$ac_try_echo"; } >&5
3528  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3529  ac_status=$?
3530  if test -s conftest.err; then
3531    sed '10a\
3532... rest of stderr output deleted ...
3533         10q' conftest.err >conftest.er1
3534    cat conftest.er1 >&5
3535  fi
3536  rm -f conftest.er1 conftest.err
3537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538  test $ac_status = 0; }
3539done
3540
3541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h.  */
3543
3544int
3545main ()
3546{
3547
3548  ;
3549  return 0;
3550}
3551_ACEOF
3552ac_clean_files_save=$ac_clean_files
3553ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3554# Try to create an executable without -o first, disregard a.out.
3555# It will help us diagnose broken compilers, and finding out an intuition
3556# of exeext.
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3558$as_echo_n "checking whether the C compiler works... " >&6; }
3559ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3560
3561# The possible output files:
3562ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3563
3564ac_rmfiles=
3565for ac_file in $ac_files
3566do
3567  case $ac_file in
3568    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3569    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3570  esac
3571done
3572rm -f $ac_rmfiles
3573
3574if { { ac_try="$ac_link_default"
3575case "(($ac_try" in
3576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577  *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581  (eval "$ac_link_default") 2>&5
3582  ac_status=$?
3583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584  test $ac_status = 0; }; then :
3585  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3586# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3587# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3588# so that the user can short-circuit this test for compilers unknown to
3589# Autoconf.
3590for ac_file in $ac_files ''
3591do
3592  test -f "$ac_file" || continue
3593  case $ac_file in
3594    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3595	;;
3596    [ab].out )
3597	# We found the default executable, but exeext='' is most
3598	# certainly right.
3599	break;;
3600    *.* )
3601	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3602	then :; else
3603	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604	fi
3605	# We set ac_cv_exeext here because the later test for it is not
3606	# safe: cross compilers may not add the suffix if given an `-o'
3607	# argument, so we may need to know it at that point already.
3608	# Even if this section looks crufty: it has the advantage of
3609	# actually working.
3610	break;;
3611    * )
3612	break;;
3613  esac
3614done
3615test "$ac_cv_exeext" = no && ac_cv_exeext=
3616
3617else
3618  ac_file=''
3619fi
3620if test -z "$ac_file"; then :
3621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622$as_echo "no" >&6; }
3623$as_echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628as_fn_error 77 "C compiler cannot create executables
3629See \`config.log' for more details" "$LINENO" 5; }
3630else
3631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632$as_echo "yes" >&6; }
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3635$as_echo_n "checking for C compiler default output file name... " >&6; }
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3637$as_echo "$ac_file" >&6; }
3638ac_exeext=$ac_cv_exeext
3639
3640rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3641ac_clean_files=$ac_clean_files_save
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3643$as_echo_n "checking for suffix of executables... " >&6; }
3644if { { ac_try="$ac_link"
3645case "(($ac_try" in
3646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647  *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650$as_echo "$ac_try_echo"; } >&5
3651  (eval "$ac_link") 2>&5
3652  ac_status=$?
3653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654  test $ac_status = 0; }; then :
3655  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3656# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3657# work properly (i.e., refer to `conftest.exe'), while it won't with
3658# `rm'.
3659for ac_file in conftest.exe conftest conftest.*; do
3660  test -f "$ac_file" || continue
3661  case $ac_file in
3662    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664	  break;;
3665    * ) break;;
3666  esac
3667done
3668else
3669  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3672See \`config.log' for more details" "$LINENO" 5; }
3673fi
3674rm -f conftest conftest$ac_cv_exeext
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3676$as_echo "$ac_cv_exeext" >&6; }
3677
3678rm -f conftest.$ac_ext
3679EXEEXT=$ac_cv_exeext
3680ac_exeext=$EXEEXT
3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h.  */
3683#include <stdio.h>
3684int
3685main ()
3686{
3687FILE *f = fopen ("conftest.out", "w");
3688 return ferror (f) || fclose (f) != 0;
3689
3690  ;
3691  return 0;
3692}
3693_ACEOF
3694ac_clean_files="$ac_clean_files conftest.out"
3695# Check that the compiler produces executables we can run.  If not, either
3696# the compiler is broken, or we cross compile.
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3698$as_echo_n "checking whether we are cross compiling... " >&6; }
3699if test "$cross_compiling" != yes; then
3700  { { ac_try="$ac_link"
3701case "(($ac_try" in
3702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703  *) ac_try_echo=$ac_try;;
3704esac
3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706$as_echo "$ac_try_echo"; } >&5
3707  (eval "$ac_link") 2>&5
3708  ac_status=$?
3709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710  test $ac_status = 0; }
3711  if { ac_try='./conftest$ac_cv_exeext'
3712  { { case "(($ac_try" in
3713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714  *) ac_try_echo=$ac_try;;
3715esac
3716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717$as_echo "$ac_try_echo"; } >&5
3718  (eval "$ac_try") 2>&5
3719  ac_status=$?
3720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721  test $ac_status = 0; }; }; then
3722    cross_compiling=no
3723  else
3724    if test "$cross_compiling" = maybe; then
3725	cross_compiling=yes
3726    else
3727	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729as_fn_error $? "cannot run C compiled programs.
3730If you meant to cross compile, use \`--host'.
3731See \`config.log' for more details" "$LINENO" 5; }
3732    fi
3733  fi
3734fi
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3736$as_echo "$cross_compiling" >&6; }
3737
3738rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3739ac_clean_files=$ac_clean_files_save
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3741$as_echo_n "checking for suffix of object files... " >&6; }
3742if ${ac_cv_objext+:} false; then :
3743  $as_echo_n "(cached) " >&6
3744else
3745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746/* end confdefs.h.  */
3747
3748int
3749main ()
3750{
3751
3752  ;
3753  return 0;
3754}
3755_ACEOF
3756rm -f conftest.o conftest.obj
3757if { { ac_try="$ac_compile"
3758case "(($ac_try" in
3759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760  *) ac_try_echo=$ac_try;;
3761esac
3762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763$as_echo "$ac_try_echo"; } >&5
3764  (eval "$ac_compile") 2>&5
3765  ac_status=$?
3766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767  test $ac_status = 0; }; then :
3768  for ac_file in conftest.o conftest.obj conftest.*; do
3769  test -f "$ac_file" || continue;
3770  case $ac_file in
3771    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3772    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3773       break;;
3774  esac
3775done
3776else
3777  $as_echo "$as_me: failed program was:" >&5
3778sed 's/^/| /' conftest.$ac_ext >&5
3779
3780{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782as_fn_error $? "cannot compute suffix of object files: cannot compile
3783See \`config.log' for more details" "$LINENO" 5; }
3784fi
3785rm -f conftest.$ac_cv_objext conftest.$ac_ext
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3788$as_echo "$ac_cv_objext" >&6; }
3789OBJEXT=$ac_cv_objext
3790ac_objext=$OBJEXT
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3792$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3793if ${ac_cv_c_compiler_gnu+:} false; then :
3794  $as_echo_n "(cached) " >&6
3795else
3796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h.  */
3798
3799int
3800main ()
3801{
3802#ifndef __GNUC__
3803       choke me
3804#endif
3805
3806  ;
3807  return 0;
3808}
3809_ACEOF
3810if ac_fn_c_try_compile "$LINENO"; then :
3811  ac_compiler_gnu=yes
3812else
3813  ac_compiler_gnu=no
3814fi
3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816ac_cv_c_compiler_gnu=$ac_compiler_gnu
3817
3818fi
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3820$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3821if test $ac_compiler_gnu = yes; then
3822  GCC=yes
3823else
3824  GCC=
3825fi
3826ac_test_CFLAGS=${CFLAGS+set}
3827ac_save_CFLAGS=$CFLAGS
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3829$as_echo_n "checking whether $CC accepts -g... " >&6; }
3830if ${ac_cv_prog_cc_g+:} false; then :
3831  $as_echo_n "(cached) " >&6
3832else
3833  ac_save_c_werror_flag=$ac_c_werror_flag
3834   ac_c_werror_flag=yes
3835   ac_cv_prog_cc_g=no
3836   CFLAGS="-g"
3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h.  */
3839
3840int
3841main ()
3842{
3843
3844  ;
3845  return 0;
3846}
3847_ACEOF
3848if ac_fn_c_try_compile "$LINENO"; then :
3849  ac_cv_prog_cc_g=yes
3850else
3851  CFLAGS=""
3852      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h.  */
3854
3855int
3856main ()
3857{
3858
3859  ;
3860  return 0;
3861}
3862_ACEOF
3863if ac_fn_c_try_compile "$LINENO"; then :
3864
3865else
3866  ac_c_werror_flag=$ac_save_c_werror_flag
3867	 CFLAGS="-g"
3868	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869/* end confdefs.h.  */
3870
3871int
3872main ()
3873{
3874
3875  ;
3876  return 0;
3877}
3878_ACEOF
3879if ac_fn_c_try_compile "$LINENO"; then :
3880  ac_cv_prog_cc_g=yes
3881fi
3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883fi
3884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885fi
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887   ac_c_werror_flag=$ac_save_c_werror_flag
3888fi
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3890$as_echo "$ac_cv_prog_cc_g" >&6; }
3891if test "$ac_test_CFLAGS" = set; then
3892  CFLAGS=$ac_save_CFLAGS
3893elif test $ac_cv_prog_cc_g = yes; then
3894  if test "$GCC" = yes; then
3895    CFLAGS="-g -O2"
3896  else
3897    CFLAGS="-g"
3898  fi
3899else
3900  if test "$GCC" = yes; then
3901    CFLAGS="-O2"
3902  else
3903    CFLAGS=
3904  fi
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3907$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3908if ${ac_cv_prog_cc_c89+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  ac_cv_prog_cc_c89=no
3912ac_save_CC=$CC
3913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h.  */
3915#include <stdarg.h>
3916#include <stdio.h>
3917struct stat;
3918/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3919struct buf { int x; };
3920FILE * (*rcsopen) (struct buf *, struct stat *, int);
3921static char *e (p, i)
3922     char **p;
3923     int i;
3924{
3925  return p[i];
3926}
3927static char *f (char * (*g) (char **, int), char **p, ...)
3928{
3929  char *s;
3930  va_list v;
3931  va_start (v,p);
3932  s = g (p, va_arg (v,int));
3933  va_end (v);
3934  return s;
3935}
3936
3937/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3938   function prototypes and stuff, but not '\xHH' hex character constants.
3939   These don't provoke an error unfortunately, instead are silently treated
3940   as 'x'.  The following induces an error, until -std is added to get
3941   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3942   array size at least.  It's necessary to write '\x00'==0 to get something
3943   that's true only with -std.  */
3944int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3945
3946/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3947   inside strings and character constants.  */
3948#define FOO(x) 'x'
3949int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3950
3951int test (int i, double x);
3952struct s1 {int (*f) (int a);};
3953struct s2 {int (*f) (double a);};
3954int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3955int argc;
3956char **argv;
3957int
3958main ()
3959{
3960return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3961  ;
3962  return 0;
3963}
3964_ACEOF
3965for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3966	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3967do
3968  CC="$ac_save_CC $ac_arg"
3969  if ac_fn_c_try_compile "$LINENO"; then :
3970  ac_cv_prog_cc_c89=$ac_arg
3971fi
3972rm -f core conftest.err conftest.$ac_objext
3973  test "x$ac_cv_prog_cc_c89" != "xno" && break
3974done
3975rm -f conftest.$ac_ext
3976CC=$ac_save_CC
3977
3978fi
3979# AC_CACHE_VAL
3980case "x$ac_cv_prog_cc_c89" in
3981  x)
3982    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3983$as_echo "none needed" >&6; } ;;
3984  xno)
3985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3986$as_echo "unsupported" >&6; } ;;
3987  *)
3988    CC="$CC $ac_cv_prog_cc_c89"
3989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3990$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3991esac
3992if test "x$ac_cv_prog_cc_c89" != xno; then :
3993
3994fi
3995
3996ac_ext=c
3997ac_cpp='$CPP $CPPFLAGS'
3998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001
4002ac_ext=c
4003ac_cpp='$CPP $CPPFLAGS'
4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4008$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4009if ${am_cv_prog_cc_c_o+:} false; then :
4010  $as_echo_n "(cached) " >&6
4011else
4012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013/* end confdefs.h.  */
4014
4015int
4016main ()
4017{
4018
4019  ;
4020  return 0;
4021}
4022_ACEOF
4023  # Make sure it works both with $CC and with simple cc.
4024  # Following AC_PROG_CC_C_O, we do the test twice because some
4025  # compilers refuse to overwrite an existing .o file with -o,
4026  # though they will create one.
4027  am_cv_prog_cc_c_o=yes
4028  for am_i in 1 2; do
4029    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4030   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4031   ac_status=$?
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); } \
4034         && test -f conftest2.$ac_objext; then
4035      : OK
4036    else
4037      am_cv_prog_cc_c_o=no
4038      break
4039    fi
4040  done
4041  rm -f core conftest*
4042  unset am_i
4043fi
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4045$as_echo "$am_cv_prog_cc_c_o" >&6; }
4046if test "$am_cv_prog_cc_c_o" != yes; then
4047   # Losing compiler, so override with the script.
4048   # FIXME: It is wrong to rewrite CC.
4049   # But if we don't then we get into trouble of one sort or another.
4050   # A longer-term fix would be to have automake use am__CC in this case,
4051   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4052   CC="$am_aux_dir/compile $CC"
4053fi
4054ac_ext=c
4055ac_cpp='$CPP $CPPFLAGS'
4056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059
4060
4061depcc="$CC"   am_compiler_list=
4062
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4064$as_echo_n "checking dependency style of $depcc... " >&6; }
4065if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4069  # We make a subdir and do the tests there.  Otherwise we can end up
4070  # making bogus files that we don't know about and never remove.  For
4071  # instance it was reported that on HP-UX the gcc test will end up
4072  # making a dummy file named 'D' -- because '-MD' means "put the output
4073  # in D".
4074  rm -rf conftest.dir
4075  mkdir conftest.dir
4076  # Copy depcomp to subdir because otherwise we won't find it if we're
4077  # using a relative directory.
4078  cp "$am_depcomp" conftest.dir
4079  cd conftest.dir
4080  # We will build objects and dependencies in a subdirectory because
4081  # it helps to detect inapplicable dependency modes.  For instance
4082  # both Tru64's cc and ICC support -MD to output dependencies as a
4083  # side effect of compilation, but ICC will put the dependencies in
4084  # the current directory while Tru64 will put them in the object
4085  # directory.
4086  mkdir sub
4087
4088  am_cv_CC_dependencies_compiler_type=none
4089  if test "$am_compiler_list" = ""; then
4090     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4091  fi
4092  am__universal=false
4093  case " $depcc " in #(
4094     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4095     esac
4096
4097  for depmode in $am_compiler_list; do
4098    # Setup a source with many dependencies, because some compilers
4099    # like to wrap large dependency lists on column 80 (with \), and
4100    # we should not choose a depcomp mode which is confused by this.
4101    #
4102    # We need to recreate these files for each test, as the compiler may
4103    # overwrite some of them when testing with obscure command lines.
4104    # This happens at least with the AIX C compiler.
4105    : > sub/conftest.c
4106    for i in 1 2 3 4 5 6; do
4107      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4108      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4109      # Solaris 10 /bin/sh.
4110      echo '/* dummy */' > sub/conftst$i.h
4111    done
4112    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4113
4114    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4115    # mode.  It turns out that the SunPro C++ compiler does not properly
4116    # handle '-M -o', and we need to detect this.  Also, some Intel
4117    # versions had trouble with output in subdirs.
4118    am__obj=sub/conftest.${OBJEXT-o}
4119    am__minus_obj="-o $am__obj"
4120    case $depmode in
4121    gcc)
4122      # This depmode causes a compiler race in universal mode.
4123      test "$am__universal" = false || continue
4124      ;;
4125    nosideeffect)
4126      # After this tag, mechanisms are not by side-effect, so they'll
4127      # only be used when explicitly requested.
4128      if test "x$enable_dependency_tracking" = xyes; then
4129	continue
4130      else
4131	break
4132      fi
4133      ;;
4134    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4135      # This compiler won't grok '-c -o', but also, the minuso test has
4136      # not run yet.  These depmodes are late enough in the game, and
4137      # so weak that their functioning should not be impacted.
4138      am__obj=conftest.${OBJEXT-o}
4139      am__minus_obj=
4140      ;;
4141    none) break ;;
4142    esac
4143    if depmode=$depmode \
4144       source=sub/conftest.c object=$am__obj \
4145       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4146       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4147         >/dev/null 2>conftest.err &&
4148       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4149       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4150       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4151       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4152      # icc doesn't choke on unknown options, it will just issue warnings
4153      # or remarks (even with -Werror).  So we grep stderr for any message
4154      # that says an option was ignored or not supported.
4155      # When given -MP, icc 7.0 and 7.1 complain thusly:
4156      #   icc: Command line warning: ignoring option '-M'; no argument required
4157      # The diagnosis changed in icc 8.0:
4158      #   icc: Command line remark: option '-MP' not supported
4159      if (grep 'ignoring option' conftest.err ||
4160          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4161        am_cv_CC_dependencies_compiler_type=$depmode
4162        break
4163      fi
4164    fi
4165  done
4166
4167  cd ..
4168  rm -rf conftest.dir
4169else
4170  am_cv_CC_dependencies_compiler_type=none
4171fi
4172
4173fi
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4175$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4176CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4177
4178 if
4179  test "x$enable_dependency_tracking" != xno \
4180  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4181  am__fastdepCC_TRUE=
4182  am__fastdepCC_FALSE='#'
4183else
4184  am__fastdepCC_TRUE='#'
4185  am__fastdepCC_FALSE=
4186fi
4187
4188
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4190$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4191if ${ac_cv_path_SED+:} false; then :
4192  $as_echo_n "(cached) " >&6
4193else
4194            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4195     for ac_i in 1 2 3 4 5 6 7; do
4196       ac_script="$ac_script$as_nl$ac_script"
4197     done
4198     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4199     { ac_script=; unset ac_script;}
4200     if test -z "$SED"; then
4201  ac_path_SED_found=false
4202  # Loop through the user's path and test for each of PROGNAME-LIST
4203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH
4205do
4206  IFS=$as_save_IFS
4207  test -z "$as_dir" && as_dir=.
4208    for ac_prog in sed gsed; do
4209    for ac_exec_ext in '' $ac_executable_extensions; do
4210      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4211      as_fn_executable_p "$ac_path_SED" || continue
4212# Check for GNU ac_path_SED and select it if it is found.
4213  # Check for GNU $ac_path_SED
4214case `"$ac_path_SED" --version 2>&1` in
4215*GNU*)
4216  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4217*)
4218  ac_count=0
4219  $as_echo_n 0123456789 >"conftest.in"
4220  while :
4221  do
4222    cat "conftest.in" "conftest.in" >"conftest.tmp"
4223    mv "conftest.tmp" "conftest.in"
4224    cp "conftest.in" "conftest.nl"
4225    $as_echo '' >> "conftest.nl"
4226    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228    as_fn_arith $ac_count + 1 && ac_count=$as_val
4229    if test $ac_count -gt ${ac_path_SED_max-0}; then
4230      # Best one so far, save it but keep looking for a better one
4231      ac_cv_path_SED="$ac_path_SED"
4232      ac_path_SED_max=$ac_count
4233    fi
4234    # 10*(2^10) chars as input seems more than enough
4235    test $ac_count -gt 10 && break
4236  done
4237  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238esac
4239
4240      $ac_path_SED_found && break 3
4241    done
4242  done
4243  done
4244IFS=$as_save_IFS
4245  if test -z "$ac_cv_path_SED"; then
4246    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4247  fi
4248else
4249  ac_cv_path_SED=$SED
4250fi
4251
4252fi
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4254$as_echo "$ac_cv_path_SED" >&6; }
4255 SED="$ac_cv_path_SED"
4256  rm -f conftest.sed
4257
4258test -z "$SED" && SED=sed
4259Xsed="$SED -e 1s/^X//"
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4272$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4273if ${ac_cv_path_GREP+:} false; then :
4274  $as_echo_n "(cached) " >&6
4275else
4276  if test -z "$GREP"; then
4277  ac_path_GREP_found=false
4278  # Loop through the user's path and test for each of PROGNAME-LIST
4279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4281do
4282  IFS=$as_save_IFS
4283  test -z "$as_dir" && as_dir=.
4284    for ac_prog in grep ggrep; do
4285    for ac_exec_ext in '' $ac_executable_extensions; do
4286      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4287      as_fn_executable_p "$ac_path_GREP" || continue
4288# Check for GNU ac_path_GREP and select it if it is found.
4289  # Check for GNU $ac_path_GREP
4290case `"$ac_path_GREP" --version 2>&1` in
4291*GNU*)
4292  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4293*)
4294  ac_count=0
4295  $as_echo_n 0123456789 >"conftest.in"
4296  while :
4297  do
4298    cat "conftest.in" "conftest.in" >"conftest.tmp"
4299    mv "conftest.tmp" "conftest.in"
4300    cp "conftest.in" "conftest.nl"
4301    $as_echo 'GREP' >> "conftest.nl"
4302    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4303    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4304    as_fn_arith $ac_count + 1 && ac_count=$as_val
4305    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4306      # Best one so far, save it but keep looking for a better one
4307      ac_cv_path_GREP="$ac_path_GREP"
4308      ac_path_GREP_max=$ac_count
4309    fi
4310    # 10*(2^10) chars as input seems more than enough
4311    test $ac_count -gt 10 && break
4312  done
4313  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4314esac
4315
4316      $ac_path_GREP_found && break 3
4317    done
4318  done
4319  done
4320IFS=$as_save_IFS
4321  if test -z "$ac_cv_path_GREP"; then
4322    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4323  fi
4324else
4325  ac_cv_path_GREP=$GREP
4326fi
4327
4328fi
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4330$as_echo "$ac_cv_path_GREP" >&6; }
4331 GREP="$ac_cv_path_GREP"
4332
4333
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4335$as_echo_n "checking for egrep... " >&6; }
4336if ${ac_cv_path_EGREP+:} false; then :
4337  $as_echo_n "(cached) " >&6
4338else
4339  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4340   then ac_cv_path_EGREP="$GREP -E"
4341   else
4342     if test -z "$EGREP"; then
4343  ac_path_EGREP_found=false
4344  # Loop through the user's path and test for each of PROGNAME-LIST
4345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347do
4348  IFS=$as_save_IFS
4349  test -z "$as_dir" && as_dir=.
4350    for ac_prog in egrep; do
4351    for ac_exec_ext in '' $ac_executable_extensions; do
4352      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4353      as_fn_executable_p "$ac_path_EGREP" || continue
4354# Check for GNU ac_path_EGREP and select it if it is found.
4355  # Check for GNU $ac_path_EGREP
4356case `"$ac_path_EGREP" --version 2>&1` in
4357*GNU*)
4358  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4359*)
4360  ac_count=0
4361  $as_echo_n 0123456789 >"conftest.in"
4362  while :
4363  do
4364    cat "conftest.in" "conftest.in" >"conftest.tmp"
4365    mv "conftest.tmp" "conftest.in"
4366    cp "conftest.in" "conftest.nl"
4367    $as_echo 'EGREP' >> "conftest.nl"
4368    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370    as_fn_arith $ac_count + 1 && ac_count=$as_val
4371    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4372      # Best one so far, save it but keep looking for a better one
4373      ac_cv_path_EGREP="$ac_path_EGREP"
4374      ac_path_EGREP_max=$ac_count
4375    fi
4376    # 10*(2^10) chars as input seems more than enough
4377    test $ac_count -gt 10 && break
4378  done
4379  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380esac
4381
4382      $ac_path_EGREP_found && break 3
4383    done
4384  done
4385  done
4386IFS=$as_save_IFS
4387  if test -z "$ac_cv_path_EGREP"; then
4388    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4389  fi
4390else
4391  ac_cv_path_EGREP=$EGREP
4392fi
4393
4394   fi
4395fi
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4397$as_echo "$ac_cv_path_EGREP" >&6; }
4398 EGREP="$ac_cv_path_EGREP"
4399
4400
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4402$as_echo_n "checking for fgrep... " >&6; }
4403if ${ac_cv_path_FGREP+:} false; then :
4404  $as_echo_n "(cached) " >&6
4405else
4406  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4407   then ac_cv_path_FGREP="$GREP -F"
4408   else
4409     if test -z "$FGREP"; then
4410  ac_path_FGREP_found=false
4411  # Loop through the user's path and test for each of PROGNAME-LIST
4412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4414do
4415  IFS=$as_save_IFS
4416  test -z "$as_dir" && as_dir=.
4417    for ac_prog in fgrep; do
4418    for ac_exec_ext in '' $ac_executable_extensions; do
4419      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4420      as_fn_executable_p "$ac_path_FGREP" || continue
4421# Check for GNU ac_path_FGREP and select it if it is found.
4422  # Check for GNU $ac_path_FGREP
4423case `"$ac_path_FGREP" --version 2>&1` in
4424*GNU*)
4425  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4426*)
4427  ac_count=0
4428  $as_echo_n 0123456789 >"conftest.in"
4429  while :
4430  do
4431    cat "conftest.in" "conftest.in" >"conftest.tmp"
4432    mv "conftest.tmp" "conftest.in"
4433    cp "conftest.in" "conftest.nl"
4434    $as_echo 'FGREP' >> "conftest.nl"
4435    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4436    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4437    as_fn_arith $ac_count + 1 && ac_count=$as_val
4438    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4439      # Best one so far, save it but keep looking for a better one
4440      ac_cv_path_FGREP="$ac_path_FGREP"
4441      ac_path_FGREP_max=$ac_count
4442    fi
4443    # 10*(2^10) chars as input seems more than enough
4444    test $ac_count -gt 10 && break
4445  done
4446  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4447esac
4448
4449      $ac_path_FGREP_found && break 3
4450    done
4451  done
4452  done
4453IFS=$as_save_IFS
4454  if test -z "$ac_cv_path_FGREP"; then
4455    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4456  fi
4457else
4458  ac_cv_path_FGREP=$FGREP
4459fi
4460
4461   fi
4462fi
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4464$as_echo "$ac_cv_path_FGREP" >&6; }
4465 FGREP="$ac_cv_path_FGREP"
4466
4467
4468test -z "$GREP" && GREP=grep
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488# Check whether --with-gnu-ld was given.
4489if test "${with_gnu_ld+set}" = set; then :
4490  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4491else
4492  with_gnu_ld=no
4493fi
4494
4495ac_prog=ld
4496if test "$GCC" = yes; then
4497  # Check if gcc -print-prog-name=ld gives a path.
4498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4499$as_echo_n "checking for ld used by $CC... " >&6; }
4500  case $host in
4501  *-*-mingw*)
4502    # gcc leaves a trailing carriage return which upsets mingw
4503    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4504  *)
4505    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4506  esac
4507  case $ac_prog in
4508    # Accept absolute paths.
4509    [\\/]* | ?:[\\/]*)
4510      re_direlt='/[^/][^/]*/\.\./'
4511      # Canonicalize the pathname of ld
4512      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4513      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4514	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4515      done
4516      test -z "$LD" && LD="$ac_prog"
4517      ;;
4518  "")
4519    # If it fails, then pretend we aren't using GCC.
4520    ac_prog=ld
4521    ;;
4522  *)
4523    # If it is relative, then search for the first ld in PATH.
4524    with_gnu_ld=unknown
4525    ;;
4526  esac
4527elif test "$with_gnu_ld" = yes; then
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4529$as_echo_n "checking for GNU ld... " >&6; }
4530else
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4532$as_echo_n "checking for non-GNU ld... " >&6; }
4533fi
4534if ${lt_cv_path_LD+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  if test -z "$LD"; then
4538  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4539  for ac_dir in $PATH; do
4540    IFS="$lt_save_ifs"
4541    test -z "$ac_dir" && ac_dir=.
4542    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4543      lt_cv_path_LD="$ac_dir/$ac_prog"
4544      # Check to see if the program is GNU ld.  I'd rather use --version,
4545      # but apparently some variants of GNU ld only accept -v.
4546      # Break only if it was the GNU/non-GNU ld that we prefer.
4547      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4548      *GNU* | *'with BFD'*)
4549	test "$with_gnu_ld" != no && break
4550	;;
4551      *)
4552	test "$with_gnu_ld" != yes && break
4553	;;
4554      esac
4555    fi
4556  done
4557  IFS="$lt_save_ifs"
4558else
4559  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4560fi
4561fi
4562
4563LD="$lt_cv_path_LD"
4564if test -n "$LD"; then
4565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4566$as_echo "$LD" >&6; }
4567else
4568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569$as_echo "no" >&6; }
4570fi
4571test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4573$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4574if ${lt_cv_prog_gnu_ld+:} false; then :
4575  $as_echo_n "(cached) " >&6
4576else
4577  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4578case `$LD -v 2>&1 </dev/null` in
4579*GNU* | *'with BFD'*)
4580  lt_cv_prog_gnu_ld=yes
4581  ;;
4582*)
4583  lt_cv_prog_gnu_ld=no
4584  ;;
4585esac
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4588$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4589with_gnu_ld=$lt_cv_prog_gnu_ld
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4600$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4601if ${lt_cv_path_NM+:} false; then :
4602  $as_echo_n "(cached) " >&6
4603else
4604  if test -n "$NM"; then
4605  # Let the user override the test.
4606  lt_cv_path_NM="$NM"
4607else
4608  lt_nm_to_check="${ac_tool_prefix}nm"
4609  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4610    lt_nm_to_check="$lt_nm_to_check nm"
4611  fi
4612  for lt_tmp_nm in $lt_nm_to_check; do
4613    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4614    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4615      IFS="$lt_save_ifs"
4616      test -z "$ac_dir" && ac_dir=.
4617      tmp_nm="$ac_dir/$lt_tmp_nm"
4618      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4619	# Check to see if the nm accepts a BSD-compat flag.
4620	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4621	#   nm: unknown option "B" ignored
4622	# Tru64's nm complains that /dev/null is an invalid object file
4623	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4624	*/dev/null* | *'Invalid file or object type'*)
4625	  lt_cv_path_NM="$tmp_nm -B"
4626	  break
4627	  ;;
4628	*)
4629	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4630	  */dev/null*)
4631	    lt_cv_path_NM="$tmp_nm -p"
4632	    break
4633	    ;;
4634	  *)
4635	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4636	    continue # so that we can try to find one that supports BSD flags
4637	    ;;
4638	  esac
4639	  ;;
4640	esac
4641      fi
4642    done
4643    IFS="$lt_save_ifs"
4644  done
4645  : ${lt_cv_path_NM=no}
4646fi
4647fi
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4649$as_echo "$lt_cv_path_NM" >&6; }
4650if test "$lt_cv_path_NM" != "no"; then
4651  NM="$lt_cv_path_NM"
4652else
4653  # Didn't find any BSD compatible name lister, look for dumpbin.
4654  if test -n "$DUMPBIN"; then :
4655    # Let the user override the test.
4656  else
4657    if test -n "$ac_tool_prefix"; then
4658  for ac_prog in dumpbin "link -dump"
4659  do
4660    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4661set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663$as_echo_n "checking for $ac_word... " >&6; }
4664if ${ac_cv_prog_DUMPBIN+:} false; then :
4665  $as_echo_n "(cached) " >&6
4666else
4667  if test -n "$DUMPBIN"; then
4668  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673  IFS=$as_save_IFS
4674  test -z "$as_dir" && as_dir=.
4675    for ac_exec_ext in '' $ac_executable_extensions; do
4676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679    break 2
4680  fi
4681done
4682  done
4683IFS=$as_save_IFS
4684
4685fi
4686fi
4687DUMPBIN=$ac_cv_prog_DUMPBIN
4688if test -n "$DUMPBIN"; then
4689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4690$as_echo "$DUMPBIN" >&6; }
4691else
4692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
4694fi
4695
4696
4697    test -n "$DUMPBIN" && break
4698  done
4699fi
4700if test -z "$DUMPBIN"; then
4701  ac_ct_DUMPBIN=$DUMPBIN
4702  for ac_prog in dumpbin "link -dump"
4703do
4704  # Extract the first word of "$ac_prog", so it can be a program name with args.
4705set dummy $ac_prog; ac_word=$2
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707$as_echo_n "checking for $ac_word... " >&6; }
4708if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  if test -n "$ac_ct_DUMPBIN"; then
4712  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4713else
4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717  IFS=$as_save_IFS
4718  test -z "$as_dir" && as_dir=.
4719    for ac_exec_ext in '' $ac_executable_extensions; do
4720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723    break 2
4724  fi
4725done
4726  done
4727IFS=$as_save_IFS
4728
4729fi
4730fi
4731ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4732if test -n "$ac_ct_DUMPBIN"; then
4733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4734$as_echo "$ac_ct_DUMPBIN" >&6; }
4735else
4736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737$as_echo "no" >&6; }
4738fi
4739
4740
4741  test -n "$ac_ct_DUMPBIN" && break
4742done
4743
4744  if test "x$ac_ct_DUMPBIN" = x; then
4745    DUMPBIN=":"
4746  else
4747    case $cross_compiling:$ac_tool_warned in
4748yes:)
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751ac_tool_warned=yes ;;
4752esac
4753    DUMPBIN=$ac_ct_DUMPBIN
4754  fi
4755fi
4756
4757    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4758    *COFF*)
4759      DUMPBIN="$DUMPBIN -symbols"
4760      ;;
4761    *)
4762      DUMPBIN=:
4763      ;;
4764    esac
4765  fi
4766
4767  if test "$DUMPBIN" != ":"; then
4768    NM="$DUMPBIN"
4769  fi
4770fi
4771test -z "$NM" && NM=nm
4772
4773
4774
4775
4776
4777
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4779$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4780if ${lt_cv_nm_interface+:} false; then :
4781  $as_echo_n "(cached) " >&6
4782else
4783  lt_cv_nm_interface="BSD nm"
4784  echo "int some_variable = 0;" > conftest.$ac_ext
4785  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4786  (eval "$ac_compile" 2>conftest.err)
4787  cat conftest.err >&5
4788  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4789  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4790  cat conftest.err >&5
4791  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4792  cat conftest.out >&5
4793  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4794    lt_cv_nm_interface="MS dumpbin"
4795  fi
4796  rm -f conftest*
4797fi
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4799$as_echo "$lt_cv_nm_interface" >&6; }
4800
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4802$as_echo_n "checking whether ln -s works... " >&6; }
4803LN_S=$as_ln_s
4804if test "$LN_S" = "ln -s"; then
4805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4806$as_echo "yes" >&6; }
4807else
4808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4809$as_echo "no, using $LN_S" >&6; }
4810fi
4811
4812# find the maximum length of command line arguments
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4814$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4815if ${lt_cv_sys_max_cmd_len+:} false; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818    i=0
4819  teststring="ABCD"
4820
4821  case $build_os in
4822  msdosdjgpp*)
4823    # On DJGPP, this test can blow up pretty badly due to problems in libc
4824    # (any single argument exceeding 2000 bytes causes a buffer overrun
4825    # during glob expansion).  Even if it were fixed, the result of this
4826    # check would be larger than it should be.
4827    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4828    ;;
4829
4830  gnu*)
4831    # Under GNU Hurd, this test is not required because there is
4832    # no limit to the length of command line arguments.
4833    # Libtool will interpret -1 as no limit whatsoever
4834    lt_cv_sys_max_cmd_len=-1;
4835    ;;
4836
4837  cygwin* | mingw* | cegcc*)
4838    # On Win9x/ME, this test blows up -- it succeeds, but takes
4839    # about 5 minutes as the teststring grows exponentially.
4840    # Worse, since 9x/ME are not pre-emptively multitasking,
4841    # you end up with a "frozen" computer, even though with patience
4842    # the test eventually succeeds (with a max line length of 256k).
4843    # Instead, let's just punt: use the minimum linelength reported by
4844    # all of the supported platforms: 8192 (on NT/2K/XP).
4845    lt_cv_sys_max_cmd_len=8192;
4846    ;;
4847
4848  mint*)
4849    # On MiNT this can take a long time and run out of memory.
4850    lt_cv_sys_max_cmd_len=8192;
4851    ;;
4852
4853  amigaos*)
4854    # On AmigaOS with pdksh, this test takes hours, literally.
4855    # So we just punt and use a minimum line length of 8192.
4856    lt_cv_sys_max_cmd_len=8192;
4857    ;;
4858
4859  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4860    # This has been around since 386BSD, at least.  Likely further.
4861    if test -x /sbin/sysctl; then
4862      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4863    elif test -x /usr/sbin/sysctl; then
4864      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4865    else
4866      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4867    fi
4868    # And add a safety zone
4869    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4870    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4871    ;;
4872
4873  interix*)
4874    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4875    lt_cv_sys_max_cmd_len=196608
4876    ;;
4877
4878  os2*)
4879    # The test takes a long time on OS/2.
4880    lt_cv_sys_max_cmd_len=8192
4881    ;;
4882
4883  osf*)
4884    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4885    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4886    # nice to cause kernel panics so lets avoid the loop below.
4887    # First set a reasonable default.
4888    lt_cv_sys_max_cmd_len=16384
4889    #
4890    if test -x /sbin/sysconfig; then
4891      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4892        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4893      esac
4894    fi
4895    ;;
4896  sco3.2v5*)
4897    lt_cv_sys_max_cmd_len=102400
4898    ;;
4899  sysv5* | sco5v6* | sysv4.2uw2*)
4900    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4901    if test -n "$kargmax"; then
4902      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4903    else
4904      lt_cv_sys_max_cmd_len=32768
4905    fi
4906    ;;
4907  *)
4908    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4909    if test -n "$lt_cv_sys_max_cmd_len" && \
4910	test undefined != "$lt_cv_sys_max_cmd_len"; then
4911      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4912      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4913    else
4914      # Make teststring a little bigger before we do anything with it.
4915      # a 1K string should be a reasonable start.
4916      for i in 1 2 3 4 5 6 7 8 ; do
4917        teststring=$teststring$teststring
4918      done
4919      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4920      # If test is not a shell built-in, we'll probably end up computing a
4921      # maximum length that is only half of the actual maximum length, but
4922      # we can't tell.
4923      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4924	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4925	      test $i != 17 # 1/2 MB should be enough
4926      do
4927        i=`expr $i + 1`
4928        teststring=$teststring$teststring
4929      done
4930      # Only check the string length outside the loop.
4931      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4932      teststring=
4933      # Add a significant safety factor because C++ compilers can tack on
4934      # massive amounts of additional arguments before passing them to the
4935      # linker.  It appears as though 1/2 is a usable value.
4936      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4937    fi
4938    ;;
4939  esac
4940
4941fi
4942
4943if test -n $lt_cv_sys_max_cmd_len ; then
4944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4945$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4946else
4947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4948$as_echo "none" >&6; }
4949fi
4950max_cmd_len=$lt_cv_sys_max_cmd_len
4951
4952
4953
4954
4955
4956
4957: ${CP="cp -f"}
4958: ${MV="mv -f"}
4959: ${RM="rm -f"}
4960
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4962$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4963# Try some XSI features
4964xsi_shell=no
4965( _lt_dummy="a/b/c"
4966  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4967      = c,a/b,b/c, \
4968    && eval 'test $(( 1 + 1 )) -eq 2 \
4969    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4970  && xsi_shell=yes
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4972$as_echo "$xsi_shell" >&6; }
4973
4974
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4976$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4977lt_shell_append=no
4978( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4979    >/dev/null 2>&1 \
4980  && lt_shell_append=yes
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4982$as_echo "$lt_shell_append" >&6; }
4983
4984
4985if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4986  lt_unset=unset
4987else
4988  lt_unset=false
4989fi
4990
4991
4992
4993
4994
4995# test EBCDIC or ASCII
4996case `echo X|tr X '\101'` in
4997 A) # ASCII based system
4998    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4999  lt_SP2NL='tr \040 \012'
5000  lt_NL2SP='tr \015\012 \040\040'
5001  ;;
5002 *) # EBCDIC based system
5003  lt_SP2NL='tr \100 \n'
5004  lt_NL2SP='tr \r\n \100\100'
5005  ;;
5006esac
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5017$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5018if ${lt_cv_to_host_file_cmd+:} false; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021  case $host in
5022  *-*-mingw* )
5023    case $build in
5024      *-*-mingw* ) # actually msys
5025        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5026        ;;
5027      *-*-cygwin* )
5028        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5029        ;;
5030      * ) # otherwise, assume *nix
5031        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5032        ;;
5033    esac
5034    ;;
5035  *-*-cygwin* )
5036    case $build in
5037      *-*-mingw* ) # actually msys
5038        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5039        ;;
5040      *-*-cygwin* )
5041        lt_cv_to_host_file_cmd=func_convert_file_noop
5042        ;;
5043      * ) # otherwise, assume *nix
5044        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5045        ;;
5046    esac
5047    ;;
5048  * ) # unhandled hosts (and "normal" native builds)
5049    lt_cv_to_host_file_cmd=func_convert_file_noop
5050    ;;
5051esac
5052
5053fi
5054
5055to_host_file_cmd=$lt_cv_to_host_file_cmd
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5057$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5058
5059
5060
5061
5062
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5064$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5065if ${lt_cv_to_tool_file_cmd+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  #assume ordinary cross tools, or native build.
5069lt_cv_to_tool_file_cmd=func_convert_file_noop
5070case $host in
5071  *-*-mingw* )
5072    case $build in
5073      *-*-mingw* ) # actually msys
5074        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5075        ;;
5076    esac
5077    ;;
5078esac
5079
5080fi
5081
5082to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5084$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5085
5086
5087
5088
5089
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5091$as_echo_n "checking for $LD option to reload object files... " >&6; }
5092if ${lt_cv_ld_reload_flag+:} false; then :
5093  $as_echo_n "(cached) " >&6
5094else
5095  lt_cv_ld_reload_flag='-r'
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5098$as_echo "$lt_cv_ld_reload_flag" >&6; }
5099reload_flag=$lt_cv_ld_reload_flag
5100case $reload_flag in
5101"" | " "*) ;;
5102*) reload_flag=" $reload_flag" ;;
5103esac
5104reload_cmds='$LD$reload_flag -o $output$reload_objs'
5105case $host_os in
5106  cygwin* | mingw* | pw32* | cegcc*)
5107    if test "$GCC" != yes; then
5108      reload_cmds=false
5109    fi
5110    ;;
5111  darwin*)
5112    if test "$GCC" = yes; then
5113      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5114    else
5115      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5116    fi
5117    ;;
5118esac
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128if test -n "$ac_tool_prefix"; then
5129  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}objdump; ac_word=$2
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132$as_echo_n "checking for $ac_word... " >&6; }
5133if ${ac_cv_prog_OBJDUMP+:} false; then :
5134  $as_echo_n "(cached) " >&6
5135else
5136  if test -n "$OBJDUMP"; then
5137  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5138else
5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142  IFS=$as_save_IFS
5143  test -z "$as_dir" && as_dir=.
5144    for ac_exec_ext in '' $ac_executable_extensions; do
5145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148    break 2
5149  fi
5150done
5151  done
5152IFS=$as_save_IFS
5153
5154fi
5155fi
5156OBJDUMP=$ac_cv_prog_OBJDUMP
5157if test -n "$OBJDUMP"; then
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5159$as_echo "$OBJDUMP" >&6; }
5160else
5161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162$as_echo "no" >&6; }
5163fi
5164
5165
5166fi
5167if test -z "$ac_cv_prog_OBJDUMP"; then
5168  ac_ct_OBJDUMP=$OBJDUMP
5169  # Extract the first word of "objdump", so it can be a program name with args.
5170set dummy objdump; ac_word=$2
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172$as_echo_n "checking for $ac_word... " >&6; }
5173if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176  if test -n "$ac_ct_OBJDUMP"; then
5177  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182  IFS=$as_save_IFS
5183  test -z "$as_dir" && as_dir=.
5184    for ac_exec_ext in '' $ac_executable_extensions; do
5185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188    break 2
5189  fi
5190done
5191  done
5192IFS=$as_save_IFS
5193
5194fi
5195fi
5196ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5197if test -n "$ac_ct_OBJDUMP"; then
5198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5199$as_echo "$ac_ct_OBJDUMP" >&6; }
5200else
5201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
5203fi
5204
5205  if test "x$ac_ct_OBJDUMP" = x; then
5206    OBJDUMP="false"
5207  else
5208    case $cross_compiling:$ac_tool_warned in
5209yes:)
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212ac_tool_warned=yes ;;
5213esac
5214    OBJDUMP=$ac_ct_OBJDUMP
5215  fi
5216else
5217  OBJDUMP="$ac_cv_prog_OBJDUMP"
5218fi
5219
5220test -z "$OBJDUMP" && OBJDUMP=objdump
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5231$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5232if ${lt_cv_deplibs_check_method+:} false; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235  lt_cv_file_magic_cmd='$MAGIC_CMD'
5236lt_cv_file_magic_test_file=
5237lt_cv_deplibs_check_method='unknown'
5238# Need to set the preceding variable on all platforms that support
5239# interlibrary dependencies.
5240# 'none' -- dependencies not supported.
5241# `unknown' -- same as none, but documents that we really don't know.
5242# 'pass_all' -- all dependencies passed with no checks.
5243# 'test_compile' -- check by making test program.
5244# 'file_magic [[regex]]' -- check by looking for files in library path
5245# which responds to the $file_magic_cmd with a given extended regex.
5246# If you have `file' or equivalent on your system and you're not sure
5247# whether `pass_all' will *always* work, you probably want this one.
5248
5249case $host_os in
5250aix[4-9]*)
5251  lt_cv_deplibs_check_method=pass_all
5252  ;;
5253
5254beos*)
5255  lt_cv_deplibs_check_method=pass_all
5256  ;;
5257
5258bsdi[45]*)
5259  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5260  lt_cv_file_magic_cmd='/usr/bin/file -L'
5261  lt_cv_file_magic_test_file=/shlib/libc.so
5262  ;;
5263
5264cygwin*)
5265  # func_win32_libid is a shell function defined in ltmain.sh
5266  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5267  lt_cv_file_magic_cmd='func_win32_libid'
5268  ;;
5269
5270mingw* | pw32*)
5271  # Base MSYS/MinGW do not provide the 'file' command needed by
5272  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5273  # unless we find 'file', for example because we are cross-compiling.
5274  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5275  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5276    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5277    lt_cv_file_magic_cmd='func_win32_libid'
5278  else
5279    # Keep this pattern in sync with the one in func_win32_libid.
5280    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5281    lt_cv_file_magic_cmd='$OBJDUMP -f'
5282  fi
5283  ;;
5284
5285cegcc*)
5286  # use the weaker test based on 'objdump'. See mingw*.
5287  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5288  lt_cv_file_magic_cmd='$OBJDUMP -f'
5289  ;;
5290
5291darwin* | rhapsody*)
5292  lt_cv_deplibs_check_method=pass_all
5293  ;;
5294
5295freebsd* | dragonfly*)
5296  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5297    case $host_cpu in
5298    i*86 )
5299      # Not sure whether the presence of OpenBSD here was a mistake.
5300      # Let's accept both of them until this is cleared up.
5301      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5302      lt_cv_file_magic_cmd=/usr/bin/file
5303      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5304      ;;
5305    esac
5306  else
5307    lt_cv_deplibs_check_method=pass_all
5308  fi
5309  ;;
5310
5311haiku*)
5312  lt_cv_deplibs_check_method=pass_all
5313  ;;
5314
5315hpux10.20* | hpux11*)
5316  lt_cv_file_magic_cmd=/usr/bin/file
5317  case $host_cpu in
5318  ia64*)
5319    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5320    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5321    ;;
5322  hppa*64*)
5323    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]'
5324    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5325    ;;
5326  *)
5327    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5328    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5329    ;;
5330  esac
5331  ;;
5332
5333interix[3-9]*)
5334  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5335  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5336  ;;
5337
5338irix5* | irix6* | nonstopux*)
5339  case $LD in
5340  *-32|*"-32 ") libmagic=32-bit;;
5341  *-n32|*"-n32 ") libmagic=N32;;
5342  *-64|*"-64 ") libmagic=64-bit;;
5343  *) libmagic=never-match;;
5344  esac
5345  lt_cv_deplibs_check_method=pass_all
5346  ;;
5347
5348# This must be glibc/ELF.
5349linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5350  lt_cv_deplibs_check_method=pass_all
5351  ;;
5352
5353netbsd* | netbsdelf*-gnu)
5354  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5355    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5356  else
5357    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5358  fi
5359  ;;
5360
5361newos6*)
5362  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5363  lt_cv_file_magic_cmd=/usr/bin/file
5364  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5365  ;;
5366
5367*nto* | *qnx*)
5368  lt_cv_deplibs_check_method=pass_all
5369  ;;
5370
5371openbsd*)
5372  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5374  else
5375    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5376  fi
5377  ;;
5378
5379osf3* | osf4* | osf5*)
5380  lt_cv_deplibs_check_method=pass_all
5381  ;;
5382
5383rdos*)
5384  lt_cv_deplibs_check_method=pass_all
5385  ;;
5386
5387solaris*)
5388  lt_cv_deplibs_check_method=pass_all
5389  ;;
5390
5391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5392  lt_cv_deplibs_check_method=pass_all
5393  ;;
5394
5395sysv4 | sysv4.3*)
5396  case $host_vendor in
5397  motorola)
5398    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]'
5399    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5400    ;;
5401  ncr)
5402    lt_cv_deplibs_check_method=pass_all
5403    ;;
5404  sequent)
5405    lt_cv_file_magic_cmd='/bin/file'
5406    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5407    ;;
5408  sni)
5409    lt_cv_file_magic_cmd='/bin/file'
5410    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5411    lt_cv_file_magic_test_file=/lib/libc.so
5412    ;;
5413  siemens)
5414    lt_cv_deplibs_check_method=pass_all
5415    ;;
5416  pc)
5417    lt_cv_deplibs_check_method=pass_all
5418    ;;
5419  esac
5420  ;;
5421
5422tpf*)
5423  lt_cv_deplibs_check_method=pass_all
5424  ;;
5425esac
5426
5427fi
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5429$as_echo "$lt_cv_deplibs_check_method" >&6; }
5430
5431file_magic_glob=
5432want_nocaseglob=no
5433if test "$build" = "$host"; then
5434  case $host_os in
5435  mingw* | pw32*)
5436    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5437      want_nocaseglob=yes
5438    else
5439      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5440    fi
5441    ;;
5442  esac
5443fi
5444
5445file_magic_cmd=$lt_cv_file_magic_cmd
5446deplibs_check_method=$lt_cv_deplibs_check_method
5447test -z "$deplibs_check_method" && deplibs_check_method=unknown
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470if test -n "$ac_tool_prefix"; then
5471  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5472set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474$as_echo_n "checking for $ac_word... " >&6; }
5475if ${ac_cv_prog_DLLTOOL+:} false; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478  if test -n "$DLLTOOL"; then
5479  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5480else
5481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482for as_dir in $PATH
5483do
5484  IFS=$as_save_IFS
5485  test -z "$as_dir" && as_dir=.
5486    for ac_exec_ext in '' $ac_executable_extensions; do
5487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490    break 2
5491  fi
5492done
5493  done
5494IFS=$as_save_IFS
5495
5496fi
5497fi
5498DLLTOOL=$ac_cv_prog_DLLTOOL
5499if test -n "$DLLTOOL"; then
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5501$as_echo "$DLLTOOL" >&6; }
5502else
5503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504$as_echo "no" >&6; }
5505fi
5506
5507
5508fi
5509if test -z "$ac_cv_prog_DLLTOOL"; then
5510  ac_ct_DLLTOOL=$DLLTOOL
5511  # Extract the first word of "dlltool", so it can be a program name with args.
5512set dummy dlltool; ac_word=$2
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514$as_echo_n "checking for $ac_word... " >&6; }
5515if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5516  $as_echo_n "(cached) " >&6
5517else
5518  if test -n "$ac_ct_DLLTOOL"; then
5519  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5520else
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524  IFS=$as_save_IFS
5525  test -z "$as_dir" && as_dir=.
5526    for ac_exec_ext in '' $ac_executable_extensions; do
5527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530    break 2
5531  fi
5532done
5533  done
5534IFS=$as_save_IFS
5535
5536fi
5537fi
5538ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5539if test -n "$ac_ct_DLLTOOL"; then
5540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5541$as_echo "$ac_ct_DLLTOOL" >&6; }
5542else
5543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546
5547  if test "x$ac_ct_DLLTOOL" = x; then
5548    DLLTOOL="false"
5549  else
5550    case $cross_compiling:$ac_tool_warned in
5551yes:)
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554ac_tool_warned=yes ;;
5555esac
5556    DLLTOOL=$ac_ct_DLLTOOL
5557  fi
5558else
5559  DLLTOOL="$ac_cv_prog_DLLTOOL"
5560fi
5561
5562test -z "$DLLTOOL" && DLLTOOL=dlltool
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5574$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5575if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5576  $as_echo_n "(cached) " >&6
5577else
5578  lt_cv_sharedlib_from_linklib_cmd='unknown'
5579
5580case $host_os in
5581cygwin* | mingw* | pw32* | cegcc*)
5582  # two different shell functions defined in ltmain.sh
5583  # decide which to use based on capabilities of $DLLTOOL
5584  case `$DLLTOOL --help 2>&1` in
5585  *--identify-strict*)
5586    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5587    ;;
5588  *)
5589    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5590    ;;
5591  esac
5592  ;;
5593*)
5594  # fallback: assume linklib IS sharedlib
5595  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5596  ;;
5597esac
5598
5599fi
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5601$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5602sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5603test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5604
5605
5606
5607
5608
5609
5610
5611
5612if test -n "$ac_tool_prefix"; then
5613  for ac_prog in ar
5614  do
5615    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618$as_echo_n "checking for $ac_word... " >&6; }
5619if ${ac_cv_prog_AR+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  if test -n "$AR"; then
5623  ac_cv_prog_AR="$AR" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628  IFS=$as_save_IFS
5629  test -z "$as_dir" && as_dir=.
5630    for ac_exec_ext in '' $ac_executable_extensions; do
5631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634    break 2
5635  fi
5636done
5637  done
5638IFS=$as_save_IFS
5639
5640fi
5641fi
5642AR=$ac_cv_prog_AR
5643if test -n "$AR"; then
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5645$as_echo "$AR" >&6; }
5646else
5647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648$as_echo "no" >&6; }
5649fi
5650
5651
5652    test -n "$AR" && break
5653  done
5654fi
5655if test -z "$AR"; then
5656  ac_ct_AR=$AR
5657  for ac_prog in ar
5658do
5659  # Extract the first word of "$ac_prog", so it can be a program name with args.
5660set dummy $ac_prog; ac_word=$2
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662$as_echo_n "checking for $ac_word... " >&6; }
5663if ${ac_cv_prog_ac_ct_AR+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  if test -n "$ac_ct_AR"; then
5667  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672  IFS=$as_save_IFS
5673  test -z "$as_dir" && as_dir=.
5674    for ac_exec_ext in '' $ac_executable_extensions; do
5675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676    ac_cv_prog_ac_ct_AR="$ac_prog"
5677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678    break 2
5679  fi
5680done
5681  done
5682IFS=$as_save_IFS
5683
5684fi
5685fi
5686ac_ct_AR=$ac_cv_prog_ac_ct_AR
5687if test -n "$ac_ct_AR"; then
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5689$as_echo "$ac_ct_AR" >&6; }
5690else
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693fi
5694
5695
5696  test -n "$ac_ct_AR" && break
5697done
5698
5699  if test "x$ac_ct_AR" = x; then
5700    AR="false"
5701  else
5702    case $cross_compiling:$ac_tool_warned in
5703yes:)
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706ac_tool_warned=yes ;;
5707esac
5708    AR=$ac_ct_AR
5709  fi
5710fi
5711
5712: ${AR=ar}
5713: ${AR_FLAGS=cru}
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5726$as_echo_n "checking for archiver @FILE support... " >&6; }
5727if ${lt_cv_ar_at_file+:} false; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  lt_cv_ar_at_file=no
5731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h.  */
5733
5734int
5735main ()
5736{
5737
5738  ;
5739  return 0;
5740}
5741_ACEOF
5742if ac_fn_c_try_compile "$LINENO"; then :
5743  echo conftest.$ac_objext > conftest.lst
5744      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5745      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5746  (eval $lt_ar_try) 2>&5
5747  ac_status=$?
5748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749  test $ac_status = 0; }
5750      if test "$ac_status" -eq 0; then
5751	# Ensure the archiver fails upon bogus file names.
5752	rm -f conftest.$ac_objext libconftest.a
5753	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5754  (eval $lt_ar_try) 2>&5
5755  ac_status=$?
5756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757  test $ac_status = 0; }
5758	if test "$ac_status" -ne 0; then
5759          lt_cv_ar_at_file=@
5760        fi
5761      fi
5762      rm -f conftest.* libconftest.a
5763
5764fi
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766
5767fi
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5769$as_echo "$lt_cv_ar_at_file" >&6; }
5770
5771if test "x$lt_cv_ar_at_file" = xno; then
5772  archiver_list_spec=
5773else
5774  archiver_list_spec=$lt_cv_ar_at_file
5775fi
5776
5777
5778
5779
5780
5781
5782
5783if test -n "$ac_tool_prefix"; then
5784  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5785set dummy ${ac_tool_prefix}strip; ac_word=$2
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787$as_echo_n "checking for $ac_word... " >&6; }
5788if ${ac_cv_prog_STRIP+:} false; then :
5789  $as_echo_n "(cached) " >&6
5790else
5791  if test -n "$STRIP"; then
5792  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797  IFS=$as_save_IFS
5798  test -z "$as_dir" && as_dir=.
5799    for ac_exec_ext in '' $ac_executable_extensions; do
5800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803    break 2
5804  fi
5805done
5806  done
5807IFS=$as_save_IFS
5808
5809fi
5810fi
5811STRIP=$ac_cv_prog_STRIP
5812if test -n "$STRIP"; then
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5814$as_echo "$STRIP" >&6; }
5815else
5816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817$as_echo "no" >&6; }
5818fi
5819
5820
5821fi
5822if test -z "$ac_cv_prog_STRIP"; then
5823  ac_ct_STRIP=$STRIP
5824  # Extract the first word of "strip", so it can be a program name with args.
5825set dummy strip; ac_word=$2
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
5828if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5829  $as_echo_n "(cached) " >&6
5830else
5831  if test -n "$ac_ct_STRIP"; then
5832  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837  IFS=$as_save_IFS
5838  test -z "$as_dir" && as_dir=.
5839    for ac_exec_ext in '' $ac_executable_extensions; do
5840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5841    ac_cv_prog_ac_ct_STRIP="strip"
5842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843    break 2
5844  fi
5845done
5846  done
5847IFS=$as_save_IFS
5848
5849fi
5850fi
5851ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5852if test -n "$ac_ct_STRIP"; then
5853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5854$as_echo "$ac_ct_STRIP" >&6; }
5855else
5856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
5858fi
5859
5860  if test "x$ac_ct_STRIP" = x; then
5861    STRIP=":"
5862  else
5863    case $cross_compiling:$ac_tool_warned in
5864yes:)
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867ac_tool_warned=yes ;;
5868esac
5869    STRIP=$ac_ct_STRIP
5870  fi
5871else
5872  STRIP="$ac_cv_prog_STRIP"
5873fi
5874
5875test -z "$STRIP" && STRIP=:
5876
5877
5878
5879
5880
5881
5882if test -n "$ac_tool_prefix"; then
5883  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5884set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886$as_echo_n "checking for $ac_word... " >&6; }
5887if ${ac_cv_prog_RANLIB+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  if test -n "$RANLIB"; then
5891  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5892else
5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894for as_dir in $PATH
5895do
5896  IFS=$as_save_IFS
5897  test -z "$as_dir" && as_dir=.
5898    for ac_exec_ext in '' $ac_executable_extensions; do
5899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902    break 2
5903  fi
5904done
5905  done
5906IFS=$as_save_IFS
5907
5908fi
5909fi
5910RANLIB=$ac_cv_prog_RANLIB
5911if test -n "$RANLIB"; then
5912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5913$as_echo "$RANLIB" >&6; }
5914else
5915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916$as_echo "no" >&6; }
5917fi
5918
5919
5920fi
5921if test -z "$ac_cv_prog_RANLIB"; then
5922  ac_ct_RANLIB=$RANLIB
5923  # Extract the first word of "ranlib", so it can be a program name with args.
5924set dummy ranlib; ac_word=$2
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
5927if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  if test -n "$ac_ct_RANLIB"; then
5931  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936  IFS=$as_save_IFS
5937  test -z "$as_dir" && as_dir=.
5938    for ac_exec_ext in '' $ac_executable_extensions; do
5939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940    ac_cv_prog_ac_ct_RANLIB="ranlib"
5941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942    break 2
5943  fi
5944done
5945  done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5951if test -n "$ac_ct_RANLIB"; then
5952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5953$as_echo "$ac_ct_RANLIB" >&6; }
5954else
5955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959  if test "x$ac_ct_RANLIB" = x; then
5960    RANLIB=":"
5961  else
5962    case $cross_compiling:$ac_tool_warned in
5963yes:)
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966ac_tool_warned=yes ;;
5967esac
5968    RANLIB=$ac_ct_RANLIB
5969  fi
5970else
5971  RANLIB="$ac_cv_prog_RANLIB"
5972fi
5973
5974test -z "$RANLIB" && RANLIB=:
5975
5976
5977
5978
5979
5980
5981# Determine commands to create old-style static archives.
5982old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5983old_postinstall_cmds='chmod 644 $oldlib'
5984old_postuninstall_cmds=
5985
5986if test -n "$RANLIB"; then
5987  case $host_os in
5988  openbsd*)
5989    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5990    ;;
5991  *)
5992    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5993    ;;
5994  esac
5995  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5996fi
5997
5998case $host_os in
5999  darwin*)
6000    lock_old_archive_extraction=yes ;;
6001  *)
6002    lock_old_archive_extraction=no ;;
6003esac
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043# If no C compiler was specified, use CC.
6044LTCC=${LTCC-"$CC"}
6045
6046# If no C compiler flags were specified, use CFLAGS.
6047LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6048
6049# Allow CC to be a program name with arguments.
6050compiler=$CC
6051
6052
6053# Check for command to grab the raw symbol name followed by C symbol from nm.
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6055$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6056if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6057  $as_echo_n "(cached) " >&6
6058else
6059
6060# These are sane defaults that work on at least a few old systems.
6061# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6062
6063# Character class describing NM global symbol codes.
6064symcode='[BCDEGRST]'
6065
6066# Regexp to match symbols that can be accessed directly from C.
6067sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6068
6069# Define system-specific variables.
6070case $host_os in
6071aix*)
6072  symcode='[BCDT]'
6073  ;;
6074cygwin* | mingw* | pw32* | cegcc*)
6075  symcode='[ABCDGISTW]'
6076  ;;
6077hpux*)
6078  if test "$host_cpu" = ia64; then
6079    symcode='[ABCDEGRST]'
6080  fi
6081  ;;
6082irix* | nonstopux*)
6083  symcode='[BCDEGRST]'
6084  ;;
6085osf*)
6086  symcode='[BCDEGQRST]'
6087  ;;
6088solaris*)
6089  symcode='[BDRT]'
6090  ;;
6091sco3.2v5*)
6092  symcode='[DT]'
6093  ;;
6094sysv4.2uw2*)
6095  symcode='[DT]'
6096  ;;
6097sysv5* | sco5v6* | unixware* | OpenUNIX*)
6098  symcode='[ABDT]'
6099  ;;
6100sysv4)
6101  symcode='[DFNSTU]'
6102  ;;
6103esac
6104
6105# If we're using GNU nm, then use its standard symbol codes.
6106case `$NM -V 2>&1` in
6107*GNU* | *'with BFD'*)
6108  symcode='[ABCDGIRSTW]' ;;
6109esac
6110
6111# Transform an extracted symbol line into a proper C declaration.
6112# Some systems (esp. on ia64) link data and code symbols differently,
6113# so use this general approach.
6114lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6115
6116# Transform an extracted symbol line into symbol name and symbol address
6117lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6118lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6119
6120# Handle CRLF in mingw tool chain
6121opt_cr=
6122case $build_os in
6123mingw*)
6124  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6125  ;;
6126esac
6127
6128# Try without a prefix underscore, then with it.
6129for ac_symprfx in "" "_"; do
6130
6131  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6132  symxfrm="\\1 $ac_symprfx\\2 \\2"
6133
6134  # Write the raw and C identifiers.
6135  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6136    # Fake it for dumpbin and say T for any non-static function
6137    # and D for any global variable.
6138    # Also find C++ and __fastcall symbols from MSVC++,
6139    # which start with @ or ?.
6140    lt_cv_sys_global_symbol_pipe="$AWK '"\
6141"     {last_section=section; section=\$ 3};"\
6142"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6143"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6144"     \$ 0!~/External *\|/{next};"\
6145"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6146"     {if(hide[section]) next};"\
6147"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6148"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6149"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6150"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6151"     ' prfx=^$ac_symprfx"
6152  else
6153    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6154  fi
6155  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6156
6157  # Check to see that the pipe works correctly.
6158  pipe_works=no
6159
6160  rm -f conftest*
6161  cat > conftest.$ac_ext <<_LT_EOF
6162#ifdef __cplusplus
6163extern "C" {
6164#endif
6165char nm_test_var;
6166void nm_test_func(void);
6167void nm_test_func(void){}
6168#ifdef __cplusplus
6169}
6170#endif
6171int main(){nm_test_var='a';nm_test_func();return(0);}
6172_LT_EOF
6173
6174  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6175  (eval $ac_compile) 2>&5
6176  ac_status=$?
6177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6178  test $ac_status = 0; }; then
6179    # Now try to grab the symbols.
6180    nlist=conftest.nm
6181    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6182  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6183  ac_status=$?
6184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185  test $ac_status = 0; } && test -s "$nlist"; then
6186      # Try sorting and uniquifying the output.
6187      if sort "$nlist" | uniq > "$nlist"T; then
6188	mv -f "$nlist"T "$nlist"
6189      else
6190	rm -f "$nlist"T
6191      fi
6192
6193      # Make sure that we snagged all the symbols we need.
6194      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6195	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6196	  cat <<_LT_EOF > conftest.$ac_ext
6197/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6198#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6199/* DATA imports from DLLs on WIN32 con't be const, because runtime
6200   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6201# define LT_DLSYM_CONST
6202#elif defined(__osf__)
6203/* This system does not cope well with relocations in const data.  */
6204# define LT_DLSYM_CONST
6205#else
6206# define LT_DLSYM_CONST const
6207#endif
6208
6209#ifdef __cplusplus
6210extern "C" {
6211#endif
6212
6213_LT_EOF
6214	  # Now generate the symbol file.
6215	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6216
6217	  cat <<_LT_EOF >> conftest.$ac_ext
6218
6219/* The mapping between symbol names and symbols.  */
6220LT_DLSYM_CONST struct {
6221  const char *name;
6222  void       *address;
6223}
6224lt__PROGRAM__LTX_preloaded_symbols[] =
6225{
6226  { "@PROGRAM@", (void *) 0 },
6227_LT_EOF
6228	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6229	  cat <<\_LT_EOF >> conftest.$ac_ext
6230  {0, (void *) 0}
6231};
6232
6233/* This works around a problem in FreeBSD linker */
6234#ifdef FREEBSD_WORKAROUND
6235static const void *lt_preloaded_setup() {
6236  return lt__PROGRAM__LTX_preloaded_symbols;
6237}
6238#endif
6239
6240#ifdef __cplusplus
6241}
6242#endif
6243_LT_EOF
6244	  # Now try linking the two files.
6245	  mv conftest.$ac_objext conftstm.$ac_objext
6246	  lt_globsym_save_LIBS=$LIBS
6247	  lt_globsym_save_CFLAGS=$CFLAGS
6248	  LIBS="conftstm.$ac_objext"
6249	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6250	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6251  (eval $ac_link) 2>&5
6252  ac_status=$?
6253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6255	    pipe_works=yes
6256	  fi
6257	  LIBS=$lt_globsym_save_LIBS
6258	  CFLAGS=$lt_globsym_save_CFLAGS
6259	else
6260	  echo "cannot find nm_test_func in $nlist" >&5
6261	fi
6262      else
6263	echo "cannot find nm_test_var in $nlist" >&5
6264      fi
6265    else
6266      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6267    fi
6268  else
6269    echo "$progname: failed program was:" >&5
6270    cat conftest.$ac_ext >&5
6271  fi
6272  rm -rf conftest* conftst*
6273
6274  # Do not use the global_symbol_pipe unless it works.
6275  if test "$pipe_works" = yes; then
6276    break
6277  else
6278    lt_cv_sys_global_symbol_pipe=
6279  fi
6280done
6281
6282fi
6283
6284if test -z "$lt_cv_sys_global_symbol_pipe"; then
6285  lt_cv_sys_global_symbol_to_cdecl=
6286fi
6287if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6289$as_echo "failed" >&6; }
6290else
6291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6292$as_echo "ok" >&6; }
6293fi
6294
6295# Response file support.
6296if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6297  nm_file_list_spec='@'
6298elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6299  nm_file_list_spec='@'
6300fi
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6329$as_echo_n "checking for sysroot... " >&6; }
6330
6331# Check whether --with-sysroot was given.
6332if test "${with_sysroot+set}" = set; then :
6333  withval=$with_sysroot;
6334else
6335  with_sysroot=no
6336fi
6337
6338
6339lt_sysroot=
6340case ${with_sysroot} in #(
6341 yes)
6342   if test "$GCC" = yes; then
6343     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6344   fi
6345   ;; #(
6346 /*)
6347   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6348   ;; #(
6349 no|'')
6350   ;; #(
6351 *)
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6353$as_echo "${with_sysroot}" >&6; }
6354   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6355   ;;
6356esac
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6359$as_echo "${lt_sysroot:-no}" >&6; }
6360
6361
6362
6363
6364
6365# Check whether --enable-libtool-lock was given.
6366if test "${enable_libtool_lock+set}" = set; then :
6367  enableval=$enable_libtool_lock;
6368fi
6369
6370test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6371
6372# Some flags need to be propagated to the compiler or linker for good
6373# libtool support.
6374case $host in
6375ia64-*-hpux*)
6376  # Find out which ABI we are using.
6377  echo 'int i;' > conftest.$ac_ext
6378  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379  (eval $ac_compile) 2>&5
6380  ac_status=$?
6381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382  test $ac_status = 0; }; then
6383    case `/usr/bin/file conftest.$ac_objext` in
6384      *ELF-32*)
6385	HPUX_IA64_MODE="32"
6386	;;
6387      *ELF-64*)
6388	HPUX_IA64_MODE="64"
6389	;;
6390    esac
6391  fi
6392  rm -rf conftest*
6393  ;;
6394*-*-irix6*)
6395  # Find out which ABI we are using.
6396  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6397  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6398  (eval $ac_compile) 2>&5
6399  ac_status=$?
6400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401  test $ac_status = 0; }; then
6402    if test "$lt_cv_prog_gnu_ld" = yes; then
6403      case `/usr/bin/file conftest.$ac_objext` in
6404	*32-bit*)
6405	  LD="${LD-ld} -melf32bsmip"
6406	  ;;
6407	*N32*)
6408	  LD="${LD-ld} -melf32bmipn32"
6409	  ;;
6410	*64-bit*)
6411	  LD="${LD-ld} -melf64bmip"
6412	;;
6413      esac
6414    else
6415      case `/usr/bin/file conftest.$ac_objext` in
6416	*32-bit*)
6417	  LD="${LD-ld} -32"
6418	  ;;
6419	*N32*)
6420	  LD="${LD-ld} -n32"
6421	  ;;
6422	*64-bit*)
6423	  LD="${LD-ld} -64"
6424	  ;;
6425      esac
6426    fi
6427  fi
6428  rm -rf conftest*
6429  ;;
6430
6431x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6432s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6433  # Find out which ABI we are using.
6434  echo 'int i;' > conftest.$ac_ext
6435  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6436  (eval $ac_compile) 2>&5
6437  ac_status=$?
6438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439  test $ac_status = 0; }; then
6440    case `/usr/bin/file conftest.o` in
6441      *32-bit*)
6442	case $host in
6443	  x86_64-*kfreebsd*-gnu)
6444	    LD="${LD-ld} -m elf_i386_fbsd"
6445	    ;;
6446	  x86_64-*linux*)
6447	    case `/usr/bin/file conftest.o` in
6448	      *x86-64*)
6449		LD="${LD-ld} -m elf32_x86_64"
6450		;;
6451	      *)
6452		LD="${LD-ld} -m elf_i386"
6453		;;
6454	    esac
6455	    ;;
6456	  powerpc64le-*)
6457	    LD="${LD-ld} -m elf32lppclinux"
6458	    ;;
6459	  powerpc64-*)
6460	    LD="${LD-ld} -m elf32ppclinux"
6461	    ;;
6462	  s390x-*linux*)
6463	    LD="${LD-ld} -m elf_s390"
6464	    ;;
6465	  sparc64-*linux*)
6466	    LD="${LD-ld} -m elf32_sparc"
6467	    ;;
6468	esac
6469	;;
6470      *64-bit*)
6471	case $host in
6472	  x86_64-*kfreebsd*-gnu)
6473	    LD="${LD-ld} -m elf_x86_64_fbsd"
6474	    ;;
6475	  x86_64-*linux*)
6476	    LD="${LD-ld} -m elf_x86_64"
6477	    ;;
6478	  powerpcle-*)
6479	    LD="${LD-ld} -m elf64lppc"
6480	    ;;
6481	  powerpc-*)
6482	    LD="${LD-ld} -m elf64ppc"
6483	    ;;
6484	  s390*-*linux*|s390*-*tpf*)
6485	    LD="${LD-ld} -m elf64_s390"
6486	    ;;
6487	  sparc*-*linux*)
6488	    LD="${LD-ld} -m elf64_sparc"
6489	    ;;
6490	esac
6491	;;
6492    esac
6493  fi
6494  rm -rf conftest*
6495  ;;
6496
6497*-*-sco3.2v5*)
6498  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6499  SAVE_CFLAGS="$CFLAGS"
6500  CFLAGS="$CFLAGS -belf"
6501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6502$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6503if ${lt_cv_cc_needs_belf+:} false; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506  ac_ext=c
6507ac_cpp='$CPP $CPPFLAGS'
6508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510ac_compiler_gnu=$ac_cv_c_compiler_gnu
6511
6512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513/* end confdefs.h.  */
6514
6515int
6516main ()
6517{
6518
6519  ;
6520  return 0;
6521}
6522_ACEOF
6523if ac_fn_c_try_link "$LINENO"; then :
6524  lt_cv_cc_needs_belf=yes
6525else
6526  lt_cv_cc_needs_belf=no
6527fi
6528rm -f core conftest.err conftest.$ac_objext \
6529    conftest$ac_exeext conftest.$ac_ext
6530     ac_ext=c
6531ac_cpp='$CPP $CPPFLAGS'
6532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6534ac_compiler_gnu=$ac_cv_c_compiler_gnu
6535
6536fi
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6538$as_echo "$lt_cv_cc_needs_belf" >&6; }
6539  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6540    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6541    CFLAGS="$SAVE_CFLAGS"
6542  fi
6543  ;;
6544*-*solaris*)
6545  # Find out which ABI we are using.
6546  echo 'int i;' > conftest.$ac_ext
6547  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6548  (eval $ac_compile) 2>&5
6549  ac_status=$?
6550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551  test $ac_status = 0; }; then
6552    case `/usr/bin/file conftest.o` in
6553    *64-bit*)
6554      case $lt_cv_prog_gnu_ld in
6555      yes*)
6556        case $host in
6557        i?86-*-solaris*)
6558          LD="${LD-ld} -m elf_x86_64"
6559          ;;
6560        sparc*-*-solaris*)
6561          LD="${LD-ld} -m elf64_sparc"
6562          ;;
6563        esac
6564        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6565        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6566          LD="${LD-ld}_sol2"
6567        fi
6568        ;;
6569      *)
6570	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6571	  LD="${LD-ld} -64"
6572	fi
6573	;;
6574      esac
6575      ;;
6576    esac
6577  fi
6578  rm -rf conftest*
6579  ;;
6580esac
6581
6582need_locks="$enable_libtool_lock"
6583
6584if test -n "$ac_tool_prefix"; then
6585  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6586set dummy ${ac_tool_prefix}mt; ac_word=$2
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588$as_echo_n "checking for $ac_word... " >&6; }
6589if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6590  $as_echo_n "(cached) " >&6
6591else
6592  if test -n "$MANIFEST_TOOL"; then
6593  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598  IFS=$as_save_IFS
6599  test -z "$as_dir" && as_dir=.
6600    for ac_exec_ext in '' $ac_executable_extensions; do
6601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604    break 2
6605  fi
6606done
6607  done
6608IFS=$as_save_IFS
6609
6610fi
6611fi
6612MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6613if test -n "$MANIFEST_TOOL"; then
6614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6615$as_echo "$MANIFEST_TOOL" >&6; }
6616else
6617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618$as_echo "no" >&6; }
6619fi
6620
6621
6622fi
6623if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6624  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6625  # Extract the first word of "mt", so it can be a program name with args.
6626set dummy mt; ac_word=$2
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
6629if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6630  $as_echo_n "(cached) " >&6
6631else
6632  if test -n "$ac_ct_MANIFEST_TOOL"; then
6633  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638  IFS=$as_save_IFS
6639  test -z "$as_dir" && as_dir=.
6640    for ac_exec_ext in '' $ac_executable_extensions; do
6641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644    break 2
6645  fi
6646done
6647  done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
6652ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6653if test -n "$ac_ct_MANIFEST_TOOL"; then
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6655$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6656else
6657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6662    MANIFEST_TOOL=":"
6663  else
6664    case $cross_compiling:$ac_tool_warned in
6665yes:)
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668ac_tool_warned=yes ;;
6669esac
6670    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6671  fi
6672else
6673  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6674fi
6675
6676test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6678$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6679if ${lt_cv_path_mainfest_tool+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  lt_cv_path_mainfest_tool=no
6683  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6684  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6685  cat conftest.err >&5
6686  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6687    lt_cv_path_mainfest_tool=yes
6688  fi
6689  rm -f conftest*
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6692$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6693if test "x$lt_cv_path_mainfest_tool" != xyes; then
6694  MANIFEST_TOOL=:
6695fi
6696
6697
6698
6699
6700
6701
6702  case $host_os in
6703    rhapsody* | darwin*)
6704    if test -n "$ac_tool_prefix"; then
6705  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6706set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708$as_echo_n "checking for $ac_word... " >&6; }
6709if ${ac_cv_prog_DSYMUTIL+:} false; then :
6710  $as_echo_n "(cached) " >&6
6711else
6712  if test -n "$DSYMUTIL"; then
6713  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6714else
6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718  IFS=$as_save_IFS
6719  test -z "$as_dir" && as_dir=.
6720    for ac_exec_ext in '' $ac_executable_extensions; do
6721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724    break 2
6725  fi
6726done
6727  done
6728IFS=$as_save_IFS
6729
6730fi
6731fi
6732DSYMUTIL=$ac_cv_prog_DSYMUTIL
6733if test -n "$DSYMUTIL"; then
6734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6735$as_echo "$DSYMUTIL" >&6; }
6736else
6737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738$as_echo "no" >&6; }
6739fi
6740
6741
6742fi
6743if test -z "$ac_cv_prog_DSYMUTIL"; then
6744  ac_ct_DSYMUTIL=$DSYMUTIL
6745  # Extract the first word of "dsymutil", so it can be a program name with args.
6746set dummy dsymutil; ac_word=$2
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748$as_echo_n "checking for $ac_word... " >&6; }
6749if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6750  $as_echo_n "(cached) " >&6
6751else
6752  if test -n "$ac_ct_DSYMUTIL"; then
6753  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6754else
6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758  IFS=$as_save_IFS
6759  test -z "$as_dir" && as_dir=.
6760    for ac_exec_ext in '' $ac_executable_extensions; do
6761  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764    break 2
6765  fi
6766done
6767  done
6768IFS=$as_save_IFS
6769
6770fi
6771fi
6772ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6773if test -n "$ac_ct_DSYMUTIL"; then
6774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6775$as_echo "$ac_ct_DSYMUTIL" >&6; }
6776else
6777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778$as_echo "no" >&6; }
6779fi
6780
6781  if test "x$ac_ct_DSYMUTIL" = x; then
6782    DSYMUTIL=":"
6783  else
6784    case $cross_compiling:$ac_tool_warned in
6785yes:)
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788ac_tool_warned=yes ;;
6789esac
6790    DSYMUTIL=$ac_ct_DSYMUTIL
6791  fi
6792else
6793  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6794fi
6795
6796    if test -n "$ac_tool_prefix"; then
6797  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6798set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800$as_echo_n "checking for $ac_word... " >&6; }
6801if ${ac_cv_prog_NMEDIT+:} false; then :
6802  $as_echo_n "(cached) " >&6
6803else
6804  if test -n "$NMEDIT"; then
6805  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810  IFS=$as_save_IFS
6811  test -z "$as_dir" && as_dir=.
6812    for ac_exec_ext in '' $ac_executable_extensions; do
6813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816    break 2
6817  fi
6818done
6819  done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824NMEDIT=$ac_cv_prog_NMEDIT
6825if test -n "$NMEDIT"; then
6826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6827$as_echo "$NMEDIT" >&6; }
6828else
6829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830$as_echo "no" >&6; }
6831fi
6832
6833
6834fi
6835if test -z "$ac_cv_prog_NMEDIT"; then
6836  ac_ct_NMEDIT=$NMEDIT
6837  # Extract the first word of "nmedit", so it can be a program name with args.
6838set dummy nmedit; ac_word=$2
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840$as_echo_n "checking for $ac_word... " >&6; }
6841if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  if test -n "$ac_ct_NMEDIT"; then
6845  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850  IFS=$as_save_IFS
6851  test -z "$as_dir" && as_dir=.
6852    for ac_exec_ext in '' $ac_executable_extensions; do
6853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856    break 2
6857  fi
6858done
6859  done
6860IFS=$as_save_IFS
6861
6862fi
6863fi
6864ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6865if test -n "$ac_ct_NMEDIT"; then
6866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6867$as_echo "$ac_ct_NMEDIT" >&6; }
6868else
6869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870$as_echo "no" >&6; }
6871fi
6872
6873  if test "x$ac_ct_NMEDIT" = x; then
6874    NMEDIT=":"
6875  else
6876    case $cross_compiling:$ac_tool_warned in
6877yes:)
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880ac_tool_warned=yes ;;
6881esac
6882    NMEDIT=$ac_ct_NMEDIT
6883  fi
6884else
6885  NMEDIT="$ac_cv_prog_NMEDIT"
6886fi
6887
6888    if test -n "$ac_tool_prefix"; then
6889  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6890set dummy ${ac_tool_prefix}lipo; ac_word=$2
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892$as_echo_n "checking for $ac_word... " >&6; }
6893if ${ac_cv_prog_LIPO+:} false; then :
6894  $as_echo_n "(cached) " >&6
6895else
6896  if test -n "$LIPO"; then
6897  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902  IFS=$as_save_IFS
6903  test -z "$as_dir" && as_dir=.
6904    for ac_exec_ext in '' $ac_executable_extensions; do
6905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908    break 2
6909  fi
6910done
6911  done
6912IFS=$as_save_IFS
6913
6914fi
6915fi
6916LIPO=$ac_cv_prog_LIPO
6917if test -n "$LIPO"; then
6918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6919$as_echo "$LIPO" >&6; }
6920else
6921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922$as_echo "no" >&6; }
6923fi
6924
6925
6926fi
6927if test -z "$ac_cv_prog_LIPO"; then
6928  ac_ct_LIPO=$LIPO
6929  # Extract the first word of "lipo", so it can be a program name with args.
6930set dummy lipo; ac_word=$2
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932$as_echo_n "checking for $ac_word... " >&6; }
6933if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936  if test -n "$ac_ct_LIPO"; then
6937  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942  IFS=$as_save_IFS
6943  test -z "$as_dir" && as_dir=.
6944    for ac_exec_ext in '' $ac_executable_extensions; do
6945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946    ac_cv_prog_ac_ct_LIPO="lipo"
6947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948    break 2
6949  fi
6950done
6951  done
6952IFS=$as_save_IFS
6953
6954fi
6955fi
6956ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6957if test -n "$ac_ct_LIPO"; then
6958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6959$as_echo "$ac_ct_LIPO" >&6; }
6960else
6961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962$as_echo "no" >&6; }
6963fi
6964
6965  if test "x$ac_ct_LIPO" = x; then
6966    LIPO=":"
6967  else
6968    case $cross_compiling:$ac_tool_warned in
6969yes:)
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972ac_tool_warned=yes ;;
6973esac
6974    LIPO=$ac_ct_LIPO
6975  fi
6976else
6977  LIPO="$ac_cv_prog_LIPO"
6978fi
6979
6980    if test -n "$ac_tool_prefix"; then
6981  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6982set dummy ${ac_tool_prefix}otool; ac_word=$2
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984$as_echo_n "checking for $ac_word... " >&6; }
6985if ${ac_cv_prog_OTOOL+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988  if test -n "$OTOOL"; then
6989  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6990else
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994  IFS=$as_save_IFS
6995  test -z "$as_dir" && as_dir=.
6996    for ac_exec_ext in '' $ac_executable_extensions; do
6997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000    break 2
7001  fi
7002done
7003  done
7004IFS=$as_save_IFS
7005
7006fi
7007fi
7008OTOOL=$ac_cv_prog_OTOOL
7009if test -n "$OTOOL"; then
7010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7011$as_echo "$OTOOL" >&6; }
7012else
7013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014$as_echo "no" >&6; }
7015fi
7016
7017
7018fi
7019if test -z "$ac_cv_prog_OTOOL"; then
7020  ac_ct_OTOOL=$OTOOL
7021  # Extract the first word of "otool", so it can be a program name with args.
7022set dummy otool; ac_word=$2
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024$as_echo_n "checking for $ac_word... " >&6; }
7025if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  if test -n "$ac_ct_OTOOL"; then
7029  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  test -z "$as_dir" && as_dir=.
7036    for ac_exec_ext in '' $ac_executable_extensions; do
7037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038    ac_cv_prog_ac_ct_OTOOL="otool"
7039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040    break 2
7041  fi
7042done
7043  done
7044IFS=$as_save_IFS
7045
7046fi
7047fi
7048ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7049if test -n "$ac_ct_OTOOL"; then
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7051$as_echo "$ac_ct_OTOOL" >&6; }
7052else
7053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054$as_echo "no" >&6; }
7055fi
7056
7057  if test "x$ac_ct_OTOOL" = x; then
7058    OTOOL=":"
7059  else
7060    case $cross_compiling:$ac_tool_warned in
7061yes:)
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7064ac_tool_warned=yes ;;
7065esac
7066    OTOOL=$ac_ct_OTOOL
7067  fi
7068else
7069  OTOOL="$ac_cv_prog_OTOOL"
7070fi
7071
7072    if test -n "$ac_tool_prefix"; then
7073  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7074set dummy ${ac_tool_prefix}otool64; ac_word=$2
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076$as_echo_n "checking for $ac_word... " >&6; }
7077if ${ac_cv_prog_OTOOL64+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  if test -n "$OTOOL64"; then
7081  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086  IFS=$as_save_IFS
7087  test -z "$as_dir" && as_dir=.
7088    for ac_exec_ext in '' $ac_executable_extensions; do
7089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092    break 2
7093  fi
7094done
7095  done
7096IFS=$as_save_IFS
7097
7098fi
7099fi
7100OTOOL64=$ac_cv_prog_OTOOL64
7101if test -n "$OTOOL64"; then
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7103$as_echo "$OTOOL64" >&6; }
7104else
7105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106$as_echo "no" >&6; }
7107fi
7108
7109
7110fi
7111if test -z "$ac_cv_prog_OTOOL64"; then
7112  ac_ct_OTOOL64=$OTOOL64
7113  # Extract the first word of "otool64", so it can be a program name with args.
7114set dummy otool64; ac_word=$2
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116$as_echo_n "checking for $ac_word... " >&6; }
7117if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7118  $as_echo_n "(cached) " >&6
7119else
7120  if test -n "$ac_ct_OTOOL64"; then
7121  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7122else
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126  IFS=$as_save_IFS
7127  test -z "$as_dir" && as_dir=.
7128    for ac_exec_ext in '' $ac_executable_extensions; do
7129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130    ac_cv_prog_ac_ct_OTOOL64="otool64"
7131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132    break 2
7133  fi
7134done
7135  done
7136IFS=$as_save_IFS
7137
7138fi
7139fi
7140ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7141if test -n "$ac_ct_OTOOL64"; then
7142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7143$as_echo "$ac_ct_OTOOL64" >&6; }
7144else
7145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146$as_echo "no" >&6; }
7147fi
7148
7149  if test "x$ac_ct_OTOOL64" = x; then
7150    OTOOL64=":"
7151  else
7152    case $cross_compiling:$ac_tool_warned in
7153yes:)
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156ac_tool_warned=yes ;;
7157esac
7158    OTOOL64=$ac_ct_OTOOL64
7159  fi
7160else
7161  OTOOL64="$ac_cv_prog_OTOOL64"
7162fi
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7191$as_echo_n "checking for -single_module linker flag... " >&6; }
7192if ${lt_cv_apple_cc_single_mod+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  lt_cv_apple_cc_single_mod=no
7196      if test -z "${LT_MULTI_MODULE}"; then
7197	# By default we will add the -single_module flag. You can override
7198	# by either setting the environment variable LT_MULTI_MODULE
7199	# non-empty at configure time, or by adding -multi_module to the
7200	# link flags.
7201	rm -rf libconftest.dylib*
7202	echo "int foo(void){return 1;}" > conftest.c
7203	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7204-dynamiclib -Wl,-single_module conftest.c" >&5
7205	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7206	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7207        _lt_result=$?
7208	# If there is a non-empty error log, and "single_module"
7209	# appears in it, assume the flag caused a linker warning
7210        if test -s conftest.err && $GREP single_module conftest.err; then
7211	  cat conftest.err >&5
7212	# Otherwise, if the output was created with a 0 exit code from
7213	# the compiler, it worked.
7214	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7215	  lt_cv_apple_cc_single_mod=yes
7216	else
7217	  cat conftest.err >&5
7218	fi
7219	rm -rf libconftest.dylib*
7220	rm -f conftest.*
7221      fi
7222fi
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7224$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7225
7226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7227$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7228if ${lt_cv_ld_exported_symbols_list+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  lt_cv_ld_exported_symbols_list=no
7232      save_LDFLAGS=$LDFLAGS
7233      echo "_main" > conftest.sym
7234      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7235      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h.  */
7237
7238int
7239main ()
7240{
7241
7242  ;
7243  return 0;
7244}
7245_ACEOF
7246if ac_fn_c_try_link "$LINENO"; then :
7247  lt_cv_ld_exported_symbols_list=yes
7248else
7249  lt_cv_ld_exported_symbols_list=no
7250fi
7251rm -f core conftest.err conftest.$ac_objext \
7252    conftest$ac_exeext conftest.$ac_ext
7253	LDFLAGS="$save_LDFLAGS"
7254
7255fi
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7257$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7258
7259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7260$as_echo_n "checking for -force_load linker flag... " >&6; }
7261if ${lt_cv_ld_force_load+:} false; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264  lt_cv_ld_force_load=no
7265      cat > conftest.c << _LT_EOF
7266int forced_loaded() { return 2;}
7267_LT_EOF
7268      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7269      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7270      echo "$AR cru libconftest.a conftest.o" >&5
7271      $AR cru libconftest.a conftest.o 2>&5
7272      echo "$RANLIB libconftest.a" >&5
7273      $RANLIB libconftest.a 2>&5
7274      cat > conftest.c << _LT_EOF
7275int main() { return 0;}
7276_LT_EOF
7277      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7278      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7279      _lt_result=$?
7280      if test -s conftest.err && $GREP force_load conftest.err; then
7281	cat conftest.err >&5
7282      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7283	lt_cv_ld_force_load=yes
7284      else
7285	cat conftest.err >&5
7286      fi
7287        rm -f conftest.err libconftest.a conftest conftest.c
7288        rm -rf conftest.dSYM
7289
7290fi
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7292$as_echo "$lt_cv_ld_force_load" >&6; }
7293    case $host_os in
7294    rhapsody* | darwin1.[012])
7295      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7296    darwin1.*)
7297      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7298    darwin*) # darwin 5.x on
7299      # if running on 10.5 or later, the deployment target defaults
7300      # to the OS version, if on x86, and 10.4, the deployment
7301      # target defaults to 10.4. Don't you love it?
7302      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7303	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7304	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7305	10.[012]*)
7306	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7307	10.*)
7308	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7309      esac
7310    ;;
7311  esac
7312    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7313      _lt_dar_single_mod='$single_module'
7314    fi
7315    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7316      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7317    else
7318      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7319    fi
7320    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7321      _lt_dsymutil='~$DSYMUTIL $lib || :'
7322    else
7323      _lt_dsymutil=
7324    fi
7325    ;;
7326  esac
7327
7328ac_ext=c
7329ac_cpp='$CPP $CPPFLAGS'
7330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332ac_compiler_gnu=$ac_cv_c_compiler_gnu
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7334$as_echo_n "checking how to run the C preprocessor... " >&6; }
7335# On Suns, sometimes $CPP names a directory.
7336if test -n "$CPP" && test -d "$CPP"; then
7337  CPP=
7338fi
7339if test -z "$CPP"; then
7340  if ${ac_cv_prog_CPP+:} false; then :
7341  $as_echo_n "(cached) " >&6
7342else
7343      # Double quotes because CPP needs to be expanded
7344    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7345    do
7346      ac_preproc_ok=false
7347for ac_c_preproc_warn_flag in '' yes
7348do
7349  # Use a header file that comes with gcc, so configuring glibc
7350  # with a fresh cross-compiler works.
7351  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7352  # <limits.h> exists even on freestanding compilers.
7353  # On the NeXT, cc -E runs the code through the compiler's parser,
7354  # not just through cpp. "Syntax error" is here to catch this case.
7355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h.  */
7357#ifdef __STDC__
7358# include <limits.h>
7359#else
7360# include <assert.h>
7361#endif
7362		     Syntax error
7363_ACEOF
7364if ac_fn_c_try_cpp "$LINENO"; then :
7365
7366else
7367  # Broken: fails on valid input.
7368continue
7369fi
7370rm -f conftest.err conftest.i conftest.$ac_ext
7371
7372  # OK, works on sane cases.  Now check whether nonexistent headers
7373  # can be detected and how.
7374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375/* end confdefs.h.  */
7376#include <ac_nonexistent.h>
7377_ACEOF
7378if ac_fn_c_try_cpp "$LINENO"; then :
7379  # Broken: success on invalid input.
7380continue
7381else
7382  # Passes both tests.
7383ac_preproc_ok=:
7384break
7385fi
7386rm -f conftest.err conftest.i conftest.$ac_ext
7387
7388done
7389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7390rm -f conftest.i conftest.err conftest.$ac_ext
7391if $ac_preproc_ok; then :
7392  break
7393fi
7394
7395    done
7396    ac_cv_prog_CPP=$CPP
7397
7398fi
7399  CPP=$ac_cv_prog_CPP
7400else
7401  ac_cv_prog_CPP=$CPP
7402fi
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7404$as_echo "$CPP" >&6; }
7405ac_preproc_ok=false
7406for ac_c_preproc_warn_flag in '' yes
7407do
7408  # Use a header file that comes with gcc, so configuring glibc
7409  # with a fresh cross-compiler works.
7410  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7411  # <limits.h> exists even on freestanding compilers.
7412  # On the NeXT, cc -E runs the code through the compiler's parser,
7413  # not just through cpp. "Syntax error" is here to catch this case.
7414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h.  */
7416#ifdef __STDC__
7417# include <limits.h>
7418#else
7419# include <assert.h>
7420#endif
7421		     Syntax error
7422_ACEOF
7423if ac_fn_c_try_cpp "$LINENO"; then :
7424
7425else
7426  # Broken: fails on valid input.
7427continue
7428fi
7429rm -f conftest.err conftest.i conftest.$ac_ext
7430
7431  # OK, works on sane cases.  Now check whether nonexistent headers
7432  # can be detected and how.
7433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h.  */
7435#include <ac_nonexistent.h>
7436_ACEOF
7437if ac_fn_c_try_cpp "$LINENO"; then :
7438  # Broken: success on invalid input.
7439continue
7440else
7441  # Passes both tests.
7442ac_preproc_ok=:
7443break
7444fi
7445rm -f conftest.err conftest.i conftest.$ac_ext
7446
7447done
7448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7449rm -f conftest.i conftest.err conftest.$ac_ext
7450if $ac_preproc_ok; then :
7451
7452else
7453  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7455as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7456See \`config.log' for more details" "$LINENO" 5; }
7457fi
7458
7459ac_ext=c
7460ac_cpp='$CPP $CPPFLAGS'
7461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464
7465
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7467$as_echo_n "checking for ANSI C header files... " >&6; }
7468if ${ac_cv_header_stdc+:} false; then :
7469  $as_echo_n "(cached) " >&6
7470else
7471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472/* end confdefs.h.  */
7473#include <stdlib.h>
7474#include <stdarg.h>
7475#include <string.h>
7476#include <float.h>
7477
7478int
7479main ()
7480{
7481
7482  ;
7483  return 0;
7484}
7485_ACEOF
7486if ac_fn_c_try_compile "$LINENO"; then :
7487  ac_cv_header_stdc=yes
7488else
7489  ac_cv_header_stdc=no
7490fi
7491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492
7493if test $ac_cv_header_stdc = yes; then
7494  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h.  */
7497#include <string.h>
7498
7499_ACEOF
7500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7501  $EGREP "memchr" >/dev/null 2>&1; then :
7502
7503else
7504  ac_cv_header_stdc=no
7505fi
7506rm -f conftest*
7507
7508fi
7509
7510if test $ac_cv_header_stdc = yes; then
7511  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513/* end confdefs.h.  */
7514#include <stdlib.h>
7515
7516_ACEOF
7517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7518  $EGREP "free" >/dev/null 2>&1; then :
7519
7520else
7521  ac_cv_header_stdc=no
7522fi
7523rm -f conftest*
7524
7525fi
7526
7527if test $ac_cv_header_stdc = yes; then
7528  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7529  if test "$cross_compiling" = yes; then :
7530  :
7531else
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534#include <ctype.h>
7535#include <stdlib.h>
7536#if ((' ' & 0x0FF) == 0x020)
7537# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7538# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7539#else
7540# define ISLOWER(c) \
7541		   (('a' <= (c) && (c) <= 'i') \
7542		     || ('j' <= (c) && (c) <= 'r') \
7543		     || ('s' <= (c) && (c) <= 'z'))
7544# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7545#endif
7546
7547#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7548int
7549main ()
7550{
7551  int i;
7552  for (i = 0; i < 256; i++)
7553    if (XOR (islower (i), ISLOWER (i))
7554	|| toupper (i) != TOUPPER (i))
7555      return 2;
7556  return 0;
7557}
7558_ACEOF
7559if ac_fn_c_try_run "$LINENO"; then :
7560
7561else
7562  ac_cv_header_stdc=no
7563fi
7564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7565  conftest.$ac_objext conftest.beam conftest.$ac_ext
7566fi
7567
7568fi
7569fi
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7571$as_echo "$ac_cv_header_stdc" >&6; }
7572if test $ac_cv_header_stdc = yes; then
7573
7574$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7575
7576fi
7577
7578# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7579for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7580		  inttypes.h stdint.h unistd.h
7581do :
7582  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7583ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7584"
7585if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7586  cat >>confdefs.h <<_ACEOF
7587#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7588_ACEOF
7589
7590fi
7591
7592done
7593
7594
7595for ac_header in dlfcn.h
7596do :
7597  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7598"
7599if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7600  cat >>confdefs.h <<_ACEOF
7601#define HAVE_DLFCN_H 1
7602_ACEOF
7603
7604fi
7605
7606done
7607
7608
7609
7610
7611
7612# Set options
7613
7614
7615
7616        enable_dlopen=no
7617
7618
7619  enable_win32_dll=no
7620
7621
7622            # Check whether --enable-shared was given.
7623if test "${enable_shared+set}" = set; then :
7624  enableval=$enable_shared; p=${PACKAGE-default}
7625    case $enableval in
7626    yes) enable_shared=yes ;;
7627    no) enable_shared=no ;;
7628    *)
7629      enable_shared=no
7630      # Look at the argument we got.  We use all the common list separators.
7631      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632      for pkg in $enableval; do
7633	IFS="$lt_save_ifs"
7634	if test "X$pkg" = "X$p"; then
7635	  enable_shared=yes
7636	fi
7637      done
7638      IFS="$lt_save_ifs"
7639      ;;
7640    esac
7641else
7642  enable_shared=yes
7643fi
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653  # Check whether --enable-static was given.
7654if test "${enable_static+set}" = set; then :
7655  enableval=$enable_static; p=${PACKAGE-default}
7656    case $enableval in
7657    yes) enable_static=yes ;;
7658    no) enable_static=no ;;
7659    *)
7660     enable_static=no
7661      # Look at the argument we got.  We use all the common list separators.
7662      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663      for pkg in $enableval; do
7664	IFS="$lt_save_ifs"
7665	if test "X$pkg" = "X$p"; then
7666	  enable_static=yes
7667	fi
7668      done
7669      IFS="$lt_save_ifs"
7670      ;;
7671    esac
7672else
7673  enable_static=yes
7674fi
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685# Check whether --with-pic was given.
7686if test "${with_pic+set}" = set; then :
7687  withval=$with_pic; lt_p=${PACKAGE-default}
7688    case $withval in
7689    yes|no) pic_mode=$withval ;;
7690    *)
7691      pic_mode=default
7692      # Look at the argument we got.  We use all the common list separators.
7693      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694      for lt_pkg in $withval; do
7695	IFS="$lt_save_ifs"
7696	if test "X$lt_pkg" = "X$lt_p"; then
7697	  pic_mode=yes
7698	fi
7699      done
7700      IFS="$lt_save_ifs"
7701      ;;
7702    esac
7703else
7704  pic_mode=default
7705fi
7706
7707
7708test -z "$pic_mode" && pic_mode=default
7709
7710
7711
7712
7713
7714
7715
7716  # Check whether --enable-fast-install was given.
7717if test "${enable_fast_install+set}" = set; then :
7718  enableval=$enable_fast_install; p=${PACKAGE-default}
7719    case $enableval in
7720    yes) enable_fast_install=yes ;;
7721    no) enable_fast_install=no ;;
7722    *)
7723      enable_fast_install=no
7724      # Look at the argument we got.  We use all the common list separators.
7725      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7726      for pkg in $enableval; do
7727	IFS="$lt_save_ifs"
7728	if test "X$pkg" = "X$p"; then
7729	  enable_fast_install=yes
7730	fi
7731      done
7732      IFS="$lt_save_ifs"
7733      ;;
7734    esac
7735else
7736  enable_fast_install=yes
7737fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749# This can be used to rebuild libtool when needed
7750LIBTOOL_DEPS="$ltmain"
7751
7752# Always use our own libtool.
7753LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784test -z "$LN_S" && LN_S="ln -s"
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799if test -n "${ZSH_VERSION+set}" ; then
7800   setopt NO_GLOB_SUBST
7801fi
7802
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7804$as_echo_n "checking for objdir... " >&6; }
7805if ${lt_cv_objdir+:} false; then :
7806  $as_echo_n "(cached) " >&6
7807else
7808  rm -f .libs 2>/dev/null
7809mkdir .libs 2>/dev/null
7810if test -d .libs; then
7811  lt_cv_objdir=.libs
7812else
7813  # MS-DOS does not allow filenames that begin with a dot.
7814  lt_cv_objdir=_libs
7815fi
7816rmdir .libs 2>/dev/null
7817fi
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7819$as_echo "$lt_cv_objdir" >&6; }
7820objdir=$lt_cv_objdir
7821
7822
7823
7824
7825
7826cat >>confdefs.h <<_ACEOF
7827#define LT_OBJDIR "$lt_cv_objdir/"
7828_ACEOF
7829
7830
7831
7832
7833case $host_os in
7834aix3*)
7835  # AIX sometimes has problems with the GCC collect2 program.  For some
7836  # reason, if we set the COLLECT_NAMES environment variable, the problems
7837  # vanish in a puff of smoke.
7838  if test "X${COLLECT_NAMES+set}" != Xset; then
7839    COLLECT_NAMES=
7840    export COLLECT_NAMES
7841  fi
7842  ;;
7843esac
7844
7845# Global variables:
7846ofile=libtool
7847can_build_shared=yes
7848
7849# All known linkers require a `.a' archive for static linking (except MSVC,
7850# which needs '.lib').
7851libext=a
7852
7853with_gnu_ld="$lt_cv_prog_gnu_ld"
7854
7855old_CC="$CC"
7856old_CFLAGS="$CFLAGS"
7857
7858# Set sane defaults for various variables
7859test -z "$CC" && CC=cc
7860test -z "$LTCC" && LTCC=$CC
7861test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7862test -z "$LD" && LD=ld
7863test -z "$ac_objext" && ac_objext=o
7864
7865for cc_temp in $compiler""; do
7866  case $cc_temp in
7867    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7868    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7869    \-*) ;;
7870    *) break;;
7871  esac
7872done
7873cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7874
7875
7876# Only perform the check for file, if the check method requires it
7877test -z "$MAGIC_CMD" && MAGIC_CMD=file
7878case $deplibs_check_method in
7879file_magic*)
7880  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7882$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7883if ${lt_cv_path_MAGIC_CMD+:} false; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  case $MAGIC_CMD in
7887[\\/*] |  ?:[\\/]*)
7888  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7889  ;;
7890*)
7891  lt_save_MAGIC_CMD="$MAGIC_CMD"
7892  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7893  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7894  for ac_dir in $ac_dummy; do
7895    IFS="$lt_save_ifs"
7896    test -z "$ac_dir" && ac_dir=.
7897    if test -f $ac_dir/${ac_tool_prefix}file; then
7898      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7899      if test -n "$file_magic_test_file"; then
7900	case $deplibs_check_method in
7901	"file_magic "*)
7902	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7903	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7904	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7905	    $EGREP "$file_magic_regex" > /dev/null; then
7906	    :
7907	  else
7908	    cat <<_LT_EOF 1>&2
7909
7910*** Warning: the command libtool uses to detect shared libraries,
7911*** $file_magic_cmd, produces output that libtool cannot recognize.
7912*** The result is that libtool may fail to recognize shared libraries
7913*** as such.  This will affect the creation of libtool libraries that
7914*** depend on shared libraries, but programs linked with such libtool
7915*** libraries will work regardless of this problem.  Nevertheless, you
7916*** may want to report the problem to your system manager and/or to
7917*** bug-libtool@gnu.org
7918
7919_LT_EOF
7920	  fi ;;
7921	esac
7922      fi
7923      break
7924    fi
7925  done
7926  IFS="$lt_save_ifs"
7927  MAGIC_CMD="$lt_save_MAGIC_CMD"
7928  ;;
7929esac
7930fi
7931
7932MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7933if test -n "$MAGIC_CMD"; then
7934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7935$as_echo "$MAGIC_CMD" >&6; }
7936else
7937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938$as_echo "no" >&6; }
7939fi
7940
7941
7942
7943
7944
7945if test -z "$lt_cv_path_MAGIC_CMD"; then
7946  if test -n "$ac_tool_prefix"; then
7947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7948$as_echo_n "checking for file... " >&6; }
7949if ${lt_cv_path_MAGIC_CMD+:} false; then :
7950  $as_echo_n "(cached) " >&6
7951else
7952  case $MAGIC_CMD in
7953[\\/*] |  ?:[\\/]*)
7954  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7955  ;;
7956*)
7957  lt_save_MAGIC_CMD="$MAGIC_CMD"
7958  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7959  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7960  for ac_dir in $ac_dummy; do
7961    IFS="$lt_save_ifs"
7962    test -z "$ac_dir" && ac_dir=.
7963    if test -f $ac_dir/file; then
7964      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7965      if test -n "$file_magic_test_file"; then
7966	case $deplibs_check_method in
7967	"file_magic "*)
7968	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7969	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7970	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7971	    $EGREP "$file_magic_regex" > /dev/null; then
7972	    :
7973	  else
7974	    cat <<_LT_EOF 1>&2
7975
7976*** Warning: the command libtool uses to detect shared libraries,
7977*** $file_magic_cmd, produces output that libtool cannot recognize.
7978*** The result is that libtool may fail to recognize shared libraries
7979*** as such.  This will affect the creation of libtool libraries that
7980*** depend on shared libraries, but programs linked with such libtool
7981*** libraries will work regardless of this problem.  Nevertheless, you
7982*** may want to report the problem to your system manager and/or to
7983*** bug-libtool@gnu.org
7984
7985_LT_EOF
7986	  fi ;;
7987	esac
7988      fi
7989      break
7990    fi
7991  done
7992  IFS="$lt_save_ifs"
7993  MAGIC_CMD="$lt_save_MAGIC_CMD"
7994  ;;
7995esac
7996fi
7997
7998MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7999if test -n "$MAGIC_CMD"; then
8000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8001$as_echo "$MAGIC_CMD" >&6; }
8002else
8003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004$as_echo "no" >&6; }
8005fi
8006
8007
8008  else
8009    MAGIC_CMD=:
8010  fi
8011fi
8012
8013  fi
8014  ;;
8015esac
8016
8017# Use C for the default configuration in the libtool script
8018
8019lt_save_CC="$CC"
8020ac_ext=c
8021ac_cpp='$CPP $CPPFLAGS'
8022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025
8026
8027# Source file extension for C test sources.
8028ac_ext=c
8029
8030# Object file extension for compiled C test sources.
8031objext=o
8032objext=$objext
8033
8034# Code to be used in simple compile tests
8035lt_simple_compile_test_code="int some_variable = 0;"
8036
8037# Code to be used in simple link tests
8038lt_simple_link_test_code='int main(){return(0);}'
8039
8040
8041
8042
8043
8044
8045
8046# If no C compiler was specified, use CC.
8047LTCC=${LTCC-"$CC"}
8048
8049# If no C compiler flags were specified, use CFLAGS.
8050LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8051
8052# Allow CC to be a program name with arguments.
8053compiler=$CC
8054
8055# Save the default compiler, since it gets overwritten when the other
8056# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8057compiler_DEFAULT=$CC
8058
8059# save warnings/boilerplate of simple test code
8060ac_outfile=conftest.$ac_objext
8061echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8062eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8063_lt_compiler_boilerplate=`cat conftest.err`
8064$RM conftest*
8065
8066ac_outfile=conftest.$ac_objext
8067echo "$lt_simple_link_test_code" >conftest.$ac_ext
8068eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8069_lt_linker_boilerplate=`cat conftest.err`
8070$RM -r conftest*
8071
8072
8073## CAVEAT EMPTOR:
8074## There is no encapsulation within the following macros, do not change
8075## the running order or otherwise move them around unless you know exactly
8076## what you are doing...
8077if test -n "$compiler"; then
8078
8079lt_prog_compiler_no_builtin_flag=
8080
8081if test "$GCC" = yes; then
8082  case $cc_basename in
8083  nvcc*)
8084    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8085  *)
8086    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8087  esac
8088
8089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8090$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8091if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8092  $as_echo_n "(cached) " >&6
8093else
8094  lt_cv_prog_compiler_rtti_exceptions=no
8095   ac_outfile=conftest.$ac_objext
8096   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8097   lt_compiler_flag="-fno-rtti -fno-exceptions"
8098   # Insert the option either (1) after the last *FLAGS variable, or
8099   # (2) before a word containing "conftest.", or (3) at the end.
8100   # Note that $ac_compile itself does not contain backslashes and begins
8101   # with a dollar sign (not a hyphen), so the echo should work correctly.
8102   # The option is referenced via a variable to avoid confusing sed.
8103   lt_compile=`echo "$ac_compile" | $SED \
8104   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8105   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8106   -e 's:$: $lt_compiler_flag:'`
8107   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8108   (eval "$lt_compile" 2>conftest.err)
8109   ac_status=$?
8110   cat conftest.err >&5
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   if (exit $ac_status) && test -s "$ac_outfile"; then
8113     # The compiler can only warn and ignore the option if not recognized
8114     # So say no if there are warnings other than the usual output.
8115     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8116     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8117     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8118       lt_cv_prog_compiler_rtti_exceptions=yes
8119     fi
8120   fi
8121   $RM conftest*
8122
8123fi
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8125$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8126
8127if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8128    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8129else
8130    :
8131fi
8132
8133fi
8134
8135
8136
8137
8138
8139
8140  lt_prog_compiler_wl=
8141lt_prog_compiler_pic=
8142lt_prog_compiler_static=
8143
8144
8145  if test "$GCC" = yes; then
8146    lt_prog_compiler_wl='-Wl,'
8147    lt_prog_compiler_static='-static'
8148
8149    case $host_os in
8150      aix*)
8151      # All AIX code is PIC.
8152      if test "$host_cpu" = ia64; then
8153	# AIX 5 now supports IA64 processor
8154	lt_prog_compiler_static='-Bstatic'
8155      fi
8156      ;;
8157
8158    amigaos*)
8159      case $host_cpu in
8160      powerpc)
8161            # see comment about AmigaOS4 .so support
8162            lt_prog_compiler_pic='-fPIC'
8163        ;;
8164      m68k)
8165            # FIXME: we need at least 68020 code to build shared libraries, but
8166            # adding the `-m68020' flag to GCC prevents building anything better,
8167            # like `-m68040'.
8168            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8169        ;;
8170      esac
8171      ;;
8172
8173    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8174      # PIC is the default for these OSes.
8175      ;;
8176
8177    mingw* | cygwin* | pw32* | os2* | cegcc*)
8178      # This hack is so that the source file can tell whether it is being
8179      # built for inclusion in a dll (and should export symbols for example).
8180      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8181      # (--disable-auto-import) libraries
8182      lt_prog_compiler_pic='-DDLL_EXPORT'
8183      ;;
8184
8185    darwin* | rhapsody*)
8186      # PIC is the default on this platform
8187      # Common symbols not allowed in MH_DYLIB files
8188      lt_prog_compiler_pic='-fno-common'
8189      ;;
8190
8191    haiku*)
8192      # PIC is the default for Haiku.
8193      # The "-static" flag exists, but is broken.
8194      lt_prog_compiler_static=
8195      ;;
8196
8197    hpux*)
8198      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8199      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8200      # sets the default TLS model and affects inlining.
8201      case $host_cpu in
8202      hppa*64*)
8203	# +Z the default
8204	;;
8205      *)
8206	lt_prog_compiler_pic='-fPIC'
8207	;;
8208      esac
8209      ;;
8210
8211    interix[3-9]*)
8212      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8213      # Instead, we relocate shared libraries at runtime.
8214      ;;
8215
8216    msdosdjgpp*)
8217      # Just because we use GCC doesn't mean we suddenly get shared libraries
8218      # on systems that don't support them.
8219      lt_prog_compiler_can_build_shared=no
8220      enable_shared=no
8221      ;;
8222
8223    *nto* | *qnx*)
8224      # QNX uses GNU C++, but need to define -shared option too, otherwise
8225      # it will coredump.
8226      lt_prog_compiler_pic='-fPIC -shared'
8227      ;;
8228
8229    sysv4*MP*)
8230      if test -d /usr/nec; then
8231	lt_prog_compiler_pic=-Kconform_pic
8232      fi
8233      ;;
8234
8235    *)
8236      lt_prog_compiler_pic='-fPIC'
8237      ;;
8238    esac
8239
8240    case $cc_basename in
8241    nvcc*) # Cuda Compiler Driver 2.2
8242      lt_prog_compiler_wl='-Xlinker '
8243      if test -n "$lt_prog_compiler_pic"; then
8244        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8245      fi
8246      ;;
8247    esac
8248  else
8249    # PORTME Check for flag to pass linker flags through the system compiler.
8250    case $host_os in
8251    aix*)
8252      lt_prog_compiler_wl='-Wl,'
8253      if test "$host_cpu" = ia64; then
8254	# AIX 5 now supports IA64 processor
8255	lt_prog_compiler_static='-Bstatic'
8256      else
8257	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8258      fi
8259      ;;
8260
8261    mingw* | cygwin* | pw32* | os2* | cegcc*)
8262      # This hack is so that the source file can tell whether it is being
8263      # built for inclusion in a dll (and should export symbols for example).
8264      lt_prog_compiler_pic='-DDLL_EXPORT'
8265      ;;
8266
8267    hpux9* | hpux10* | hpux11*)
8268      lt_prog_compiler_wl='-Wl,'
8269      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8270      # not for PA HP-UX.
8271      case $host_cpu in
8272      hppa*64*|ia64*)
8273	# +Z the default
8274	;;
8275      *)
8276	lt_prog_compiler_pic='+Z'
8277	;;
8278      esac
8279      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8280      lt_prog_compiler_static='${wl}-a ${wl}archive'
8281      ;;
8282
8283    irix5* | irix6* | nonstopux*)
8284      lt_prog_compiler_wl='-Wl,'
8285      # PIC (with -KPIC) is the default.
8286      lt_prog_compiler_static='-non_shared'
8287      ;;
8288
8289    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8290      case $cc_basename in
8291      # old Intel for x86_64 which still supported -KPIC.
8292      ecc*)
8293	lt_prog_compiler_wl='-Wl,'
8294	lt_prog_compiler_pic='-KPIC'
8295	lt_prog_compiler_static='-static'
8296        ;;
8297      # icc used to be incompatible with GCC.
8298      # ICC 10 doesn't accept -KPIC any more.
8299      icc* | ifort*)
8300	lt_prog_compiler_wl='-Wl,'
8301	lt_prog_compiler_pic='-fPIC'
8302	lt_prog_compiler_static='-static'
8303        ;;
8304      # Lahey Fortran 8.1.
8305      lf95*)
8306	lt_prog_compiler_wl='-Wl,'
8307	lt_prog_compiler_pic='--shared'
8308	lt_prog_compiler_static='--static'
8309	;;
8310      nagfor*)
8311	# NAG Fortran compiler
8312	lt_prog_compiler_wl='-Wl,-Wl,,'
8313	lt_prog_compiler_pic='-PIC'
8314	lt_prog_compiler_static='-Bstatic'
8315	;;
8316      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8317        # Portland Group compilers (*not* the Pentium gcc compiler,
8318	# which looks to be a dead project)
8319	lt_prog_compiler_wl='-Wl,'
8320	lt_prog_compiler_pic='-fpic'
8321	lt_prog_compiler_static='-Bstatic'
8322        ;;
8323      ccc*)
8324        lt_prog_compiler_wl='-Wl,'
8325        # All Alpha code is PIC.
8326        lt_prog_compiler_static='-non_shared'
8327        ;;
8328      xl* | bgxl* | bgf* | mpixl*)
8329	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8330	lt_prog_compiler_wl='-Wl,'
8331	lt_prog_compiler_pic='-qpic'
8332	lt_prog_compiler_static='-qstaticlink'
8333	;;
8334      *)
8335	case `$CC -V 2>&1 | sed 5q` in
8336	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8337	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8338	  lt_prog_compiler_pic='-KPIC'
8339	  lt_prog_compiler_static='-Bstatic'
8340	  lt_prog_compiler_wl=''
8341	  ;;
8342	*Sun\ F* | *Sun*Fortran*)
8343	  lt_prog_compiler_pic='-KPIC'
8344	  lt_prog_compiler_static='-Bstatic'
8345	  lt_prog_compiler_wl='-Qoption ld '
8346	  ;;
8347	*Sun\ C*)
8348	  # Sun C 5.9
8349	  lt_prog_compiler_pic='-KPIC'
8350	  lt_prog_compiler_static='-Bstatic'
8351	  lt_prog_compiler_wl='-Wl,'
8352	  ;;
8353        *Intel*\ [CF]*Compiler*)
8354	  lt_prog_compiler_wl='-Wl,'
8355	  lt_prog_compiler_pic='-fPIC'
8356	  lt_prog_compiler_static='-static'
8357	  ;;
8358	*Portland\ Group*)
8359	  lt_prog_compiler_wl='-Wl,'
8360	  lt_prog_compiler_pic='-fpic'
8361	  lt_prog_compiler_static='-Bstatic'
8362	  ;;
8363	esac
8364	;;
8365      esac
8366      ;;
8367
8368    newsos6)
8369      lt_prog_compiler_pic='-KPIC'
8370      lt_prog_compiler_static='-Bstatic'
8371      ;;
8372
8373    *nto* | *qnx*)
8374      # QNX uses GNU C++, but need to define -shared option too, otherwise
8375      # it will coredump.
8376      lt_prog_compiler_pic='-fPIC -shared'
8377      ;;
8378
8379    osf3* | osf4* | osf5*)
8380      lt_prog_compiler_wl='-Wl,'
8381      # All OSF/1 code is PIC.
8382      lt_prog_compiler_static='-non_shared'
8383      ;;
8384
8385    rdos*)
8386      lt_prog_compiler_static='-non_shared'
8387      ;;
8388
8389    solaris*)
8390      lt_prog_compiler_pic='-KPIC'
8391      lt_prog_compiler_static='-Bstatic'
8392      case $cc_basename in
8393      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8394	lt_prog_compiler_wl='-Qoption ld ';;
8395      *)
8396	lt_prog_compiler_wl='-Wl,';;
8397      esac
8398      ;;
8399
8400    sunos4*)
8401      lt_prog_compiler_wl='-Qoption ld '
8402      lt_prog_compiler_pic='-PIC'
8403      lt_prog_compiler_static='-Bstatic'
8404      ;;
8405
8406    sysv4 | sysv4.2uw2* | sysv4.3*)
8407      lt_prog_compiler_wl='-Wl,'
8408      lt_prog_compiler_pic='-KPIC'
8409      lt_prog_compiler_static='-Bstatic'
8410      ;;
8411
8412    sysv4*MP*)
8413      if test -d /usr/nec ;then
8414	lt_prog_compiler_pic='-Kconform_pic'
8415	lt_prog_compiler_static='-Bstatic'
8416      fi
8417      ;;
8418
8419    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8420      lt_prog_compiler_wl='-Wl,'
8421      lt_prog_compiler_pic='-KPIC'
8422      lt_prog_compiler_static='-Bstatic'
8423      ;;
8424
8425    unicos*)
8426      lt_prog_compiler_wl='-Wl,'
8427      lt_prog_compiler_can_build_shared=no
8428      ;;
8429
8430    uts4*)
8431      lt_prog_compiler_pic='-pic'
8432      lt_prog_compiler_static='-Bstatic'
8433      ;;
8434
8435    *)
8436      lt_prog_compiler_can_build_shared=no
8437      ;;
8438    esac
8439  fi
8440
8441case $host_os in
8442  # For platforms which do not support PIC, -DPIC is meaningless:
8443  *djgpp*)
8444    lt_prog_compiler_pic=
8445    ;;
8446  *)
8447    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8448    ;;
8449esac
8450
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8452$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8453if ${lt_cv_prog_compiler_pic+:} false; then :
8454  $as_echo_n "(cached) " >&6
8455else
8456  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8457fi
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8459$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8460lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8461
8462#
8463# Check to make sure the PIC flag actually works.
8464#
8465if test -n "$lt_prog_compiler_pic"; then
8466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8467$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8468if ${lt_cv_prog_compiler_pic_works+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  lt_cv_prog_compiler_pic_works=no
8472   ac_outfile=conftest.$ac_objext
8473   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8474   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8475   # Insert the option either (1) after the last *FLAGS variable, or
8476   # (2) before a word containing "conftest.", or (3) at the end.
8477   # Note that $ac_compile itself does not contain backslashes and begins
8478   # with a dollar sign (not a hyphen), so the echo should work correctly.
8479   # The option is referenced via a variable to avoid confusing sed.
8480   lt_compile=`echo "$ac_compile" | $SED \
8481   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8482   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8483   -e 's:$: $lt_compiler_flag:'`
8484   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8485   (eval "$lt_compile" 2>conftest.err)
8486   ac_status=$?
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   if (exit $ac_status) && test -s "$ac_outfile"; then
8490     # The compiler can only warn and ignore the option if not recognized
8491     # So say no if there are warnings other than the usual output.
8492     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8493     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8494     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8495       lt_cv_prog_compiler_pic_works=yes
8496     fi
8497   fi
8498   $RM conftest*
8499
8500fi
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8502$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8503
8504if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8505    case $lt_prog_compiler_pic in
8506     "" | " "*) ;;
8507     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8508     esac
8509else
8510    lt_prog_compiler_pic=
8511     lt_prog_compiler_can_build_shared=no
8512fi
8513
8514fi
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526#
8527# Check to make sure the static flag actually works.
8528#
8529wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8531$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8532if ${lt_cv_prog_compiler_static_works+:} false; then :
8533  $as_echo_n "(cached) " >&6
8534else
8535  lt_cv_prog_compiler_static_works=no
8536   save_LDFLAGS="$LDFLAGS"
8537   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8538   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8539   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8540     # The linker can only warn and ignore the option if not recognized
8541     # So say no if there are warnings
8542     if test -s conftest.err; then
8543       # Append any errors to the config.log.
8544       cat conftest.err 1>&5
8545       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8546       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8547       if diff conftest.exp conftest.er2 >/dev/null; then
8548         lt_cv_prog_compiler_static_works=yes
8549       fi
8550     else
8551       lt_cv_prog_compiler_static_works=yes
8552     fi
8553   fi
8554   $RM -r conftest*
8555   LDFLAGS="$save_LDFLAGS"
8556
8557fi
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8559$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8560
8561if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8562    :
8563else
8564    lt_prog_compiler_static=
8565fi
8566
8567
8568
8569
8570
8571
8572
8573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8574$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8575if ${lt_cv_prog_compiler_c_o+:} false; then :
8576  $as_echo_n "(cached) " >&6
8577else
8578  lt_cv_prog_compiler_c_o=no
8579   $RM -r conftest 2>/dev/null
8580   mkdir conftest
8581   cd conftest
8582   mkdir out
8583   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8584
8585   lt_compiler_flag="-o out/conftest2.$ac_objext"
8586   # Insert the option either (1) after the last *FLAGS variable, or
8587   # (2) before a word containing "conftest.", or (3) at the end.
8588   # Note that $ac_compile itself does not contain backslashes and begins
8589   # with a dollar sign (not a hyphen), so the echo should work correctly.
8590   lt_compile=`echo "$ac_compile" | $SED \
8591   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8592   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8593   -e 's:$: $lt_compiler_flag:'`
8594   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8595   (eval "$lt_compile" 2>out/conftest.err)
8596   ac_status=$?
8597   cat out/conftest.err >&5
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8600   then
8601     # The compiler can only warn and ignore the option if not recognized
8602     # So say no if there are warnings
8603     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8604     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8605     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8606       lt_cv_prog_compiler_c_o=yes
8607     fi
8608   fi
8609   chmod u+w . 2>&5
8610   $RM conftest*
8611   # SGI C++ compiler will create directory out/ii_files/ for
8612   # template instantiation
8613   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8614   $RM out/* && rmdir out
8615   cd ..
8616   $RM -r conftest
8617   $RM conftest*
8618
8619fi
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8621$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8622
8623
8624
8625
8626
8627
8628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8629$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8630if ${lt_cv_prog_compiler_c_o+:} false; then :
8631  $as_echo_n "(cached) " >&6
8632else
8633  lt_cv_prog_compiler_c_o=no
8634   $RM -r conftest 2>/dev/null
8635   mkdir conftest
8636   cd conftest
8637   mkdir out
8638   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8639
8640   lt_compiler_flag="-o out/conftest2.$ac_objext"
8641   # Insert the option either (1) after the last *FLAGS variable, or
8642   # (2) before a word containing "conftest.", or (3) at the end.
8643   # Note that $ac_compile itself does not contain backslashes and begins
8644   # with a dollar sign (not a hyphen), so the echo should work correctly.
8645   lt_compile=`echo "$ac_compile" | $SED \
8646   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8647   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8648   -e 's:$: $lt_compiler_flag:'`
8649   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8650   (eval "$lt_compile" 2>out/conftest.err)
8651   ac_status=$?
8652   cat out/conftest.err >&5
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8655   then
8656     # The compiler can only warn and ignore the option if not recognized
8657     # So say no if there are warnings
8658     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8659     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8660     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8661       lt_cv_prog_compiler_c_o=yes
8662     fi
8663   fi
8664   chmod u+w . 2>&5
8665   $RM conftest*
8666   # SGI C++ compiler will create directory out/ii_files/ for
8667   # template instantiation
8668   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8669   $RM out/* && rmdir out
8670   cd ..
8671   $RM -r conftest
8672   $RM conftest*
8673
8674fi
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8676$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8677
8678
8679
8680
8681hard_links="nottested"
8682if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8683  # do not overwrite the value of need_locks provided by the user
8684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8685$as_echo_n "checking if we can lock with hard links... " >&6; }
8686  hard_links=yes
8687  $RM conftest*
8688  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8689  touch conftest.a
8690  ln conftest.a conftest.b 2>&5 || hard_links=no
8691  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8693$as_echo "$hard_links" >&6; }
8694  if test "$hard_links" = no; then
8695    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8696$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8697    need_locks=warn
8698  fi
8699else
8700  need_locks=no
8701fi
8702
8703
8704
8705
8706
8707
8708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8709$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8710
8711  runpath_var=
8712  allow_undefined_flag=
8713  always_export_symbols=no
8714  archive_cmds=
8715  archive_expsym_cmds=
8716  compiler_needs_object=no
8717  enable_shared_with_static_runtimes=no
8718  export_dynamic_flag_spec=
8719  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8720  hardcode_automatic=no
8721  hardcode_direct=no
8722  hardcode_direct_absolute=no
8723  hardcode_libdir_flag_spec=
8724  hardcode_libdir_separator=
8725  hardcode_minus_L=no
8726  hardcode_shlibpath_var=unsupported
8727  inherit_rpath=no
8728  link_all_deplibs=unknown
8729  module_cmds=
8730  module_expsym_cmds=
8731  old_archive_from_new_cmds=
8732  old_archive_from_expsyms_cmds=
8733  thread_safe_flag_spec=
8734  whole_archive_flag_spec=
8735  # include_expsyms should be a list of space-separated symbols to be *always*
8736  # included in the symbol list
8737  include_expsyms=
8738  # exclude_expsyms can be an extended regexp of symbols to exclude
8739  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8740  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8741  # as well as any symbol that contains `d'.
8742  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8743  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8744  # platforms (ab)use it in PIC code, but their linkers get confused if
8745  # the symbol is explicitly referenced.  Since portable code cannot
8746  # rely on this symbol name, it's probably fine to never include it in
8747  # preloaded symbol tables.
8748  # Exclude shared library initialization/finalization symbols.
8749  extract_expsyms_cmds=
8750
8751  case $host_os in
8752  cygwin* | mingw* | pw32* | cegcc*)
8753    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8754    # When not using gcc, we currently assume that we are using
8755    # Microsoft Visual C++.
8756    if test "$GCC" != yes; then
8757      with_gnu_ld=no
8758    fi
8759    ;;
8760  interix*)
8761    # we just hope/assume this is gcc and not c89 (= MSVC++)
8762    with_gnu_ld=yes
8763    ;;
8764  openbsd*)
8765    with_gnu_ld=no
8766    ;;
8767  linux* | k*bsd*-gnu | gnu*)
8768    link_all_deplibs=no
8769    ;;
8770  esac
8771
8772  ld_shlibs=yes
8773
8774  # On some targets, GNU ld is compatible enough with the native linker
8775  # that we're better off using the native interface for both.
8776  lt_use_gnu_ld_interface=no
8777  if test "$with_gnu_ld" = yes; then
8778    case $host_os in
8779      aix*)
8780	# The AIX port of GNU ld has always aspired to compatibility
8781	# with the native linker.  However, as the warning in the GNU ld
8782	# block says, versions before 2.19.5* couldn't really create working
8783	# shared libraries, regardless of the interface used.
8784	case `$LD -v 2>&1` in
8785	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8786	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8787	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8788	  *)
8789	    lt_use_gnu_ld_interface=yes
8790	    ;;
8791	esac
8792	;;
8793      *)
8794	lt_use_gnu_ld_interface=yes
8795	;;
8796    esac
8797  fi
8798
8799  if test "$lt_use_gnu_ld_interface" = yes; then
8800    # If archive_cmds runs LD, not CC, wlarc should be empty
8801    wlarc='${wl}'
8802
8803    # Set some defaults for GNU ld with shared library support. These
8804    # are reset later if shared libraries are not supported. Putting them
8805    # here allows them to be overridden if necessary.
8806    runpath_var=LD_RUN_PATH
8807    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808    export_dynamic_flag_spec='${wl}--export-dynamic'
8809    # ancient GNU ld didn't support --whole-archive et. al.
8810    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8811      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8812    else
8813      whole_archive_flag_spec=
8814    fi
8815    supports_anon_versioning=no
8816    case `$LD -v 2>&1` in
8817      *GNU\ gold*) supports_anon_versioning=yes ;;
8818      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8819      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8820      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8821      *\ 2.11.*) ;; # other 2.11 versions
8822      *) supports_anon_versioning=yes ;;
8823    esac
8824
8825    # See if GNU ld supports shared libraries.
8826    case $host_os in
8827    aix[3-9]*)
8828      # On AIX/PPC, the GNU linker is very broken
8829      if test "$host_cpu" != ia64; then
8830	ld_shlibs=no
8831	cat <<_LT_EOF 1>&2
8832
8833*** Warning: the GNU linker, at least up to release 2.19, is reported
8834*** to be unable to reliably create shared libraries on AIX.
8835*** Therefore, libtool is disabling shared libraries support.  If you
8836*** really care for shared libraries, you may want to install binutils
8837*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8838*** You will then need to restart the configuration process.
8839
8840_LT_EOF
8841      fi
8842      ;;
8843
8844    amigaos*)
8845      case $host_cpu in
8846      powerpc)
8847            # see comment about AmigaOS4 .so support
8848            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8849            archive_expsym_cmds=''
8850        ;;
8851      m68k)
8852            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)'
8853            hardcode_libdir_flag_spec='-L$libdir'
8854            hardcode_minus_L=yes
8855        ;;
8856      esac
8857      ;;
8858
8859    beos*)
8860      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8861	allow_undefined_flag=unsupported
8862	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8863	# support --undefined.  This deserves some investigation.  FIXME
8864	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865      else
8866	ld_shlibs=no
8867      fi
8868      ;;
8869
8870    cygwin* | mingw* | pw32* | cegcc*)
8871      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8872      # as there is no search path for DLLs.
8873      hardcode_libdir_flag_spec='-L$libdir'
8874      export_dynamic_flag_spec='${wl}--export-all-symbols'
8875      allow_undefined_flag=unsupported
8876      always_export_symbols=no
8877      enable_shared_with_static_runtimes=yes
8878      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'
8879      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8880
8881      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8882        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8883	# If the export-symbols file already is a .def file (1st line
8884	# is EXPORTS), use it as is; otherwise, prepend...
8885	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8886	  cp $export_symbols $output_objdir/$soname.def;
8887	else
8888	  echo EXPORTS > $output_objdir/$soname.def;
8889	  cat $export_symbols >> $output_objdir/$soname.def;
8890	fi~
8891	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8892      else
8893	ld_shlibs=no
8894      fi
8895      ;;
8896
8897    haiku*)
8898      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899      link_all_deplibs=yes
8900      ;;
8901
8902    interix[3-9]*)
8903      hardcode_direct=no
8904      hardcode_shlibpath_var=no
8905      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8906      export_dynamic_flag_spec='${wl}-E'
8907      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8908      # Instead, shared libraries are loaded at an image base (0x10000000 by
8909      # default) and relocated if they conflict, which is a slow very memory
8910      # consuming and fragmenting process.  To avoid this, we pick a random,
8911      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8912      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8913      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8914      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'
8915      ;;
8916
8917    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8918      tmp_diet=no
8919      if test "$host_os" = linux-dietlibc; then
8920	case $cc_basename in
8921	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8922	esac
8923      fi
8924      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8925	 && test "$tmp_diet" = no
8926      then
8927	tmp_addflag=' $pic_flag'
8928	tmp_sharedflag='-shared'
8929	case $cc_basename,$host_cpu in
8930        pgcc*)				# Portland Group C compiler
8931	  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'
8932	  tmp_addflag=' $pic_flag'
8933	  ;;
8934	pgf77* | pgf90* | pgf95* | pgfortran*)
8935					# Portland Group f77 and f90 compilers
8936	  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'
8937	  tmp_addflag=' $pic_flag -Mnomain' ;;
8938	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8939	  tmp_addflag=' -i_dynamic' ;;
8940	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8941	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8942	ifc* | ifort*)			# Intel Fortran compiler
8943	  tmp_addflag=' -nofor_main' ;;
8944	lf95*)				# Lahey Fortran 8.1
8945	  whole_archive_flag_spec=
8946	  tmp_sharedflag='--shared' ;;
8947	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8948	  tmp_sharedflag='-qmkshrobj'
8949	  tmp_addflag= ;;
8950	nvcc*)	# Cuda Compiler Driver 2.2
8951	  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'
8952	  compiler_needs_object=yes
8953	  ;;
8954	esac
8955	case `$CC -V 2>&1 | sed 5q` in
8956	*Sun\ C*)			# Sun C 5.9
8957	  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'
8958	  compiler_needs_object=yes
8959	  tmp_sharedflag='-G' ;;
8960	*Sun\ F*)			# Sun Fortran 8.3
8961	  tmp_sharedflag='-G' ;;
8962	esac
8963	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964
8965        if test "x$supports_anon_versioning" = xyes; then
8966          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8967	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8968	    echo "local: *; };" >> $output_objdir/$libname.ver~
8969	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8970        fi
8971
8972	case $cc_basename in
8973	xlf* | bgf* | bgxlf* | mpixlf*)
8974	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8975	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8976	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8977	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8978	  if test "x$supports_anon_versioning" = xyes; then
8979	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8980	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8981	      echo "local: *; };" >> $output_objdir/$libname.ver~
8982	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8983	  fi
8984	  ;;
8985	esac
8986      else
8987        ld_shlibs=no
8988      fi
8989      ;;
8990
8991    netbsd* | netbsdelf*-gnu)
8992      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8993	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8994	wlarc=
8995      else
8996	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8998      fi
8999      ;;
9000
9001    solaris*)
9002      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9003	ld_shlibs=no
9004	cat <<_LT_EOF 1>&2
9005
9006*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9007*** create shared libraries on Solaris systems.  Therefore, libtool
9008*** is disabling shared libraries support.  We urge you to upgrade GNU
9009*** binutils to release 2.9.1 or newer.  Another option is to modify
9010*** your PATH or compiler configuration so that the native linker is
9011*** used, and then restart.
9012
9013_LT_EOF
9014      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9015	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017      else
9018	ld_shlibs=no
9019      fi
9020      ;;
9021
9022    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9023      case `$LD -v 2>&1` in
9024        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9025	ld_shlibs=no
9026	cat <<_LT_EOF 1>&2
9027
9028*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9029*** reliably create shared libraries on SCO systems.  Therefore, libtool
9030*** is disabling shared libraries support.  We urge you to upgrade GNU
9031*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9032*** your PATH or compiler configuration so that the native linker is
9033*** used, and then restart.
9034
9035_LT_EOF
9036	;;
9037	*)
9038	  # For security reasons, it is highly recommended that you always
9039	  # use absolute paths for naming shared libraries, and exclude the
9040	  # DT_RUNPATH tag from executables and libraries.  But doing so
9041	  # requires that you compile everything twice, which is a pain.
9042	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9043	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9044	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9046	  else
9047	    ld_shlibs=no
9048	  fi
9049	;;
9050      esac
9051      ;;
9052
9053    sunos4*)
9054      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9055      wlarc=
9056      hardcode_direct=yes
9057      hardcode_shlibpath_var=no
9058      ;;
9059
9060    *)
9061      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9062	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9064      else
9065	ld_shlibs=no
9066      fi
9067      ;;
9068    esac
9069
9070    if test "$ld_shlibs" = no; then
9071      runpath_var=
9072      hardcode_libdir_flag_spec=
9073      export_dynamic_flag_spec=
9074      whole_archive_flag_spec=
9075    fi
9076  else
9077    # PORTME fill in a description of your system's linker (not GNU ld)
9078    case $host_os in
9079    aix3*)
9080      allow_undefined_flag=unsupported
9081      always_export_symbols=yes
9082      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'
9083      # Note: this linker hardcodes the directories in LIBPATH if there
9084      # are no directories specified by -L.
9085      hardcode_minus_L=yes
9086      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9087	# Neither direct hardcoding nor static linking is supported with a
9088	# broken collect2.
9089	hardcode_direct=unsupported
9090      fi
9091      ;;
9092
9093    aix[4-9]*)
9094      if test "$host_cpu" = ia64; then
9095	# On IA64, the linker does run time linking by default, so we don't
9096	# have to do anything special.
9097	aix_use_runtimelinking=no
9098	exp_sym_flag='-Bexport'
9099	no_entry_flag=""
9100      else
9101	# If we're using GNU nm, then we don't want the "-C" option.
9102	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9103	# Also, AIX nm treats weak defined symbols like other global
9104	# defined symbols, whereas GNU nm marks them as "W".
9105	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9106	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9107	else
9108	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9109	fi
9110	aix_use_runtimelinking=no
9111
9112	# Test if we are trying to use run time linking or normal
9113	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9114	# need to do runtime linking.
9115	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9116	  for ld_flag in $LDFLAGS; do
9117	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9118	    aix_use_runtimelinking=yes
9119	    break
9120	  fi
9121	  done
9122	  ;;
9123	esac
9124
9125	exp_sym_flag='-bexport'
9126	no_entry_flag='-bnoentry'
9127      fi
9128
9129      # When large executables or shared objects are built, AIX ld can
9130      # have problems creating the table of contents.  If linking a library
9131      # or program results in "error TOC overflow" add -mminimal-toc to
9132      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9133      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9134
9135      archive_cmds=''
9136      hardcode_direct=yes
9137      hardcode_direct_absolute=yes
9138      hardcode_libdir_separator=':'
9139      link_all_deplibs=yes
9140      file_list_spec='${wl}-f,'
9141
9142      if test "$GCC" = yes; then
9143	case $host_os in aix4.[012]|aix4.[012].*)
9144	# We only want to do this on AIX 4.2 and lower, the check
9145	# below for broken collect2 doesn't work under 4.3+
9146	  collect2name=`${CC} -print-prog-name=collect2`
9147	  if test -f "$collect2name" &&
9148	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9149	  then
9150	  # We have reworked collect2
9151	  :
9152	  else
9153	  # We have old collect2
9154	  hardcode_direct=unsupported
9155	  # It fails to find uninstalled libraries when the uninstalled
9156	  # path is not listed in the libpath.  Setting hardcode_minus_L
9157	  # to unsupported forces relinking
9158	  hardcode_minus_L=yes
9159	  hardcode_libdir_flag_spec='-L$libdir'
9160	  hardcode_libdir_separator=
9161	  fi
9162	  ;;
9163	esac
9164	shared_flag='-shared'
9165	if test "$aix_use_runtimelinking" = yes; then
9166	  shared_flag="$shared_flag "'${wl}-G'
9167	fi
9168	link_all_deplibs=no
9169      else
9170	# not using gcc
9171	if test "$host_cpu" = ia64; then
9172	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9173	# chokes on -Wl,-G. The following line is correct:
9174	  shared_flag='-G'
9175	else
9176	  if test "$aix_use_runtimelinking" = yes; then
9177	    shared_flag='${wl}-G'
9178	  else
9179	    shared_flag='${wl}-bM:SRE'
9180	  fi
9181	fi
9182      fi
9183
9184      export_dynamic_flag_spec='${wl}-bexpall'
9185      # It seems that -bexpall does not export symbols beginning with
9186      # underscore (_), so it is better to generate a list of symbols to export.
9187      always_export_symbols=yes
9188      if test "$aix_use_runtimelinking" = yes; then
9189	# Warning - without using the other runtime loading flags (-brtl),
9190	# -berok will link without error, but may produce a broken library.
9191	allow_undefined_flag='-berok'
9192        # Determine the default libpath from the value encoded in an
9193        # empty executable.
9194        if test "${lt_cv_aix_libpath+set}" = set; then
9195  aix_libpath=$lt_cv_aix_libpath
9196else
9197  if ${lt_cv_aix_libpath_+:} false; then :
9198  $as_echo_n "(cached) " >&6
9199else
9200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h.  */
9202
9203int
9204main ()
9205{
9206
9207  ;
9208  return 0;
9209}
9210_ACEOF
9211if ac_fn_c_try_link "$LINENO"; then :
9212
9213  lt_aix_libpath_sed='
9214      /Import File Strings/,/^$/ {
9215	  /^0/ {
9216	      s/^0  *\([^ ]*\) *$/\1/
9217	      p
9218	  }
9219      }'
9220  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9221  # Check for a 64-bit object if we didn't find anything.
9222  if test -z "$lt_cv_aix_libpath_"; then
9223    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224  fi
9225fi
9226rm -f core conftest.err conftest.$ac_objext \
9227    conftest$ac_exeext conftest.$ac_ext
9228  if test -z "$lt_cv_aix_libpath_"; then
9229    lt_cv_aix_libpath_="/usr/lib:/lib"
9230  fi
9231
9232fi
9233
9234  aix_libpath=$lt_cv_aix_libpath_
9235fi
9236
9237        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9238        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9239      else
9240	if test "$host_cpu" = ia64; then
9241	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9242	  allow_undefined_flag="-z nodefs"
9243	  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"
9244	else
9245	 # Determine the default libpath from the value encoded in an
9246	 # empty executable.
9247	 if test "${lt_cv_aix_libpath+set}" = set; then
9248  aix_libpath=$lt_cv_aix_libpath
9249else
9250  if ${lt_cv_aix_libpath_+:} false; then :
9251  $as_echo_n "(cached) " >&6
9252else
9253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254/* end confdefs.h.  */
9255
9256int
9257main ()
9258{
9259
9260  ;
9261  return 0;
9262}
9263_ACEOF
9264if ac_fn_c_try_link "$LINENO"; then :
9265
9266  lt_aix_libpath_sed='
9267      /Import File Strings/,/^$/ {
9268	  /^0/ {
9269	      s/^0  *\([^ ]*\) *$/\1/
9270	      p
9271	  }
9272      }'
9273  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9274  # Check for a 64-bit object if we didn't find anything.
9275  if test -z "$lt_cv_aix_libpath_"; then
9276    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277  fi
9278fi
9279rm -f core conftest.err conftest.$ac_objext \
9280    conftest$ac_exeext conftest.$ac_ext
9281  if test -z "$lt_cv_aix_libpath_"; then
9282    lt_cv_aix_libpath_="/usr/lib:/lib"
9283  fi
9284
9285fi
9286
9287  aix_libpath=$lt_cv_aix_libpath_
9288fi
9289
9290	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9291	  # Warning - without using the other run time loading flags,
9292	  # -berok will link without error, but may produce a broken library.
9293	  no_undefined_flag=' ${wl}-bernotok'
9294	  allow_undefined_flag=' ${wl}-berok'
9295	  if test "$with_gnu_ld" = yes; then
9296	    # We only use this code for GNU lds that support --whole-archive.
9297	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9298	  else
9299	    # Exported symbols can be pulled into shared objects from archives
9300	    whole_archive_flag_spec='$convenience'
9301	  fi
9302	  archive_cmds_need_lc=yes
9303	  # This is similar to how AIX traditionally builds its shared libraries.
9304	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9305	fi
9306      fi
9307      ;;
9308
9309    amigaos*)
9310      case $host_cpu in
9311      powerpc)
9312            # see comment about AmigaOS4 .so support
9313            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314            archive_expsym_cmds=''
9315        ;;
9316      m68k)
9317            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)'
9318            hardcode_libdir_flag_spec='-L$libdir'
9319            hardcode_minus_L=yes
9320        ;;
9321      esac
9322      ;;
9323
9324    bsdi[45]*)
9325      export_dynamic_flag_spec=-rdynamic
9326      ;;
9327
9328    cygwin* | mingw* | pw32* | cegcc*)
9329      # When not using gcc, we currently assume that we are using
9330      # Microsoft Visual C++.
9331      # hardcode_libdir_flag_spec is actually meaningless, as there is
9332      # no search path for DLLs.
9333      case $cc_basename in
9334      cl*)
9335	# Native MSVC
9336	hardcode_libdir_flag_spec=' '
9337	allow_undefined_flag=unsupported
9338	always_export_symbols=yes
9339	file_list_spec='@'
9340	# Tell ltmain to make .lib files, not .a files.
9341	libext=lib
9342	# Tell ltmain to make .dll files, not .so files.
9343	shrext_cmds=".dll"
9344	# FIXME: Setting linknames here is a bad hack.
9345	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9346	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9347	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9348	  else
9349	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9350	  fi~
9351	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9352	  linknames='
9353	# The linker will not automatically build a static lib if we build a DLL.
9354	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9355	enable_shared_with_static_runtimes=yes
9356	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9357	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9358	# Don't use ranlib
9359	old_postinstall_cmds='chmod 644 $oldlib'
9360	postlink_cmds='lt_outputfile="@OUTPUT@"~
9361	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9362	  case $lt_outputfile in
9363	    *.exe|*.EXE) ;;
9364	    *)
9365	      lt_outputfile="$lt_outputfile.exe"
9366	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9367	      ;;
9368	  esac~
9369	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9370	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9371	    $RM "$lt_outputfile.manifest";
9372	  fi'
9373	;;
9374      *)
9375	# Assume MSVC wrapper
9376	hardcode_libdir_flag_spec=' '
9377	allow_undefined_flag=unsupported
9378	# Tell ltmain to make .lib files, not .a files.
9379	libext=lib
9380	# Tell ltmain to make .dll files, not .so files.
9381	shrext_cmds=".dll"
9382	# FIXME: Setting linknames here is a bad hack.
9383	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9384	# The linker will automatically build a .lib file if we build a DLL.
9385	old_archive_from_new_cmds='true'
9386	# FIXME: Should let the user specify the lib program.
9387	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9388	enable_shared_with_static_runtimes=yes
9389	;;
9390      esac
9391      ;;
9392
9393    darwin* | rhapsody*)
9394
9395
9396  archive_cmds_need_lc=no
9397  hardcode_direct=no
9398  hardcode_automatic=yes
9399  hardcode_shlibpath_var=unsupported
9400  if test "$lt_cv_ld_force_load" = "yes"; then
9401    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\"`'
9402
9403  else
9404    whole_archive_flag_spec=''
9405  fi
9406  link_all_deplibs=yes
9407  allow_undefined_flag="$_lt_dar_allow_undefined"
9408  case $cc_basename in
9409     ifort*) _lt_dar_can_shared=yes ;;
9410     *) _lt_dar_can_shared=$GCC ;;
9411  esac
9412  if test "$_lt_dar_can_shared" = "yes"; then
9413    output_verbose_link_cmd=func_echo_all
9414    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9415    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9416    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}"
9417    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}"
9418
9419  else
9420  ld_shlibs=no
9421  fi
9422
9423      ;;
9424
9425    dgux*)
9426      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427      hardcode_libdir_flag_spec='-L$libdir'
9428      hardcode_shlibpath_var=no
9429      ;;
9430
9431    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9432    # support.  Future versions do this automatically, but an explicit c++rt0.o
9433    # does not break anything, and helps significantly (at the cost of a little
9434    # extra space).
9435    freebsd2.2*)
9436      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9437      hardcode_libdir_flag_spec='-R$libdir'
9438      hardcode_direct=yes
9439      hardcode_shlibpath_var=no
9440      ;;
9441
9442    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9443    freebsd2.*)
9444      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9445      hardcode_direct=yes
9446      hardcode_minus_L=yes
9447      hardcode_shlibpath_var=no
9448      ;;
9449
9450    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9451    freebsd* | dragonfly*)
9452      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9453      hardcode_libdir_flag_spec='-R$libdir'
9454      hardcode_direct=yes
9455      hardcode_shlibpath_var=no
9456      ;;
9457
9458    hpux9*)
9459      if test "$GCC" = yes; then
9460	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9461      else
9462	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9463      fi
9464      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465      hardcode_libdir_separator=:
9466      hardcode_direct=yes
9467
9468      # hardcode_minus_L: Not really in the search PATH,
9469      # but as the default location of the library.
9470      hardcode_minus_L=yes
9471      export_dynamic_flag_spec='${wl}-E'
9472      ;;
9473
9474    hpux10*)
9475      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9476	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9477      else
9478	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9479      fi
9480      if test "$with_gnu_ld" = no; then
9481	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9482	hardcode_libdir_separator=:
9483	hardcode_direct=yes
9484	hardcode_direct_absolute=yes
9485	export_dynamic_flag_spec='${wl}-E'
9486	# hardcode_minus_L: Not really in the search PATH,
9487	# but as the default location of the library.
9488	hardcode_minus_L=yes
9489      fi
9490      ;;
9491
9492    hpux11*)
9493      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9494	case $host_cpu in
9495	hppa*64*)
9496	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9497	  ;;
9498	ia64*)
9499	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9500	  ;;
9501	*)
9502	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9503	  ;;
9504	esac
9505      else
9506	case $host_cpu in
9507	hppa*64*)
9508	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9509	  ;;
9510	ia64*)
9511	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9512	  ;;
9513	*)
9514
9515	  # Older versions of the 11.00 compiler do not understand -b yet
9516	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9517	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9518$as_echo_n "checking if $CC understands -b... " >&6; }
9519if ${lt_cv_prog_compiler__b+:} false; then :
9520  $as_echo_n "(cached) " >&6
9521else
9522  lt_cv_prog_compiler__b=no
9523   save_LDFLAGS="$LDFLAGS"
9524   LDFLAGS="$LDFLAGS -b"
9525   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9526   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9527     # The linker can only warn and ignore the option if not recognized
9528     # So say no if there are warnings
9529     if test -s conftest.err; then
9530       # Append any errors to the config.log.
9531       cat conftest.err 1>&5
9532       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9533       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9534       if diff conftest.exp conftest.er2 >/dev/null; then
9535         lt_cv_prog_compiler__b=yes
9536       fi
9537     else
9538       lt_cv_prog_compiler__b=yes
9539     fi
9540   fi
9541   $RM -r conftest*
9542   LDFLAGS="$save_LDFLAGS"
9543
9544fi
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9546$as_echo "$lt_cv_prog_compiler__b" >&6; }
9547
9548if test x"$lt_cv_prog_compiler__b" = xyes; then
9549    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9550else
9551    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9552fi
9553
9554	  ;;
9555	esac
9556      fi
9557      if test "$with_gnu_ld" = no; then
9558	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9559	hardcode_libdir_separator=:
9560
9561	case $host_cpu in
9562	hppa*64*|ia64*)
9563	  hardcode_direct=no
9564	  hardcode_shlibpath_var=no
9565	  ;;
9566	*)
9567	  hardcode_direct=yes
9568	  hardcode_direct_absolute=yes
9569	  export_dynamic_flag_spec='${wl}-E'
9570
9571	  # hardcode_minus_L: Not really in the search PATH,
9572	  # but as the default location of the library.
9573	  hardcode_minus_L=yes
9574	  ;;
9575	esac
9576      fi
9577      ;;
9578
9579    irix5* | irix6* | nonstopux*)
9580      if test "$GCC" = yes; then
9581	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'
9582	# Try to use the -exported_symbol ld option, if it does not
9583	# work, assume that -exports_file does not work either and
9584	# implicitly export all symbols.
9585	# This should be the same for all languages, so no per-tag cache variable.
9586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9587$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9588if ${lt_cv_irix_exported_symbol+:} false; then :
9589  $as_echo_n "(cached) " >&6
9590else
9591  save_LDFLAGS="$LDFLAGS"
9592	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9593	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h.  */
9595int foo (void) { return 0; }
9596_ACEOF
9597if ac_fn_c_try_link "$LINENO"; then :
9598  lt_cv_irix_exported_symbol=yes
9599else
9600  lt_cv_irix_exported_symbol=no
9601fi
9602rm -f core conftest.err conftest.$ac_objext \
9603    conftest$ac_exeext conftest.$ac_ext
9604           LDFLAGS="$save_LDFLAGS"
9605fi
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9607$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9608	if test "$lt_cv_irix_exported_symbol" = yes; then
9609          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'
9610	fi
9611      else
9612	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'
9613	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'
9614      fi
9615      archive_cmds_need_lc='no'
9616      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617      hardcode_libdir_separator=:
9618      inherit_rpath=yes
9619      link_all_deplibs=yes
9620      ;;
9621
9622    netbsd* | netbsdelf*-gnu)
9623      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9624	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9625      else
9626	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9627      fi
9628      hardcode_libdir_flag_spec='-R$libdir'
9629      hardcode_direct=yes
9630      hardcode_shlibpath_var=no
9631      ;;
9632
9633    newsos6)
9634      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635      hardcode_direct=yes
9636      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637      hardcode_libdir_separator=:
9638      hardcode_shlibpath_var=no
9639      ;;
9640
9641    *nto* | *qnx*)
9642      ;;
9643
9644    openbsd*)
9645      if test -f /usr/libexec/ld.so; then
9646	hardcode_direct=yes
9647	hardcode_shlibpath_var=no
9648	hardcode_direct_absolute=yes
9649	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9650	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9652	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9653	  export_dynamic_flag_spec='${wl}-E'
9654	else
9655	  case $host_os in
9656	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9657	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658	     hardcode_libdir_flag_spec='-R$libdir'
9659	     ;;
9660	   *)
9661	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9662	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9663	     ;;
9664	  esac
9665	fi
9666      else
9667	ld_shlibs=no
9668      fi
9669      ;;
9670
9671    os2*)
9672      hardcode_libdir_flag_spec='-L$libdir'
9673      hardcode_minus_L=yes
9674      allow_undefined_flag=unsupported
9675      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9676      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9677      ;;
9678
9679    osf3*)
9680      if test "$GCC" = yes; then
9681	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9682	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'
9683      else
9684	allow_undefined_flag=' -expect_unresolved \*'
9685	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'
9686      fi
9687      archive_cmds_need_lc='no'
9688      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9689      hardcode_libdir_separator=:
9690      ;;
9691
9692    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9693      if test "$GCC" = yes; then
9694	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9695	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'
9696	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697      else
9698	allow_undefined_flag=' -expect_unresolved \*'
9699	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'
9700	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~
9701	$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'
9702
9703	# Both c and cxx compiler support -rpath directly
9704	hardcode_libdir_flag_spec='-rpath $libdir'
9705      fi
9706      archive_cmds_need_lc='no'
9707      hardcode_libdir_separator=:
9708      ;;
9709
9710    solaris*)
9711      no_undefined_flag=' -z defs'
9712      if test "$GCC" = yes; then
9713	wlarc='${wl}'
9714	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9716	  $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'
9717      else
9718	case `$CC -V 2>&1` in
9719	*"Compilers 5.0"*)
9720	  wlarc=''
9721	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9723	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9724	  ;;
9725	*)
9726	  wlarc='${wl}'
9727	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9728	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9729	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9730	  ;;
9731	esac
9732      fi
9733      hardcode_libdir_flag_spec='-R$libdir'
9734      hardcode_shlibpath_var=no
9735      case $host_os in
9736      solaris2.[0-5] | solaris2.[0-5].*) ;;
9737      *)
9738	# The compiler driver will combine and reorder linker options,
9739	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9740	# but is careful enough not to reorder.
9741	# Supported since Solaris 2.6 (maybe 2.5.1?)
9742	if test "$GCC" = yes; then
9743	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9744	else
9745	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9746	fi
9747	;;
9748      esac
9749      link_all_deplibs=yes
9750      ;;
9751
9752    sunos4*)
9753      if test "x$host_vendor" = xsequent; then
9754	# Use $CC to link under sequent, because it throws in some extra .o
9755	# files that make .init and .fini sections work.
9756	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9757      else
9758	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9759      fi
9760      hardcode_libdir_flag_spec='-L$libdir'
9761      hardcode_direct=yes
9762      hardcode_minus_L=yes
9763      hardcode_shlibpath_var=no
9764      ;;
9765
9766    sysv4)
9767      case $host_vendor in
9768	sni)
9769	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770	  hardcode_direct=yes # is this really true???
9771	;;
9772	siemens)
9773	  ## LD is ld it makes a PLAMLIB
9774	  ## CC just makes a GrossModule.
9775	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9776	  reload_cmds='$CC -r -o $output$reload_objs'
9777	  hardcode_direct=no
9778        ;;
9779	motorola)
9780	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9782	;;
9783      esac
9784      runpath_var='LD_RUN_PATH'
9785      hardcode_shlibpath_var=no
9786      ;;
9787
9788    sysv4.3*)
9789      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790      hardcode_shlibpath_var=no
9791      export_dynamic_flag_spec='-Bexport'
9792      ;;
9793
9794    sysv4*MP*)
9795      if test -d /usr/nec; then
9796	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9797	hardcode_shlibpath_var=no
9798	runpath_var=LD_RUN_PATH
9799	hardcode_runpath_var=yes
9800	ld_shlibs=yes
9801      fi
9802      ;;
9803
9804    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9805      no_undefined_flag='${wl}-z,text'
9806      archive_cmds_need_lc=no
9807      hardcode_shlibpath_var=no
9808      runpath_var='LD_RUN_PATH'
9809
9810      if test "$GCC" = yes; then
9811	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9812	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813      else
9814	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816      fi
9817      ;;
9818
9819    sysv5* | sco3.2v5* | sco5v6*)
9820      # Note: We can NOT use -z defs as we might desire, because we do not
9821      # link with -lc, and that would cause any symbols used from libc to
9822      # always be unresolved, which means just about no library would
9823      # ever link correctly.  If we're not using GNU ld we use -z text
9824      # though, which does catch some bad symbols but isn't as heavy-handed
9825      # as -z defs.
9826      no_undefined_flag='${wl}-z,text'
9827      allow_undefined_flag='${wl}-z,nodefs'
9828      archive_cmds_need_lc=no
9829      hardcode_shlibpath_var=no
9830      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9831      hardcode_libdir_separator=':'
9832      link_all_deplibs=yes
9833      export_dynamic_flag_spec='${wl}-Bexport'
9834      runpath_var='LD_RUN_PATH'
9835
9836      if test "$GCC" = yes; then
9837	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839      else
9840	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842      fi
9843      ;;
9844
9845    uts4*)
9846      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847      hardcode_libdir_flag_spec='-L$libdir'
9848      hardcode_shlibpath_var=no
9849      ;;
9850
9851    *)
9852      ld_shlibs=no
9853      ;;
9854    esac
9855
9856    if test x$host_vendor = xsni; then
9857      case $host in
9858      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9859	export_dynamic_flag_spec='${wl}-Blargedynsym'
9860	;;
9861      esac
9862    fi
9863  fi
9864
9865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9866$as_echo "$ld_shlibs" >&6; }
9867test "$ld_shlibs" = no && can_build_shared=no
9868
9869with_gnu_ld=$with_gnu_ld
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885#
9886# Do we need to explicitly link libc?
9887#
9888case "x$archive_cmds_need_lc" in
9889x|xyes)
9890  # Assume -lc should be added
9891  archive_cmds_need_lc=yes
9892
9893  if test "$enable_shared" = yes && test "$GCC" = yes; then
9894    case $archive_cmds in
9895    *'~'*)
9896      # FIXME: we may have to deal with multi-command sequences.
9897      ;;
9898    '$CC '*)
9899      # Test whether the compiler implicitly links with -lc since on some
9900      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9901      # to ld, don't add -lc before -lgcc.
9902      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9903$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9904if ${lt_cv_archive_cmds_need_lc+:} false; then :
9905  $as_echo_n "(cached) " >&6
9906else
9907  $RM conftest*
9908	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9909
9910	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9911  (eval $ac_compile) 2>&5
9912  ac_status=$?
9913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9914  test $ac_status = 0; } 2>conftest.err; then
9915	  soname=conftest
9916	  lib=conftest
9917	  libobjs=conftest.$ac_objext
9918	  deplibs=
9919	  wl=$lt_prog_compiler_wl
9920	  pic_flag=$lt_prog_compiler_pic
9921	  compiler_flags=-v
9922	  linker_flags=-v
9923	  verstring=
9924	  output_objdir=.
9925	  libname=conftest
9926	  lt_save_allow_undefined_flag=$allow_undefined_flag
9927	  allow_undefined_flag=
9928	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9929  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9930  ac_status=$?
9931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9932  test $ac_status = 0; }
9933	  then
9934	    lt_cv_archive_cmds_need_lc=no
9935	  else
9936	    lt_cv_archive_cmds_need_lc=yes
9937	  fi
9938	  allow_undefined_flag=$lt_save_allow_undefined_flag
9939	else
9940	  cat conftest.err 1>&5
9941	fi
9942	$RM conftest*
9943
9944fi
9945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9946$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9947      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9948      ;;
9949    esac
9950  fi
9951  ;;
9952esac
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10106$as_echo_n "checking dynamic linker characteristics... " >&6; }
10107
10108if test "$GCC" = yes; then
10109  case $host_os in
10110    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10111    *) lt_awk_arg="/^libraries:/" ;;
10112  esac
10113  case $host_os in
10114    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10115    *) lt_sed_strip_eq="s,=/,/,g" ;;
10116  esac
10117  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10118  case $lt_search_path_spec in
10119  *\;*)
10120    # if the path contains ";" then we assume it to be the separator
10121    # otherwise default to the standard path separator (i.e. ":") - it is
10122    # assumed that no part of a normal pathname contains ";" but that should
10123    # okay in the real world where ";" in dirpaths is itself problematic.
10124    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10125    ;;
10126  *)
10127    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10128    ;;
10129  esac
10130  # Ok, now we have the path, separated by spaces, we can step through it
10131  # and add multilib dir if necessary.
10132  lt_tmp_lt_search_path_spec=
10133  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10134  for lt_sys_path in $lt_search_path_spec; do
10135    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10136      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10137    else
10138      test -d "$lt_sys_path" && \
10139	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10140    fi
10141  done
10142  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10143BEGIN {RS=" "; FS="/|\n";} {
10144  lt_foo="";
10145  lt_count=0;
10146  for (lt_i = NF; lt_i > 0; lt_i--) {
10147    if ($lt_i != "" && $lt_i != ".") {
10148      if ($lt_i == "..") {
10149        lt_count++;
10150      } else {
10151        if (lt_count == 0) {
10152          lt_foo="/" $lt_i lt_foo;
10153        } else {
10154          lt_count--;
10155        }
10156      }
10157    }
10158  }
10159  if (lt_foo != "") { lt_freq[lt_foo]++; }
10160  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10161}'`
10162  # AWK program above erroneously prepends '/' to C:/dos/paths
10163  # for these hosts.
10164  case $host_os in
10165    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10166      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10167  esac
10168  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10169else
10170  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10171fi
10172library_names_spec=
10173libname_spec='lib$name'
10174soname_spec=
10175shrext_cmds=".so"
10176postinstall_cmds=
10177postuninstall_cmds=
10178finish_cmds=
10179finish_eval=
10180shlibpath_var=
10181shlibpath_overrides_runpath=unknown
10182version_type=none
10183dynamic_linker="$host_os ld.so"
10184sys_lib_dlsearch_path_spec="/lib /usr/lib"
10185need_lib_prefix=unknown
10186hardcode_into_libs=no
10187
10188# when you set need_version to no, make sure it does not cause -set_version
10189# flags to be left without arguments
10190need_version=unknown
10191
10192case $host_os in
10193aix3*)
10194  version_type=linux # correct to gnu/linux during the next big refactor
10195  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10196  shlibpath_var=LIBPATH
10197
10198  # AIX 3 has no versioning support, so we append a major version to the name.
10199  soname_spec='${libname}${release}${shared_ext}$major'
10200  ;;
10201
10202aix[4-9]*)
10203  version_type=linux # correct to gnu/linux during the next big refactor
10204  need_lib_prefix=no
10205  need_version=no
10206  hardcode_into_libs=yes
10207  if test "$host_cpu" = ia64; then
10208    # AIX 5 supports IA64
10209    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10210    shlibpath_var=LD_LIBRARY_PATH
10211  else
10212    # With GCC up to 2.95.x, collect2 would create an import file
10213    # for dependence libraries.  The import file would start with
10214    # the line `#! .'.  This would cause the generated library to
10215    # depend on `.', always an invalid library.  This was fixed in
10216    # development snapshots of GCC prior to 3.0.
10217    case $host_os in
10218      aix4 | aix4.[01] | aix4.[01].*)
10219      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10220	   echo ' yes '
10221	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10222	:
10223      else
10224	can_build_shared=no
10225      fi
10226      ;;
10227    esac
10228    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10229    # soname into executable. Probably we can add versioning support to
10230    # collect2, so additional links can be useful in future.
10231    if test "$aix_use_runtimelinking" = yes; then
10232      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10233      # instead of lib<name>.a to let people know that these are not
10234      # typical AIX shared libraries.
10235      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236    else
10237      # We preserve .a as extension for shared libraries through AIX4.2
10238      # and later when we are not doing run time linking.
10239      library_names_spec='${libname}${release}.a $libname.a'
10240      soname_spec='${libname}${release}${shared_ext}$major'
10241    fi
10242    shlibpath_var=LIBPATH
10243  fi
10244  ;;
10245
10246amigaos*)
10247  case $host_cpu in
10248  powerpc)
10249    # Since July 2007 AmigaOS4 officially supports .so libraries.
10250    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10251    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252    ;;
10253  m68k)
10254    library_names_spec='$libname.ixlibrary $libname.a'
10255    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10256    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10257    ;;
10258  esac
10259  ;;
10260
10261beos*)
10262  library_names_spec='${libname}${shared_ext}'
10263  dynamic_linker="$host_os ld.so"
10264  shlibpath_var=LIBRARY_PATH
10265  ;;
10266
10267bsdi[45]*)
10268  version_type=linux # correct to gnu/linux during the next big refactor
10269  need_version=no
10270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271  soname_spec='${libname}${release}${shared_ext}$major'
10272  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10273  shlibpath_var=LD_LIBRARY_PATH
10274  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10275  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10276  # the default ld.so.conf also contains /usr/contrib/lib and
10277  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10278  # libtool to hard-code these into programs
10279  ;;
10280
10281cygwin* | mingw* | pw32* | cegcc*)
10282  version_type=windows
10283  shrext_cmds=".dll"
10284  need_version=no
10285  need_lib_prefix=no
10286
10287  case $GCC,$cc_basename in
10288  yes,*)
10289    # gcc
10290    library_names_spec='$libname.dll.a'
10291    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10292    postinstall_cmds='base_file=`basename \${file}`~
10293      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10294      dldir=$destdir/`dirname \$dlpath`~
10295      test -d \$dldir || mkdir -p \$dldir~
10296      $install_prog $dir/$dlname \$dldir/$dlname~
10297      chmod a+x \$dldir/$dlname~
10298      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10299        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10300      fi'
10301    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10302      dlpath=$dir/\$dldll~
10303       $RM \$dlpath'
10304    shlibpath_overrides_runpath=yes
10305
10306    case $host_os in
10307    cygwin*)
10308      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10309      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10310
10311      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10312      ;;
10313    mingw* | cegcc*)
10314      # MinGW DLLs use traditional 'lib' prefix
10315      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10316      ;;
10317    pw32*)
10318      # pw32 DLLs use 'pw' prefix rather than 'lib'
10319      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10320      ;;
10321    esac
10322    dynamic_linker='Win32 ld.exe'
10323    ;;
10324
10325  *,cl*)
10326    # Native MSVC
10327    libname_spec='$name'
10328    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10329    library_names_spec='${libname}.dll.lib'
10330
10331    case $build_os in
10332    mingw*)
10333      sys_lib_search_path_spec=
10334      lt_save_ifs=$IFS
10335      IFS=';'
10336      for lt_path in $LIB
10337      do
10338        IFS=$lt_save_ifs
10339        # Let DOS variable expansion print the short 8.3 style file name.
10340        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10341        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10342      done
10343      IFS=$lt_save_ifs
10344      # Convert to MSYS style.
10345      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10346      ;;
10347    cygwin*)
10348      # Convert to unix form, then to dos form, then back to unix form
10349      # but this time dos style (no spaces!) so that the unix form looks
10350      # like /cygdrive/c/PROGRA~1:/cygdr...
10351      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10352      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10353      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10354      ;;
10355    *)
10356      sys_lib_search_path_spec="$LIB"
10357      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10358        # It is most probably a Windows format PATH.
10359        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10360      else
10361        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10362      fi
10363      # FIXME: find the short name or the path components, as spaces are
10364      # common. (e.g. "Program Files" -> "PROGRA~1")
10365      ;;
10366    esac
10367
10368    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10369    postinstall_cmds='base_file=`basename \${file}`~
10370      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10371      dldir=$destdir/`dirname \$dlpath`~
10372      test -d \$dldir || mkdir -p \$dldir~
10373      $install_prog $dir/$dlname \$dldir/$dlname'
10374    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10375      dlpath=$dir/\$dldll~
10376       $RM \$dlpath'
10377    shlibpath_overrides_runpath=yes
10378    dynamic_linker='Win32 link.exe'
10379    ;;
10380
10381  *)
10382    # Assume MSVC wrapper
10383    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10384    dynamic_linker='Win32 ld.exe'
10385    ;;
10386  esac
10387  # FIXME: first we should search . and the directory the executable is in
10388  shlibpath_var=PATH
10389  ;;
10390
10391darwin* | rhapsody*)
10392  dynamic_linker="$host_os dyld"
10393  version_type=darwin
10394  need_lib_prefix=no
10395  need_version=no
10396  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10397  soname_spec='${libname}${release}${major}$shared_ext'
10398  shlibpath_overrides_runpath=yes
10399  shlibpath_var=DYLD_LIBRARY_PATH
10400  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10401
10402  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10403  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10404  ;;
10405
10406dgux*)
10407  version_type=linux # correct to gnu/linux during the next big refactor
10408  need_lib_prefix=no
10409  need_version=no
10410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10411  soname_spec='${libname}${release}${shared_ext}$major'
10412  shlibpath_var=LD_LIBRARY_PATH
10413  ;;
10414
10415freebsd* | dragonfly*)
10416  # DragonFly does not have aout.  When/if they implement a new
10417  # versioning mechanism, adjust this.
10418  if test -x /usr/bin/objformat; then
10419    objformat=`/usr/bin/objformat`
10420  else
10421    case $host_os in
10422    freebsd[23].*) objformat=aout ;;
10423    *) objformat=elf ;;
10424    esac
10425  fi
10426  version_type=freebsd-$objformat
10427  case $version_type in
10428    freebsd-elf*)
10429      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10430      need_version=no
10431      need_lib_prefix=no
10432      ;;
10433    freebsd-*)
10434      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10435      need_version=yes
10436      ;;
10437  esac
10438  shlibpath_var=LD_LIBRARY_PATH
10439  case $host_os in
10440  freebsd2.*)
10441    shlibpath_overrides_runpath=yes
10442    ;;
10443  freebsd3.[01]* | freebsdelf3.[01]*)
10444    shlibpath_overrides_runpath=yes
10445    hardcode_into_libs=yes
10446    ;;
10447  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10448  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10449    shlibpath_overrides_runpath=no
10450    hardcode_into_libs=yes
10451    ;;
10452  *) # from 4.6 on, and DragonFly
10453    shlibpath_overrides_runpath=yes
10454    hardcode_into_libs=yes
10455    ;;
10456  esac
10457  ;;
10458
10459haiku*)
10460  version_type=linux # correct to gnu/linux during the next big refactor
10461  need_lib_prefix=no
10462  need_version=no
10463  dynamic_linker="$host_os runtime_loader"
10464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10465  soname_spec='${libname}${release}${shared_ext}$major'
10466  shlibpath_var=LIBRARY_PATH
10467  shlibpath_overrides_runpath=yes
10468  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10469  hardcode_into_libs=yes
10470  ;;
10471
10472hpux9* | hpux10* | hpux11*)
10473  # Give a soname corresponding to the major version so that dld.sl refuses to
10474  # link against other versions.
10475  version_type=sunos
10476  need_lib_prefix=no
10477  need_version=no
10478  case $host_cpu in
10479  ia64*)
10480    shrext_cmds='.so'
10481    hardcode_into_libs=yes
10482    dynamic_linker="$host_os dld.so"
10483    shlibpath_var=LD_LIBRARY_PATH
10484    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10485    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486    soname_spec='${libname}${release}${shared_ext}$major'
10487    if test "X$HPUX_IA64_MODE" = X32; then
10488      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10489    else
10490      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10491    fi
10492    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10493    ;;
10494  hppa*64*)
10495    shrext_cmds='.sl'
10496    hardcode_into_libs=yes
10497    dynamic_linker="$host_os dld.sl"
10498    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10499    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10500    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501    soname_spec='${libname}${release}${shared_ext}$major'
10502    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10503    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10504    ;;
10505  *)
10506    shrext_cmds='.sl'
10507    dynamic_linker="$host_os dld.sl"
10508    shlibpath_var=SHLIB_PATH
10509    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10510    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511    soname_spec='${libname}${release}${shared_ext}$major'
10512    ;;
10513  esac
10514  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10515  postinstall_cmds='chmod 555 $lib'
10516  # or fails outright, so override atomically:
10517  install_override_mode=555
10518  ;;
10519
10520interix[3-9]*)
10521  version_type=linux # correct to gnu/linux during the next big refactor
10522  need_lib_prefix=no
10523  need_version=no
10524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10525  soname_spec='${libname}${release}${shared_ext}$major'
10526  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10527  shlibpath_var=LD_LIBRARY_PATH
10528  shlibpath_overrides_runpath=no
10529  hardcode_into_libs=yes
10530  ;;
10531
10532irix5* | irix6* | nonstopux*)
10533  case $host_os in
10534    nonstopux*) version_type=nonstopux ;;
10535    *)
10536	if test "$lt_cv_prog_gnu_ld" = yes; then
10537		version_type=linux # correct to gnu/linux during the next big refactor
10538	else
10539		version_type=irix
10540	fi ;;
10541  esac
10542  need_lib_prefix=no
10543  need_version=no
10544  soname_spec='${libname}${release}${shared_ext}$major'
10545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10546  case $host_os in
10547  irix5* | nonstopux*)
10548    libsuff= shlibsuff=
10549    ;;
10550  *)
10551    case $LD in # libtool.m4 will add one of these switches to LD
10552    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10553      libsuff= shlibsuff= libmagic=32-bit;;
10554    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10555      libsuff=32 shlibsuff=N32 libmagic=N32;;
10556    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10557      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10558    *) libsuff= shlibsuff= libmagic=never-match;;
10559    esac
10560    ;;
10561  esac
10562  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10563  shlibpath_overrides_runpath=no
10564  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10565  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10566  hardcode_into_libs=yes
10567  ;;
10568
10569# No shared lib support for Linux oldld, aout, or coff.
10570linux*oldld* | linux*aout* | linux*coff*)
10571  dynamic_linker=no
10572  ;;
10573
10574# This must be glibc/ELF.
10575linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10576  version_type=linux # correct to gnu/linux during the next big refactor
10577  need_lib_prefix=no
10578  need_version=no
10579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580  soname_spec='${libname}${release}${shared_ext}$major'
10581  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10582  shlibpath_var=LD_LIBRARY_PATH
10583  shlibpath_overrides_runpath=no
10584
10585  # Some binutils ld are patched to set DT_RUNPATH
10586  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10587  $as_echo_n "(cached) " >&6
10588else
10589  lt_cv_shlibpath_overrides_runpath=no
10590    save_LDFLAGS=$LDFLAGS
10591    save_libdir=$libdir
10592    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10593	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10594    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595/* end confdefs.h.  */
10596
10597int
10598main ()
10599{
10600
10601  ;
10602  return 0;
10603}
10604_ACEOF
10605if ac_fn_c_try_link "$LINENO"; then :
10606  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10607  lt_cv_shlibpath_overrides_runpath=yes
10608fi
10609fi
10610rm -f core conftest.err conftest.$ac_objext \
10611    conftest$ac_exeext conftest.$ac_ext
10612    LDFLAGS=$save_LDFLAGS
10613    libdir=$save_libdir
10614
10615fi
10616
10617  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10618
10619  # This implies no fast_install, which is unacceptable.
10620  # Some rework will be needed to allow for fast_install
10621  # before this can be enabled.
10622  hardcode_into_libs=yes
10623
10624  # Append ld.so.conf contents to the search path
10625  if test -f /etc/ld.so.conf; then
10626    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' ' '`
10627    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10628  fi
10629
10630  # We used to test for /lib/ld.so.1 and disable shared libraries on
10631  # powerpc, because MkLinux only supported shared libraries with the
10632  # GNU dynamic linker.  Since this was broken with cross compilers,
10633  # most powerpc-linux boxes support dynamic linking these days and
10634  # people can always --disable-shared, the test was removed, and we
10635  # assume the GNU/Linux dynamic linker is in use.
10636  dynamic_linker='GNU/Linux ld.so'
10637  ;;
10638
10639netbsdelf*-gnu)
10640  version_type=linux
10641  need_lib_prefix=no
10642  need_version=no
10643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10644  soname_spec='${libname}${release}${shared_ext}$major'
10645  shlibpath_var=LD_LIBRARY_PATH
10646  shlibpath_overrides_runpath=no
10647  hardcode_into_libs=yes
10648  dynamic_linker='NetBSD ld.elf_so'
10649  ;;
10650
10651netbsd*)
10652  version_type=sunos
10653  need_lib_prefix=no
10654  need_version=no
10655  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10656    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10657    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10658    dynamic_linker='NetBSD (a.out) ld.so'
10659  else
10660    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10661    soname_spec='${libname}${release}${shared_ext}$major'
10662    dynamic_linker='NetBSD ld.elf_so'
10663  fi
10664  shlibpath_var=LD_LIBRARY_PATH
10665  shlibpath_overrides_runpath=yes
10666  hardcode_into_libs=yes
10667  ;;
10668
10669newsos6)
10670  version_type=linux # correct to gnu/linux during the next big refactor
10671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672  shlibpath_var=LD_LIBRARY_PATH
10673  shlibpath_overrides_runpath=yes
10674  ;;
10675
10676*nto* | *qnx*)
10677  version_type=qnx
10678  need_lib_prefix=no
10679  need_version=no
10680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681  soname_spec='${libname}${release}${shared_ext}$major'
10682  shlibpath_var=LD_LIBRARY_PATH
10683  shlibpath_overrides_runpath=no
10684  hardcode_into_libs=yes
10685  dynamic_linker='ldqnx.so'
10686  ;;
10687
10688openbsd*)
10689  version_type=sunos
10690  sys_lib_dlsearch_path_spec="/usr/lib"
10691  need_lib_prefix=no
10692  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10693  case $host_os in
10694    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10695    *)				need_version=no  ;;
10696  esac
10697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10698  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10699  shlibpath_var=LD_LIBRARY_PATH
10700  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10701    case $host_os in
10702      openbsd2.[89] | openbsd2.[89].*)
10703	shlibpath_overrides_runpath=no
10704	;;
10705      *)
10706	shlibpath_overrides_runpath=yes
10707	;;
10708      esac
10709  else
10710    shlibpath_overrides_runpath=yes
10711  fi
10712  ;;
10713
10714os2*)
10715  libname_spec='$name'
10716  shrext_cmds=".dll"
10717  need_lib_prefix=no
10718  library_names_spec='$libname${shared_ext} $libname.a'
10719  dynamic_linker='OS/2 ld.exe'
10720  shlibpath_var=LIBPATH
10721  ;;
10722
10723osf3* | osf4* | osf5*)
10724  version_type=osf
10725  need_lib_prefix=no
10726  need_version=no
10727  soname_spec='${libname}${release}${shared_ext}$major'
10728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729  shlibpath_var=LD_LIBRARY_PATH
10730  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10731  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10732  ;;
10733
10734rdos*)
10735  dynamic_linker=no
10736  ;;
10737
10738solaris*)
10739  version_type=linux # correct to gnu/linux during the next big refactor
10740  need_lib_prefix=no
10741  need_version=no
10742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743  soname_spec='${libname}${release}${shared_ext}$major'
10744  shlibpath_var=LD_LIBRARY_PATH
10745  shlibpath_overrides_runpath=yes
10746  hardcode_into_libs=yes
10747  # ldd complains unless libraries are executable
10748  postinstall_cmds='chmod +x $lib'
10749  ;;
10750
10751sunos4*)
10752  version_type=sunos
10753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10754  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10755  shlibpath_var=LD_LIBRARY_PATH
10756  shlibpath_overrides_runpath=yes
10757  if test "$with_gnu_ld" = yes; then
10758    need_lib_prefix=no
10759  fi
10760  need_version=yes
10761  ;;
10762
10763sysv4 | sysv4.3*)
10764  version_type=linux # correct to gnu/linux during the next big refactor
10765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766  soname_spec='${libname}${release}${shared_ext}$major'
10767  shlibpath_var=LD_LIBRARY_PATH
10768  case $host_vendor in
10769    sni)
10770      shlibpath_overrides_runpath=no
10771      need_lib_prefix=no
10772      runpath_var=LD_RUN_PATH
10773      ;;
10774    siemens)
10775      need_lib_prefix=no
10776      ;;
10777    motorola)
10778      need_lib_prefix=no
10779      need_version=no
10780      shlibpath_overrides_runpath=no
10781      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10782      ;;
10783  esac
10784  ;;
10785
10786sysv4*MP*)
10787  if test -d /usr/nec ;then
10788    version_type=linux # correct to gnu/linux during the next big refactor
10789    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10790    soname_spec='$libname${shared_ext}.$major'
10791    shlibpath_var=LD_LIBRARY_PATH
10792  fi
10793  ;;
10794
10795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10796  version_type=freebsd-elf
10797  need_lib_prefix=no
10798  need_version=no
10799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10800  soname_spec='${libname}${release}${shared_ext}$major'
10801  shlibpath_var=LD_LIBRARY_PATH
10802  shlibpath_overrides_runpath=yes
10803  hardcode_into_libs=yes
10804  if test "$with_gnu_ld" = yes; then
10805    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10806  else
10807    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10808    case $host_os in
10809      sco3.2v5*)
10810        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10811	;;
10812    esac
10813  fi
10814  sys_lib_dlsearch_path_spec='/usr/lib'
10815  ;;
10816
10817tpf*)
10818  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10819  version_type=linux # correct to gnu/linux during the next big refactor
10820  need_lib_prefix=no
10821  need_version=no
10822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823  shlibpath_var=LD_LIBRARY_PATH
10824  shlibpath_overrides_runpath=no
10825  hardcode_into_libs=yes
10826  ;;
10827
10828uts4*)
10829  version_type=linux # correct to gnu/linux during the next big refactor
10830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831  soname_spec='${libname}${release}${shared_ext}$major'
10832  shlibpath_var=LD_LIBRARY_PATH
10833  ;;
10834
10835*)
10836  dynamic_linker=no
10837  ;;
10838esac
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10840$as_echo "$dynamic_linker" >&6; }
10841test "$dynamic_linker" = no && can_build_shared=no
10842
10843variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10844if test "$GCC" = yes; then
10845  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10846fi
10847
10848if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10849  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10850fi
10851if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10852  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10853fi
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10947$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10948hardcode_action=
10949if test -n "$hardcode_libdir_flag_spec" ||
10950   test -n "$runpath_var" ||
10951   test "X$hardcode_automatic" = "Xyes" ; then
10952
10953  # We can hardcode non-existent directories.
10954  if test "$hardcode_direct" != no &&
10955     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10956     # have to relink, otherwise we might link with an installed library
10957     # when we should be linking with a yet-to-be-installed one
10958     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10959     test "$hardcode_minus_L" != no; then
10960    # Linking always hardcodes the temporary library directory.
10961    hardcode_action=relink
10962  else
10963    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10964    hardcode_action=immediate
10965  fi
10966else
10967  # We cannot hardcode anything, or else we can only hardcode existing
10968  # directories.
10969  hardcode_action=unsupported
10970fi
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10972$as_echo "$hardcode_action" >&6; }
10973
10974if test "$hardcode_action" = relink ||
10975   test "$inherit_rpath" = yes; then
10976  # Fast installation is not supported
10977  enable_fast_install=no
10978elif test "$shlibpath_overrides_runpath" = yes ||
10979     test "$enable_shared" = no; then
10980  # Fast installation is not necessary
10981  enable_fast_install=needless
10982fi
10983
10984
10985
10986
10987
10988
10989  if test "x$enable_dlopen" != xyes; then
10990  enable_dlopen=unknown
10991  enable_dlopen_self=unknown
10992  enable_dlopen_self_static=unknown
10993else
10994  lt_cv_dlopen=no
10995  lt_cv_dlopen_libs=
10996
10997  case $host_os in
10998  beos*)
10999    lt_cv_dlopen="load_add_on"
11000    lt_cv_dlopen_libs=
11001    lt_cv_dlopen_self=yes
11002    ;;
11003
11004  mingw* | pw32* | cegcc*)
11005    lt_cv_dlopen="LoadLibrary"
11006    lt_cv_dlopen_libs=
11007    ;;
11008
11009  cygwin*)
11010    lt_cv_dlopen="dlopen"
11011    lt_cv_dlopen_libs=
11012    ;;
11013
11014  darwin*)
11015  # if libdl is installed we need to link against it
11016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11017$as_echo_n "checking for dlopen in -ldl... " >&6; }
11018if ${ac_cv_lib_dl_dlopen+:} false; then :
11019  $as_echo_n "(cached) " >&6
11020else
11021  ac_check_lib_save_LIBS=$LIBS
11022LIBS="-ldl  $LIBS"
11023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024/* end confdefs.h.  */
11025
11026/* Override any GCC internal prototype to avoid an error.
11027   Use char because int might match the return type of a GCC
11028   builtin and then its argument prototype would still apply.  */
11029#ifdef __cplusplus
11030extern "C"
11031#endif
11032char dlopen ();
11033int
11034main ()
11035{
11036return dlopen ();
11037  ;
11038  return 0;
11039}
11040_ACEOF
11041if ac_fn_c_try_link "$LINENO"; then :
11042  ac_cv_lib_dl_dlopen=yes
11043else
11044  ac_cv_lib_dl_dlopen=no
11045fi
11046rm -f core conftest.err conftest.$ac_objext \
11047    conftest$ac_exeext conftest.$ac_ext
11048LIBS=$ac_check_lib_save_LIBS
11049fi
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11051$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11052if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11053  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11054else
11055
11056    lt_cv_dlopen="dyld"
11057    lt_cv_dlopen_libs=
11058    lt_cv_dlopen_self=yes
11059
11060fi
11061
11062    ;;
11063
11064  *)
11065    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11066if test "x$ac_cv_func_shl_load" = xyes; then :
11067  lt_cv_dlopen="shl_load"
11068else
11069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11070$as_echo_n "checking for shl_load in -ldld... " >&6; }
11071if ${ac_cv_lib_dld_shl_load+:} false; then :
11072  $as_echo_n "(cached) " >&6
11073else
11074  ac_check_lib_save_LIBS=$LIBS
11075LIBS="-ldld  $LIBS"
11076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077/* end confdefs.h.  */
11078
11079/* Override any GCC internal prototype to avoid an error.
11080   Use char because int might match the return type of a GCC
11081   builtin and then its argument prototype would still apply.  */
11082#ifdef __cplusplus
11083extern "C"
11084#endif
11085char shl_load ();
11086int
11087main ()
11088{
11089return shl_load ();
11090  ;
11091  return 0;
11092}
11093_ACEOF
11094if ac_fn_c_try_link "$LINENO"; then :
11095  ac_cv_lib_dld_shl_load=yes
11096else
11097  ac_cv_lib_dld_shl_load=no
11098fi
11099rm -f core conftest.err conftest.$ac_objext \
11100    conftest$ac_exeext conftest.$ac_ext
11101LIBS=$ac_check_lib_save_LIBS
11102fi
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11104$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11105if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11106  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11107else
11108  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11109if test "x$ac_cv_func_dlopen" = xyes; then :
11110  lt_cv_dlopen="dlopen"
11111else
11112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11113$as_echo_n "checking for dlopen in -ldl... " >&6; }
11114if ${ac_cv_lib_dl_dlopen+:} false; then :
11115  $as_echo_n "(cached) " >&6
11116else
11117  ac_check_lib_save_LIBS=$LIBS
11118LIBS="-ldl  $LIBS"
11119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120/* end confdefs.h.  */
11121
11122/* Override any GCC internal prototype to avoid an error.
11123   Use char because int might match the return type of a GCC
11124   builtin and then its argument prototype would still apply.  */
11125#ifdef __cplusplus
11126extern "C"
11127#endif
11128char dlopen ();
11129int
11130main ()
11131{
11132return dlopen ();
11133  ;
11134  return 0;
11135}
11136_ACEOF
11137if ac_fn_c_try_link "$LINENO"; then :
11138  ac_cv_lib_dl_dlopen=yes
11139else
11140  ac_cv_lib_dl_dlopen=no
11141fi
11142rm -f core conftest.err conftest.$ac_objext \
11143    conftest$ac_exeext conftest.$ac_ext
11144LIBS=$ac_check_lib_save_LIBS
11145fi
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11147$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11148if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11149  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11150else
11151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11152$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11153if ${ac_cv_lib_svld_dlopen+:} false; then :
11154  $as_echo_n "(cached) " >&6
11155else
11156  ac_check_lib_save_LIBS=$LIBS
11157LIBS="-lsvld  $LIBS"
11158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159/* end confdefs.h.  */
11160
11161/* Override any GCC internal prototype to avoid an error.
11162   Use char because int might match the return type of a GCC
11163   builtin and then its argument prototype would still apply.  */
11164#ifdef __cplusplus
11165extern "C"
11166#endif
11167char dlopen ();
11168int
11169main ()
11170{
11171return dlopen ();
11172  ;
11173  return 0;
11174}
11175_ACEOF
11176if ac_fn_c_try_link "$LINENO"; then :
11177  ac_cv_lib_svld_dlopen=yes
11178else
11179  ac_cv_lib_svld_dlopen=no
11180fi
11181rm -f core conftest.err conftest.$ac_objext \
11182    conftest$ac_exeext conftest.$ac_ext
11183LIBS=$ac_check_lib_save_LIBS
11184fi
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11186$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11187if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11188  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11189else
11190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11191$as_echo_n "checking for dld_link in -ldld... " >&6; }
11192if ${ac_cv_lib_dld_dld_link+:} false; then :
11193  $as_echo_n "(cached) " >&6
11194else
11195  ac_check_lib_save_LIBS=$LIBS
11196LIBS="-ldld  $LIBS"
11197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h.  */
11199
11200/* Override any GCC internal prototype to avoid an error.
11201   Use char because int might match the return type of a GCC
11202   builtin and then its argument prototype would still apply.  */
11203#ifdef __cplusplus
11204extern "C"
11205#endif
11206char dld_link ();
11207int
11208main ()
11209{
11210return dld_link ();
11211  ;
11212  return 0;
11213}
11214_ACEOF
11215if ac_fn_c_try_link "$LINENO"; then :
11216  ac_cv_lib_dld_dld_link=yes
11217else
11218  ac_cv_lib_dld_dld_link=no
11219fi
11220rm -f core conftest.err conftest.$ac_objext \
11221    conftest$ac_exeext conftest.$ac_ext
11222LIBS=$ac_check_lib_save_LIBS
11223fi
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11225$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11226if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11227  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11228fi
11229
11230
11231fi
11232
11233
11234fi
11235
11236
11237fi
11238
11239
11240fi
11241
11242
11243fi
11244
11245    ;;
11246  esac
11247
11248  if test "x$lt_cv_dlopen" != xno; then
11249    enable_dlopen=yes
11250  else
11251    enable_dlopen=no
11252  fi
11253
11254  case $lt_cv_dlopen in
11255  dlopen)
11256    save_CPPFLAGS="$CPPFLAGS"
11257    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11258
11259    save_LDFLAGS="$LDFLAGS"
11260    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11261
11262    save_LIBS="$LIBS"
11263    LIBS="$lt_cv_dlopen_libs $LIBS"
11264
11265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11266$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11267if ${lt_cv_dlopen_self+:} false; then :
11268  $as_echo_n "(cached) " >&6
11269else
11270  	  if test "$cross_compiling" = yes; then :
11271  lt_cv_dlopen_self=cross
11272else
11273  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11274  lt_status=$lt_dlunknown
11275  cat > conftest.$ac_ext <<_LT_EOF
11276#line $LINENO "configure"
11277#include "confdefs.h"
11278
11279#if HAVE_DLFCN_H
11280#include <dlfcn.h>
11281#endif
11282
11283#include <stdio.h>
11284
11285#ifdef RTLD_GLOBAL
11286#  define LT_DLGLOBAL		RTLD_GLOBAL
11287#else
11288#  ifdef DL_GLOBAL
11289#    define LT_DLGLOBAL		DL_GLOBAL
11290#  else
11291#    define LT_DLGLOBAL		0
11292#  endif
11293#endif
11294
11295/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11296   find out it does not work in some platform. */
11297#ifndef LT_DLLAZY_OR_NOW
11298#  ifdef RTLD_LAZY
11299#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11300#  else
11301#    ifdef DL_LAZY
11302#      define LT_DLLAZY_OR_NOW		DL_LAZY
11303#    else
11304#      ifdef RTLD_NOW
11305#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11306#      else
11307#        ifdef DL_NOW
11308#          define LT_DLLAZY_OR_NOW	DL_NOW
11309#        else
11310#          define LT_DLLAZY_OR_NOW	0
11311#        endif
11312#      endif
11313#    endif
11314#  endif
11315#endif
11316
11317/* When -fvisbility=hidden is used, assume the code has been annotated
11318   correspondingly for the symbols needed.  */
11319#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11320int fnord () __attribute__((visibility("default")));
11321#endif
11322
11323int fnord () { return 42; }
11324int main ()
11325{
11326  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11327  int status = $lt_dlunknown;
11328
11329  if (self)
11330    {
11331      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11332      else
11333        {
11334	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11335          else puts (dlerror ());
11336	}
11337      /* dlclose (self); */
11338    }
11339  else
11340    puts (dlerror ());
11341
11342  return status;
11343}
11344_LT_EOF
11345  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11346  (eval $ac_link) 2>&5
11347  ac_status=$?
11348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11349  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11350    (./conftest; exit; ) >&5 2>/dev/null
11351    lt_status=$?
11352    case x$lt_status in
11353      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11354      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11355      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11356    esac
11357  else :
11358    # compilation failed
11359    lt_cv_dlopen_self=no
11360  fi
11361fi
11362rm -fr conftest*
11363
11364
11365fi
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11367$as_echo "$lt_cv_dlopen_self" >&6; }
11368
11369    if test "x$lt_cv_dlopen_self" = xyes; then
11370      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11371      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11372$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11373if ${lt_cv_dlopen_self_static+:} false; then :
11374  $as_echo_n "(cached) " >&6
11375else
11376  	  if test "$cross_compiling" = yes; then :
11377  lt_cv_dlopen_self_static=cross
11378else
11379  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11380  lt_status=$lt_dlunknown
11381  cat > conftest.$ac_ext <<_LT_EOF
11382#line $LINENO "configure"
11383#include "confdefs.h"
11384
11385#if HAVE_DLFCN_H
11386#include <dlfcn.h>
11387#endif
11388
11389#include <stdio.h>
11390
11391#ifdef RTLD_GLOBAL
11392#  define LT_DLGLOBAL		RTLD_GLOBAL
11393#else
11394#  ifdef DL_GLOBAL
11395#    define LT_DLGLOBAL		DL_GLOBAL
11396#  else
11397#    define LT_DLGLOBAL		0
11398#  endif
11399#endif
11400
11401/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11402   find out it does not work in some platform. */
11403#ifndef LT_DLLAZY_OR_NOW
11404#  ifdef RTLD_LAZY
11405#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11406#  else
11407#    ifdef DL_LAZY
11408#      define LT_DLLAZY_OR_NOW		DL_LAZY
11409#    else
11410#      ifdef RTLD_NOW
11411#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11412#      else
11413#        ifdef DL_NOW
11414#          define LT_DLLAZY_OR_NOW	DL_NOW
11415#        else
11416#          define LT_DLLAZY_OR_NOW	0
11417#        endif
11418#      endif
11419#    endif
11420#  endif
11421#endif
11422
11423/* When -fvisbility=hidden is used, assume the code has been annotated
11424   correspondingly for the symbols needed.  */
11425#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11426int fnord () __attribute__((visibility("default")));
11427#endif
11428
11429int fnord () { return 42; }
11430int main ()
11431{
11432  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11433  int status = $lt_dlunknown;
11434
11435  if (self)
11436    {
11437      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11438      else
11439        {
11440	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11441          else puts (dlerror ());
11442	}
11443      /* dlclose (self); */
11444    }
11445  else
11446    puts (dlerror ());
11447
11448  return status;
11449}
11450_LT_EOF
11451  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11452  (eval $ac_link) 2>&5
11453  ac_status=$?
11454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11455  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11456    (./conftest; exit; ) >&5 2>/dev/null
11457    lt_status=$?
11458    case x$lt_status in
11459      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11460      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11461      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11462    esac
11463  else :
11464    # compilation failed
11465    lt_cv_dlopen_self_static=no
11466  fi
11467fi
11468rm -fr conftest*
11469
11470
11471fi
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11473$as_echo "$lt_cv_dlopen_self_static" >&6; }
11474    fi
11475
11476    CPPFLAGS="$save_CPPFLAGS"
11477    LDFLAGS="$save_LDFLAGS"
11478    LIBS="$save_LIBS"
11479    ;;
11480  esac
11481
11482  case $lt_cv_dlopen_self in
11483  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11484  *) enable_dlopen_self=unknown ;;
11485  esac
11486
11487  case $lt_cv_dlopen_self_static in
11488  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11489  *) enable_dlopen_self_static=unknown ;;
11490  esac
11491fi
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509striplib=
11510old_striplib=
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11512$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11513if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11514  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11515  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11517$as_echo "yes" >&6; }
11518else
11519# FIXME - insert some real tests, host_os isn't really good enough
11520  case $host_os in
11521  darwin*)
11522    if test -n "$STRIP" ; then
11523      striplib="$STRIP -x"
11524      old_striplib="$STRIP -S"
11525      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11526$as_echo "yes" >&6; }
11527    else
11528      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529$as_echo "no" >&6; }
11530    fi
11531    ;;
11532  *)
11533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
11535    ;;
11536  esac
11537fi
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550  # Report which library types will actually be built
11551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11552$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11554$as_echo "$can_build_shared" >&6; }
11555
11556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11557$as_echo_n "checking whether to build shared libraries... " >&6; }
11558  test "$can_build_shared" = "no" && enable_shared=no
11559
11560  # On AIX, shared libraries and static libraries use the same namespace, and
11561  # are all built from PIC.
11562  case $host_os in
11563  aix3*)
11564    test "$enable_shared" = yes && enable_static=no
11565    if test -n "$RANLIB"; then
11566      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11567      postinstall_cmds='$RANLIB $lib'
11568    fi
11569    ;;
11570
11571  aix[4-9]*)
11572    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11573      test "$enable_shared" = yes && enable_static=no
11574    fi
11575    ;;
11576  esac
11577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11578$as_echo "$enable_shared" >&6; }
11579
11580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11581$as_echo_n "checking whether to build static libraries... " >&6; }
11582  # Make sure either enable_shared or enable_static is yes.
11583  test "$enable_shared" = yes || enable_static=yes
11584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11585$as_echo "$enable_static" >&6; }
11586
11587
11588
11589
11590fi
11591ac_ext=c
11592ac_cpp='$CPP $CPPFLAGS'
11593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11595ac_compiler_gnu=$ac_cv_c_compiler_gnu
11596
11597CC="$lt_save_CC"
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613        ac_config_commands="$ac_config_commands libtool"
11614
11615
11616
11617
11618# Only expand once:
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11629	if test -n "$ac_tool_prefix"; then
11630  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11631set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633$as_echo_n "checking for $ac_word... " >&6; }
11634if ${ac_cv_path_PKG_CONFIG+:} false; then :
11635  $as_echo_n "(cached) " >&6
11636else
11637  case $PKG_CONFIG in
11638  [\\/]* | ?:[\\/]*)
11639  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11640  ;;
11641  *)
11642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $PATH
11644do
11645  IFS=$as_save_IFS
11646  test -z "$as_dir" && as_dir=.
11647    for ac_exec_ext in '' $ac_executable_extensions; do
11648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651    break 2
11652  fi
11653done
11654  done
11655IFS=$as_save_IFS
11656
11657  ;;
11658esac
11659fi
11660PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11661if test -n "$PKG_CONFIG"; then
11662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11663$as_echo "$PKG_CONFIG" >&6; }
11664else
11665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
11667fi
11668
11669
11670fi
11671if test -z "$ac_cv_path_PKG_CONFIG"; then
11672  ac_pt_PKG_CONFIG=$PKG_CONFIG
11673  # Extract the first word of "pkg-config", so it can be a program name with args.
11674set dummy pkg-config; ac_word=$2
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676$as_echo_n "checking for $ac_word... " >&6; }
11677if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11678  $as_echo_n "(cached) " >&6
11679else
11680  case $ac_pt_PKG_CONFIG in
11681  [\\/]* | ?:[\\/]*)
11682  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11683  ;;
11684  *)
11685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688  IFS=$as_save_IFS
11689  test -z "$as_dir" && as_dir=.
11690    for ac_exec_ext in '' $ac_executable_extensions; do
11691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694    break 2
11695  fi
11696done
11697  done
11698IFS=$as_save_IFS
11699
11700  ;;
11701esac
11702fi
11703ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11704if test -n "$ac_pt_PKG_CONFIG"; then
11705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11706$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11707else
11708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709$as_echo "no" >&6; }
11710fi
11711
11712  if test "x$ac_pt_PKG_CONFIG" = x; then
11713    PKG_CONFIG=""
11714  else
11715    case $cross_compiling:$ac_tool_warned in
11716yes:)
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11719ac_tool_warned=yes ;;
11720esac
11721    PKG_CONFIG=$ac_pt_PKG_CONFIG
11722  fi
11723else
11724  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11725fi
11726
11727fi
11728if test -n "$PKG_CONFIG"; then
11729	_pkg_min_version=0.9.0
11730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11731$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11732	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11733		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734$as_echo "yes" >&6; }
11735	else
11736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737$as_echo "no" >&6; }
11738		PKG_CONFIG=""
11739	fi
11740fi
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11742$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11743if ${ac_cv_prog_cc_c99+:} false; then :
11744  $as_echo_n "(cached) " >&6
11745else
11746  ac_cv_prog_cc_c99=no
11747ac_save_CC=$CC
11748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749/* end confdefs.h.  */
11750#include <stdarg.h>
11751#include <stdbool.h>
11752#include <stdlib.h>
11753#include <wchar.h>
11754#include <stdio.h>
11755
11756// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11757#define debug(...) fprintf (stderr, __VA_ARGS__)
11758#define showlist(...) puts (#__VA_ARGS__)
11759#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11760static void
11761test_varargs_macros (void)
11762{
11763  int x = 1234;
11764  int y = 5678;
11765  debug ("Flag");
11766  debug ("X = %d\n", x);
11767  showlist (The first, second, and third items.);
11768  report (x>y, "x is %d but y is %d", x, y);
11769}
11770
11771// Check long long types.
11772#define BIG64 18446744073709551615ull
11773#define BIG32 4294967295ul
11774#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11775#if !BIG_OK
11776  your preprocessor is broken;
11777#endif
11778#if BIG_OK
11779#else
11780  your preprocessor is broken;
11781#endif
11782static long long int bignum = -9223372036854775807LL;
11783static unsigned long long int ubignum = BIG64;
11784
11785struct incomplete_array
11786{
11787  int datasize;
11788  double data[];
11789};
11790
11791struct named_init {
11792  int number;
11793  const wchar_t *name;
11794  double average;
11795};
11796
11797typedef const char *ccp;
11798
11799static inline int
11800test_restrict (ccp restrict text)
11801{
11802  // See if C++-style comments work.
11803  // Iterate through items via the restricted pointer.
11804  // Also check for declarations in for loops.
11805  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11806    continue;
11807  return 0;
11808}
11809
11810// Check varargs and va_copy.
11811static void
11812test_varargs (const char *format, ...)
11813{
11814  va_list args;
11815  va_start (args, format);
11816  va_list args_copy;
11817  va_copy (args_copy, args);
11818
11819  const char *str;
11820  int number;
11821  float fnumber;
11822
11823  while (*format)
11824    {
11825      switch (*format++)
11826	{
11827	case 's': // string
11828	  str = va_arg (args_copy, const char *);
11829	  break;
11830	case 'd': // int
11831	  number = va_arg (args_copy, int);
11832	  break;
11833	case 'f': // float
11834	  fnumber = va_arg (args_copy, double);
11835	  break;
11836	default:
11837	  break;
11838	}
11839    }
11840  va_end (args_copy);
11841  va_end (args);
11842}
11843
11844int
11845main ()
11846{
11847
11848  // Check bool.
11849  _Bool success = false;
11850
11851  // Check restrict.
11852  if (test_restrict ("String literal") == 0)
11853    success = true;
11854  char *restrict newvar = "Another string";
11855
11856  // Check varargs.
11857  test_varargs ("s, d' f .", "string", 65, 34.234);
11858  test_varargs_macros ();
11859
11860  // Check flexible array members.
11861  struct incomplete_array *ia =
11862    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11863  ia->datasize = 10;
11864  for (int i = 0; i < ia->datasize; ++i)
11865    ia->data[i] = i * 1.234;
11866
11867  // Check named initializers.
11868  struct named_init ni = {
11869    .number = 34,
11870    .name = L"Test wide string",
11871    .average = 543.34343,
11872  };
11873
11874  ni.number = 58;
11875
11876  int dynamic_array[ni.number];
11877  dynamic_array[ni.number - 1] = 543;
11878
11879  // work around unused variable warnings
11880  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11881	  || dynamic_array[ni.number - 1] != 543);
11882
11883  ;
11884  return 0;
11885}
11886_ACEOF
11887for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11888do
11889  CC="$ac_save_CC $ac_arg"
11890  if ac_fn_c_try_compile "$LINENO"; then :
11891  ac_cv_prog_cc_c99=$ac_arg
11892fi
11893rm -f core conftest.err conftest.$ac_objext
11894  test "x$ac_cv_prog_cc_c99" != "xno" && break
11895done
11896rm -f conftest.$ac_ext
11897CC=$ac_save_CC
11898
11899fi
11900# AC_CACHE_VAL
11901case "x$ac_cv_prog_cc_c99" in
11902  x)
11903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11904$as_echo "none needed" >&6; } ;;
11905  xno)
11906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11907$as_echo "unsupported" >&6; } ;;
11908  *)
11909    CC="$CC $ac_cv_prog_cc_c99"
11910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11911$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11912esac
11913if test "x$ac_cv_prog_cc_c99" != xno; then :
11914
11915fi
11916
11917
11918
11919
11920
11921
11922ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11923if test "x$ac_cv_have_decl___clang__" = xyes; then :
11924  CLANGCC="yes"
11925else
11926  CLANGCC="no"
11927fi
11928
11929ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11930if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11931  INTELCC="yes"
11932else
11933  INTELCC="no"
11934fi
11935
11936ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11937if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11938  SUNCC="yes"
11939else
11940  SUNCC="no"
11941fi
11942
11943
11944
11945
11946
11947
11948
11949# Define header files and pkgconfig paths
11950xcbincludedir='${includedir}/xcb'
11951
11952pkgconfigdir='${prefix}/libdata/pkgconfig'
11953
11954
11955# Check xcb version
11956
11957pkg_failed=no
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5
11959$as_echo_n "checking for XCB... " >&6; }
11960
11961if test -n "$XCB_CFLAGS"; then
11962    pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
11963 elif test -n "$PKG_CONFIG"; then
11964    if test -n "$PKG_CONFIG" && \
11965    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5
11966  ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5
11967  ac_status=$?
11968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11969  test $ac_status = 0; }; then
11970  pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.4" 2>/dev/null`
11971		      test "x$?" != "x0" && pkg_failed=yes
11972else
11973  pkg_failed=yes
11974fi
11975 else
11976    pkg_failed=untried
11977fi
11978if test -n "$XCB_LIBS"; then
11979    pkg_cv_XCB_LIBS="$XCB_LIBS"
11980 elif test -n "$PKG_CONFIG"; then
11981    if test -n "$PKG_CONFIG" && \
11982    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5
11983  ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5
11984  ac_status=$?
11985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11986  test $ac_status = 0; }; then
11987  pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb >= 1.4" 2>/dev/null`
11988		      test "x$?" != "x0" && pkg_failed=yes
11989else
11990  pkg_failed=yes
11991fi
11992 else
11993    pkg_failed=untried
11994fi
11995
11996
11997
11998if test $pkg_failed = yes; then
11999   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
12001
12002if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12003        _pkg_short_errors_supported=yes
12004else
12005        _pkg_short_errors_supported=no
12006fi
12007        if test $_pkg_short_errors_supported = yes; then
12008	        XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
12009        else
12010	        XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
12011        fi
12012	# Put the nasty error message in config.log where it belongs
12013	echo "$XCB_PKG_ERRORS" >&5
12014
12015	as_fn_error $? "Package requirements (xcb >= 1.4) were not met:
12016
12017$XCB_PKG_ERRORS
12018
12019Consider adjusting the PKG_CONFIG_PATH environment variable if you
12020installed software in a non-standard prefix.
12021
12022Alternatively, you may set the environment variables XCB_CFLAGS
12023and XCB_LIBS to avoid the need to call pkg-config.
12024See the pkg-config man page for more details." "$LINENO" 5
12025elif test $pkg_failed = untried; then
12026     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027$as_echo "no" >&6; }
12028	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12030as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12031is in your PATH or set the PKG_CONFIG environment variable to the full
12032path to pkg-config.
12033
12034Alternatively, you may set the environment variables XCB_CFLAGS
12035and XCB_LIBS to avoid the need to call pkg-config.
12036See the pkg-config man page for more details.
12037
12038To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12039See \`config.log' for more details" "$LINENO" 5; }
12040else
12041	XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
12042	XCB_LIBS=$pkg_cv_XCB_LIBS
12043        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12044$as_echo "yes" >&6; }
12045
12046fi
12047
12048# Check version of xcb-proto that xcb was compiled against
12049xcbproto_required=1.6
12050
12051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxcb was compiled against xcb-proto >= $xcbproto_required" >&5
12052$as_echo_n "checking whether libxcb was compiled against xcb-proto >= $xcbproto_required... " >&6; }
12053xcbproto_version=`$PKG_CONFIG --variable=xcbproto_version xcb`
12054
12055  for ac_prog in gawk mawk nawk awk
12056do
12057  # Extract the first word of "$ac_prog", so it can be a program name with args.
12058set dummy $ac_prog; ac_word=$2
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060$as_echo_n "checking for $ac_word... " >&6; }
12061if ${ac_cv_prog_AWK+:} false; then :
12062  $as_echo_n "(cached) " >&6
12063else
12064  if test -n "$AWK"; then
12065  ac_cv_prog_AWK="$AWK" # Let the user override the test.
12066else
12067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068for as_dir in $PATH
12069do
12070  IFS=$as_save_IFS
12071  test -z "$as_dir" && as_dir=.
12072    for ac_exec_ext in '' $ac_executable_extensions; do
12073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074    ac_cv_prog_AWK="$ac_prog"
12075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076    break 2
12077  fi
12078done
12079  done
12080IFS=$as_save_IFS
12081
12082fi
12083fi
12084AWK=$ac_cv_prog_AWK
12085if test -n "$AWK"; then
12086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12087$as_echo "$AWK" >&6; }
12088else
12089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090$as_echo "no" >&6; }
12091fi
12092
12093
12094  test -n "$AWK" && break
12095done
12096
12097
12098  # Used to indicate true or false condition
12099  ax_compare_version=false
12100
12101  # Convert the two version strings to be compared into a format that
12102  # allows a simple string comparison.  The end result is that a version
12103  # string of the form 1.12.5-r617 will be converted to the form
12104  # 0001001200050617.  In other words, each number is zero padded to four
12105  # digits, and non digits are removed.
12106
12107  ax_compare_version_A=`echo "$xcbproto_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12108                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12109                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12110                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12111                     -e 's/[^0-9]//g'`
12112
12113
12114  ax_compare_version_B=`echo "$xcbproto_required" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12115                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12116                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12117                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12118                     -e 's/[^0-9]//g'`
12119
12120
12121    ax_compare_version=`echo "x$ax_compare_version_A
12122x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
12123
12124
12125
12126    if test "$ax_compare_version" = "true" ; then
12127    xcbproto_ok="yes"
12128    else xcbproto_ok="no"
12129  fi
12130
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xcbproto_ok" >&5
12132$as_echo "$xcbproto_ok" >&6; }
12133
12134if test $xcbproto_ok = no; then
12135   as_fn_error $? "libxcb was compiled against xcb-proto $xcbproto_version; it needs to be compiled against version $xcbproto_required or higher" "$LINENO" 5
12136fi
12137
12138# Call macros from Xorg util-macros
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156# Check whether --enable-selective-werror was given.
12157if test "${enable_selective_werror+set}" = set; then :
12158  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12159else
12160  SELECTIVE_WERROR=yes
12161fi
12162
12163
12164
12165
12166
12167# -v is too short to test reliably with XORG_TESTSET_CFLAG
12168if test "x$SUNCC" = "xyes"; then
12169    BASE_CFLAGS="-v"
12170else
12171    BASE_CFLAGS=""
12172fi
12173
12174# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188xorg_testset_save_CFLAGS="$CFLAGS"
12189
12190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12191	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12192	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12195  $as_echo_n "(cached) " >&6
12196else
12197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198/* end confdefs.h.  */
12199int i;
12200_ACEOF
12201if ac_fn_c_try_compile "$LINENO"; then :
12202  xorg_cv_cc_flag_unknown_warning_option=yes
12203else
12204  xorg_cv_cc_flag_unknown_warning_option=no
12205fi
12206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207fi
12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12210	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12211	CFLAGS="$xorg_testset_save_CFLAGS"
12212fi
12213
12214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12215	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12216		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12217	fi
12218	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12222  $as_echo_n "(cached) " >&6
12223else
12224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h.  */
12226int i;
12227_ACEOF
12228if ac_fn_c_try_compile "$LINENO"; then :
12229  xorg_cv_cc_flag_unused_command_line_argument=yes
12230else
12231  xorg_cv_cc_flag_unused_command_line_argument=no
12232fi
12233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234fi
12235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12237	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12238	CFLAGS="$xorg_testset_save_CFLAGS"
12239fi
12240
12241found="no"
12242
12243	if test $found = "no" ; then
12244		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12246		fi
12247
12248		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12250		fi
12251
12252		CFLAGS="$CFLAGS -Wall"
12253
12254		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12255$as_echo_n "checking if $CC supports -Wall... " >&6; }
12256		cacheid=xorg_cv_cc_flag__Wall
12257		if eval \${$cacheid+:} false; then :
12258  $as_echo_n "(cached) " >&6
12259else
12260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261/* end confdefs.h.  */
12262int i;
12263int
12264main ()
12265{
12266
12267  ;
12268  return 0;
12269}
12270_ACEOF
12271if ac_fn_c_try_link "$LINENO"; then :
12272  eval $cacheid=yes
12273else
12274  eval $cacheid=no
12275fi
12276rm -f core conftest.err conftest.$ac_objext \
12277    conftest$ac_exeext conftest.$ac_ext
12278fi
12279
12280
12281		CFLAGS="$xorg_testset_save_CFLAGS"
12282
12283		eval supported=\$$cacheid
12284		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12285$as_echo "$supported" >&6; }
12286		if test "$supported" = "yes" ; then
12287			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12288			found="yes"
12289		fi
12290	fi
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306xorg_testset_save_CFLAGS="$CFLAGS"
12307
12308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12309	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12313  $as_echo_n "(cached) " >&6
12314else
12315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316/* end confdefs.h.  */
12317int i;
12318_ACEOF
12319if ac_fn_c_try_compile "$LINENO"; then :
12320  xorg_cv_cc_flag_unknown_warning_option=yes
12321else
12322  xorg_cv_cc_flag_unknown_warning_option=no
12323fi
12324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325fi
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12329	CFLAGS="$xorg_testset_save_CFLAGS"
12330fi
12331
12332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12335	fi
12336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12340  $as_echo_n "(cached) " >&6
12341else
12342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h.  */
12344int i;
12345_ACEOF
12346if ac_fn_c_try_compile "$LINENO"; then :
12347  xorg_cv_cc_flag_unused_command_line_argument=yes
12348else
12349  xorg_cv_cc_flag_unused_command_line_argument=no
12350fi
12351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352fi
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12355	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12356	CFLAGS="$xorg_testset_save_CFLAGS"
12357fi
12358
12359found="no"
12360
12361	if test $found = "no" ; then
12362		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12363			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12364		fi
12365
12366		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12367			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12368		fi
12369
12370		CFLAGS="$CFLAGS -Wpointer-arith"
12371
12372		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12373$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12374		cacheid=xorg_cv_cc_flag__Wpointer_arith
12375		if eval \${$cacheid+:} false; then :
12376  $as_echo_n "(cached) " >&6
12377else
12378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379/* end confdefs.h.  */
12380int i;
12381int
12382main ()
12383{
12384
12385  ;
12386  return 0;
12387}
12388_ACEOF
12389if ac_fn_c_try_link "$LINENO"; then :
12390  eval $cacheid=yes
12391else
12392  eval $cacheid=no
12393fi
12394rm -f core conftest.err conftest.$ac_objext \
12395    conftest$ac_exeext conftest.$ac_ext
12396fi
12397
12398
12399		CFLAGS="$xorg_testset_save_CFLAGS"
12400
12401		eval supported=\$$cacheid
12402		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12403$as_echo "$supported" >&6; }
12404		if test "$supported" = "yes" ; then
12405			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12406			found="yes"
12407		fi
12408	fi
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424xorg_testset_save_CFLAGS="$CFLAGS"
12425
12426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12428	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12431  $as_echo_n "(cached) " >&6
12432else
12433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434/* end confdefs.h.  */
12435int i;
12436_ACEOF
12437if ac_fn_c_try_compile "$LINENO"; then :
12438  xorg_cv_cc_flag_unknown_warning_option=yes
12439else
12440  xorg_cv_cc_flag_unknown_warning_option=no
12441fi
12442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443fi
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12446	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12447	CFLAGS="$xorg_testset_save_CFLAGS"
12448fi
12449
12450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12451	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12452		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12453	fi
12454	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12458  $as_echo_n "(cached) " >&6
12459else
12460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461/* end confdefs.h.  */
12462int i;
12463_ACEOF
12464if ac_fn_c_try_compile "$LINENO"; then :
12465  xorg_cv_cc_flag_unused_command_line_argument=yes
12466else
12467  xorg_cv_cc_flag_unused_command_line_argument=no
12468fi
12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470fi
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12474	CFLAGS="$xorg_testset_save_CFLAGS"
12475fi
12476
12477found="no"
12478
12479	if test $found = "no" ; then
12480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12482		fi
12483
12484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12486		fi
12487
12488		CFLAGS="$CFLAGS -Wmissing-declarations"
12489
12490		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12491$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12492		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12493		if eval \${$cacheid+:} false; then :
12494  $as_echo_n "(cached) " >&6
12495else
12496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497/* end confdefs.h.  */
12498int i;
12499int
12500main ()
12501{
12502
12503  ;
12504  return 0;
12505}
12506_ACEOF
12507if ac_fn_c_try_link "$LINENO"; then :
12508  eval $cacheid=yes
12509else
12510  eval $cacheid=no
12511fi
12512rm -f core conftest.err conftest.$ac_objext \
12513    conftest$ac_exeext conftest.$ac_ext
12514fi
12515
12516
12517		CFLAGS="$xorg_testset_save_CFLAGS"
12518
12519		eval supported=\$$cacheid
12520		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12521$as_echo "$supported" >&6; }
12522		if test "$supported" = "yes" ; then
12523			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12524			found="yes"
12525		fi
12526	fi
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542xorg_testset_save_CFLAGS="$CFLAGS"
12543
12544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12545	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12549  $as_echo_n "(cached) " >&6
12550else
12551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552/* end confdefs.h.  */
12553int i;
12554_ACEOF
12555if ac_fn_c_try_compile "$LINENO"; then :
12556  xorg_cv_cc_flag_unknown_warning_option=yes
12557else
12558  xorg_cv_cc_flag_unknown_warning_option=no
12559fi
12560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561fi
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12564	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12565	CFLAGS="$xorg_testset_save_CFLAGS"
12566fi
12567
12568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12569	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12570		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12571	fi
12572	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12573	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12576  $as_echo_n "(cached) " >&6
12577else
12578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579/* end confdefs.h.  */
12580int i;
12581_ACEOF
12582if ac_fn_c_try_compile "$LINENO"; then :
12583  xorg_cv_cc_flag_unused_command_line_argument=yes
12584else
12585  xorg_cv_cc_flag_unused_command_line_argument=no
12586fi
12587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12588fi
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12592	CFLAGS="$xorg_testset_save_CFLAGS"
12593fi
12594
12595found="no"
12596
12597	if test $found = "no" ; then
12598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12600		fi
12601
12602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12604		fi
12605
12606		CFLAGS="$CFLAGS -Wformat=2"
12607
12608		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12609$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12610		cacheid=xorg_cv_cc_flag__Wformat_2
12611		if eval \${$cacheid+:} false; then :
12612  $as_echo_n "(cached) " >&6
12613else
12614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615/* end confdefs.h.  */
12616int i;
12617int
12618main ()
12619{
12620
12621  ;
12622  return 0;
12623}
12624_ACEOF
12625if ac_fn_c_try_link "$LINENO"; then :
12626  eval $cacheid=yes
12627else
12628  eval $cacheid=no
12629fi
12630rm -f core conftest.err conftest.$ac_objext \
12631    conftest$ac_exeext conftest.$ac_ext
12632fi
12633
12634
12635		CFLAGS="$xorg_testset_save_CFLAGS"
12636
12637		eval supported=\$$cacheid
12638		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12639$as_echo "$supported" >&6; }
12640		if test "$supported" = "yes" ; then
12641			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12642			found="yes"
12643		fi
12644	fi
12645
12646	if test $found = "no" ; then
12647		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12649		fi
12650
12651		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12653		fi
12654
12655		CFLAGS="$CFLAGS -Wformat"
12656
12657		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12658$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12659		cacheid=xorg_cv_cc_flag__Wformat
12660		if eval \${$cacheid+:} false; then :
12661  $as_echo_n "(cached) " >&6
12662else
12663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664/* end confdefs.h.  */
12665int i;
12666int
12667main ()
12668{
12669
12670  ;
12671  return 0;
12672}
12673_ACEOF
12674if ac_fn_c_try_link "$LINENO"; then :
12675  eval $cacheid=yes
12676else
12677  eval $cacheid=no
12678fi
12679rm -f core conftest.err conftest.$ac_objext \
12680    conftest$ac_exeext conftest.$ac_ext
12681fi
12682
12683
12684		CFLAGS="$xorg_testset_save_CFLAGS"
12685
12686		eval supported=\$$cacheid
12687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12688$as_echo "$supported" >&6; }
12689		if test "$supported" = "yes" ; then
12690			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12691			found="yes"
12692		fi
12693	fi
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711xorg_testset_save_CFLAGS="$CFLAGS"
12712
12713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12714	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12716$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12717if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12718  $as_echo_n "(cached) " >&6
12719else
12720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721/* end confdefs.h.  */
12722int i;
12723_ACEOF
12724if ac_fn_c_try_compile "$LINENO"; then :
12725  xorg_cv_cc_flag_unknown_warning_option=yes
12726else
12727  xorg_cv_cc_flag_unknown_warning_option=no
12728fi
12729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730fi
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12732$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12734	CFLAGS="$xorg_testset_save_CFLAGS"
12735fi
12736
12737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12740	fi
12741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12743$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12744if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12745  $as_echo_n "(cached) " >&6
12746else
12747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748/* end confdefs.h.  */
12749int i;
12750_ACEOF
12751if ac_fn_c_try_compile "$LINENO"; then :
12752  xorg_cv_cc_flag_unused_command_line_argument=yes
12753else
12754  xorg_cv_cc_flag_unused_command_line_argument=no
12755fi
12756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757fi
12758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12759$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12761	CFLAGS="$xorg_testset_save_CFLAGS"
12762fi
12763
12764found="no"
12765
12766	if test $found = "no" ; then
12767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12769		fi
12770
12771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12773		fi
12774
12775		CFLAGS="$CFLAGS -Wstrict-prototypes"
12776
12777		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12778$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12779		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12780		if eval \${$cacheid+:} false; then :
12781  $as_echo_n "(cached) " >&6
12782else
12783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784/* end confdefs.h.  */
12785int i;
12786int
12787main ()
12788{
12789
12790  ;
12791  return 0;
12792}
12793_ACEOF
12794if ac_fn_c_try_link "$LINENO"; then :
12795  eval $cacheid=yes
12796else
12797  eval $cacheid=no
12798fi
12799rm -f core conftest.err conftest.$ac_objext \
12800    conftest$ac_exeext conftest.$ac_ext
12801fi
12802
12803
12804		CFLAGS="$xorg_testset_save_CFLAGS"
12805
12806		eval supported=\$$cacheid
12807		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12808$as_echo "$supported" >&6; }
12809		if test "$supported" = "yes" ; then
12810			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12811			found="yes"
12812		fi
12813	fi
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829xorg_testset_save_CFLAGS="$CFLAGS"
12830
12831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12836  $as_echo_n "(cached) " >&6
12837else
12838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839/* end confdefs.h.  */
12840int i;
12841_ACEOF
12842if ac_fn_c_try_compile "$LINENO"; then :
12843  xorg_cv_cc_flag_unknown_warning_option=yes
12844else
12845  xorg_cv_cc_flag_unknown_warning_option=no
12846fi
12847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848fi
12849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12852	CFLAGS="$xorg_testset_save_CFLAGS"
12853fi
12854
12855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12858	fi
12859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12863  $as_echo_n "(cached) " >&6
12864else
12865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h.  */
12867int i;
12868_ACEOF
12869if ac_fn_c_try_compile "$LINENO"; then :
12870  xorg_cv_cc_flag_unused_command_line_argument=yes
12871else
12872  xorg_cv_cc_flag_unused_command_line_argument=no
12873fi
12874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875fi
12876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12879	CFLAGS="$xorg_testset_save_CFLAGS"
12880fi
12881
12882found="no"
12883
12884	if test $found = "no" ; then
12885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12887		fi
12888
12889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12891		fi
12892
12893		CFLAGS="$CFLAGS -Wmissing-prototypes"
12894
12895		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12896$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12897		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12898		if eval \${$cacheid+:} false; then :
12899  $as_echo_n "(cached) " >&6
12900else
12901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902/* end confdefs.h.  */
12903int i;
12904int
12905main ()
12906{
12907
12908  ;
12909  return 0;
12910}
12911_ACEOF
12912if ac_fn_c_try_link "$LINENO"; then :
12913  eval $cacheid=yes
12914else
12915  eval $cacheid=no
12916fi
12917rm -f core conftest.err conftest.$ac_objext \
12918    conftest$ac_exeext conftest.$ac_ext
12919fi
12920
12921
12922		CFLAGS="$xorg_testset_save_CFLAGS"
12923
12924		eval supported=\$$cacheid
12925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12926$as_echo "$supported" >&6; }
12927		if test "$supported" = "yes" ; then
12928			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12929			found="yes"
12930		fi
12931	fi
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947xorg_testset_save_CFLAGS="$CFLAGS"
12948
12949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12954  $as_echo_n "(cached) " >&6
12955else
12956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957/* end confdefs.h.  */
12958int i;
12959_ACEOF
12960if ac_fn_c_try_compile "$LINENO"; then :
12961  xorg_cv_cc_flag_unknown_warning_option=yes
12962else
12963  xorg_cv_cc_flag_unknown_warning_option=no
12964fi
12965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966fi
12967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12970	CFLAGS="$xorg_testset_save_CFLAGS"
12971fi
12972
12973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12976	fi
12977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12981  $as_echo_n "(cached) " >&6
12982else
12983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984/* end confdefs.h.  */
12985int i;
12986_ACEOF
12987if ac_fn_c_try_compile "$LINENO"; then :
12988  xorg_cv_cc_flag_unused_command_line_argument=yes
12989else
12990  xorg_cv_cc_flag_unused_command_line_argument=no
12991fi
12992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993fi
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12997	CFLAGS="$xorg_testset_save_CFLAGS"
12998fi
12999
13000found="no"
13001
13002	if test $found = "no" ; then
13003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13005		fi
13006
13007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13009		fi
13010
13011		CFLAGS="$CFLAGS -Wnested-externs"
13012
13013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13014$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13015		cacheid=xorg_cv_cc_flag__Wnested_externs
13016		if eval \${$cacheid+:} false; then :
13017  $as_echo_n "(cached) " >&6
13018else
13019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020/* end confdefs.h.  */
13021int i;
13022int
13023main ()
13024{
13025
13026  ;
13027  return 0;
13028}
13029_ACEOF
13030if ac_fn_c_try_link "$LINENO"; then :
13031  eval $cacheid=yes
13032else
13033  eval $cacheid=no
13034fi
13035rm -f core conftest.err conftest.$ac_objext \
13036    conftest$ac_exeext conftest.$ac_ext
13037fi
13038
13039
13040		CFLAGS="$xorg_testset_save_CFLAGS"
13041
13042		eval supported=\$$cacheid
13043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13044$as_echo "$supported" >&6; }
13045		if test "$supported" = "yes" ; then
13046			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13047			found="yes"
13048		fi
13049	fi
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065xorg_testset_save_CFLAGS="$CFLAGS"
13066
13067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13072  $as_echo_n "(cached) " >&6
13073else
13074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075/* end confdefs.h.  */
13076int i;
13077_ACEOF
13078if ac_fn_c_try_compile "$LINENO"; then :
13079  xorg_cv_cc_flag_unknown_warning_option=yes
13080else
13081  xorg_cv_cc_flag_unknown_warning_option=no
13082fi
13083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084fi
13085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13088	CFLAGS="$xorg_testset_save_CFLAGS"
13089fi
13090
13091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13094	fi
13095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13099  $as_echo_n "(cached) " >&6
13100else
13101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102/* end confdefs.h.  */
13103int i;
13104_ACEOF
13105if ac_fn_c_try_compile "$LINENO"; then :
13106  xorg_cv_cc_flag_unused_command_line_argument=yes
13107else
13108  xorg_cv_cc_flag_unused_command_line_argument=no
13109fi
13110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111fi
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13115	CFLAGS="$xorg_testset_save_CFLAGS"
13116fi
13117
13118found="no"
13119
13120	if test $found = "no" ; then
13121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13123		fi
13124
13125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13127		fi
13128
13129		CFLAGS="$CFLAGS -Wbad-function-cast"
13130
13131		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13132$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13133		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13134		if eval \${$cacheid+:} false; then :
13135  $as_echo_n "(cached) " >&6
13136else
13137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138/* end confdefs.h.  */
13139int i;
13140int
13141main ()
13142{
13143
13144  ;
13145  return 0;
13146}
13147_ACEOF
13148if ac_fn_c_try_link "$LINENO"; then :
13149  eval $cacheid=yes
13150else
13151  eval $cacheid=no
13152fi
13153rm -f core conftest.err conftest.$ac_objext \
13154    conftest$ac_exeext conftest.$ac_ext
13155fi
13156
13157
13158		CFLAGS="$xorg_testset_save_CFLAGS"
13159
13160		eval supported=\$$cacheid
13161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13162$as_echo "$supported" >&6; }
13163		if test "$supported" = "yes" ; then
13164			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13165			found="yes"
13166		fi
13167	fi
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183xorg_testset_save_CFLAGS="$CFLAGS"
13184
13185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13190  $as_echo_n "(cached) " >&6
13191else
13192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193/* end confdefs.h.  */
13194int i;
13195_ACEOF
13196if ac_fn_c_try_compile "$LINENO"; then :
13197  xorg_cv_cc_flag_unknown_warning_option=yes
13198else
13199  xorg_cv_cc_flag_unknown_warning_option=no
13200fi
13201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13202fi
13203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13206	CFLAGS="$xorg_testset_save_CFLAGS"
13207fi
13208
13209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13212	fi
13213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13217  $as_echo_n "(cached) " >&6
13218else
13219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220/* end confdefs.h.  */
13221int i;
13222_ACEOF
13223if ac_fn_c_try_compile "$LINENO"; then :
13224  xorg_cv_cc_flag_unused_command_line_argument=yes
13225else
13226  xorg_cv_cc_flag_unused_command_line_argument=no
13227fi
13228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229fi
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13233	CFLAGS="$xorg_testset_save_CFLAGS"
13234fi
13235
13236found="no"
13237
13238	if test $found = "no" ; then
13239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13241		fi
13242
13243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13245		fi
13246
13247		CFLAGS="$CFLAGS -Wold-style-definition"
13248
13249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13250$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13251		cacheid=xorg_cv_cc_flag__Wold_style_definition
13252		if eval \${$cacheid+:} false; then :
13253  $as_echo_n "(cached) " >&6
13254else
13255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256/* end confdefs.h.  */
13257int i;
13258int
13259main ()
13260{
13261
13262  ;
13263  return 0;
13264}
13265_ACEOF
13266if ac_fn_c_try_link "$LINENO"; then :
13267  eval $cacheid=yes
13268else
13269  eval $cacheid=no
13270fi
13271rm -f core conftest.err conftest.$ac_objext \
13272    conftest$ac_exeext conftest.$ac_ext
13273fi
13274
13275
13276		CFLAGS="$xorg_testset_save_CFLAGS"
13277
13278		eval supported=\$$cacheid
13279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13280$as_echo "$supported" >&6; }
13281		if test "$supported" = "yes" ; then
13282			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13283			found="yes"
13284		fi
13285	fi
13286
13287	if test $found = "no" ; then
13288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13290		fi
13291
13292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13294		fi
13295
13296		CFLAGS="$CFLAGS -fd"
13297
13298		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13299$as_echo_n "checking if $CC supports -fd... " >&6; }
13300		cacheid=xorg_cv_cc_flag__fd
13301		if eval \${$cacheid+:} false; then :
13302  $as_echo_n "(cached) " >&6
13303else
13304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305/* end confdefs.h.  */
13306int i;
13307int
13308main ()
13309{
13310
13311  ;
13312  return 0;
13313}
13314_ACEOF
13315if ac_fn_c_try_link "$LINENO"; then :
13316  eval $cacheid=yes
13317else
13318  eval $cacheid=no
13319fi
13320rm -f core conftest.err conftest.$ac_objext \
13321    conftest$ac_exeext conftest.$ac_ext
13322fi
13323
13324
13325		CFLAGS="$xorg_testset_save_CFLAGS"
13326
13327		eval supported=\$$cacheid
13328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13329$as_echo "$supported" >&6; }
13330		if test "$supported" = "yes" ; then
13331			BASE_CFLAGS="$BASE_CFLAGS -fd"
13332			found="yes"
13333		fi
13334	fi
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350xorg_testset_save_CFLAGS="$CFLAGS"
13351
13352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13353	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13355$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13356if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13357  $as_echo_n "(cached) " >&6
13358else
13359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360/* end confdefs.h.  */
13361int i;
13362_ACEOF
13363if ac_fn_c_try_compile "$LINENO"; then :
13364  xorg_cv_cc_flag_unknown_warning_option=yes
13365else
13366  xorg_cv_cc_flag_unknown_warning_option=no
13367fi
13368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369fi
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13371$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13372	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13373	CFLAGS="$xorg_testset_save_CFLAGS"
13374fi
13375
13376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13377	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13378		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13379	fi
13380	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13382$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13383if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13384  $as_echo_n "(cached) " >&6
13385else
13386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387/* end confdefs.h.  */
13388int i;
13389_ACEOF
13390if ac_fn_c_try_compile "$LINENO"; then :
13391  xorg_cv_cc_flag_unused_command_line_argument=yes
13392else
13393  xorg_cv_cc_flag_unused_command_line_argument=no
13394fi
13395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396fi
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13398$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13400	CFLAGS="$xorg_testset_save_CFLAGS"
13401fi
13402
13403found="no"
13404
13405	if test $found = "no" ; then
13406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13408		fi
13409
13410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13412		fi
13413
13414		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13415
13416		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13417$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13418		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13419		if eval \${$cacheid+:} false; then :
13420  $as_echo_n "(cached) " >&6
13421else
13422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423/* end confdefs.h.  */
13424int i;
13425int
13426main ()
13427{
13428
13429  ;
13430  return 0;
13431}
13432_ACEOF
13433if ac_fn_c_try_link "$LINENO"; then :
13434  eval $cacheid=yes
13435else
13436  eval $cacheid=no
13437fi
13438rm -f core conftest.err conftest.$ac_objext \
13439    conftest$ac_exeext conftest.$ac_ext
13440fi
13441
13442
13443		CFLAGS="$xorg_testset_save_CFLAGS"
13444
13445		eval supported=\$$cacheid
13446		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13447$as_echo "$supported" >&6; }
13448		if test "$supported" = "yes" ; then
13449			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13450			found="yes"
13451		fi
13452	fi
13453
13454
13455
13456
13457
13458# This chunk adds additional warnings that could catch undesired effects.
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472xorg_testset_save_CFLAGS="$CFLAGS"
13473
13474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13479  $as_echo_n "(cached) " >&6
13480else
13481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482/* end confdefs.h.  */
13483int i;
13484_ACEOF
13485if ac_fn_c_try_compile "$LINENO"; then :
13486  xorg_cv_cc_flag_unknown_warning_option=yes
13487else
13488  xorg_cv_cc_flag_unknown_warning_option=no
13489fi
13490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491fi
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13495	CFLAGS="$xorg_testset_save_CFLAGS"
13496fi
13497
13498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13501	fi
13502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13506  $as_echo_n "(cached) " >&6
13507else
13508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509/* end confdefs.h.  */
13510int i;
13511_ACEOF
13512if ac_fn_c_try_compile "$LINENO"; then :
13513  xorg_cv_cc_flag_unused_command_line_argument=yes
13514else
13515  xorg_cv_cc_flag_unused_command_line_argument=no
13516fi
13517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518fi
13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13521	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13522	CFLAGS="$xorg_testset_save_CFLAGS"
13523fi
13524
13525found="no"
13526
13527	if test $found = "no" ; then
13528		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13530		fi
13531
13532		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13534		fi
13535
13536		CFLAGS="$CFLAGS -Wunused"
13537
13538		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13539$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13540		cacheid=xorg_cv_cc_flag__Wunused
13541		if eval \${$cacheid+:} false; then :
13542  $as_echo_n "(cached) " >&6
13543else
13544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545/* end confdefs.h.  */
13546int i;
13547int
13548main ()
13549{
13550
13551  ;
13552  return 0;
13553}
13554_ACEOF
13555if ac_fn_c_try_link "$LINENO"; then :
13556  eval $cacheid=yes
13557else
13558  eval $cacheid=no
13559fi
13560rm -f core conftest.err conftest.$ac_objext \
13561    conftest$ac_exeext conftest.$ac_ext
13562fi
13563
13564
13565		CFLAGS="$xorg_testset_save_CFLAGS"
13566
13567		eval supported=\$$cacheid
13568		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13569$as_echo "$supported" >&6; }
13570		if test "$supported" = "yes" ; then
13571			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13572			found="yes"
13573		fi
13574	fi
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590xorg_testset_save_CFLAGS="$CFLAGS"
13591
13592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13595$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13596if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13597  $as_echo_n "(cached) " >&6
13598else
13599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600/* end confdefs.h.  */
13601int i;
13602_ACEOF
13603if ac_fn_c_try_compile "$LINENO"; then :
13604  xorg_cv_cc_flag_unknown_warning_option=yes
13605else
13606  xorg_cv_cc_flag_unknown_warning_option=no
13607fi
13608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609fi
13610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13611$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13613	CFLAGS="$xorg_testset_save_CFLAGS"
13614fi
13615
13616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13619	fi
13620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13622$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13623if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13624  $as_echo_n "(cached) " >&6
13625else
13626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627/* end confdefs.h.  */
13628int i;
13629_ACEOF
13630if ac_fn_c_try_compile "$LINENO"; then :
13631  xorg_cv_cc_flag_unused_command_line_argument=yes
13632else
13633  xorg_cv_cc_flag_unused_command_line_argument=no
13634fi
13635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636fi
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13638$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13639	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13640	CFLAGS="$xorg_testset_save_CFLAGS"
13641fi
13642
13643found="no"
13644
13645	if test $found = "no" ; then
13646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13648		fi
13649
13650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13652		fi
13653
13654		CFLAGS="$CFLAGS -Wuninitialized"
13655
13656		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13657$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13658		cacheid=xorg_cv_cc_flag__Wuninitialized
13659		if eval \${$cacheid+:} false; then :
13660  $as_echo_n "(cached) " >&6
13661else
13662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663/* end confdefs.h.  */
13664int i;
13665int
13666main ()
13667{
13668
13669  ;
13670  return 0;
13671}
13672_ACEOF
13673if ac_fn_c_try_link "$LINENO"; then :
13674  eval $cacheid=yes
13675else
13676  eval $cacheid=no
13677fi
13678rm -f core conftest.err conftest.$ac_objext \
13679    conftest$ac_exeext conftest.$ac_ext
13680fi
13681
13682
13683		CFLAGS="$xorg_testset_save_CFLAGS"
13684
13685		eval supported=\$$cacheid
13686		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13687$as_echo "$supported" >&6; }
13688		if test "$supported" = "yes" ; then
13689			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13690			found="yes"
13691		fi
13692	fi
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708xorg_testset_save_CFLAGS="$CFLAGS"
13709
13710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13711	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13713$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13714if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13715  $as_echo_n "(cached) " >&6
13716else
13717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718/* end confdefs.h.  */
13719int i;
13720_ACEOF
13721if ac_fn_c_try_compile "$LINENO"; then :
13722  xorg_cv_cc_flag_unknown_warning_option=yes
13723else
13724  xorg_cv_cc_flag_unknown_warning_option=no
13725fi
13726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13727fi
13728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13729$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13731	CFLAGS="$xorg_testset_save_CFLAGS"
13732fi
13733
13734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13737	fi
13738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13740$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13741if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13742  $as_echo_n "(cached) " >&6
13743else
13744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745/* end confdefs.h.  */
13746int i;
13747_ACEOF
13748if ac_fn_c_try_compile "$LINENO"; then :
13749  xorg_cv_cc_flag_unused_command_line_argument=yes
13750else
13751  xorg_cv_cc_flag_unused_command_line_argument=no
13752fi
13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754fi
13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13756$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13757	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13758	CFLAGS="$xorg_testset_save_CFLAGS"
13759fi
13760
13761found="no"
13762
13763	if test $found = "no" ; then
13764		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13765			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13766		fi
13767
13768		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13769			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13770		fi
13771
13772		CFLAGS="$CFLAGS -Wshadow"
13773
13774		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13775$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13776		cacheid=xorg_cv_cc_flag__Wshadow
13777		if eval \${$cacheid+:} false; then :
13778  $as_echo_n "(cached) " >&6
13779else
13780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781/* end confdefs.h.  */
13782int i;
13783int
13784main ()
13785{
13786
13787  ;
13788  return 0;
13789}
13790_ACEOF
13791if ac_fn_c_try_link "$LINENO"; then :
13792  eval $cacheid=yes
13793else
13794  eval $cacheid=no
13795fi
13796rm -f core conftest.err conftest.$ac_objext \
13797    conftest$ac_exeext conftest.$ac_ext
13798fi
13799
13800
13801		CFLAGS="$xorg_testset_save_CFLAGS"
13802
13803		eval supported=\$$cacheid
13804		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13805$as_echo "$supported" >&6; }
13806		if test "$supported" = "yes" ; then
13807			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13808			found="yes"
13809		fi
13810	fi
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826xorg_testset_save_CFLAGS="$CFLAGS"
13827
13828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13829	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13831$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13832if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13833  $as_echo_n "(cached) " >&6
13834else
13835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836/* end confdefs.h.  */
13837int i;
13838_ACEOF
13839if ac_fn_c_try_compile "$LINENO"; then :
13840  xorg_cv_cc_flag_unknown_warning_option=yes
13841else
13842  xorg_cv_cc_flag_unknown_warning_option=no
13843fi
13844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845fi
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13847$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13849	CFLAGS="$xorg_testset_save_CFLAGS"
13850fi
13851
13852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13855	fi
13856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13858$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13859if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13860  $as_echo_n "(cached) " >&6
13861else
13862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863/* end confdefs.h.  */
13864int i;
13865_ACEOF
13866if ac_fn_c_try_compile "$LINENO"; then :
13867  xorg_cv_cc_flag_unused_command_line_argument=yes
13868else
13869  xorg_cv_cc_flag_unused_command_line_argument=no
13870fi
13871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872fi
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13874$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13875	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13876	CFLAGS="$xorg_testset_save_CFLAGS"
13877fi
13878
13879found="no"
13880
13881	if test $found = "no" ; then
13882		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13884		fi
13885
13886		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13888		fi
13889
13890		CFLAGS="$CFLAGS -Wmissing-noreturn"
13891
13892		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13893$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13894		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13895		if eval \${$cacheid+:} false; then :
13896  $as_echo_n "(cached) " >&6
13897else
13898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899/* end confdefs.h.  */
13900int i;
13901int
13902main ()
13903{
13904
13905  ;
13906  return 0;
13907}
13908_ACEOF
13909if ac_fn_c_try_link "$LINENO"; then :
13910  eval $cacheid=yes
13911else
13912  eval $cacheid=no
13913fi
13914rm -f core conftest.err conftest.$ac_objext \
13915    conftest$ac_exeext conftest.$ac_ext
13916fi
13917
13918
13919		CFLAGS="$xorg_testset_save_CFLAGS"
13920
13921		eval supported=\$$cacheid
13922		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13923$as_echo "$supported" >&6; }
13924		if test "$supported" = "yes" ; then
13925			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13926			found="yes"
13927		fi
13928	fi
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944xorg_testset_save_CFLAGS="$CFLAGS"
13945
13946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13951  $as_echo_n "(cached) " >&6
13952else
13953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954/* end confdefs.h.  */
13955int i;
13956_ACEOF
13957if ac_fn_c_try_compile "$LINENO"; then :
13958  xorg_cv_cc_flag_unknown_warning_option=yes
13959else
13960  xorg_cv_cc_flag_unknown_warning_option=no
13961fi
13962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963fi
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13967	CFLAGS="$xorg_testset_save_CFLAGS"
13968fi
13969
13970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13973	fi
13974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13978  $as_echo_n "(cached) " >&6
13979else
13980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981/* end confdefs.h.  */
13982int i;
13983_ACEOF
13984if ac_fn_c_try_compile "$LINENO"; then :
13985  xorg_cv_cc_flag_unused_command_line_argument=yes
13986else
13987  xorg_cv_cc_flag_unused_command_line_argument=no
13988fi
13989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13990fi
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13994	CFLAGS="$xorg_testset_save_CFLAGS"
13995fi
13996
13997found="no"
13998
13999	if test $found = "no" ; then
14000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14002		fi
14003
14004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14006		fi
14007
14008		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14009
14010		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14011$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14012		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14013		if eval \${$cacheid+:} false; then :
14014  $as_echo_n "(cached) " >&6
14015else
14016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017/* end confdefs.h.  */
14018int i;
14019int
14020main ()
14021{
14022
14023  ;
14024  return 0;
14025}
14026_ACEOF
14027if ac_fn_c_try_link "$LINENO"; then :
14028  eval $cacheid=yes
14029else
14030  eval $cacheid=no
14031fi
14032rm -f core conftest.err conftest.$ac_objext \
14033    conftest$ac_exeext conftest.$ac_ext
14034fi
14035
14036
14037		CFLAGS="$xorg_testset_save_CFLAGS"
14038
14039		eval supported=\$$cacheid
14040		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14041$as_echo "$supported" >&6; }
14042		if test "$supported" = "yes" ; then
14043			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14044			found="yes"
14045		fi
14046	fi
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062xorg_testset_save_CFLAGS="$CFLAGS"
14063
14064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14065	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14069  $as_echo_n "(cached) " >&6
14070else
14071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072/* end confdefs.h.  */
14073int i;
14074_ACEOF
14075if ac_fn_c_try_compile "$LINENO"; then :
14076  xorg_cv_cc_flag_unknown_warning_option=yes
14077else
14078  xorg_cv_cc_flag_unknown_warning_option=no
14079fi
14080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081fi
14082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14085	CFLAGS="$xorg_testset_save_CFLAGS"
14086fi
14087
14088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14091	fi
14092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14096  $as_echo_n "(cached) " >&6
14097else
14098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099/* end confdefs.h.  */
14100int i;
14101_ACEOF
14102if ac_fn_c_try_compile "$LINENO"; then :
14103  xorg_cv_cc_flag_unused_command_line_argument=yes
14104else
14105  xorg_cv_cc_flag_unused_command_line_argument=no
14106fi
14107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14108fi
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14112	CFLAGS="$xorg_testset_save_CFLAGS"
14113fi
14114
14115found="no"
14116
14117	if test $found = "no" ; then
14118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14120		fi
14121
14122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14124		fi
14125
14126		CFLAGS="$CFLAGS -Wredundant-decls"
14127
14128		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14129$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14130		cacheid=xorg_cv_cc_flag__Wredundant_decls
14131		if eval \${$cacheid+:} false; then :
14132  $as_echo_n "(cached) " >&6
14133else
14134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135/* end confdefs.h.  */
14136int i;
14137int
14138main ()
14139{
14140
14141  ;
14142  return 0;
14143}
14144_ACEOF
14145if ac_fn_c_try_link "$LINENO"; then :
14146  eval $cacheid=yes
14147else
14148  eval $cacheid=no
14149fi
14150rm -f core conftest.err conftest.$ac_objext \
14151    conftest$ac_exeext conftest.$ac_ext
14152fi
14153
14154
14155		CFLAGS="$xorg_testset_save_CFLAGS"
14156
14157		eval supported=\$$cacheid
14158		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14159$as_echo "$supported" >&6; }
14160		if test "$supported" = "yes" ; then
14161			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14162			found="yes"
14163		fi
14164	fi
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180xorg_testset_save_CFLAGS="$CFLAGS"
14181
14182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14187  $as_echo_n "(cached) " >&6
14188else
14189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190/* end confdefs.h.  */
14191int i;
14192_ACEOF
14193if ac_fn_c_try_compile "$LINENO"; then :
14194  xorg_cv_cc_flag_unknown_warning_option=yes
14195else
14196  xorg_cv_cc_flag_unknown_warning_option=no
14197fi
14198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199fi
14200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14203	CFLAGS="$xorg_testset_save_CFLAGS"
14204fi
14205
14206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14209	fi
14210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14214  $as_echo_n "(cached) " >&6
14215else
14216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217/* end confdefs.h.  */
14218int i;
14219_ACEOF
14220if ac_fn_c_try_compile "$LINENO"; then :
14221  xorg_cv_cc_flag_unused_command_line_argument=yes
14222else
14223  xorg_cv_cc_flag_unused_command_line_argument=no
14224fi
14225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226fi
14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14230	CFLAGS="$xorg_testset_save_CFLAGS"
14231fi
14232
14233found="no"
14234
14235	if test $found = "no" ; then
14236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14238		fi
14239
14240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14242		fi
14243
14244		CFLAGS="$CFLAGS -Wlogical-op"
14245
14246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14247$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14248		cacheid=xorg_cv_cc_flag__Wlogical_op
14249		if eval \${$cacheid+:} false; then :
14250  $as_echo_n "(cached) " >&6
14251else
14252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253/* end confdefs.h.  */
14254int i;
14255int
14256main ()
14257{
14258
14259  ;
14260  return 0;
14261}
14262_ACEOF
14263if ac_fn_c_try_link "$LINENO"; then :
14264  eval $cacheid=yes
14265else
14266  eval $cacheid=no
14267fi
14268rm -f core conftest.err conftest.$ac_objext \
14269    conftest$ac_exeext conftest.$ac_ext
14270fi
14271
14272
14273		CFLAGS="$xorg_testset_save_CFLAGS"
14274
14275		eval supported=\$$cacheid
14276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14277$as_echo "$supported" >&6; }
14278		if test "$supported" = "yes" ; then
14279			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14280			found="yes"
14281		fi
14282	fi
14283
14284
14285
14286# These are currently disabled because they are noisy.  They will be enabled
14287# in the future once the codebase is sufficiently modernized to silence
14288# them.  For now, I don't want them to drown out the other warnings.
14289# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14290# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14291# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14292
14293# Turn some warnings into errors, so we don't accidently get successful builds
14294# when there are problems that should be fixed.
14295
14296if test "x$SELECTIVE_WERROR" = "xyes" ; then
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310xorg_testset_save_CFLAGS="$CFLAGS"
14311
14312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14317  $as_echo_n "(cached) " >&6
14318else
14319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320/* end confdefs.h.  */
14321int i;
14322_ACEOF
14323if ac_fn_c_try_compile "$LINENO"; then :
14324  xorg_cv_cc_flag_unknown_warning_option=yes
14325else
14326  xorg_cv_cc_flag_unknown_warning_option=no
14327fi
14328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14329fi
14330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14333	CFLAGS="$xorg_testset_save_CFLAGS"
14334fi
14335
14336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14339	fi
14340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14344  $as_echo_n "(cached) " >&6
14345else
14346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347/* end confdefs.h.  */
14348int i;
14349_ACEOF
14350if ac_fn_c_try_compile "$LINENO"; then :
14351  xorg_cv_cc_flag_unused_command_line_argument=yes
14352else
14353  xorg_cv_cc_flag_unused_command_line_argument=no
14354fi
14355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356fi
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14360	CFLAGS="$xorg_testset_save_CFLAGS"
14361fi
14362
14363found="no"
14364
14365	if test $found = "no" ; then
14366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14368		fi
14369
14370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14372		fi
14373
14374		CFLAGS="$CFLAGS -Werror=implicit"
14375
14376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14377$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14378		cacheid=xorg_cv_cc_flag__Werror_implicit
14379		if eval \${$cacheid+:} false; then :
14380  $as_echo_n "(cached) " >&6
14381else
14382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383/* end confdefs.h.  */
14384int i;
14385int
14386main ()
14387{
14388
14389  ;
14390  return 0;
14391}
14392_ACEOF
14393if ac_fn_c_try_link "$LINENO"; then :
14394  eval $cacheid=yes
14395else
14396  eval $cacheid=no
14397fi
14398rm -f core conftest.err conftest.$ac_objext \
14399    conftest$ac_exeext conftest.$ac_ext
14400fi
14401
14402
14403		CFLAGS="$xorg_testset_save_CFLAGS"
14404
14405		eval supported=\$$cacheid
14406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14407$as_echo "$supported" >&6; }
14408		if test "$supported" = "yes" ; then
14409			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14410			found="yes"
14411		fi
14412	fi
14413
14414	if test $found = "no" ; then
14415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14417		fi
14418
14419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14421		fi
14422
14423		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14424
14425		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14426$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14427		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14428		if eval \${$cacheid+:} false; then :
14429  $as_echo_n "(cached) " >&6
14430else
14431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432/* end confdefs.h.  */
14433int i;
14434int
14435main ()
14436{
14437
14438  ;
14439  return 0;
14440}
14441_ACEOF
14442if ac_fn_c_try_link "$LINENO"; then :
14443  eval $cacheid=yes
14444else
14445  eval $cacheid=no
14446fi
14447rm -f core conftest.err conftest.$ac_objext \
14448    conftest$ac_exeext conftest.$ac_ext
14449fi
14450
14451
14452		CFLAGS="$xorg_testset_save_CFLAGS"
14453
14454		eval supported=\$$cacheid
14455		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14456$as_echo "$supported" >&6; }
14457		if test "$supported" = "yes" ; then
14458			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14459			found="yes"
14460		fi
14461	fi
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477xorg_testset_save_CFLAGS="$CFLAGS"
14478
14479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14484  $as_echo_n "(cached) " >&6
14485else
14486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487/* end confdefs.h.  */
14488int i;
14489_ACEOF
14490if ac_fn_c_try_compile "$LINENO"; then :
14491  xorg_cv_cc_flag_unknown_warning_option=yes
14492else
14493  xorg_cv_cc_flag_unknown_warning_option=no
14494fi
14495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496fi
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14500	CFLAGS="$xorg_testset_save_CFLAGS"
14501fi
14502
14503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14506	fi
14507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14511  $as_echo_n "(cached) " >&6
14512else
14513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514/* end confdefs.h.  */
14515int i;
14516_ACEOF
14517if ac_fn_c_try_compile "$LINENO"; then :
14518  xorg_cv_cc_flag_unused_command_line_argument=yes
14519else
14520  xorg_cv_cc_flag_unused_command_line_argument=no
14521fi
14522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523fi
14524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14527	CFLAGS="$xorg_testset_save_CFLAGS"
14528fi
14529
14530found="no"
14531
14532	if test $found = "no" ; then
14533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14535		fi
14536
14537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14539		fi
14540
14541		CFLAGS="$CFLAGS -Werror=nonnull"
14542
14543		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14544$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14545		cacheid=xorg_cv_cc_flag__Werror_nonnull
14546		if eval \${$cacheid+:} false; then :
14547  $as_echo_n "(cached) " >&6
14548else
14549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550/* end confdefs.h.  */
14551int i;
14552int
14553main ()
14554{
14555
14556  ;
14557  return 0;
14558}
14559_ACEOF
14560if ac_fn_c_try_link "$LINENO"; then :
14561  eval $cacheid=yes
14562else
14563  eval $cacheid=no
14564fi
14565rm -f core conftest.err conftest.$ac_objext \
14566    conftest$ac_exeext conftest.$ac_ext
14567fi
14568
14569
14570		CFLAGS="$xorg_testset_save_CFLAGS"
14571
14572		eval supported=\$$cacheid
14573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14574$as_echo "$supported" >&6; }
14575		if test "$supported" = "yes" ; then
14576			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14577			found="yes"
14578		fi
14579	fi
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595xorg_testset_save_CFLAGS="$CFLAGS"
14596
14597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14602  $as_echo_n "(cached) " >&6
14603else
14604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605/* end confdefs.h.  */
14606int i;
14607_ACEOF
14608if ac_fn_c_try_compile "$LINENO"; then :
14609  xorg_cv_cc_flag_unknown_warning_option=yes
14610else
14611  xorg_cv_cc_flag_unknown_warning_option=no
14612fi
14613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614fi
14615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14617	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14618	CFLAGS="$xorg_testset_save_CFLAGS"
14619fi
14620
14621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14622	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14623		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14624	fi
14625	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14629  $as_echo_n "(cached) " >&6
14630else
14631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632/* end confdefs.h.  */
14633int i;
14634_ACEOF
14635if ac_fn_c_try_compile "$LINENO"; then :
14636  xorg_cv_cc_flag_unused_command_line_argument=yes
14637else
14638  xorg_cv_cc_flag_unused_command_line_argument=no
14639fi
14640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641fi
14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14644	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14645	CFLAGS="$xorg_testset_save_CFLAGS"
14646fi
14647
14648found="no"
14649
14650	if test $found = "no" ; then
14651		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14653		fi
14654
14655		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14657		fi
14658
14659		CFLAGS="$CFLAGS -Werror=init-self"
14660
14661		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14662$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14663		cacheid=xorg_cv_cc_flag__Werror_init_self
14664		if eval \${$cacheid+:} false; then :
14665  $as_echo_n "(cached) " >&6
14666else
14667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668/* end confdefs.h.  */
14669int i;
14670int
14671main ()
14672{
14673
14674  ;
14675  return 0;
14676}
14677_ACEOF
14678if ac_fn_c_try_link "$LINENO"; then :
14679  eval $cacheid=yes
14680else
14681  eval $cacheid=no
14682fi
14683rm -f core conftest.err conftest.$ac_objext \
14684    conftest$ac_exeext conftest.$ac_ext
14685fi
14686
14687
14688		CFLAGS="$xorg_testset_save_CFLAGS"
14689
14690		eval supported=\$$cacheid
14691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14692$as_echo "$supported" >&6; }
14693		if test "$supported" = "yes" ; then
14694			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14695			found="yes"
14696		fi
14697	fi
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713xorg_testset_save_CFLAGS="$CFLAGS"
14714
14715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14716	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14720  $as_echo_n "(cached) " >&6
14721else
14722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723/* end confdefs.h.  */
14724int i;
14725_ACEOF
14726if ac_fn_c_try_compile "$LINENO"; then :
14727  xorg_cv_cc_flag_unknown_warning_option=yes
14728else
14729  xorg_cv_cc_flag_unknown_warning_option=no
14730fi
14731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732fi
14733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14735	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14736	CFLAGS="$xorg_testset_save_CFLAGS"
14737fi
14738
14739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14740	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14741		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14742	fi
14743	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14747  $as_echo_n "(cached) " >&6
14748else
14749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750/* end confdefs.h.  */
14751int i;
14752_ACEOF
14753if ac_fn_c_try_compile "$LINENO"; then :
14754  xorg_cv_cc_flag_unused_command_line_argument=yes
14755else
14756  xorg_cv_cc_flag_unused_command_line_argument=no
14757fi
14758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759fi
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14763	CFLAGS="$xorg_testset_save_CFLAGS"
14764fi
14765
14766found="no"
14767
14768	if test $found = "no" ; then
14769		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14771		fi
14772
14773		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14775		fi
14776
14777		CFLAGS="$CFLAGS -Werror=main"
14778
14779		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14780$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14781		cacheid=xorg_cv_cc_flag__Werror_main
14782		if eval \${$cacheid+:} false; then :
14783  $as_echo_n "(cached) " >&6
14784else
14785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786/* end confdefs.h.  */
14787int i;
14788int
14789main ()
14790{
14791
14792  ;
14793  return 0;
14794}
14795_ACEOF
14796if ac_fn_c_try_link "$LINENO"; then :
14797  eval $cacheid=yes
14798else
14799  eval $cacheid=no
14800fi
14801rm -f core conftest.err conftest.$ac_objext \
14802    conftest$ac_exeext conftest.$ac_ext
14803fi
14804
14805
14806		CFLAGS="$xorg_testset_save_CFLAGS"
14807
14808		eval supported=\$$cacheid
14809		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14810$as_echo "$supported" >&6; }
14811		if test "$supported" = "yes" ; then
14812			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14813			found="yes"
14814		fi
14815	fi
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831xorg_testset_save_CFLAGS="$CFLAGS"
14832
14833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14834	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14838  $as_echo_n "(cached) " >&6
14839else
14840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841/* end confdefs.h.  */
14842int i;
14843_ACEOF
14844if ac_fn_c_try_compile "$LINENO"; then :
14845  xorg_cv_cc_flag_unknown_warning_option=yes
14846else
14847  xorg_cv_cc_flag_unknown_warning_option=no
14848fi
14849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14850fi
14851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14854	CFLAGS="$xorg_testset_save_CFLAGS"
14855fi
14856
14857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14860	fi
14861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14865  $as_echo_n "(cached) " >&6
14866else
14867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868/* end confdefs.h.  */
14869int i;
14870_ACEOF
14871if ac_fn_c_try_compile "$LINENO"; then :
14872  xorg_cv_cc_flag_unused_command_line_argument=yes
14873else
14874  xorg_cv_cc_flag_unused_command_line_argument=no
14875fi
14876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14877fi
14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14881	CFLAGS="$xorg_testset_save_CFLAGS"
14882fi
14883
14884found="no"
14885
14886	if test $found = "no" ; then
14887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14889		fi
14890
14891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14893		fi
14894
14895		CFLAGS="$CFLAGS -Werror=missing-braces"
14896
14897		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14898$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14899		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14900		if eval \${$cacheid+:} false; then :
14901  $as_echo_n "(cached) " >&6
14902else
14903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904/* end confdefs.h.  */
14905int i;
14906int
14907main ()
14908{
14909
14910  ;
14911  return 0;
14912}
14913_ACEOF
14914if ac_fn_c_try_link "$LINENO"; then :
14915  eval $cacheid=yes
14916else
14917  eval $cacheid=no
14918fi
14919rm -f core conftest.err conftest.$ac_objext \
14920    conftest$ac_exeext conftest.$ac_ext
14921fi
14922
14923
14924		CFLAGS="$xorg_testset_save_CFLAGS"
14925
14926		eval supported=\$$cacheid
14927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14928$as_echo "$supported" >&6; }
14929		if test "$supported" = "yes" ; then
14930			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14931			found="yes"
14932		fi
14933	fi
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949xorg_testset_save_CFLAGS="$CFLAGS"
14950
14951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14952	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14956  $as_echo_n "(cached) " >&6
14957else
14958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959/* end confdefs.h.  */
14960int i;
14961_ACEOF
14962if ac_fn_c_try_compile "$LINENO"; then :
14963  xorg_cv_cc_flag_unknown_warning_option=yes
14964else
14965  xorg_cv_cc_flag_unknown_warning_option=no
14966fi
14967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968fi
14969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14972	CFLAGS="$xorg_testset_save_CFLAGS"
14973fi
14974
14975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14978	fi
14979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14983  $as_echo_n "(cached) " >&6
14984else
14985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986/* end confdefs.h.  */
14987int i;
14988_ACEOF
14989if ac_fn_c_try_compile "$LINENO"; then :
14990  xorg_cv_cc_flag_unused_command_line_argument=yes
14991else
14992  xorg_cv_cc_flag_unused_command_line_argument=no
14993fi
14994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14995fi
14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14999	CFLAGS="$xorg_testset_save_CFLAGS"
15000fi
15001
15002found="no"
15003
15004	if test $found = "no" ; then
15005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15007		fi
15008
15009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15011		fi
15012
15013		CFLAGS="$CFLAGS -Werror=sequence-point"
15014
15015		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15016$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15017		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15018		if eval \${$cacheid+:} false; then :
15019  $as_echo_n "(cached) " >&6
15020else
15021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022/* end confdefs.h.  */
15023int i;
15024int
15025main ()
15026{
15027
15028  ;
15029  return 0;
15030}
15031_ACEOF
15032if ac_fn_c_try_link "$LINENO"; then :
15033  eval $cacheid=yes
15034else
15035  eval $cacheid=no
15036fi
15037rm -f core conftest.err conftest.$ac_objext \
15038    conftest$ac_exeext conftest.$ac_ext
15039fi
15040
15041
15042		CFLAGS="$xorg_testset_save_CFLAGS"
15043
15044		eval supported=\$$cacheid
15045		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15046$as_echo "$supported" >&6; }
15047		if test "$supported" = "yes" ; then
15048			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15049			found="yes"
15050		fi
15051	fi
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067xorg_testset_save_CFLAGS="$CFLAGS"
15068
15069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15070	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15072$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15073if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15074  $as_echo_n "(cached) " >&6
15075else
15076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077/* end confdefs.h.  */
15078int i;
15079_ACEOF
15080if ac_fn_c_try_compile "$LINENO"; then :
15081  xorg_cv_cc_flag_unknown_warning_option=yes
15082else
15083  xorg_cv_cc_flag_unknown_warning_option=no
15084fi
15085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086fi
15087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15088$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15089	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15090	CFLAGS="$xorg_testset_save_CFLAGS"
15091fi
15092
15093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15094	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15095		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15096	fi
15097	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15099$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15100if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15101  $as_echo_n "(cached) " >&6
15102else
15103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h.  */
15105int i;
15106_ACEOF
15107if ac_fn_c_try_compile "$LINENO"; then :
15108  xorg_cv_cc_flag_unused_command_line_argument=yes
15109else
15110  xorg_cv_cc_flag_unused_command_line_argument=no
15111fi
15112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113fi
15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15115$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15117	CFLAGS="$xorg_testset_save_CFLAGS"
15118fi
15119
15120found="no"
15121
15122	if test $found = "no" ; then
15123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15125		fi
15126
15127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15129		fi
15130
15131		CFLAGS="$CFLAGS -Werror=return-type"
15132
15133		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15134$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15135		cacheid=xorg_cv_cc_flag__Werror_return_type
15136		if eval \${$cacheid+:} false; then :
15137  $as_echo_n "(cached) " >&6
15138else
15139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140/* end confdefs.h.  */
15141int i;
15142int
15143main ()
15144{
15145
15146  ;
15147  return 0;
15148}
15149_ACEOF
15150if ac_fn_c_try_link "$LINENO"; then :
15151  eval $cacheid=yes
15152else
15153  eval $cacheid=no
15154fi
15155rm -f core conftest.err conftest.$ac_objext \
15156    conftest$ac_exeext conftest.$ac_ext
15157fi
15158
15159
15160		CFLAGS="$xorg_testset_save_CFLAGS"
15161
15162		eval supported=\$$cacheid
15163		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15164$as_echo "$supported" >&6; }
15165		if test "$supported" = "yes" ; then
15166			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15167			found="yes"
15168		fi
15169	fi
15170
15171	if test $found = "no" ; then
15172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15174		fi
15175
15176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15178		fi
15179
15180		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15181
15182		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15183$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15184		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15185		if eval \${$cacheid+:} false; then :
15186  $as_echo_n "(cached) " >&6
15187else
15188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189/* end confdefs.h.  */
15190int i;
15191int
15192main ()
15193{
15194
15195  ;
15196  return 0;
15197}
15198_ACEOF
15199if ac_fn_c_try_link "$LINENO"; then :
15200  eval $cacheid=yes
15201else
15202  eval $cacheid=no
15203fi
15204rm -f core conftest.err conftest.$ac_objext \
15205    conftest$ac_exeext conftest.$ac_ext
15206fi
15207
15208
15209		CFLAGS="$xorg_testset_save_CFLAGS"
15210
15211		eval supported=\$$cacheid
15212		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15213$as_echo "$supported" >&6; }
15214		if test "$supported" = "yes" ; then
15215			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15216			found="yes"
15217		fi
15218	fi
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234xorg_testset_save_CFLAGS="$CFLAGS"
15235
15236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15237	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15238	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15239$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15240if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15241  $as_echo_n "(cached) " >&6
15242else
15243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244/* end confdefs.h.  */
15245int i;
15246_ACEOF
15247if ac_fn_c_try_compile "$LINENO"; then :
15248  xorg_cv_cc_flag_unknown_warning_option=yes
15249else
15250  xorg_cv_cc_flag_unknown_warning_option=no
15251fi
15252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253fi
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15255$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15256	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15257	CFLAGS="$xorg_testset_save_CFLAGS"
15258fi
15259
15260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15261	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15262		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15263	fi
15264	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15266$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15267if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15268  $as_echo_n "(cached) " >&6
15269else
15270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271/* end confdefs.h.  */
15272int i;
15273_ACEOF
15274if ac_fn_c_try_compile "$LINENO"; then :
15275  xorg_cv_cc_flag_unused_command_line_argument=yes
15276else
15277  xorg_cv_cc_flag_unused_command_line_argument=no
15278fi
15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280fi
15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15282$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15284	CFLAGS="$xorg_testset_save_CFLAGS"
15285fi
15286
15287found="no"
15288
15289	if test $found = "no" ; then
15290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15292		fi
15293
15294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15296		fi
15297
15298		CFLAGS="$CFLAGS -Werror=trigraphs"
15299
15300		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15301$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15302		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15303		if eval \${$cacheid+:} false; then :
15304  $as_echo_n "(cached) " >&6
15305else
15306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307/* end confdefs.h.  */
15308int i;
15309int
15310main ()
15311{
15312
15313  ;
15314  return 0;
15315}
15316_ACEOF
15317if ac_fn_c_try_link "$LINENO"; then :
15318  eval $cacheid=yes
15319else
15320  eval $cacheid=no
15321fi
15322rm -f core conftest.err conftest.$ac_objext \
15323    conftest$ac_exeext conftest.$ac_ext
15324fi
15325
15326
15327		CFLAGS="$xorg_testset_save_CFLAGS"
15328
15329		eval supported=\$$cacheid
15330		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15331$as_echo "$supported" >&6; }
15332		if test "$supported" = "yes" ; then
15333			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15334			found="yes"
15335		fi
15336	fi
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352xorg_testset_save_CFLAGS="$CFLAGS"
15353
15354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15357$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15358if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15359  $as_echo_n "(cached) " >&6
15360else
15361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362/* end confdefs.h.  */
15363int i;
15364_ACEOF
15365if ac_fn_c_try_compile "$LINENO"; then :
15366  xorg_cv_cc_flag_unknown_warning_option=yes
15367else
15368  xorg_cv_cc_flag_unknown_warning_option=no
15369fi
15370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371fi
15372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15373$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15374	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15375	CFLAGS="$xorg_testset_save_CFLAGS"
15376fi
15377
15378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15379	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15380		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15381	fi
15382	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15383	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15384$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15385if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15386  $as_echo_n "(cached) " >&6
15387else
15388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15389/* end confdefs.h.  */
15390int i;
15391_ACEOF
15392if ac_fn_c_try_compile "$LINENO"; then :
15393  xorg_cv_cc_flag_unused_command_line_argument=yes
15394else
15395  xorg_cv_cc_flag_unused_command_line_argument=no
15396fi
15397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398fi
15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15400$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15401	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15402	CFLAGS="$xorg_testset_save_CFLAGS"
15403fi
15404
15405found="no"
15406
15407	if test $found = "no" ; then
15408		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15409			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15410		fi
15411
15412		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15413			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15414		fi
15415
15416		CFLAGS="$CFLAGS -Werror=array-bounds"
15417
15418		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15419$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15420		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15421		if eval \${$cacheid+:} false; then :
15422  $as_echo_n "(cached) " >&6
15423else
15424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425/* end confdefs.h.  */
15426int i;
15427int
15428main ()
15429{
15430
15431  ;
15432  return 0;
15433}
15434_ACEOF
15435if ac_fn_c_try_link "$LINENO"; then :
15436  eval $cacheid=yes
15437else
15438  eval $cacheid=no
15439fi
15440rm -f core conftest.err conftest.$ac_objext \
15441    conftest$ac_exeext conftest.$ac_ext
15442fi
15443
15444
15445		CFLAGS="$xorg_testset_save_CFLAGS"
15446
15447		eval supported=\$$cacheid
15448		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15449$as_echo "$supported" >&6; }
15450		if test "$supported" = "yes" ; then
15451			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15452			found="yes"
15453		fi
15454	fi
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470xorg_testset_save_CFLAGS="$CFLAGS"
15471
15472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15476if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15477  $as_echo_n "(cached) " >&6
15478else
15479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480/* end confdefs.h.  */
15481int i;
15482_ACEOF
15483if ac_fn_c_try_compile "$LINENO"; then :
15484  xorg_cv_cc_flag_unknown_warning_option=yes
15485else
15486  xorg_cv_cc_flag_unknown_warning_option=no
15487fi
15488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489fi
15490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15491$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15493	CFLAGS="$xorg_testset_save_CFLAGS"
15494fi
15495
15496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15499	fi
15500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15502$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15503if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15504  $as_echo_n "(cached) " >&6
15505else
15506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507/* end confdefs.h.  */
15508int i;
15509_ACEOF
15510if ac_fn_c_try_compile "$LINENO"; then :
15511  xorg_cv_cc_flag_unused_command_line_argument=yes
15512else
15513  xorg_cv_cc_flag_unused_command_line_argument=no
15514fi
15515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15516fi
15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15518$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15520	CFLAGS="$xorg_testset_save_CFLAGS"
15521fi
15522
15523found="no"
15524
15525	if test $found = "no" ; then
15526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528		fi
15529
15530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15532		fi
15533
15534		CFLAGS="$CFLAGS -Werror=write-strings"
15535
15536		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15537$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15538		cacheid=xorg_cv_cc_flag__Werror_write_strings
15539		if eval \${$cacheid+:} false; then :
15540  $as_echo_n "(cached) " >&6
15541else
15542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543/* end confdefs.h.  */
15544int i;
15545int
15546main ()
15547{
15548
15549  ;
15550  return 0;
15551}
15552_ACEOF
15553if ac_fn_c_try_link "$LINENO"; then :
15554  eval $cacheid=yes
15555else
15556  eval $cacheid=no
15557fi
15558rm -f core conftest.err conftest.$ac_objext \
15559    conftest$ac_exeext conftest.$ac_ext
15560fi
15561
15562
15563		CFLAGS="$xorg_testset_save_CFLAGS"
15564
15565		eval supported=\$$cacheid
15566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15567$as_echo "$supported" >&6; }
15568		if test "$supported" = "yes" ; then
15569			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15570			found="yes"
15571		fi
15572	fi
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588xorg_testset_save_CFLAGS="$CFLAGS"
15589
15590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15595  $as_echo_n "(cached) " >&6
15596else
15597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598/* end confdefs.h.  */
15599int i;
15600_ACEOF
15601if ac_fn_c_try_compile "$LINENO"; then :
15602  xorg_cv_cc_flag_unknown_warning_option=yes
15603else
15604  xorg_cv_cc_flag_unknown_warning_option=no
15605fi
15606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607fi
15608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15611	CFLAGS="$xorg_testset_save_CFLAGS"
15612fi
15613
15614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15617	fi
15618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15622  $as_echo_n "(cached) " >&6
15623else
15624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625/* end confdefs.h.  */
15626int i;
15627_ACEOF
15628if ac_fn_c_try_compile "$LINENO"; then :
15629  xorg_cv_cc_flag_unused_command_line_argument=yes
15630else
15631  xorg_cv_cc_flag_unused_command_line_argument=no
15632fi
15633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634fi
15635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15638	CFLAGS="$xorg_testset_save_CFLAGS"
15639fi
15640
15641found="no"
15642
15643	if test $found = "no" ; then
15644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15646		fi
15647
15648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15650		fi
15651
15652		CFLAGS="$CFLAGS -Werror=address"
15653
15654		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15655$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15656		cacheid=xorg_cv_cc_flag__Werror_address
15657		if eval \${$cacheid+:} false; then :
15658  $as_echo_n "(cached) " >&6
15659else
15660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661/* end confdefs.h.  */
15662int i;
15663int
15664main ()
15665{
15666
15667  ;
15668  return 0;
15669}
15670_ACEOF
15671if ac_fn_c_try_link "$LINENO"; then :
15672  eval $cacheid=yes
15673else
15674  eval $cacheid=no
15675fi
15676rm -f core conftest.err conftest.$ac_objext \
15677    conftest$ac_exeext conftest.$ac_ext
15678fi
15679
15680
15681		CFLAGS="$xorg_testset_save_CFLAGS"
15682
15683		eval supported=\$$cacheid
15684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15685$as_echo "$supported" >&6; }
15686		if test "$supported" = "yes" ; then
15687			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15688			found="yes"
15689		fi
15690	fi
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706xorg_testset_save_CFLAGS="$CFLAGS"
15707
15708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15709	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15713  $as_echo_n "(cached) " >&6
15714else
15715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716/* end confdefs.h.  */
15717int i;
15718_ACEOF
15719if ac_fn_c_try_compile "$LINENO"; then :
15720  xorg_cv_cc_flag_unknown_warning_option=yes
15721else
15722  xorg_cv_cc_flag_unknown_warning_option=no
15723fi
15724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725fi
15726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15729	CFLAGS="$xorg_testset_save_CFLAGS"
15730fi
15731
15732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15735	fi
15736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15740  $as_echo_n "(cached) " >&6
15741else
15742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743/* end confdefs.h.  */
15744int i;
15745_ACEOF
15746if ac_fn_c_try_compile "$LINENO"; then :
15747  xorg_cv_cc_flag_unused_command_line_argument=yes
15748else
15749  xorg_cv_cc_flag_unused_command_line_argument=no
15750fi
15751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752fi
15753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15756	CFLAGS="$xorg_testset_save_CFLAGS"
15757fi
15758
15759found="no"
15760
15761	if test $found = "no" ; then
15762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15764		fi
15765
15766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15768		fi
15769
15770		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15771
15772		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15773$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15774		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15775		if eval \${$cacheid+:} false; then :
15776  $as_echo_n "(cached) " >&6
15777else
15778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779/* end confdefs.h.  */
15780int i;
15781int
15782main ()
15783{
15784
15785  ;
15786  return 0;
15787}
15788_ACEOF
15789if ac_fn_c_try_link "$LINENO"; then :
15790  eval $cacheid=yes
15791else
15792  eval $cacheid=no
15793fi
15794rm -f core conftest.err conftest.$ac_objext \
15795    conftest$ac_exeext conftest.$ac_ext
15796fi
15797
15798
15799		CFLAGS="$xorg_testset_save_CFLAGS"
15800
15801		eval supported=\$$cacheid
15802		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15803$as_echo "$supported" >&6; }
15804		if test "$supported" = "yes" ; then
15805			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15806			found="yes"
15807		fi
15808	fi
15809
15810	if test $found = "no" ; then
15811		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15812			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813		fi
15814
15815		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15816			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15817		fi
15818
15819		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15820
15821		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15822$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15823		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15824		if eval \${$cacheid+:} false; then :
15825  $as_echo_n "(cached) " >&6
15826else
15827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828/* end confdefs.h.  */
15829int i;
15830int
15831main ()
15832{
15833
15834  ;
15835  return 0;
15836}
15837_ACEOF
15838if ac_fn_c_try_link "$LINENO"; then :
15839  eval $cacheid=yes
15840else
15841  eval $cacheid=no
15842fi
15843rm -f core conftest.err conftest.$ac_objext \
15844    conftest$ac_exeext conftest.$ac_ext
15845fi
15846
15847
15848		CFLAGS="$xorg_testset_save_CFLAGS"
15849
15850		eval supported=\$$cacheid
15851		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15852$as_echo "$supported" >&6; }
15853		if test "$supported" = "yes" ; then
15854			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15855			found="yes"
15856		fi
15857	fi
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873xorg_testset_save_CFLAGS="$CFLAGS"
15874
15875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15880  $as_echo_n "(cached) " >&6
15881else
15882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883/* end confdefs.h.  */
15884int i;
15885_ACEOF
15886if ac_fn_c_try_compile "$LINENO"; then :
15887  xorg_cv_cc_flag_unknown_warning_option=yes
15888else
15889  xorg_cv_cc_flag_unknown_warning_option=no
15890fi
15891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892fi
15893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15895	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15896	CFLAGS="$xorg_testset_save_CFLAGS"
15897fi
15898
15899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15900	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15901		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15902	fi
15903	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15907  $as_echo_n "(cached) " >&6
15908else
15909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15910/* end confdefs.h.  */
15911int i;
15912_ACEOF
15913if ac_fn_c_try_compile "$LINENO"; then :
15914  xorg_cv_cc_flag_unused_command_line_argument=yes
15915else
15916  xorg_cv_cc_flag_unused_command_line_argument=no
15917fi
15918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919fi
15920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15922	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15923	CFLAGS="$xorg_testset_save_CFLAGS"
15924fi
15925
15926found="no"
15927
15928	if test $found = "no" ; then
15929		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15930			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15931		fi
15932
15933		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15934			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15935		fi
15936
15937		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15938
15939		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15940$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15941		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15942		if eval \${$cacheid+:} false; then :
15943  $as_echo_n "(cached) " >&6
15944else
15945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946/* end confdefs.h.  */
15947int i;
15948int
15949main ()
15950{
15951
15952  ;
15953  return 0;
15954}
15955_ACEOF
15956if ac_fn_c_try_link "$LINENO"; then :
15957  eval $cacheid=yes
15958else
15959  eval $cacheid=no
15960fi
15961rm -f core conftest.err conftest.$ac_objext \
15962    conftest$ac_exeext conftest.$ac_ext
15963fi
15964
15965
15966		CFLAGS="$xorg_testset_save_CFLAGS"
15967
15968		eval supported=\$$cacheid
15969		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15970$as_echo "$supported" >&6; }
15971		if test "$supported" = "yes" ; then
15972			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15973			found="yes"
15974		fi
15975	fi
15976
15977 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15978else
15979{ $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
15980$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;}
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994xorg_testset_save_CFLAGS="$CFLAGS"
15995
15996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15997	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15999$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16000if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16001  $as_echo_n "(cached) " >&6
16002else
16003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004/* end confdefs.h.  */
16005int i;
16006_ACEOF
16007if ac_fn_c_try_compile "$LINENO"; then :
16008  xorg_cv_cc_flag_unknown_warning_option=yes
16009else
16010  xorg_cv_cc_flag_unknown_warning_option=no
16011fi
16012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16013fi
16014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16015$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16016	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16017	CFLAGS="$xorg_testset_save_CFLAGS"
16018fi
16019
16020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16021	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16022		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16023	fi
16024	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16026$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16027if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16028  $as_echo_n "(cached) " >&6
16029else
16030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031/* end confdefs.h.  */
16032int i;
16033_ACEOF
16034if ac_fn_c_try_compile "$LINENO"; then :
16035  xorg_cv_cc_flag_unused_command_line_argument=yes
16036else
16037  xorg_cv_cc_flag_unused_command_line_argument=no
16038fi
16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040fi
16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16042$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16044	CFLAGS="$xorg_testset_save_CFLAGS"
16045fi
16046
16047found="no"
16048
16049	if test $found = "no" ; then
16050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16052		fi
16053
16054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16056		fi
16057
16058		CFLAGS="$CFLAGS -Wimplicit"
16059
16060		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16061$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16062		cacheid=xorg_cv_cc_flag__Wimplicit
16063		if eval \${$cacheid+:} false; then :
16064  $as_echo_n "(cached) " >&6
16065else
16066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16067/* end confdefs.h.  */
16068int i;
16069int
16070main ()
16071{
16072
16073  ;
16074  return 0;
16075}
16076_ACEOF
16077if ac_fn_c_try_link "$LINENO"; then :
16078  eval $cacheid=yes
16079else
16080  eval $cacheid=no
16081fi
16082rm -f core conftest.err conftest.$ac_objext \
16083    conftest$ac_exeext conftest.$ac_ext
16084fi
16085
16086
16087		CFLAGS="$xorg_testset_save_CFLAGS"
16088
16089		eval supported=\$$cacheid
16090		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16091$as_echo "$supported" >&6; }
16092		if test "$supported" = "yes" ; then
16093			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16094			found="yes"
16095		fi
16096	fi
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112xorg_testset_save_CFLAGS="$CFLAGS"
16113
16114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16115	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16119  $as_echo_n "(cached) " >&6
16120else
16121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122/* end confdefs.h.  */
16123int i;
16124_ACEOF
16125if ac_fn_c_try_compile "$LINENO"; then :
16126  xorg_cv_cc_flag_unknown_warning_option=yes
16127else
16128  xorg_cv_cc_flag_unknown_warning_option=no
16129fi
16130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16131fi
16132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16134	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16135	CFLAGS="$xorg_testset_save_CFLAGS"
16136fi
16137
16138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16139	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16140		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16141	fi
16142	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16146  $as_echo_n "(cached) " >&6
16147else
16148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149/* end confdefs.h.  */
16150int i;
16151_ACEOF
16152if ac_fn_c_try_compile "$LINENO"; then :
16153  xorg_cv_cc_flag_unused_command_line_argument=yes
16154else
16155  xorg_cv_cc_flag_unused_command_line_argument=no
16156fi
16157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158fi
16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16162	CFLAGS="$xorg_testset_save_CFLAGS"
16163fi
16164
16165found="no"
16166
16167	if test $found = "no" ; then
16168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16170		fi
16171
16172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16174		fi
16175
16176		CFLAGS="$CFLAGS -Wnonnull"
16177
16178		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16179$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16180		cacheid=xorg_cv_cc_flag__Wnonnull
16181		if eval \${$cacheid+:} false; then :
16182  $as_echo_n "(cached) " >&6
16183else
16184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185/* end confdefs.h.  */
16186int i;
16187int
16188main ()
16189{
16190
16191  ;
16192  return 0;
16193}
16194_ACEOF
16195if ac_fn_c_try_link "$LINENO"; then :
16196  eval $cacheid=yes
16197else
16198  eval $cacheid=no
16199fi
16200rm -f core conftest.err conftest.$ac_objext \
16201    conftest$ac_exeext conftest.$ac_ext
16202fi
16203
16204
16205		CFLAGS="$xorg_testset_save_CFLAGS"
16206
16207		eval supported=\$$cacheid
16208		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16209$as_echo "$supported" >&6; }
16210		if test "$supported" = "yes" ; then
16211			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16212			found="yes"
16213		fi
16214	fi
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230xorg_testset_save_CFLAGS="$CFLAGS"
16231
16232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16237  $as_echo_n "(cached) " >&6
16238else
16239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240/* end confdefs.h.  */
16241int i;
16242_ACEOF
16243if ac_fn_c_try_compile "$LINENO"; then :
16244  xorg_cv_cc_flag_unknown_warning_option=yes
16245else
16246  xorg_cv_cc_flag_unknown_warning_option=no
16247fi
16248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249fi
16250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16252	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16253	CFLAGS="$xorg_testset_save_CFLAGS"
16254fi
16255
16256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16257	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16259	fi
16260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16264  $as_echo_n "(cached) " >&6
16265else
16266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267/* end confdefs.h.  */
16268int i;
16269_ACEOF
16270if ac_fn_c_try_compile "$LINENO"; then :
16271  xorg_cv_cc_flag_unused_command_line_argument=yes
16272else
16273  xorg_cv_cc_flag_unused_command_line_argument=no
16274fi
16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276fi
16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16279	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16280	CFLAGS="$xorg_testset_save_CFLAGS"
16281fi
16282
16283found="no"
16284
16285	if test $found = "no" ; then
16286		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16287			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16288		fi
16289
16290		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16291			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16292		fi
16293
16294		CFLAGS="$CFLAGS -Winit-self"
16295
16296		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16297$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16298		cacheid=xorg_cv_cc_flag__Winit_self
16299		if eval \${$cacheid+:} false; then :
16300  $as_echo_n "(cached) " >&6
16301else
16302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303/* end confdefs.h.  */
16304int i;
16305int
16306main ()
16307{
16308
16309  ;
16310  return 0;
16311}
16312_ACEOF
16313if ac_fn_c_try_link "$LINENO"; then :
16314  eval $cacheid=yes
16315else
16316  eval $cacheid=no
16317fi
16318rm -f core conftest.err conftest.$ac_objext \
16319    conftest$ac_exeext conftest.$ac_ext
16320fi
16321
16322
16323		CFLAGS="$xorg_testset_save_CFLAGS"
16324
16325		eval supported=\$$cacheid
16326		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16327$as_echo "$supported" >&6; }
16328		if test "$supported" = "yes" ; then
16329			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16330			found="yes"
16331		fi
16332	fi
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348xorg_testset_save_CFLAGS="$CFLAGS"
16349
16350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16355  $as_echo_n "(cached) " >&6
16356else
16357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16358/* end confdefs.h.  */
16359int i;
16360_ACEOF
16361if ac_fn_c_try_compile "$LINENO"; then :
16362  xorg_cv_cc_flag_unknown_warning_option=yes
16363else
16364  xorg_cv_cc_flag_unknown_warning_option=no
16365fi
16366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367fi
16368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16371	CFLAGS="$xorg_testset_save_CFLAGS"
16372fi
16373
16374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16377	fi
16378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16382  $as_echo_n "(cached) " >&6
16383else
16384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385/* end confdefs.h.  */
16386int i;
16387_ACEOF
16388if ac_fn_c_try_compile "$LINENO"; then :
16389  xorg_cv_cc_flag_unused_command_line_argument=yes
16390else
16391  xorg_cv_cc_flag_unused_command_line_argument=no
16392fi
16393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394fi
16395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16397	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16398	CFLAGS="$xorg_testset_save_CFLAGS"
16399fi
16400
16401found="no"
16402
16403	if test $found = "no" ; then
16404		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16406		fi
16407
16408		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16410		fi
16411
16412		CFLAGS="$CFLAGS -Wmain"
16413
16414		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16415$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16416		cacheid=xorg_cv_cc_flag__Wmain
16417		if eval \${$cacheid+:} false; then :
16418  $as_echo_n "(cached) " >&6
16419else
16420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421/* end confdefs.h.  */
16422int i;
16423int
16424main ()
16425{
16426
16427  ;
16428  return 0;
16429}
16430_ACEOF
16431if ac_fn_c_try_link "$LINENO"; then :
16432  eval $cacheid=yes
16433else
16434  eval $cacheid=no
16435fi
16436rm -f core conftest.err conftest.$ac_objext \
16437    conftest$ac_exeext conftest.$ac_ext
16438fi
16439
16440
16441		CFLAGS="$xorg_testset_save_CFLAGS"
16442
16443		eval supported=\$$cacheid
16444		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16445$as_echo "$supported" >&6; }
16446		if test "$supported" = "yes" ; then
16447			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16448			found="yes"
16449		fi
16450	fi
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466xorg_testset_save_CFLAGS="$CFLAGS"
16467
16468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16473  $as_echo_n "(cached) " >&6
16474else
16475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476/* end confdefs.h.  */
16477int i;
16478_ACEOF
16479if ac_fn_c_try_compile "$LINENO"; then :
16480  xorg_cv_cc_flag_unknown_warning_option=yes
16481else
16482  xorg_cv_cc_flag_unknown_warning_option=no
16483fi
16484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485fi
16486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16488	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16489	CFLAGS="$xorg_testset_save_CFLAGS"
16490fi
16491
16492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16493	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16494		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16495	fi
16496	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16500  $as_echo_n "(cached) " >&6
16501else
16502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503/* end confdefs.h.  */
16504int i;
16505_ACEOF
16506if ac_fn_c_try_compile "$LINENO"; then :
16507  xorg_cv_cc_flag_unused_command_line_argument=yes
16508else
16509  xorg_cv_cc_flag_unused_command_line_argument=no
16510fi
16511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512fi
16513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16516	CFLAGS="$xorg_testset_save_CFLAGS"
16517fi
16518
16519found="no"
16520
16521	if test $found = "no" ; then
16522		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16524		fi
16525
16526		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16528		fi
16529
16530		CFLAGS="$CFLAGS -Wmissing-braces"
16531
16532		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16533$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16534		cacheid=xorg_cv_cc_flag__Wmissing_braces
16535		if eval \${$cacheid+:} false; then :
16536  $as_echo_n "(cached) " >&6
16537else
16538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539/* end confdefs.h.  */
16540int i;
16541int
16542main ()
16543{
16544
16545  ;
16546  return 0;
16547}
16548_ACEOF
16549if ac_fn_c_try_link "$LINENO"; then :
16550  eval $cacheid=yes
16551else
16552  eval $cacheid=no
16553fi
16554rm -f core conftest.err conftest.$ac_objext \
16555    conftest$ac_exeext conftest.$ac_ext
16556fi
16557
16558
16559		CFLAGS="$xorg_testset_save_CFLAGS"
16560
16561		eval supported=\$$cacheid
16562		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16563$as_echo "$supported" >&6; }
16564		if test "$supported" = "yes" ; then
16565			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16566			found="yes"
16567		fi
16568	fi
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584xorg_testset_save_CFLAGS="$CFLAGS"
16585
16586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16587	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16591  $as_echo_n "(cached) " >&6
16592else
16593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594/* end confdefs.h.  */
16595int i;
16596_ACEOF
16597if ac_fn_c_try_compile "$LINENO"; then :
16598  xorg_cv_cc_flag_unknown_warning_option=yes
16599else
16600  xorg_cv_cc_flag_unknown_warning_option=no
16601fi
16602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603fi
16604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16606	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16607	CFLAGS="$xorg_testset_save_CFLAGS"
16608fi
16609
16610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16611	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16613	fi
16614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16618  $as_echo_n "(cached) " >&6
16619else
16620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621/* end confdefs.h.  */
16622int i;
16623_ACEOF
16624if ac_fn_c_try_compile "$LINENO"; then :
16625  xorg_cv_cc_flag_unused_command_line_argument=yes
16626else
16627  xorg_cv_cc_flag_unused_command_line_argument=no
16628fi
16629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16630fi
16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16633	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16634	CFLAGS="$xorg_testset_save_CFLAGS"
16635fi
16636
16637found="no"
16638
16639	if test $found = "no" ; then
16640		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16642		fi
16643
16644		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16646		fi
16647
16648		CFLAGS="$CFLAGS -Wsequence-point"
16649
16650		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16651$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16652		cacheid=xorg_cv_cc_flag__Wsequence_point
16653		if eval \${$cacheid+:} false; then :
16654  $as_echo_n "(cached) " >&6
16655else
16656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657/* end confdefs.h.  */
16658int i;
16659int
16660main ()
16661{
16662
16663  ;
16664  return 0;
16665}
16666_ACEOF
16667if ac_fn_c_try_link "$LINENO"; then :
16668  eval $cacheid=yes
16669else
16670  eval $cacheid=no
16671fi
16672rm -f core conftest.err conftest.$ac_objext \
16673    conftest$ac_exeext conftest.$ac_ext
16674fi
16675
16676
16677		CFLAGS="$xorg_testset_save_CFLAGS"
16678
16679		eval supported=\$$cacheid
16680		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16681$as_echo "$supported" >&6; }
16682		if test "$supported" = "yes" ; then
16683			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16684			found="yes"
16685		fi
16686	fi
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702xorg_testset_save_CFLAGS="$CFLAGS"
16703
16704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16705	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16709  $as_echo_n "(cached) " >&6
16710else
16711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712/* end confdefs.h.  */
16713int i;
16714_ACEOF
16715if ac_fn_c_try_compile "$LINENO"; then :
16716  xorg_cv_cc_flag_unknown_warning_option=yes
16717else
16718  xorg_cv_cc_flag_unknown_warning_option=no
16719fi
16720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721fi
16722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16724	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16725	CFLAGS="$xorg_testset_save_CFLAGS"
16726fi
16727
16728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16729	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16730		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16731	fi
16732	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16736  $as_echo_n "(cached) " >&6
16737else
16738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739/* end confdefs.h.  */
16740int i;
16741_ACEOF
16742if ac_fn_c_try_compile "$LINENO"; then :
16743  xorg_cv_cc_flag_unused_command_line_argument=yes
16744else
16745  xorg_cv_cc_flag_unused_command_line_argument=no
16746fi
16747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16748fi
16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16751	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16752	CFLAGS="$xorg_testset_save_CFLAGS"
16753fi
16754
16755found="no"
16756
16757	if test $found = "no" ; then
16758		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16759			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16760		fi
16761
16762		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16763			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16764		fi
16765
16766		CFLAGS="$CFLAGS -Wreturn-type"
16767
16768		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16769$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16770		cacheid=xorg_cv_cc_flag__Wreturn_type
16771		if eval \${$cacheid+:} false; then :
16772  $as_echo_n "(cached) " >&6
16773else
16774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775/* end confdefs.h.  */
16776int i;
16777int
16778main ()
16779{
16780
16781  ;
16782  return 0;
16783}
16784_ACEOF
16785if ac_fn_c_try_link "$LINENO"; then :
16786  eval $cacheid=yes
16787else
16788  eval $cacheid=no
16789fi
16790rm -f core conftest.err conftest.$ac_objext \
16791    conftest$ac_exeext conftest.$ac_ext
16792fi
16793
16794
16795		CFLAGS="$xorg_testset_save_CFLAGS"
16796
16797		eval supported=\$$cacheid
16798		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16799$as_echo "$supported" >&6; }
16800		if test "$supported" = "yes" ; then
16801			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16802			found="yes"
16803		fi
16804	fi
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820xorg_testset_save_CFLAGS="$CFLAGS"
16821
16822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16823	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16827  $as_echo_n "(cached) " >&6
16828else
16829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830/* end confdefs.h.  */
16831int i;
16832_ACEOF
16833if ac_fn_c_try_compile "$LINENO"; then :
16834  xorg_cv_cc_flag_unknown_warning_option=yes
16835else
16836  xorg_cv_cc_flag_unknown_warning_option=no
16837fi
16838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16839fi
16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16843	CFLAGS="$xorg_testset_save_CFLAGS"
16844fi
16845
16846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16849	fi
16850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16854  $as_echo_n "(cached) " >&6
16855else
16856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857/* end confdefs.h.  */
16858int i;
16859_ACEOF
16860if ac_fn_c_try_compile "$LINENO"; then :
16861  xorg_cv_cc_flag_unused_command_line_argument=yes
16862else
16863  xorg_cv_cc_flag_unused_command_line_argument=no
16864fi
16865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866fi
16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16869	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16870	CFLAGS="$xorg_testset_save_CFLAGS"
16871fi
16872
16873found="no"
16874
16875	if test $found = "no" ; then
16876		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16877			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16878		fi
16879
16880		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16881			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16882		fi
16883
16884		CFLAGS="$CFLAGS -Wtrigraphs"
16885
16886		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16887$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16888		cacheid=xorg_cv_cc_flag__Wtrigraphs
16889		if eval \${$cacheid+:} false; then :
16890  $as_echo_n "(cached) " >&6
16891else
16892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893/* end confdefs.h.  */
16894int i;
16895int
16896main ()
16897{
16898
16899  ;
16900  return 0;
16901}
16902_ACEOF
16903if ac_fn_c_try_link "$LINENO"; then :
16904  eval $cacheid=yes
16905else
16906  eval $cacheid=no
16907fi
16908rm -f core conftest.err conftest.$ac_objext \
16909    conftest$ac_exeext conftest.$ac_ext
16910fi
16911
16912
16913		CFLAGS="$xorg_testset_save_CFLAGS"
16914
16915		eval supported=\$$cacheid
16916		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16917$as_echo "$supported" >&6; }
16918		if test "$supported" = "yes" ; then
16919			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16920			found="yes"
16921		fi
16922	fi
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938xorg_testset_save_CFLAGS="$CFLAGS"
16939
16940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16945  $as_echo_n "(cached) " >&6
16946else
16947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948/* end confdefs.h.  */
16949int i;
16950_ACEOF
16951if ac_fn_c_try_compile "$LINENO"; then :
16952  xorg_cv_cc_flag_unknown_warning_option=yes
16953else
16954  xorg_cv_cc_flag_unknown_warning_option=no
16955fi
16956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16957fi
16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16961	CFLAGS="$xorg_testset_save_CFLAGS"
16962fi
16963
16964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16967	fi
16968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16972  $as_echo_n "(cached) " >&6
16973else
16974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975/* end confdefs.h.  */
16976int i;
16977_ACEOF
16978if ac_fn_c_try_compile "$LINENO"; then :
16979  xorg_cv_cc_flag_unused_command_line_argument=yes
16980else
16981  xorg_cv_cc_flag_unused_command_line_argument=no
16982fi
16983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984fi
16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16988	CFLAGS="$xorg_testset_save_CFLAGS"
16989fi
16990
16991found="no"
16992
16993	if test $found = "no" ; then
16994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16996		fi
16997
16998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17000		fi
17001
17002		CFLAGS="$CFLAGS -Warray-bounds"
17003
17004		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17005$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17006		cacheid=xorg_cv_cc_flag__Warray_bounds
17007		if eval \${$cacheid+:} false; then :
17008  $as_echo_n "(cached) " >&6
17009else
17010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011/* end confdefs.h.  */
17012int i;
17013int
17014main ()
17015{
17016
17017  ;
17018  return 0;
17019}
17020_ACEOF
17021if ac_fn_c_try_link "$LINENO"; then :
17022  eval $cacheid=yes
17023else
17024  eval $cacheid=no
17025fi
17026rm -f core conftest.err conftest.$ac_objext \
17027    conftest$ac_exeext conftest.$ac_ext
17028fi
17029
17030
17031		CFLAGS="$xorg_testset_save_CFLAGS"
17032
17033		eval supported=\$$cacheid
17034		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17035$as_echo "$supported" >&6; }
17036		if test "$supported" = "yes" ; then
17037			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17038			found="yes"
17039		fi
17040	fi
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056xorg_testset_save_CFLAGS="$CFLAGS"
17057
17058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17059	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17063  $as_echo_n "(cached) " >&6
17064else
17065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066/* end confdefs.h.  */
17067int i;
17068_ACEOF
17069if ac_fn_c_try_compile "$LINENO"; then :
17070  xorg_cv_cc_flag_unknown_warning_option=yes
17071else
17072  xorg_cv_cc_flag_unknown_warning_option=no
17073fi
17074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17075fi
17076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17078	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17079	CFLAGS="$xorg_testset_save_CFLAGS"
17080fi
17081
17082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17083	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17084		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17085	fi
17086	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17090  $as_echo_n "(cached) " >&6
17091else
17092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093/* end confdefs.h.  */
17094int i;
17095_ACEOF
17096if ac_fn_c_try_compile "$LINENO"; then :
17097  xorg_cv_cc_flag_unused_command_line_argument=yes
17098else
17099  xorg_cv_cc_flag_unused_command_line_argument=no
17100fi
17101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102fi
17103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17106	CFLAGS="$xorg_testset_save_CFLAGS"
17107fi
17108
17109found="no"
17110
17111	if test $found = "no" ; then
17112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17114		fi
17115
17116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17118		fi
17119
17120		CFLAGS="$CFLAGS -Wwrite-strings"
17121
17122		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17123$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17124		cacheid=xorg_cv_cc_flag__Wwrite_strings
17125		if eval \${$cacheid+:} false; then :
17126  $as_echo_n "(cached) " >&6
17127else
17128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129/* end confdefs.h.  */
17130int i;
17131int
17132main ()
17133{
17134
17135  ;
17136  return 0;
17137}
17138_ACEOF
17139if ac_fn_c_try_link "$LINENO"; then :
17140  eval $cacheid=yes
17141else
17142  eval $cacheid=no
17143fi
17144rm -f core conftest.err conftest.$ac_objext \
17145    conftest$ac_exeext conftest.$ac_ext
17146fi
17147
17148
17149		CFLAGS="$xorg_testset_save_CFLAGS"
17150
17151		eval supported=\$$cacheid
17152		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17153$as_echo "$supported" >&6; }
17154		if test "$supported" = "yes" ; then
17155			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17156			found="yes"
17157		fi
17158	fi
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174xorg_testset_save_CFLAGS="$CFLAGS"
17175
17176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17177	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17181  $as_echo_n "(cached) " >&6
17182else
17183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184/* end confdefs.h.  */
17185int i;
17186_ACEOF
17187if ac_fn_c_try_compile "$LINENO"; then :
17188  xorg_cv_cc_flag_unknown_warning_option=yes
17189else
17190  xorg_cv_cc_flag_unknown_warning_option=no
17191fi
17192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193fi
17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17197	CFLAGS="$xorg_testset_save_CFLAGS"
17198fi
17199
17200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17203	fi
17204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17208  $as_echo_n "(cached) " >&6
17209else
17210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211/* end confdefs.h.  */
17212int i;
17213_ACEOF
17214if ac_fn_c_try_compile "$LINENO"; then :
17215  xorg_cv_cc_flag_unused_command_line_argument=yes
17216else
17217  xorg_cv_cc_flag_unused_command_line_argument=no
17218fi
17219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17220fi
17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17224	CFLAGS="$xorg_testset_save_CFLAGS"
17225fi
17226
17227found="no"
17228
17229	if test $found = "no" ; then
17230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17232		fi
17233
17234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17236		fi
17237
17238		CFLAGS="$CFLAGS -Waddress"
17239
17240		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17241$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17242		cacheid=xorg_cv_cc_flag__Waddress
17243		if eval \${$cacheid+:} false; then :
17244  $as_echo_n "(cached) " >&6
17245else
17246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247/* end confdefs.h.  */
17248int i;
17249int
17250main ()
17251{
17252
17253  ;
17254  return 0;
17255}
17256_ACEOF
17257if ac_fn_c_try_link "$LINENO"; then :
17258  eval $cacheid=yes
17259else
17260  eval $cacheid=no
17261fi
17262rm -f core conftest.err conftest.$ac_objext \
17263    conftest$ac_exeext conftest.$ac_ext
17264fi
17265
17266
17267		CFLAGS="$xorg_testset_save_CFLAGS"
17268
17269		eval supported=\$$cacheid
17270		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17271$as_echo "$supported" >&6; }
17272		if test "$supported" = "yes" ; then
17273			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17274			found="yes"
17275		fi
17276	fi
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292xorg_testset_save_CFLAGS="$CFLAGS"
17293
17294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17299  $as_echo_n "(cached) " >&6
17300else
17301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302/* end confdefs.h.  */
17303int i;
17304_ACEOF
17305if ac_fn_c_try_compile "$LINENO"; then :
17306  xorg_cv_cc_flag_unknown_warning_option=yes
17307else
17308  xorg_cv_cc_flag_unknown_warning_option=no
17309fi
17310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17311fi
17312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17315	CFLAGS="$xorg_testset_save_CFLAGS"
17316fi
17317
17318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17321	fi
17322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17326  $as_echo_n "(cached) " >&6
17327else
17328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329/* end confdefs.h.  */
17330int i;
17331_ACEOF
17332if ac_fn_c_try_compile "$LINENO"; then :
17333  xorg_cv_cc_flag_unused_command_line_argument=yes
17334else
17335  xorg_cv_cc_flag_unused_command_line_argument=no
17336fi
17337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17338fi
17339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17342	CFLAGS="$xorg_testset_save_CFLAGS"
17343fi
17344
17345found="no"
17346
17347	if test $found = "no" ; then
17348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17350		fi
17351
17352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17354		fi
17355
17356		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17357
17358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17359$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17360		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17361		if eval \${$cacheid+:} false; then :
17362  $as_echo_n "(cached) " >&6
17363else
17364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365/* end confdefs.h.  */
17366int i;
17367int
17368main ()
17369{
17370
17371  ;
17372  return 0;
17373}
17374_ACEOF
17375if ac_fn_c_try_link "$LINENO"; then :
17376  eval $cacheid=yes
17377else
17378  eval $cacheid=no
17379fi
17380rm -f core conftest.err conftest.$ac_objext \
17381    conftest$ac_exeext conftest.$ac_ext
17382fi
17383
17384
17385		CFLAGS="$xorg_testset_save_CFLAGS"
17386
17387		eval supported=\$$cacheid
17388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17389$as_echo "$supported" >&6; }
17390		if test "$supported" = "yes" ; then
17391			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17392			found="yes"
17393		fi
17394	fi
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410xorg_testset_save_CFLAGS="$CFLAGS"
17411
17412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17417  $as_echo_n "(cached) " >&6
17418else
17419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420/* end confdefs.h.  */
17421int i;
17422_ACEOF
17423if ac_fn_c_try_compile "$LINENO"; then :
17424  xorg_cv_cc_flag_unknown_warning_option=yes
17425else
17426  xorg_cv_cc_flag_unknown_warning_option=no
17427fi
17428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17429fi
17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17433	CFLAGS="$xorg_testset_save_CFLAGS"
17434fi
17435
17436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17439	fi
17440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17444  $as_echo_n "(cached) " >&6
17445else
17446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447/* end confdefs.h.  */
17448int i;
17449_ACEOF
17450if ac_fn_c_try_compile "$LINENO"; then :
17451  xorg_cv_cc_flag_unused_command_line_argument=yes
17452else
17453  xorg_cv_cc_flag_unused_command_line_argument=no
17454fi
17455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17456fi
17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17460	CFLAGS="$xorg_testset_save_CFLAGS"
17461fi
17462
17463found="no"
17464
17465	if test $found = "no" ; then
17466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17468		fi
17469
17470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17472		fi
17473
17474		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17475
17476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17477$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17478		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17479		if eval \${$cacheid+:} false; then :
17480  $as_echo_n "(cached) " >&6
17481else
17482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483/* end confdefs.h.  */
17484int i;
17485int
17486main ()
17487{
17488
17489  ;
17490  return 0;
17491}
17492_ACEOF
17493if ac_fn_c_try_link "$LINENO"; then :
17494  eval $cacheid=yes
17495else
17496  eval $cacheid=no
17497fi
17498rm -f core conftest.err conftest.$ac_objext \
17499    conftest$ac_exeext conftest.$ac_ext
17500fi
17501
17502
17503		CFLAGS="$xorg_testset_save_CFLAGS"
17504
17505		eval supported=\$$cacheid
17506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17507$as_echo "$supported" >&6; }
17508		if test "$supported" = "yes" ; then
17509			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17510			found="yes"
17511		fi
17512	fi
17513
17514
17515fi
17516
17517
17518
17519
17520
17521
17522
17523		CWARNFLAGS="$BASE_CFLAGS"
17524		if  test "x$GCC" = xyes ; then
17525		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17526		fi
17527
17528
17529
17530
17531
17532
17533
17534
17535# Check whether --enable-strict-compilation was given.
17536if test "${enable_strict_compilation+set}" = set; then :
17537  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17538else
17539  STRICT_COMPILE=no
17540fi
17541
17542
17543
17544
17545
17546
17547STRICT_CFLAGS=""
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561xorg_testset_save_CFLAGS="$CFLAGS"
17562
17563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17566$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17567if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17568  $as_echo_n "(cached) " >&6
17569else
17570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571/* end confdefs.h.  */
17572int i;
17573_ACEOF
17574if ac_fn_c_try_compile "$LINENO"; then :
17575  xorg_cv_cc_flag_unknown_warning_option=yes
17576else
17577  xorg_cv_cc_flag_unknown_warning_option=no
17578fi
17579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580fi
17581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17582$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17584	CFLAGS="$xorg_testset_save_CFLAGS"
17585fi
17586
17587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17590	fi
17591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17593$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17594if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17595  $as_echo_n "(cached) " >&6
17596else
17597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598/* end confdefs.h.  */
17599int i;
17600_ACEOF
17601if ac_fn_c_try_compile "$LINENO"; then :
17602  xorg_cv_cc_flag_unused_command_line_argument=yes
17603else
17604  xorg_cv_cc_flag_unused_command_line_argument=no
17605fi
17606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17607fi
17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17609$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17610	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17611	CFLAGS="$xorg_testset_save_CFLAGS"
17612fi
17613
17614found="no"
17615
17616	if test $found = "no" ; then
17617		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17618			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17619		fi
17620
17621		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17622			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17623		fi
17624
17625		CFLAGS="$CFLAGS -pedantic"
17626
17627		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17628$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17629		cacheid=xorg_cv_cc_flag__pedantic
17630		if eval \${$cacheid+:} false; then :
17631  $as_echo_n "(cached) " >&6
17632else
17633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634/* end confdefs.h.  */
17635int i;
17636int
17637main ()
17638{
17639
17640  ;
17641  return 0;
17642}
17643_ACEOF
17644if ac_fn_c_try_link "$LINENO"; then :
17645  eval $cacheid=yes
17646else
17647  eval $cacheid=no
17648fi
17649rm -f core conftest.err conftest.$ac_objext \
17650    conftest$ac_exeext conftest.$ac_ext
17651fi
17652
17653
17654		CFLAGS="$xorg_testset_save_CFLAGS"
17655
17656		eval supported=\$$cacheid
17657		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17658$as_echo "$supported" >&6; }
17659		if test "$supported" = "yes" ; then
17660			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17661			found="yes"
17662		fi
17663	fi
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679xorg_testset_save_CFLAGS="$CFLAGS"
17680
17681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17686  $as_echo_n "(cached) " >&6
17687else
17688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689/* end confdefs.h.  */
17690int i;
17691_ACEOF
17692if ac_fn_c_try_compile "$LINENO"; then :
17693  xorg_cv_cc_flag_unknown_warning_option=yes
17694else
17695  xorg_cv_cc_flag_unknown_warning_option=no
17696fi
17697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698fi
17699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17702	CFLAGS="$xorg_testset_save_CFLAGS"
17703fi
17704
17705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17708	fi
17709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17713  $as_echo_n "(cached) " >&6
17714else
17715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716/* end confdefs.h.  */
17717int i;
17718_ACEOF
17719if ac_fn_c_try_compile "$LINENO"; then :
17720  xorg_cv_cc_flag_unused_command_line_argument=yes
17721else
17722  xorg_cv_cc_flag_unused_command_line_argument=no
17723fi
17724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17725fi
17726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17728	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17729	CFLAGS="$xorg_testset_save_CFLAGS"
17730fi
17731
17732found="no"
17733
17734	if test $found = "no" ; then
17735		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17737		fi
17738
17739		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17741		fi
17742
17743		CFLAGS="$CFLAGS -Werror"
17744
17745		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17746$as_echo_n "checking if $CC supports -Werror... " >&6; }
17747		cacheid=xorg_cv_cc_flag__Werror
17748		if eval \${$cacheid+:} false; then :
17749  $as_echo_n "(cached) " >&6
17750else
17751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752/* end confdefs.h.  */
17753int i;
17754int
17755main ()
17756{
17757
17758  ;
17759  return 0;
17760}
17761_ACEOF
17762if ac_fn_c_try_link "$LINENO"; then :
17763  eval $cacheid=yes
17764else
17765  eval $cacheid=no
17766fi
17767rm -f core conftest.err conftest.$ac_objext \
17768    conftest$ac_exeext conftest.$ac_ext
17769fi
17770
17771
17772		CFLAGS="$xorg_testset_save_CFLAGS"
17773
17774		eval supported=\$$cacheid
17775		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17776$as_echo "$supported" >&6; }
17777		if test "$supported" = "yes" ; then
17778			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17779			found="yes"
17780		fi
17781	fi
17782
17783	if test $found = "no" ; then
17784		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17786		fi
17787
17788		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17790		fi
17791
17792		CFLAGS="$CFLAGS -errwarn"
17793
17794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17795$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17796		cacheid=xorg_cv_cc_flag__errwarn
17797		if eval \${$cacheid+:} false; then :
17798  $as_echo_n "(cached) " >&6
17799else
17800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801/* end confdefs.h.  */
17802int i;
17803int
17804main ()
17805{
17806
17807  ;
17808  return 0;
17809}
17810_ACEOF
17811if ac_fn_c_try_link "$LINENO"; then :
17812  eval $cacheid=yes
17813else
17814  eval $cacheid=no
17815fi
17816rm -f core conftest.err conftest.$ac_objext \
17817    conftest$ac_exeext conftest.$ac_ext
17818fi
17819
17820
17821		CFLAGS="$xorg_testset_save_CFLAGS"
17822
17823		eval supported=\$$cacheid
17824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17825$as_echo "$supported" >&6; }
17826		if test "$supported" = "yes" ; then
17827			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17828			found="yes"
17829		fi
17830	fi
17831
17832
17833
17834# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17835# activate it with -Werror, so we add it here explicitly.
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849xorg_testset_save_CFLAGS="$CFLAGS"
17850
17851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17854$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17855if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17856  $as_echo_n "(cached) " >&6
17857else
17858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859/* end confdefs.h.  */
17860int i;
17861_ACEOF
17862if ac_fn_c_try_compile "$LINENO"; then :
17863  xorg_cv_cc_flag_unknown_warning_option=yes
17864else
17865  xorg_cv_cc_flag_unknown_warning_option=no
17866fi
17867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17868fi
17869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17870$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17872	CFLAGS="$xorg_testset_save_CFLAGS"
17873fi
17874
17875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17878	fi
17879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17881$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17882if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17883  $as_echo_n "(cached) " >&6
17884else
17885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886/* end confdefs.h.  */
17887int i;
17888_ACEOF
17889if ac_fn_c_try_compile "$LINENO"; then :
17890  xorg_cv_cc_flag_unused_command_line_argument=yes
17891else
17892  xorg_cv_cc_flag_unused_command_line_argument=no
17893fi
17894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895fi
17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17897$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17899	CFLAGS="$xorg_testset_save_CFLAGS"
17900fi
17901
17902found="no"
17903
17904	if test $found = "no" ; then
17905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17907		fi
17908
17909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17911		fi
17912
17913		CFLAGS="$CFLAGS -Werror=attributes"
17914
17915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17916$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17917		cacheid=xorg_cv_cc_flag__Werror_attributes
17918		if eval \${$cacheid+:} false; then :
17919  $as_echo_n "(cached) " >&6
17920else
17921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922/* end confdefs.h.  */
17923int i;
17924int
17925main ()
17926{
17927
17928  ;
17929  return 0;
17930}
17931_ACEOF
17932if ac_fn_c_try_link "$LINENO"; then :
17933  eval $cacheid=yes
17934else
17935  eval $cacheid=no
17936fi
17937rm -f core conftest.err conftest.$ac_objext \
17938    conftest$ac_exeext conftest.$ac_ext
17939fi
17940
17941
17942		CFLAGS="$xorg_testset_save_CFLAGS"
17943
17944		eval supported=\$$cacheid
17945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17946$as_echo "$supported" >&6; }
17947		if test "$supported" = "yes" ; then
17948			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17949			found="yes"
17950		fi
17951	fi
17952
17953
17954
17955if test "x$STRICT_COMPILE" = "xyes"; then
17956    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17957    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17958fi
17959
17960
17961
17962
17963
17964
17965cat >>confdefs.h <<_ACEOF
17966#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17967_ACEOF
17968
17969	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17970	if test "x$PVM" = "x"; then
17971		PVM="0"
17972	fi
17973
17974cat >>confdefs.h <<_ACEOF
17975#define PACKAGE_VERSION_MINOR $PVM
17976_ACEOF
17977
17978	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17979	if test "x$PVP" = "x"; then
17980		PVP="0"
17981	fi
17982
17983cat >>confdefs.h <<_ACEOF
17984#define PACKAGE_VERSION_PATCHLEVEL $PVP
17985_ACEOF
17986
17987
17988
17989CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17990mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17991|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17992echo 'git directory not found: installing possibly empty changelog.' >&2)"
17993
17994
17995
17996
17997macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17998INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17999mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18000|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18001echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18002
18003
18004
18005
18006
18007
18008if test x$APP_MAN_SUFFIX = x    ; then
18009    APP_MAN_SUFFIX=1
18010fi
18011if test x$APP_MAN_DIR = x    ; then
18012    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18013fi
18014
18015if test x$LIB_MAN_SUFFIX = x    ; then
18016    LIB_MAN_SUFFIX=3
18017fi
18018if test x$LIB_MAN_DIR = x    ; then
18019    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18020fi
18021
18022if test x$FILE_MAN_SUFFIX = x    ; then
18023    case $host_os in
18024	solaris*)	FILE_MAN_SUFFIX=4  ;;
18025	*)		FILE_MAN_SUFFIX=5  ;;
18026    esac
18027fi
18028if test x$FILE_MAN_DIR = x    ; then
18029    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18030fi
18031
18032if test x$MISC_MAN_SUFFIX = x    ; then
18033    case $host_os in
18034	solaris*)	MISC_MAN_SUFFIX=5  ;;
18035	*)		MISC_MAN_SUFFIX=7  ;;
18036    esac
18037fi
18038if test x$MISC_MAN_DIR = x    ; then
18039    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18040fi
18041
18042if test x$DRIVER_MAN_SUFFIX = x    ; then
18043    case $host_os in
18044	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18045	*)		DRIVER_MAN_SUFFIX=4  ;;
18046    esac
18047fi
18048if test x$DRIVER_MAN_DIR = x    ; then
18049    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18050fi
18051
18052if test x$ADMIN_MAN_SUFFIX = x    ; then
18053    case $host_os in
18054	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
18055	*)		ADMIN_MAN_SUFFIX=8  ;;
18056    esac
18057fi
18058if test x$ADMIN_MAN_DIR = x    ; then
18059    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18060fi
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076XORG_MAN_PAGE="X Version 11"
18077
18078MAN_SUBSTS="\
18079	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18080	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18081	-e 's|__xservername__|Xorg|g' \
18082	-e 's|__xconfigfile__|xorg.conf|g' \
18083	-e 's|__projectroot__|\$(prefix)|g' \
18084	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18085	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18086	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18087	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18088	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18089	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18090	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18091
18092
18093
18094# Check whether --enable-silent-rules was given.
18095if test "${enable_silent_rules+set}" = set; then :
18096  enableval=$enable_silent_rules;
18097fi
18098
18099case $enable_silent_rules in # (((
18100  yes) AM_DEFAULT_VERBOSITY=0;;
18101   no) AM_DEFAULT_VERBOSITY=1;;
18102    *) AM_DEFAULT_VERBOSITY=0;;
18103esac
18104am_make=${MAKE-make}
18105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18106$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18107if ${am_cv_make_support_nested_variables+:} false; then :
18108  $as_echo_n "(cached) " >&6
18109else
18110  if $as_echo 'TRUE=$(BAR$(V))
18111BAR0=false
18112BAR1=true
18113V=1
18114am__doit:
18115	@$(TRUE)
18116.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18117  am_cv_make_support_nested_variables=yes
18118else
18119  am_cv_make_support_nested_variables=no
18120fi
18121fi
18122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18123$as_echo "$am_cv_make_support_nested_variables" >&6; }
18124if test $am_cv_make_support_nested_variables = yes; then
18125    AM_V='$(V)'
18126  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18127else
18128  AM_V=$AM_DEFAULT_VERBOSITY
18129  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18130fi
18131AM_BACKSLASH='\'
18132
18133
18134
18135
18136# Check whether --enable-devel-docs was given.
18137if test "${enable_devel_docs+set}" = set; then :
18138  enableval=$enable_devel_docs; build_devel_docs=$enableval
18139else
18140  build_devel_docs=yes
18141fi
18142
18143
18144 if test x$build_devel_docs = xyes; then
18145  ENABLE_DEVEL_DOCS_TRUE=
18146  ENABLE_DEVEL_DOCS_FALSE='#'
18147else
18148  ENABLE_DEVEL_DOCS_TRUE='#'
18149  ENABLE_DEVEL_DOCS_FALSE=
18150fi
18151
18152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18153$as_echo_n "checking whether to build developer documentation... " >&6; }
18154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18155$as_echo "$build_devel_docs" >&6; }
18156
18157
18158
18159
18160
18161
18162# Check whether --with-doxygen was given.
18163if test "${with_doxygen+set}" = set; then :
18164  withval=$with_doxygen; use_doxygen=$withval
18165else
18166  use_doxygen=auto
18167fi
18168
18169
18170
18171if test "x$use_doxygen" = x"auto"; then
18172   # Extract the first word of "doxygen", so it can be a program name with args.
18173set dummy doxygen; ac_word=$2
18174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18175$as_echo_n "checking for $ac_word... " >&6; }
18176if ${ac_cv_path_DOXYGEN+:} false; then :
18177  $as_echo_n "(cached) " >&6
18178else
18179  case $DOXYGEN in
18180  [\\/]* | ?:[\\/]*)
18181  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18182  ;;
18183  *)
18184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185for as_dir in $PATH
18186do
18187  IFS=$as_save_IFS
18188  test -z "$as_dir" && as_dir=.
18189    for ac_exec_ext in '' $ac_executable_extensions; do
18190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18191    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18193    break 2
18194  fi
18195done
18196  done
18197IFS=$as_save_IFS
18198
18199  ;;
18200esac
18201fi
18202DOXYGEN=$ac_cv_path_DOXYGEN
18203if test -n "$DOXYGEN"; then
18204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18205$as_echo "$DOXYGEN" >&6; }
18206else
18207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18208$as_echo "no" >&6; }
18209fi
18210
18211
18212   if test "x$DOXYGEN" = "x"; then
18213        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
18214$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
18215	have_doxygen=no
18216   else
18217        have_doxygen=yes
18218   fi
18219elif test "x$use_doxygen" = x"yes" ; then
18220   # Extract the first word of "doxygen", so it can be a program name with args.
18221set dummy doxygen; ac_word=$2
18222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18223$as_echo_n "checking for $ac_word... " >&6; }
18224if ${ac_cv_path_DOXYGEN+:} false; then :
18225  $as_echo_n "(cached) " >&6
18226else
18227  case $DOXYGEN in
18228  [\\/]* | ?:[\\/]*)
18229  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18230  ;;
18231  *)
18232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18233for as_dir in $PATH
18234do
18235  IFS=$as_save_IFS
18236  test -z "$as_dir" && as_dir=.
18237    for ac_exec_ext in '' $ac_executable_extensions; do
18238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18239    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18241    break 2
18242  fi
18243done
18244  done
18245IFS=$as_save_IFS
18246
18247  ;;
18248esac
18249fi
18250DOXYGEN=$ac_cv_path_DOXYGEN
18251if test -n "$DOXYGEN"; then
18252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18253$as_echo "$DOXYGEN" >&6; }
18254else
18255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18256$as_echo "no" >&6; }
18257fi
18258
18259
18260   if test "x$DOXYGEN" = "x"; then
18261        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
18262   fi
18263   have_doxygen=yes
18264elif test "x$use_doxygen" = x"no" ; then
18265   if test "x$DOXYGEN" != "x"; then
18266      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
18267$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
18268   fi
18269   have_doxygen=no
18270else
18271   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
18272fi
18273
18274
18275HAVE_DOT=no
18276if test "x$have_doxygen" = "xyes"; then
18277  # Extract the first word of "dot", so it can be a program name with args.
18278set dummy dot; ac_word=$2
18279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18280$as_echo_n "checking for $ac_word... " >&6; }
18281if ${ac_cv_path_DOT+:} false; then :
18282  $as_echo_n "(cached) " >&6
18283else
18284  case $DOT in
18285  [\\/]* | ?:[\\/]*)
18286  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18287  ;;
18288  *)
18289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18290for as_dir in $PATH
18291do
18292  IFS=$as_save_IFS
18293  test -z "$as_dir" && as_dir=.
18294    for ac_exec_ext in '' $ac_executable_extensions; do
18295  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18296    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18298    break 2
18299  fi
18300done
18301  done
18302IFS=$as_save_IFS
18303
18304  ;;
18305esac
18306fi
18307DOT=$ac_cv_path_DOT
18308if test -n "$DOT"; then
18309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
18310$as_echo "$DOT" >&6; }
18311else
18312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18313$as_echo "no" >&6; }
18314fi
18315
18316
18317    if test "x$DOT" != "x"; then
18318      HAVE_DOT=yes
18319    fi
18320fi
18321
18322
18323 if test "$HAVE_DOT" = "yes"; then
18324  HAVE_DOT_TRUE=
18325  HAVE_DOT_FALSE='#'
18326else
18327  HAVE_DOT_TRUE='#'
18328  HAVE_DOT_FALSE=
18329fi
18330
18331 if test "$have_doxygen" = yes; then
18332  HAVE_DOXYGEN_TRUE=
18333  HAVE_DOXYGEN_FALSE='#'
18334else
18335  HAVE_DOXYGEN_TRUE='#'
18336  HAVE_DOXYGEN_FALSE=
18337fi
18338
18339
18340
18341
18342for ac_header in sys/shm.h
18343do :
18344  ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
18345if test "x$ac_cv_header_sys_shm_h" = xyes; then :
18346  cat >>confdefs.h <<_ACEOF
18347#define HAVE_SYS_SHM_H 1
18348_ACEOF
18349
18350fi
18351
18352done
18353
18354 if test x$ac_cv_header_sys_shm_h = xyes; then
18355  HAVE_SHM_TRUE=
18356  HAVE_SHM_FALSE='#'
18357else
18358  HAVE_SHM_TRUE='#'
18359  HAVE_SHM_FALSE=
18360fi
18361
18362
18363pkg_failed=no
18364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_SHM" >&5
18365$as_echo_n "checking for XCB_SHM... " >&6; }
18366
18367if test -n "$XCB_SHM_CFLAGS"; then
18368    pkg_cv_XCB_SHM_CFLAGS="$XCB_SHM_CFLAGS"
18369 elif test -n "$PKG_CONFIG"; then
18370    if test -n "$PKG_CONFIG" && \
18371    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-shm\""; } >&5
18372  ($PKG_CONFIG --exists --print-errors "xcb-shm") 2>&5
18373  ac_status=$?
18374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18375  test $ac_status = 0; }; then
18376  pkg_cv_XCB_SHM_CFLAGS=`$PKG_CONFIG --cflags "xcb-shm" 2>/dev/null`
18377		      test "x$?" != "x0" && pkg_failed=yes
18378else
18379  pkg_failed=yes
18380fi
18381 else
18382    pkg_failed=untried
18383fi
18384if test -n "$XCB_SHM_LIBS"; then
18385    pkg_cv_XCB_SHM_LIBS="$XCB_SHM_LIBS"
18386 elif test -n "$PKG_CONFIG"; then
18387    if test -n "$PKG_CONFIG" && \
18388    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-shm\""; } >&5
18389  ($PKG_CONFIG --exists --print-errors "xcb-shm") 2>&5
18390  ac_status=$?
18391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18392  test $ac_status = 0; }; then
18393  pkg_cv_XCB_SHM_LIBS=`$PKG_CONFIG --libs "xcb-shm" 2>/dev/null`
18394		      test "x$?" != "x0" && pkg_failed=yes
18395else
18396  pkg_failed=yes
18397fi
18398 else
18399    pkg_failed=untried
18400fi
18401
18402
18403
18404if test $pkg_failed = yes; then
18405   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18406$as_echo "no" >&6; }
18407
18408if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18409        _pkg_short_errors_supported=yes
18410else
18411        _pkg_short_errors_supported=no
18412fi
18413        if test $_pkg_short_errors_supported = yes; then
18414	        XCB_SHM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-shm" 2>&1`
18415        else
18416	        XCB_SHM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-shm" 2>&1`
18417        fi
18418	# Put the nasty error message in config.log where it belongs
18419	echo "$XCB_SHM_PKG_ERRORS" >&5
18420
18421	as_fn_error $? "Package requirements (xcb-shm) were not met:
18422
18423$XCB_SHM_PKG_ERRORS
18424
18425Consider adjusting the PKG_CONFIG_PATH environment variable if you
18426installed software in a non-standard prefix.
18427
18428Alternatively, you may set the environment variables XCB_SHM_CFLAGS
18429and XCB_SHM_LIBS to avoid the need to call pkg-config.
18430See the pkg-config man page for more details." "$LINENO" 5
18431elif test $pkg_failed = untried; then
18432     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18433$as_echo "no" >&6; }
18434	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18436as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18437is in your PATH or set the PKG_CONFIG environment variable to the full
18438path to pkg-config.
18439
18440Alternatively, you may set the environment variables XCB_SHM_CFLAGS
18441and XCB_SHM_LIBS to avoid the need to call pkg-config.
18442See the pkg-config man page for more details.
18443
18444To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18445See \`config.log' for more details" "$LINENO" 5; }
18446else
18447	XCB_SHM_CFLAGS=$pkg_cv_XCB_SHM_CFLAGS
18448	XCB_SHM_LIBS=$pkg_cv_XCB_SHM_LIBS
18449        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18450$as_echo "yes" >&6; }
18451
18452fi
18453
18454pkg_failed=no
18455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
18456$as_echo_n "checking for XPROTO... " >&6; }
18457
18458if test -n "$XPROTO_CFLAGS"; then
18459    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
18460 elif test -n "$PKG_CONFIG"; then
18461    if test -n "$PKG_CONFIG" && \
18462    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.8\""; } >&5
18463  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.8") 2>&5
18464  ac_status=$?
18465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18466  test $ac_status = 0; }; then
18467  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.8" 2>/dev/null`
18468		      test "x$?" != "x0" && pkg_failed=yes
18469else
18470  pkg_failed=yes
18471fi
18472 else
18473    pkg_failed=untried
18474fi
18475if test -n "$XPROTO_LIBS"; then
18476    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
18477 elif test -n "$PKG_CONFIG"; then
18478    if test -n "$PKG_CONFIG" && \
18479    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.8\""; } >&5
18480  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.8") 2>&5
18481  ac_status=$?
18482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18483  test $ac_status = 0; }; then
18484  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.8" 2>/dev/null`
18485		      test "x$?" != "x0" && pkg_failed=yes
18486else
18487  pkg_failed=yes
18488fi
18489 else
18490    pkg_failed=untried
18491fi
18492
18493
18494
18495if test $pkg_failed = yes; then
18496   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18497$as_echo "no" >&6; }
18498
18499if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18500        _pkg_short_errors_supported=yes
18501else
18502        _pkg_short_errors_supported=no
18503fi
18504        if test $_pkg_short_errors_supported = yes; then
18505	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.8" 2>&1`
18506        else
18507	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.8" 2>&1`
18508        fi
18509	# Put the nasty error message in config.log where it belongs
18510	echo "$XPROTO_PKG_ERRORS" >&5
18511
18512	as_fn_error $? "Package requirements (xproto >= 7.0.8) were not met:
18513
18514$XPROTO_PKG_ERRORS
18515
18516Consider adjusting the PKG_CONFIG_PATH environment variable if you
18517installed software in a non-standard prefix.
18518
18519Alternatively, you may set the environment variables XPROTO_CFLAGS
18520and XPROTO_LIBS to avoid the need to call pkg-config.
18521See the pkg-config man page for more details." "$LINENO" 5
18522elif test $pkg_failed = untried; then
18523     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18524$as_echo "no" >&6; }
18525	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18527as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18528is in your PATH or set the PKG_CONFIG environment variable to the full
18529path to pkg-config.
18530
18531Alternatively, you may set the environment variables XPROTO_CFLAGS
18532and XPROTO_LIBS to avoid the need to call pkg-config.
18533See the pkg-config man page for more details.
18534
18535To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18536See \`config.log' for more details" "$LINENO" 5; }
18537else
18538	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
18539	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
18540        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18541$as_echo "yes" >&6; }
18542
18543fi
18544
18545pkg_failed=no
18546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_UTIL" >&5
18547$as_echo_n "checking for XCB_UTIL... " >&6; }
18548
18549if test -n "$XCB_UTIL_CFLAGS"; then
18550    pkg_cv_XCB_UTIL_CFLAGS="$XCB_UTIL_CFLAGS"
18551 elif test -n "$PKG_CONFIG"; then
18552    if test -n "$PKG_CONFIG" && \
18553    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-util\""; } >&5
18554  ($PKG_CONFIG --exists --print-errors "xcb-util") 2>&5
18555  ac_status=$?
18556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18557  test $ac_status = 0; }; then
18558  pkg_cv_XCB_UTIL_CFLAGS=`$PKG_CONFIG --cflags "xcb-util" 2>/dev/null`
18559		      test "x$?" != "x0" && pkg_failed=yes
18560else
18561  pkg_failed=yes
18562fi
18563 else
18564    pkg_failed=untried
18565fi
18566if test -n "$XCB_UTIL_LIBS"; then
18567    pkg_cv_XCB_UTIL_LIBS="$XCB_UTIL_LIBS"
18568 elif test -n "$PKG_CONFIG"; then
18569    if test -n "$PKG_CONFIG" && \
18570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-util\""; } >&5
18571  ($PKG_CONFIG --exists --print-errors "xcb-util") 2>&5
18572  ac_status=$?
18573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18574  test $ac_status = 0; }; then
18575  pkg_cv_XCB_UTIL_LIBS=`$PKG_CONFIG --libs "xcb-util" 2>/dev/null`
18576		      test "x$?" != "x0" && pkg_failed=yes
18577else
18578  pkg_failed=yes
18579fi
18580 else
18581    pkg_failed=untried
18582fi
18583
18584
18585
18586if test $pkg_failed = yes; then
18587   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18588$as_echo "no" >&6; }
18589
18590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18591        _pkg_short_errors_supported=yes
18592else
18593        _pkg_short_errors_supported=no
18594fi
18595        if test $_pkg_short_errors_supported = yes; then
18596	        XCB_UTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-util" 2>&1`
18597        else
18598	        XCB_UTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-util" 2>&1`
18599        fi
18600	# Put the nasty error message in config.log where it belongs
18601	echo "$XCB_UTIL_PKG_ERRORS" >&5
18602
18603	as_fn_error $? "Package requirements (xcb-util) were not met:
18604
18605$XCB_UTIL_PKG_ERRORS
18606
18607Consider adjusting the PKG_CONFIG_PATH environment variable if you
18608installed software in a non-standard prefix.
18609
18610Alternatively, you may set the environment variables XCB_UTIL_CFLAGS
18611and XCB_UTIL_LIBS to avoid the need to call pkg-config.
18612See the pkg-config man page for more details." "$LINENO" 5
18613elif test $pkg_failed = untried; then
18614     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18615$as_echo "no" >&6; }
18616	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18618as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18619is in your PATH or set the PKG_CONFIG environment variable to the full
18620path to pkg-config.
18621
18622Alternatively, you may set the environment variables XCB_UTIL_CFLAGS
18623and XCB_UTIL_LIBS to avoid the need to call pkg-config.
18624See the pkg-config man page for more details.
18625
18626To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18627See \`config.log' for more details" "$LINENO" 5; }
18628else
18629	XCB_UTIL_CFLAGS=$pkg_cv_XCB_UTIL_CFLAGS
18630	XCB_UTIL_LIBS=$pkg_cv_XCB_UTIL_LIBS
18631        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18632$as_echo "yes" >&6; }
18633
18634fi
18635
18636ac_config_files="$ac_config_files Makefile image/Makefile test/Makefile image/xcb-image.pc"
18637
18638cat >confcache <<\_ACEOF
18639# This file is a shell script that caches the results of configure
18640# tests run on this system so they can be shared between configure
18641# scripts and configure runs, see configure's option --config-cache.
18642# It is not useful on other systems.  If it contains results you don't
18643# want to keep, you may remove or edit it.
18644#
18645# config.status only pays attention to the cache file if you give it
18646# the --recheck option to rerun configure.
18647#
18648# `ac_cv_env_foo' variables (set or unset) will be overridden when
18649# loading this file, other *unset* `ac_cv_foo' will be assigned the
18650# following values.
18651
18652_ACEOF
18653
18654# The following way of writing the cache mishandles newlines in values,
18655# but we know of no workaround that is simple, portable, and efficient.
18656# So, we kill variables containing newlines.
18657# Ultrix sh set writes to stderr and can't be redirected directly,
18658# and sets the high bit in the cache file unless we assign to the vars.
18659(
18660  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18661    eval ac_val=\$$ac_var
18662    case $ac_val in #(
18663    *${as_nl}*)
18664      case $ac_var in #(
18665      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18666$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18667      esac
18668      case $ac_var in #(
18669      _ | IFS | as_nl) ;; #(
18670      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18671      *) { eval $ac_var=; unset $ac_var;} ;;
18672      esac ;;
18673    esac
18674  done
18675
18676  (set) 2>&1 |
18677    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18678    *${as_nl}ac_space=\ *)
18679      # `set' does not quote correctly, so add quotes: double-quote
18680      # substitution turns \\\\ into \\, and sed turns \\ into \.
18681      sed -n \
18682	"s/'/'\\\\''/g;
18683	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18684      ;; #(
18685    *)
18686      # `set' quotes correctly as required by POSIX, so do not add quotes.
18687      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18688      ;;
18689    esac |
18690    sort
18691) |
18692  sed '
18693     /^ac_cv_env_/b end
18694     t clear
18695     :clear
18696     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18697     t end
18698     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18699     :end' >>confcache
18700if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18701  if test -w "$cache_file"; then
18702    if test "x$cache_file" != "x/dev/null"; then
18703      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18704$as_echo "$as_me: updating cache $cache_file" >&6;}
18705      if test ! -f "$cache_file" || test -h "$cache_file"; then
18706	cat confcache >"$cache_file"
18707      else
18708        case $cache_file in #(
18709        */* | ?:*)
18710	  mv -f confcache "$cache_file"$$ &&
18711	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18712        *)
18713	  mv -f confcache "$cache_file" ;;
18714	esac
18715      fi
18716    fi
18717  else
18718    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18719$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18720  fi
18721fi
18722rm -f confcache
18723
18724test "x$prefix" = xNONE && prefix=$ac_default_prefix
18725# Let make expand exec_prefix.
18726test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18727
18728DEFS=-DHAVE_CONFIG_H
18729
18730ac_libobjs=
18731ac_ltlibobjs=
18732U=
18733for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18734  # 1. Remove the extension, and $U if already installed.
18735  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18736  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18737  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18738  #    will be set to the directory where LIBOBJS objects are built.
18739  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18740  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18741done
18742LIBOBJS=$ac_libobjs
18743
18744LTLIBOBJS=$ac_ltlibobjs
18745
18746
18747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18748$as_echo_n "checking that generated files are newer than configure... " >&6; }
18749   if test -n "$am_sleep_pid"; then
18750     # Hide warnings about reused PIDs.
18751     wait $am_sleep_pid 2>/dev/null
18752   fi
18753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18754$as_echo "done" >&6; }
18755 if test -n "$EXEEXT"; then
18756  am__EXEEXT_TRUE=
18757  am__EXEEXT_FALSE='#'
18758else
18759  am__EXEEXT_TRUE='#'
18760  am__EXEEXT_FALSE=
18761fi
18762
18763if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18764  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18765Usually this means the macro was only invoked conditionally." "$LINENO" 5
18766fi
18767if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18768  as_fn_error $? "conditional \"AMDEP\" was never defined.
18769Usually this means the macro was only invoked conditionally." "$LINENO" 5
18770fi
18771if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18772  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18773Usually this means the macro was only invoked conditionally." "$LINENO" 5
18774fi
18775if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
18776  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
18777Usually this means the macro was only invoked conditionally." "$LINENO" 5
18778fi
18779if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
18780  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
18781Usually this means the macro was only invoked conditionally." "$LINENO" 5
18782fi
18783if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
18784  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
18785Usually this means the macro was only invoked conditionally." "$LINENO" 5
18786fi
18787if test -z "${HAVE_SHM_TRUE}" && test -z "${HAVE_SHM_FALSE}"; then
18788  as_fn_error $? "conditional \"HAVE_SHM\" was never defined.
18789Usually this means the macro was only invoked conditionally." "$LINENO" 5
18790fi
18791
18792: "${CONFIG_STATUS=./config.status}"
18793ac_write_fail=0
18794ac_clean_files_save=$ac_clean_files
18795ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18797$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18798as_write_fail=0
18799cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18800#! $SHELL
18801# Generated by $as_me.
18802# Run this file to recreate the current configuration.
18803# Compiler output produced by configure, useful for debugging
18804# configure, is in config.log if it exists.
18805
18806debug=false
18807ac_cs_recheck=false
18808ac_cs_silent=false
18809
18810SHELL=\${CONFIG_SHELL-$SHELL}
18811export SHELL
18812_ASEOF
18813cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18814## -------------------- ##
18815## M4sh Initialization. ##
18816## -------------------- ##
18817
18818# Be more Bourne compatible
18819DUALCASE=1; export DUALCASE # for MKS sh
18820if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18821  emulate sh
18822  NULLCMD=:
18823  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18824  # is contrary to our usage.  Disable this feature.
18825  alias -g '${1+"$@"}'='"$@"'
18826  setopt NO_GLOB_SUBST
18827else
18828  case `(set -o) 2>/dev/null` in #(
18829  *posix*) :
18830    set -o posix ;; #(
18831  *) :
18832     ;;
18833esac
18834fi
18835
18836
18837as_nl='
18838'
18839export as_nl
18840# Printing a long string crashes Solaris 7 /usr/bin/printf.
18841as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18843as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18844# Prefer a ksh shell builtin over an external printf program on Solaris,
18845# but without wasting forks for bash or zsh.
18846if test -z "$BASH_VERSION$ZSH_VERSION" \
18847    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18848  as_echo='print -r --'
18849  as_echo_n='print -rn --'
18850elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18851  as_echo='printf %s\n'
18852  as_echo_n='printf %s'
18853else
18854  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18855    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18856    as_echo_n='/usr/ucb/echo -n'
18857  else
18858    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18859    as_echo_n_body='eval
18860      arg=$1;
18861      case $arg in #(
18862      *"$as_nl"*)
18863	expr "X$arg" : "X\\(.*\\)$as_nl";
18864	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18865      esac;
18866      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18867    '
18868    export as_echo_n_body
18869    as_echo_n='sh -c $as_echo_n_body as_echo'
18870  fi
18871  export as_echo_body
18872  as_echo='sh -c $as_echo_body as_echo'
18873fi
18874
18875# The user is always right.
18876if test "${PATH_SEPARATOR+set}" != set; then
18877  PATH_SEPARATOR=:
18878  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18879    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18880      PATH_SEPARATOR=';'
18881  }
18882fi
18883
18884
18885# IFS
18886# We need space, tab and new line, in precisely that order.  Quoting is
18887# there to prevent editors from complaining about space-tab.
18888# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18889# splitting by setting IFS to empty value.)
18890IFS=" ""	$as_nl"
18891
18892# Find who we are.  Look in the path if we contain no directory separator.
18893as_myself=
18894case $0 in #((
18895  *[\\/]* ) as_myself=$0 ;;
18896  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18897for as_dir in $PATH
18898do
18899  IFS=$as_save_IFS
18900  test -z "$as_dir" && as_dir=.
18901    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18902  done
18903IFS=$as_save_IFS
18904
18905     ;;
18906esac
18907# We did not find ourselves, most probably we were run as `sh COMMAND'
18908# in which case we are not to be found in the path.
18909if test "x$as_myself" = x; then
18910  as_myself=$0
18911fi
18912if test ! -f "$as_myself"; then
18913  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18914  exit 1
18915fi
18916
18917# Unset variables that we do not need and which cause bugs (e.g. in
18918# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18919# suppresses any "Segmentation fault" message there.  '((' could
18920# trigger a bug in pdksh 5.2.14.
18921for as_var in BASH_ENV ENV MAIL MAILPATH
18922do eval test x\${$as_var+set} = xset \
18923  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18924done
18925PS1='$ '
18926PS2='> '
18927PS4='+ '
18928
18929# NLS nuisances.
18930LC_ALL=C
18931export LC_ALL
18932LANGUAGE=C
18933export LANGUAGE
18934
18935# CDPATH.
18936(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18937
18938
18939# as_fn_error STATUS ERROR [LINENO LOG_FD]
18940# ----------------------------------------
18941# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18942# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18943# script with STATUS, using 1 if that was 0.
18944as_fn_error ()
18945{
18946  as_status=$1; test $as_status -eq 0 && as_status=1
18947  if test "$4"; then
18948    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18949    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18950  fi
18951  $as_echo "$as_me: error: $2" >&2
18952  as_fn_exit $as_status
18953} # as_fn_error
18954
18955
18956# as_fn_set_status STATUS
18957# -----------------------
18958# Set $? to STATUS, without forking.
18959as_fn_set_status ()
18960{
18961  return $1
18962} # as_fn_set_status
18963
18964# as_fn_exit STATUS
18965# -----------------
18966# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18967as_fn_exit ()
18968{
18969  set +e
18970  as_fn_set_status $1
18971  exit $1
18972} # as_fn_exit
18973
18974# as_fn_unset VAR
18975# ---------------
18976# Portably unset VAR.
18977as_fn_unset ()
18978{
18979  { eval $1=; unset $1;}
18980}
18981as_unset=as_fn_unset
18982# as_fn_append VAR VALUE
18983# ----------------------
18984# Append the text in VALUE to the end of the definition contained in VAR. Take
18985# advantage of any shell optimizations that allow amortized linear growth over
18986# repeated appends, instead of the typical quadratic growth present in naive
18987# implementations.
18988if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18989  eval 'as_fn_append ()
18990  {
18991    eval $1+=\$2
18992  }'
18993else
18994  as_fn_append ()
18995  {
18996    eval $1=\$$1\$2
18997  }
18998fi # as_fn_append
18999
19000# as_fn_arith ARG...
19001# ------------------
19002# Perform arithmetic evaluation on the ARGs, and store the result in the
19003# global $as_val. Take advantage of shells that can avoid forks. The arguments
19004# must be portable across $(()) and expr.
19005if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19006  eval 'as_fn_arith ()
19007  {
19008    as_val=$(( $* ))
19009  }'
19010else
19011  as_fn_arith ()
19012  {
19013    as_val=`expr "$@" || test $? -eq 1`
19014  }
19015fi # as_fn_arith
19016
19017
19018if expr a : '\(a\)' >/dev/null 2>&1 &&
19019   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19020  as_expr=expr
19021else
19022  as_expr=false
19023fi
19024
19025if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19026  as_basename=basename
19027else
19028  as_basename=false
19029fi
19030
19031if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19032  as_dirname=dirname
19033else
19034  as_dirname=false
19035fi
19036
19037as_me=`$as_basename -- "$0" ||
19038$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19039	 X"$0" : 'X\(//\)$' \| \
19040	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19041$as_echo X/"$0" |
19042    sed '/^.*\/\([^/][^/]*\)\/*$/{
19043	    s//\1/
19044	    q
19045	  }
19046	  /^X\/\(\/\/\)$/{
19047	    s//\1/
19048	    q
19049	  }
19050	  /^X\/\(\/\).*/{
19051	    s//\1/
19052	    q
19053	  }
19054	  s/.*/./; q'`
19055
19056# Avoid depending upon Character Ranges.
19057as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19058as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19059as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19060as_cr_digits='0123456789'
19061as_cr_alnum=$as_cr_Letters$as_cr_digits
19062
19063ECHO_C= ECHO_N= ECHO_T=
19064case `echo -n x` in #(((((
19065-n*)
19066  case `echo 'xy\c'` in
19067  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19068  xy)  ECHO_C='\c';;
19069  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19070       ECHO_T='	';;
19071  esac;;
19072*)
19073  ECHO_N='-n';;
19074esac
19075
19076rm -f conf$$ conf$$.exe conf$$.file
19077if test -d conf$$.dir; then
19078  rm -f conf$$.dir/conf$$.file
19079else
19080  rm -f conf$$.dir
19081  mkdir conf$$.dir 2>/dev/null
19082fi
19083if (echo >conf$$.file) 2>/dev/null; then
19084  if ln -s conf$$.file conf$$ 2>/dev/null; then
19085    as_ln_s='ln -s'
19086    # ... but there are two gotchas:
19087    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19088    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19089    # In both cases, we have to default to `cp -pR'.
19090    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19091      as_ln_s='cp -pR'
19092  elif ln conf$$.file conf$$ 2>/dev/null; then
19093    as_ln_s=ln
19094  else
19095    as_ln_s='cp -pR'
19096  fi
19097else
19098  as_ln_s='cp -pR'
19099fi
19100rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19101rmdir conf$$.dir 2>/dev/null
19102
19103
19104# as_fn_mkdir_p
19105# -------------
19106# Create "$as_dir" as a directory, including parents if necessary.
19107as_fn_mkdir_p ()
19108{
19109
19110  case $as_dir in #(
19111  -*) as_dir=./$as_dir;;
19112  esac
19113  test -d "$as_dir" || eval $as_mkdir_p || {
19114    as_dirs=
19115    while :; do
19116      case $as_dir in #(
19117      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19118      *) as_qdir=$as_dir;;
19119      esac
19120      as_dirs="'$as_qdir' $as_dirs"
19121      as_dir=`$as_dirname -- "$as_dir" ||
19122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19123	 X"$as_dir" : 'X\(//\)[^/]' \| \
19124	 X"$as_dir" : 'X\(//\)$' \| \
19125	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19126$as_echo X"$as_dir" |
19127    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19128	    s//\1/
19129	    q
19130	  }
19131	  /^X\(\/\/\)[^/].*/{
19132	    s//\1/
19133	    q
19134	  }
19135	  /^X\(\/\/\)$/{
19136	    s//\1/
19137	    q
19138	  }
19139	  /^X\(\/\).*/{
19140	    s//\1/
19141	    q
19142	  }
19143	  s/.*/./; q'`
19144      test -d "$as_dir" && break
19145    done
19146    test -z "$as_dirs" || eval "mkdir $as_dirs"
19147  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19148
19149
19150} # as_fn_mkdir_p
19151if mkdir -p . 2>/dev/null; then
19152  as_mkdir_p='mkdir -p "$as_dir"'
19153else
19154  test -d ./-p && rmdir ./-p
19155  as_mkdir_p=false
19156fi
19157
19158
19159# as_fn_executable_p FILE
19160# -----------------------
19161# Test if FILE is an executable regular file.
19162as_fn_executable_p ()
19163{
19164  test -f "$1" && test -x "$1"
19165} # as_fn_executable_p
19166as_test_x='test -x'
19167as_executable_p=as_fn_executable_p
19168
19169# Sed expression to map a string onto a valid CPP name.
19170as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19171
19172# Sed expression to map a string onto a valid variable name.
19173as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19174
19175
19176exec 6>&1
19177## ----------------------------------- ##
19178## Main body of $CONFIG_STATUS script. ##
19179## ----------------------------------- ##
19180_ASEOF
19181test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19182
19183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19184# Save the log message, to keep $0 and so on meaningful, and to
19185# report actual input values of CONFIG_FILES etc. instead of their
19186# values after options handling.
19187ac_log="
19188This file was extended by xcb-util-image $as_me 0.4.0, which was
19189generated by GNU Autoconf 2.69.  Invocation command line was
19190
19191  CONFIG_FILES    = $CONFIG_FILES
19192  CONFIG_HEADERS  = $CONFIG_HEADERS
19193  CONFIG_LINKS    = $CONFIG_LINKS
19194  CONFIG_COMMANDS = $CONFIG_COMMANDS
19195  $ $0 $@
19196
19197on `(hostname || uname -n) 2>/dev/null | sed 1q`
19198"
19199
19200_ACEOF
19201
19202case $ac_config_files in *"
19203"*) set x $ac_config_files; shift; ac_config_files=$*;;
19204esac
19205
19206case $ac_config_headers in *"
19207"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19208esac
19209
19210
19211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19212# Files that config.status was made for.
19213config_files="$ac_config_files"
19214config_headers="$ac_config_headers"
19215config_commands="$ac_config_commands"
19216
19217_ACEOF
19218
19219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19220ac_cs_usage="\
19221\`$as_me' instantiates files and other configuration actions
19222from templates according to the current configuration.  Unless the files
19223and actions are specified as TAGs, all are instantiated by default.
19224
19225Usage: $0 [OPTION]... [TAG]...
19226
19227  -h, --help       print this help, then exit
19228  -V, --version    print version number and configuration settings, then exit
19229      --config     print configuration, then exit
19230  -q, --quiet, --silent
19231                   do not print progress messages
19232  -d, --debug      don't remove temporary files
19233      --recheck    update $as_me by reconfiguring in the same conditions
19234      --file=FILE[:TEMPLATE]
19235                   instantiate the configuration file FILE
19236      --header=FILE[:TEMPLATE]
19237                   instantiate the configuration header FILE
19238
19239Configuration files:
19240$config_files
19241
19242Configuration headers:
19243$config_headers
19244
19245Configuration commands:
19246$config_commands
19247
19248Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>."
19249
19250_ACEOF
19251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19252ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19253ac_cs_version="\\
19254xcb-util-image config.status 0.4.0
19255configured by $0, generated by GNU Autoconf 2.69,
19256  with options \\"\$ac_cs_config\\"
19257
19258Copyright (C) 2012 Free Software Foundation, Inc.
19259This config.status script is free software; the Free Software Foundation
19260gives unlimited permission to copy, distribute and modify it."
19261
19262ac_pwd='$ac_pwd'
19263srcdir='$srcdir'
19264INSTALL='$INSTALL'
19265MKDIR_P='$MKDIR_P'
19266AWK='$AWK'
19267test -n "\$AWK" || AWK=awk
19268_ACEOF
19269
19270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19271# The default lists apply if the user does not specify any file.
19272ac_need_defaults=:
19273while test $# != 0
19274do
19275  case $1 in
19276  --*=?*)
19277    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19278    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19279    ac_shift=:
19280    ;;
19281  --*=)
19282    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19283    ac_optarg=
19284    ac_shift=:
19285    ;;
19286  *)
19287    ac_option=$1
19288    ac_optarg=$2
19289    ac_shift=shift
19290    ;;
19291  esac
19292
19293  case $ac_option in
19294  # Handling of the options.
19295  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19296    ac_cs_recheck=: ;;
19297  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19298    $as_echo "$ac_cs_version"; exit ;;
19299  --config | --confi | --conf | --con | --co | --c )
19300    $as_echo "$ac_cs_config"; exit ;;
19301  --debug | --debu | --deb | --de | --d | -d )
19302    debug=: ;;
19303  --file | --fil | --fi | --f )
19304    $ac_shift
19305    case $ac_optarg in
19306    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19307    '') as_fn_error $? "missing file argument" ;;
19308    esac
19309    as_fn_append CONFIG_FILES " '$ac_optarg'"
19310    ac_need_defaults=false;;
19311  --header | --heade | --head | --hea )
19312    $ac_shift
19313    case $ac_optarg in
19314    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19315    esac
19316    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19317    ac_need_defaults=false;;
19318  --he | --h)
19319    # Conflict between --help and --header
19320    as_fn_error $? "ambiguous option: \`$1'
19321Try \`$0 --help' for more information.";;
19322  --help | --hel | -h )
19323    $as_echo "$ac_cs_usage"; exit ;;
19324  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19325  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19326    ac_cs_silent=: ;;
19327
19328  # This is an error.
19329  -*) as_fn_error $? "unrecognized option: \`$1'
19330Try \`$0 --help' for more information." ;;
19331
19332  *) as_fn_append ac_config_targets " $1"
19333     ac_need_defaults=false ;;
19334
19335  esac
19336  shift
19337done
19338
19339ac_configure_extra_args=
19340
19341if $ac_cs_silent; then
19342  exec 6>/dev/null
19343  ac_configure_extra_args="$ac_configure_extra_args --silent"
19344fi
19345
19346_ACEOF
19347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19348if \$ac_cs_recheck; then
19349  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19350  shift
19351  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19352  CONFIG_SHELL='$SHELL'
19353  export CONFIG_SHELL
19354  exec "\$@"
19355fi
19356
19357_ACEOF
19358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19359exec 5>>config.log
19360{
19361  echo
19362  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19363## Running $as_me. ##
19364_ASBOX
19365  $as_echo "$ac_log"
19366} >&5
19367
19368_ACEOF
19369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19370#
19371# INIT-COMMANDS
19372#
19373AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19374
19375
19376# The HP-UX ksh and POSIX shell print the target directory to stdout
19377# if CDPATH is set.
19378(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19379
19380sed_quote_subst='$sed_quote_subst'
19381double_quote_subst='$double_quote_subst'
19382delay_variable_subst='$delay_variable_subst'
19383macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19384macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19385enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19386enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19387pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19388enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19389SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19390ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19391PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19392host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19393host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19394host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19395build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19396build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19397build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19398SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19399Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19400GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19401EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19402FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19403LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19404NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19405LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19406max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19407ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19408exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19409lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19410lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19411lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19412lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19413lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19414reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19415reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19416OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19417deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19418file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19419file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19420want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19421DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19422sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19423AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19424AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19425archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19426STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19427RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19428old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19429old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19430old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19431lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19432CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19433CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19434compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19435GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19436lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19437lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19438lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19439lt_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"`'
19440nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19441lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19442objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19443MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19444lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19445lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19446lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19447lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19448lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19449need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19450MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19451DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19452NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19453LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19454OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19455OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19456libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19457shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19458extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19459archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19460enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19461export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19462whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19463compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19464old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19465old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19466archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19467archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19468module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19469module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19470with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19471allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19472no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19473hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19474hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19475hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19476hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19477hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19478hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19479hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19480inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19481link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19482always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19483export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19484exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19485include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19486prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19487postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19488file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19489variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19490need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19491need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19492version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19493runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19494shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19495shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19496libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19497library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19498soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19499install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19500postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19501postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19502finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19503finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19504hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19505sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19506sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19507hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19508enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19509enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19510enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19511old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19512striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19513
19514LTCC='$LTCC'
19515LTCFLAGS='$LTCFLAGS'
19516compiler='$compiler_DEFAULT'
19517
19518# A function that is used when there is no print builtin or printf.
19519func_fallback_echo ()
19520{
19521  eval 'cat <<_LTECHO_EOF
19522\$1
19523_LTECHO_EOF'
19524}
19525
19526# Quote evaled strings.
19527for var in SHELL \
19528ECHO \
19529PATH_SEPARATOR \
19530SED \
19531GREP \
19532EGREP \
19533FGREP \
19534LD \
19535NM \
19536LN_S \
19537lt_SP2NL \
19538lt_NL2SP \
19539reload_flag \
19540OBJDUMP \
19541deplibs_check_method \
19542file_magic_cmd \
19543file_magic_glob \
19544want_nocaseglob \
19545DLLTOOL \
19546sharedlib_from_linklib_cmd \
19547AR \
19548AR_FLAGS \
19549archiver_list_spec \
19550STRIP \
19551RANLIB \
19552CC \
19553CFLAGS \
19554compiler \
19555lt_cv_sys_global_symbol_pipe \
19556lt_cv_sys_global_symbol_to_cdecl \
19557lt_cv_sys_global_symbol_to_c_name_address \
19558lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19559nm_file_list_spec \
19560lt_prog_compiler_no_builtin_flag \
19561lt_prog_compiler_pic \
19562lt_prog_compiler_wl \
19563lt_prog_compiler_static \
19564lt_cv_prog_compiler_c_o \
19565need_locks \
19566MANIFEST_TOOL \
19567DSYMUTIL \
19568NMEDIT \
19569LIPO \
19570OTOOL \
19571OTOOL64 \
19572shrext_cmds \
19573export_dynamic_flag_spec \
19574whole_archive_flag_spec \
19575compiler_needs_object \
19576with_gnu_ld \
19577allow_undefined_flag \
19578no_undefined_flag \
19579hardcode_libdir_flag_spec \
19580hardcode_libdir_separator \
19581exclude_expsyms \
19582include_expsyms \
19583file_list_spec \
19584variables_saved_for_relink \
19585libname_spec \
19586library_names_spec \
19587soname_spec \
19588install_override_mode \
19589finish_eval \
19590old_striplib \
19591striplib; do
19592    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19593    *[\\\\\\\`\\"\\\$]*)
19594      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19595      ;;
19596    *)
19597      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19598      ;;
19599    esac
19600done
19601
19602# Double-quote double-evaled strings.
19603for var in reload_cmds \
19604old_postinstall_cmds \
19605old_postuninstall_cmds \
19606old_archive_cmds \
19607extract_expsyms_cmds \
19608old_archive_from_new_cmds \
19609old_archive_from_expsyms_cmds \
19610archive_cmds \
19611archive_expsym_cmds \
19612module_cmds \
19613module_expsym_cmds \
19614export_symbols_cmds \
19615prelink_cmds \
19616postlink_cmds \
19617postinstall_cmds \
19618postuninstall_cmds \
19619finish_cmds \
19620sys_lib_search_path_spec \
19621sys_lib_dlsearch_path_spec; do
19622    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19623    *[\\\\\\\`\\"\\\$]*)
19624      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19625      ;;
19626    *)
19627      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19628      ;;
19629    esac
19630done
19631
19632ac_aux_dir='$ac_aux_dir'
19633xsi_shell='$xsi_shell'
19634lt_shell_append='$lt_shell_append'
19635
19636# See if we are running on zsh, and set the options which allow our
19637# commands through without removal of \ escapes INIT.
19638if test -n "\${ZSH_VERSION+set}" ; then
19639   setopt NO_GLOB_SUBST
19640fi
19641
19642
19643    PACKAGE='$PACKAGE'
19644    VERSION='$VERSION'
19645    TIMESTAMP='$TIMESTAMP'
19646    RM='$RM'
19647    ofile='$ofile'
19648
19649
19650
19651
19652_ACEOF
19653
19654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19655
19656# Handling of arguments.
19657for ac_config_target in $ac_config_targets
19658do
19659  case $ac_config_target in
19660    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19661    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19662    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19663    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19664    "image/Makefile") CONFIG_FILES="$CONFIG_FILES image/Makefile" ;;
19665    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19666    "image/xcb-image.pc") CONFIG_FILES="$CONFIG_FILES image/xcb-image.pc" ;;
19667
19668  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19669  esac
19670done
19671
19672
19673# If the user did not use the arguments to specify the items to instantiate,
19674# then the envvar interface is used.  Set only those that are not.
19675# We use the long form for the default assignment because of an extremely
19676# bizarre bug on SunOS 4.1.3.
19677if $ac_need_defaults; then
19678  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19679  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19680  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19681fi
19682
19683# Have a temporary directory for convenience.  Make it in the build tree
19684# simply because there is no reason against having it here, and in addition,
19685# creating and moving files from /tmp can sometimes cause problems.
19686# Hook for its removal unless debugging.
19687# Note that there is a small window in which the directory will not be cleaned:
19688# after its creation but before its name has been assigned to `$tmp'.
19689$debug ||
19690{
19691  tmp= ac_tmp=
19692  trap 'exit_status=$?
19693  : "${ac_tmp:=$tmp}"
19694  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19695' 0
19696  trap 'as_fn_exit 1' 1 2 13 15
19697}
19698# Create a (secure) tmp directory for tmp files.
19699
19700{
19701  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19702  test -d "$tmp"
19703}  ||
19704{
19705  tmp=./conf$$-$RANDOM
19706  (umask 077 && mkdir "$tmp")
19707} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19708ac_tmp=$tmp
19709
19710# Set up the scripts for CONFIG_FILES section.
19711# No need to generate them if there are no CONFIG_FILES.
19712# This happens for instance with `./config.status config.h'.
19713if test -n "$CONFIG_FILES"; then
19714
19715
19716ac_cr=`echo X | tr X '\015'`
19717# On cygwin, bash can eat \r inside `` if the user requested igncr.
19718# But we know of no other shell where ac_cr would be empty at this
19719# point, so we can use a bashism as a fallback.
19720if test "x$ac_cr" = x; then
19721  eval ac_cr=\$\'\\r\'
19722fi
19723ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19724if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19725  ac_cs_awk_cr='\\r'
19726else
19727  ac_cs_awk_cr=$ac_cr
19728fi
19729
19730echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19731_ACEOF
19732
19733
19734{
19735  echo "cat >conf$$subs.awk <<_ACEOF" &&
19736  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19737  echo "_ACEOF"
19738} >conf$$subs.sh ||
19739  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19740ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19741ac_delim='%!_!# '
19742for ac_last_try in false false false false false :; do
19743  . ./conf$$subs.sh ||
19744    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19745
19746  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19747  if test $ac_delim_n = $ac_delim_num; then
19748    break
19749  elif $ac_last_try; then
19750    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19751  else
19752    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19753  fi
19754done
19755rm -f conf$$subs.sh
19756
19757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19758cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19759_ACEOF
19760sed -n '
19761h
19762s/^/S["/; s/!.*/"]=/
19763p
19764g
19765s/^[^!]*!//
19766:repl
19767t repl
19768s/'"$ac_delim"'$//
19769t delim
19770:nl
19771h
19772s/\(.\{148\}\)..*/\1/
19773t more1
19774s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19775p
19776n
19777b repl
19778:more1
19779s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19780p
19781g
19782s/.\{148\}//
19783t nl
19784:delim
19785h
19786s/\(.\{148\}\)..*/\1/
19787t more2
19788s/["\\]/\\&/g; s/^/"/; s/$/"/
19789p
19790b
19791:more2
19792s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19793p
19794g
19795s/.\{148\}//
19796t delim
19797' <conf$$subs.awk | sed '
19798/^[^""]/{
19799  N
19800  s/\n//
19801}
19802' >>$CONFIG_STATUS || ac_write_fail=1
19803rm -f conf$$subs.awk
19804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19805_ACAWK
19806cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19807  for (key in S) S_is_set[key] = 1
19808  FS = ""
19809
19810}
19811{
19812  line = $ 0
19813  nfields = split(line, field, "@")
19814  substed = 0
19815  len = length(field[1])
19816  for (i = 2; i < nfields; i++) {
19817    key = field[i]
19818    keylen = length(key)
19819    if (S_is_set[key]) {
19820      value = S[key]
19821      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19822      len += length(value) + length(field[++i])
19823      substed = 1
19824    } else
19825      len += 1 + keylen
19826  }
19827
19828  print line
19829}
19830
19831_ACAWK
19832_ACEOF
19833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19834if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19835  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19836else
19837  cat
19838fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19839  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19840_ACEOF
19841
19842# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19843# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19844# trailing colons and then remove the whole line if VPATH becomes empty
19845# (actually we leave an empty line to preserve line numbers).
19846if test "x$srcdir" = x.; then
19847  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19848h
19849s///
19850s/^/:/
19851s/[	 ]*$/:/
19852s/:\$(srcdir):/:/g
19853s/:\${srcdir}:/:/g
19854s/:@srcdir@:/:/g
19855s/^:*//
19856s/:*$//
19857x
19858s/\(=[	 ]*\).*/\1/
19859G
19860s/\n//
19861s/^[^=]*=[	 ]*$//
19862}'
19863fi
19864
19865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19866fi # test -n "$CONFIG_FILES"
19867
19868# Set up the scripts for CONFIG_HEADERS section.
19869# No need to generate them if there are no CONFIG_HEADERS.
19870# This happens for instance with `./config.status Makefile'.
19871if test -n "$CONFIG_HEADERS"; then
19872cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19873BEGIN {
19874_ACEOF
19875
19876# Transform confdefs.h into an awk script `defines.awk', embedded as
19877# here-document in config.status, that substitutes the proper values into
19878# config.h.in to produce config.h.
19879
19880# Create a delimiter string that does not exist in confdefs.h, to ease
19881# handling of long lines.
19882ac_delim='%!_!# '
19883for ac_last_try in false false :; do
19884  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19885  if test -z "$ac_tt"; then
19886    break
19887  elif $ac_last_try; then
19888    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19889  else
19890    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19891  fi
19892done
19893
19894# For the awk script, D is an array of macro values keyed by name,
19895# likewise P contains macro parameters if any.  Preserve backslash
19896# newline sequences.
19897
19898ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19899sed -n '
19900s/.\{148\}/&'"$ac_delim"'/g
19901t rset
19902:rset
19903s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19904t def
19905d
19906:def
19907s/\\$//
19908t bsnl
19909s/["\\]/\\&/g
19910s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19911D["\1"]=" \3"/p
19912s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19913d
19914:bsnl
19915s/["\\]/\\&/g
19916s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19917D["\1"]=" \3\\\\\\n"\\/p
19918t cont
19919s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19920t cont
19921d
19922:cont
19923n
19924s/.\{148\}/&'"$ac_delim"'/g
19925t clear
19926:clear
19927s/\\$//
19928t bsnlc
19929s/["\\]/\\&/g; s/^/"/; s/$/"/p
19930d
19931:bsnlc
19932s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19933b cont
19934' <confdefs.h | sed '
19935s/'"$ac_delim"'/"\\\
19936"/g' >>$CONFIG_STATUS || ac_write_fail=1
19937
19938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19939  for (key in D) D_is_set[key] = 1
19940  FS = ""
19941}
19942/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19943  line = \$ 0
19944  split(line, arg, " ")
19945  if (arg[1] == "#") {
19946    defundef = arg[2]
19947    mac1 = arg[3]
19948  } else {
19949    defundef = substr(arg[1], 2)
19950    mac1 = arg[2]
19951  }
19952  split(mac1, mac2, "(") #)
19953  macro = mac2[1]
19954  prefix = substr(line, 1, index(line, defundef) - 1)
19955  if (D_is_set[macro]) {
19956    # Preserve the white space surrounding the "#".
19957    print prefix "define", macro P[macro] D[macro]
19958    next
19959  } else {
19960    # Replace #undef with comments.  This is necessary, for example,
19961    # in the case of _POSIX_SOURCE, which is predefined and required
19962    # on some systems where configure will not decide to define it.
19963    if (defundef == "undef") {
19964      print "/*", prefix defundef, macro, "*/"
19965      next
19966    }
19967  }
19968}
19969{ print }
19970_ACAWK
19971_ACEOF
19972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19973  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19974fi # test -n "$CONFIG_HEADERS"
19975
19976
19977eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19978shift
19979for ac_tag
19980do
19981  case $ac_tag in
19982  :[FHLC]) ac_mode=$ac_tag; continue;;
19983  esac
19984  case $ac_mode$ac_tag in
19985  :[FHL]*:*);;
19986  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19987  :[FH]-) ac_tag=-:-;;
19988  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19989  esac
19990  ac_save_IFS=$IFS
19991  IFS=:
19992  set x $ac_tag
19993  IFS=$ac_save_IFS
19994  shift
19995  ac_file=$1
19996  shift
19997
19998  case $ac_mode in
19999  :L) ac_source=$1;;
20000  :[FH])
20001    ac_file_inputs=
20002    for ac_f
20003    do
20004      case $ac_f in
20005      -) ac_f="$ac_tmp/stdin";;
20006      *) # Look for the file first in the build tree, then in the source tree
20007	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20008	 # because $ac_f cannot contain `:'.
20009	 test -f "$ac_f" ||
20010	   case $ac_f in
20011	   [\\/$]*) false;;
20012	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20013	   esac ||
20014	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20015      esac
20016      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20017      as_fn_append ac_file_inputs " '$ac_f'"
20018    done
20019
20020    # Let's still pretend it is `configure' which instantiates (i.e., don't
20021    # use $as_me), people would be surprised to read:
20022    #    /* config.h.  Generated by config.status.  */
20023    configure_input='Generated from '`
20024	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20025	`' by configure.'
20026    if test x"$ac_file" != x-; then
20027      configure_input="$ac_file.  $configure_input"
20028      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20029$as_echo "$as_me: creating $ac_file" >&6;}
20030    fi
20031    # Neutralize special characters interpreted by sed in replacement strings.
20032    case $configure_input in #(
20033    *\&* | *\|* | *\\* )
20034       ac_sed_conf_input=`$as_echo "$configure_input" |
20035       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20036    *) ac_sed_conf_input=$configure_input;;
20037    esac
20038
20039    case $ac_tag in
20040    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20041      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20042    esac
20043    ;;
20044  esac
20045
20046  ac_dir=`$as_dirname -- "$ac_file" ||
20047$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20048	 X"$ac_file" : 'X\(//\)[^/]' \| \
20049	 X"$ac_file" : 'X\(//\)$' \| \
20050	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20051$as_echo X"$ac_file" |
20052    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20053	    s//\1/
20054	    q
20055	  }
20056	  /^X\(\/\/\)[^/].*/{
20057	    s//\1/
20058	    q
20059	  }
20060	  /^X\(\/\/\)$/{
20061	    s//\1/
20062	    q
20063	  }
20064	  /^X\(\/\).*/{
20065	    s//\1/
20066	    q
20067	  }
20068	  s/.*/./; q'`
20069  as_dir="$ac_dir"; as_fn_mkdir_p
20070  ac_builddir=.
20071
20072case "$ac_dir" in
20073.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20074*)
20075  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20076  # A ".." for each directory in $ac_dir_suffix.
20077  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20078  case $ac_top_builddir_sub in
20079  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20080  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20081  esac ;;
20082esac
20083ac_abs_top_builddir=$ac_pwd
20084ac_abs_builddir=$ac_pwd$ac_dir_suffix
20085# for backward compatibility:
20086ac_top_builddir=$ac_top_build_prefix
20087
20088case $srcdir in
20089  .)  # We are building in place.
20090    ac_srcdir=.
20091    ac_top_srcdir=$ac_top_builddir_sub
20092    ac_abs_top_srcdir=$ac_pwd ;;
20093  [\\/]* | ?:[\\/]* )  # Absolute name.
20094    ac_srcdir=$srcdir$ac_dir_suffix;
20095    ac_top_srcdir=$srcdir
20096    ac_abs_top_srcdir=$srcdir ;;
20097  *) # Relative name.
20098    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20099    ac_top_srcdir=$ac_top_build_prefix$srcdir
20100    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20101esac
20102ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20103
20104
20105  case $ac_mode in
20106  :F)
20107  #
20108  # CONFIG_FILE
20109  #
20110
20111  case $INSTALL in
20112  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20113  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20114  esac
20115  ac_MKDIR_P=$MKDIR_P
20116  case $MKDIR_P in
20117  [\\/$]* | ?:[\\/]* ) ;;
20118  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20119  esac
20120_ACEOF
20121
20122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20123# If the template does not know about datarootdir, expand it.
20124# FIXME: This hack should be removed a few years after 2.60.
20125ac_datarootdir_hack=; ac_datarootdir_seen=
20126ac_sed_dataroot='
20127/datarootdir/ {
20128  p
20129  q
20130}
20131/@datadir@/p
20132/@docdir@/p
20133/@infodir@/p
20134/@localedir@/p
20135/@mandir@/p'
20136case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20137*datarootdir*) ac_datarootdir_seen=yes;;
20138*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20139  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20140$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20141_ACEOF
20142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20143  ac_datarootdir_hack='
20144  s&@datadir@&$datadir&g
20145  s&@docdir@&$docdir&g
20146  s&@infodir@&$infodir&g
20147  s&@localedir@&$localedir&g
20148  s&@mandir@&$mandir&g
20149  s&\\\${datarootdir}&$datarootdir&g' ;;
20150esac
20151_ACEOF
20152
20153# Neutralize VPATH when `$srcdir' = `.'.
20154# Shell code in configure.ac might set extrasub.
20155# FIXME: do we really want to maintain this feature?
20156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20157ac_sed_extra="$ac_vpsub
20158$extrasub
20159_ACEOF
20160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20161:t
20162/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20163s|@configure_input@|$ac_sed_conf_input|;t t
20164s&@top_builddir@&$ac_top_builddir_sub&;t t
20165s&@top_build_prefix@&$ac_top_build_prefix&;t t
20166s&@srcdir@&$ac_srcdir&;t t
20167s&@abs_srcdir@&$ac_abs_srcdir&;t t
20168s&@top_srcdir@&$ac_top_srcdir&;t t
20169s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20170s&@builddir@&$ac_builddir&;t t
20171s&@abs_builddir@&$ac_abs_builddir&;t t
20172s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20173s&@INSTALL@&$ac_INSTALL&;t t
20174s&@MKDIR_P@&$ac_MKDIR_P&;t t
20175$ac_datarootdir_hack
20176"
20177eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20178  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20179
20180test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20181  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20182  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20183      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20184  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20185which seems to be undefined.  Please make sure it is defined" >&5
20186$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20187which seems to be undefined.  Please make sure it is defined" >&2;}
20188
20189  rm -f "$ac_tmp/stdin"
20190  case $ac_file in
20191  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20192  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20193  esac \
20194  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20195 ;;
20196  :H)
20197  #
20198  # CONFIG_HEADER
20199  #
20200  if test x"$ac_file" != x-; then
20201    {
20202      $as_echo "/* $configure_input  */" \
20203      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20204    } >"$ac_tmp/config.h" \
20205      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20206    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20207      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20208$as_echo "$as_me: $ac_file is unchanged" >&6;}
20209    else
20210      rm -f "$ac_file"
20211      mv "$ac_tmp/config.h" "$ac_file" \
20212	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20213    fi
20214  else
20215    $as_echo "/* $configure_input  */" \
20216      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20217      || as_fn_error $? "could not create -" "$LINENO" 5
20218  fi
20219# Compute "$ac_file"'s index in $config_headers.
20220_am_arg="$ac_file"
20221_am_stamp_count=1
20222for _am_header in $config_headers :; do
20223  case $_am_header in
20224    $_am_arg | $_am_arg:* )
20225      break ;;
20226    * )
20227      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20228  esac
20229done
20230echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20231$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20232	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20233	 X"$_am_arg" : 'X\(//\)$' \| \
20234	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20235$as_echo X"$_am_arg" |
20236    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20237	    s//\1/
20238	    q
20239	  }
20240	  /^X\(\/\/\)[^/].*/{
20241	    s//\1/
20242	    q
20243	  }
20244	  /^X\(\/\/\)$/{
20245	    s//\1/
20246	    q
20247	  }
20248	  /^X\(\/\).*/{
20249	    s//\1/
20250	    q
20251	  }
20252	  s/.*/./; q'`/stamp-h$_am_stamp_count
20253 ;;
20254
20255  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20256$as_echo "$as_me: executing $ac_file commands" >&6;}
20257 ;;
20258  esac
20259
20260
20261  case $ac_file$ac_mode in
20262    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20263  # Older Autoconf quotes --file arguments for eval, but not when files
20264  # are listed without --file.  Let's play safe and only enable the eval
20265  # if we detect the quoting.
20266  case $CONFIG_FILES in
20267  *\'*) eval set x "$CONFIG_FILES" ;;
20268  *)   set x $CONFIG_FILES ;;
20269  esac
20270  shift
20271  for mf
20272  do
20273    # Strip MF so we end up with the name of the file.
20274    mf=`echo "$mf" | sed -e 's/:.*$//'`
20275    # Check whether this is an Automake generated Makefile or not.
20276    # We used to match only the files named 'Makefile.in', but
20277    # some people rename them; so instead we look at the file content.
20278    # Grep'ing the first line is not enough: some people post-process
20279    # each Makefile.in and add a new line on top of each file to say so.
20280    # Grep'ing the whole file is not good either: AIX grep has a line
20281    # limit of 2048, but all sed's we know have understand at least 4000.
20282    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20283      dirpart=`$as_dirname -- "$mf" ||
20284$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20285	 X"$mf" : 'X\(//\)[^/]' \| \
20286	 X"$mf" : 'X\(//\)$' \| \
20287	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20288$as_echo X"$mf" |
20289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20290	    s//\1/
20291	    q
20292	  }
20293	  /^X\(\/\/\)[^/].*/{
20294	    s//\1/
20295	    q
20296	  }
20297	  /^X\(\/\/\)$/{
20298	    s//\1/
20299	    q
20300	  }
20301	  /^X\(\/\).*/{
20302	    s//\1/
20303	    q
20304	  }
20305	  s/.*/./; q'`
20306    else
20307      continue
20308    fi
20309    # Extract the definition of DEPDIR, am__include, and am__quote
20310    # from the Makefile without running 'make'.
20311    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20312    test -z "$DEPDIR" && continue
20313    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20314    test -z "$am__include" && continue
20315    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20316    # Find all dependency output files, they are included files with
20317    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20318    # simplest approach to changing $(DEPDIR) to its actual value in the
20319    # expansion.
20320    for file in `sed -n "
20321      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20322	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20323      # Make sure the directory exists.
20324      test -f "$dirpart/$file" && continue
20325      fdir=`$as_dirname -- "$file" ||
20326$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20327	 X"$file" : 'X\(//\)[^/]' \| \
20328	 X"$file" : 'X\(//\)$' \| \
20329	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20330$as_echo X"$file" |
20331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20332	    s//\1/
20333	    q
20334	  }
20335	  /^X\(\/\/\)[^/].*/{
20336	    s//\1/
20337	    q
20338	  }
20339	  /^X\(\/\/\)$/{
20340	    s//\1/
20341	    q
20342	  }
20343	  /^X\(\/\).*/{
20344	    s//\1/
20345	    q
20346	  }
20347	  s/.*/./; q'`
20348      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20349      # echo "creating $dirpart/$file"
20350      echo '# dummy' > "$dirpart/$file"
20351    done
20352  done
20353}
20354 ;;
20355    "libtool":C)
20356
20357    # See if we are running on zsh, and set the options which allow our
20358    # commands through without removal of \ escapes.
20359    if test -n "${ZSH_VERSION+set}" ; then
20360      setopt NO_GLOB_SUBST
20361    fi
20362
20363    cfgfile="${ofile}T"
20364    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20365    $RM "$cfgfile"
20366
20367    cat <<_LT_EOF >> "$cfgfile"
20368#! $SHELL
20369
20370# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20371# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20372# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20373# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20374#
20375#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20376#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20377#                 Foundation, Inc.
20378#   Written by Gordon Matzigkeit, 1996
20379#
20380#   This file is part of GNU Libtool.
20381#
20382# GNU Libtool is free software; you can redistribute it and/or
20383# modify it under the terms of the GNU General Public License as
20384# published by the Free Software Foundation; either version 2 of
20385# the License, or (at your option) any later version.
20386#
20387# As a special exception to the GNU General Public License,
20388# if you distribute this file as part of a program or library that
20389# is built using GNU Libtool, you may include this file under the
20390# same distribution terms that you use for the rest of that program.
20391#
20392# GNU Libtool is distributed in the hope that it will be useful,
20393# but WITHOUT ANY WARRANTY; without even the implied warranty of
20394# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20395# GNU General Public License for more details.
20396#
20397# You should have received a copy of the GNU General Public License
20398# along with GNU Libtool; see the file COPYING.  If not, a copy
20399# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20400# obtained by writing to the Free Software Foundation, Inc.,
20401# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20402
20403
20404# The names of the tagged configurations supported by this script.
20405available_tags=""
20406
20407# ### BEGIN LIBTOOL CONFIG
20408
20409# Which release of libtool.m4 was used?
20410macro_version=$macro_version
20411macro_revision=$macro_revision
20412
20413# Whether or not to build shared libraries.
20414build_libtool_libs=$enable_shared
20415
20416# Whether or not to build static libraries.
20417build_old_libs=$enable_static
20418
20419# What type of objects to build.
20420pic_mode=$pic_mode
20421
20422# Whether or not to optimize for fast installation.
20423fast_install=$enable_fast_install
20424
20425# Shell to use when invoking shell scripts.
20426SHELL=$lt_SHELL
20427
20428# An echo program that protects backslashes.
20429ECHO=$lt_ECHO
20430
20431# The PATH separator for the build system.
20432PATH_SEPARATOR=$lt_PATH_SEPARATOR
20433
20434# The host system.
20435host_alias=$host_alias
20436host=$host
20437host_os=$host_os
20438
20439# The build system.
20440build_alias=$build_alias
20441build=$build
20442build_os=$build_os
20443
20444# A sed program that does not truncate output.
20445SED=$lt_SED
20446
20447# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20448Xsed="\$SED -e 1s/^X//"
20449
20450# A grep program that handles long lines.
20451GREP=$lt_GREP
20452
20453# An ERE matcher.
20454EGREP=$lt_EGREP
20455
20456# A literal string matcher.
20457FGREP=$lt_FGREP
20458
20459# A BSD- or MS-compatible name lister.
20460NM=$lt_NM
20461
20462# Whether we need soft or hard links.
20463LN_S=$lt_LN_S
20464
20465# What is the maximum length of a command?
20466max_cmd_len=$max_cmd_len
20467
20468# Object file suffix (normally "o").
20469objext=$ac_objext
20470
20471# Executable file suffix (normally "").
20472exeext=$exeext
20473
20474# whether the shell understands "unset".
20475lt_unset=$lt_unset
20476
20477# turn spaces into newlines.
20478SP2NL=$lt_lt_SP2NL
20479
20480# turn newlines into spaces.
20481NL2SP=$lt_lt_NL2SP
20482
20483# convert \$build file names to \$host format.
20484to_host_file_cmd=$lt_cv_to_host_file_cmd
20485
20486# convert \$build files to toolchain format.
20487to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20488
20489# An object symbol dumper.
20490OBJDUMP=$lt_OBJDUMP
20491
20492# Method to check whether dependent libraries are shared objects.
20493deplibs_check_method=$lt_deplibs_check_method
20494
20495# Command to use when deplibs_check_method = "file_magic".
20496file_magic_cmd=$lt_file_magic_cmd
20497
20498# How to find potential files when deplibs_check_method = "file_magic".
20499file_magic_glob=$lt_file_magic_glob
20500
20501# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20502want_nocaseglob=$lt_want_nocaseglob
20503
20504# DLL creation program.
20505DLLTOOL=$lt_DLLTOOL
20506
20507# Command to associate shared and link libraries.
20508sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20509
20510# The archiver.
20511AR=$lt_AR
20512
20513# Flags to create an archive.
20514AR_FLAGS=$lt_AR_FLAGS
20515
20516# How to feed a file listing to the archiver.
20517archiver_list_spec=$lt_archiver_list_spec
20518
20519# A symbol stripping program.
20520STRIP=$lt_STRIP
20521
20522# Commands used to install an old-style archive.
20523RANLIB=$lt_RANLIB
20524old_postinstall_cmds=$lt_old_postinstall_cmds
20525old_postuninstall_cmds=$lt_old_postuninstall_cmds
20526
20527# Whether to use a lock for old archive extraction.
20528lock_old_archive_extraction=$lock_old_archive_extraction
20529
20530# A C compiler.
20531LTCC=$lt_CC
20532
20533# LTCC compiler flags.
20534LTCFLAGS=$lt_CFLAGS
20535
20536# Take the output of nm and produce a listing of raw symbols and C names.
20537global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20538
20539# Transform the output of nm in a proper C declaration.
20540global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20541
20542# Transform the output of nm in a C name address pair.
20543global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20544
20545# Transform the output of nm in a C name address pair when lib prefix is needed.
20546global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20547
20548# Specify filename containing input files for \$NM.
20549nm_file_list_spec=$lt_nm_file_list_spec
20550
20551# The root where to search for dependent libraries,and in which our libraries should be installed.
20552lt_sysroot=$lt_sysroot
20553
20554# The name of the directory that contains temporary libtool files.
20555objdir=$objdir
20556
20557# Used to examine libraries when file_magic_cmd begins with "file".
20558MAGIC_CMD=$MAGIC_CMD
20559
20560# Must we lock files when doing compilation?
20561need_locks=$lt_need_locks
20562
20563# Manifest tool.
20564MANIFEST_TOOL=$lt_MANIFEST_TOOL
20565
20566# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20567DSYMUTIL=$lt_DSYMUTIL
20568
20569# Tool to change global to local symbols on Mac OS X.
20570NMEDIT=$lt_NMEDIT
20571
20572# Tool to manipulate fat objects and archives on Mac OS X.
20573LIPO=$lt_LIPO
20574
20575# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20576OTOOL=$lt_OTOOL
20577
20578# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20579OTOOL64=$lt_OTOOL64
20580
20581# Old archive suffix (normally "a").
20582libext=$libext
20583
20584# Shared library suffix (normally ".so").
20585shrext_cmds=$lt_shrext_cmds
20586
20587# The commands to extract the exported symbol list from a shared archive.
20588extract_expsyms_cmds=$lt_extract_expsyms_cmds
20589
20590# Variables whose values should be saved in libtool wrapper scripts and
20591# restored at link time.
20592variables_saved_for_relink=$lt_variables_saved_for_relink
20593
20594# Do we need the "lib" prefix for modules?
20595need_lib_prefix=$need_lib_prefix
20596
20597# Do we need a version for libraries?
20598need_version=$need_version
20599
20600# Library versioning type.
20601version_type=$version_type
20602
20603# Shared library runtime path variable.
20604runpath_var=$runpath_var
20605
20606# Shared library path variable.
20607shlibpath_var=$shlibpath_var
20608
20609# Is shlibpath searched before the hard-coded library search path?
20610shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20611
20612# Format of library name prefix.
20613libname_spec=$lt_libname_spec
20614
20615# List of archive names.  First name is the real one, the rest are links.
20616# The last name is the one that the linker finds with -lNAME
20617library_names_spec=$lt_library_names_spec
20618
20619# The coded name of the library, if different from the real name.
20620soname_spec=$lt_soname_spec
20621
20622# Permission mode override for installation of shared libraries.
20623install_override_mode=$lt_install_override_mode
20624
20625# Command to use after installation of a shared archive.
20626postinstall_cmds=$lt_postinstall_cmds
20627
20628# Command to use after uninstallation of a shared archive.
20629postuninstall_cmds=$lt_postuninstall_cmds
20630
20631# Commands used to finish a libtool library installation in a directory.
20632finish_cmds=$lt_finish_cmds
20633
20634# As "finish_cmds", except a single script fragment to be evaled but
20635# not shown.
20636finish_eval=$lt_finish_eval
20637
20638# Whether we should hardcode library paths into libraries.
20639hardcode_into_libs=$hardcode_into_libs
20640
20641# Compile-time system search path for libraries.
20642sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20643
20644# Run-time system search path for libraries.
20645sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20646
20647# Whether dlopen is supported.
20648dlopen_support=$enable_dlopen
20649
20650# Whether dlopen of programs is supported.
20651dlopen_self=$enable_dlopen_self
20652
20653# Whether dlopen of statically linked programs is supported.
20654dlopen_self_static=$enable_dlopen_self_static
20655
20656# Commands to strip libraries.
20657old_striplib=$lt_old_striplib
20658striplib=$lt_striplib
20659
20660
20661# The linker used to build libraries.
20662LD=$lt_LD
20663
20664# How to create reloadable object files.
20665reload_flag=$lt_reload_flag
20666reload_cmds=$lt_reload_cmds
20667
20668# Commands used to build an old-style archive.
20669old_archive_cmds=$lt_old_archive_cmds
20670
20671# A language specific compiler.
20672CC=$lt_compiler
20673
20674# Is the compiler the GNU compiler?
20675with_gcc=$GCC
20676
20677# Compiler flag to turn off builtin functions.
20678no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20679
20680# Additional compiler flags for building library objects.
20681pic_flag=$lt_lt_prog_compiler_pic
20682
20683# How to pass a linker flag through the compiler.
20684wl=$lt_lt_prog_compiler_wl
20685
20686# Compiler flag to prevent dynamic linking.
20687link_static_flag=$lt_lt_prog_compiler_static
20688
20689# Does compiler simultaneously support -c and -o options?
20690compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20691
20692# Whether or not to add -lc for building shared libraries.
20693build_libtool_need_lc=$archive_cmds_need_lc
20694
20695# Whether or not to disallow shared libs when runtime libs are static.
20696allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20697
20698# Compiler flag to allow reflexive dlopens.
20699export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20700
20701# Compiler flag to generate shared objects directly from archives.
20702whole_archive_flag_spec=$lt_whole_archive_flag_spec
20703
20704# Whether the compiler copes with passing no objects directly.
20705compiler_needs_object=$lt_compiler_needs_object
20706
20707# Create an old-style archive from a shared archive.
20708old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20709
20710# Create a temporary old-style archive to link instead of a shared archive.
20711old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20712
20713# Commands used to build a shared archive.
20714archive_cmds=$lt_archive_cmds
20715archive_expsym_cmds=$lt_archive_expsym_cmds
20716
20717# Commands used to build a loadable module if different from building
20718# a shared archive.
20719module_cmds=$lt_module_cmds
20720module_expsym_cmds=$lt_module_expsym_cmds
20721
20722# Whether we are building with GNU ld or not.
20723with_gnu_ld=$lt_with_gnu_ld
20724
20725# Flag that allows shared libraries with undefined symbols to be built.
20726allow_undefined_flag=$lt_allow_undefined_flag
20727
20728# Flag that enforces no undefined symbols.
20729no_undefined_flag=$lt_no_undefined_flag
20730
20731# Flag to hardcode \$libdir into a binary during linking.
20732# This must work even if \$libdir does not exist
20733hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20734
20735# Whether we need a single "-rpath" flag with a separated argument.
20736hardcode_libdir_separator=$lt_hardcode_libdir_separator
20737
20738# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20739# DIR into the resulting binary.
20740hardcode_direct=$hardcode_direct
20741
20742# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20743# DIR into the resulting binary and the resulting library dependency is
20744# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20745# library is relocated.
20746hardcode_direct_absolute=$hardcode_direct_absolute
20747
20748# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20749# into the resulting binary.
20750hardcode_minus_L=$hardcode_minus_L
20751
20752# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20753# into the resulting binary.
20754hardcode_shlibpath_var=$hardcode_shlibpath_var
20755
20756# Set to "yes" if building a shared library automatically hardcodes DIR
20757# into the library and all subsequent libraries and executables linked
20758# against it.
20759hardcode_automatic=$hardcode_automatic
20760
20761# Set to yes if linker adds runtime paths of dependent libraries
20762# to runtime path list.
20763inherit_rpath=$inherit_rpath
20764
20765# Whether libtool must link a program against all its dependency libraries.
20766link_all_deplibs=$link_all_deplibs
20767
20768# Set to "yes" if exported symbols are required.
20769always_export_symbols=$always_export_symbols
20770
20771# The commands to list exported symbols.
20772export_symbols_cmds=$lt_export_symbols_cmds
20773
20774# Symbols that should not be listed in the preloaded symbols.
20775exclude_expsyms=$lt_exclude_expsyms
20776
20777# Symbols that must always be exported.
20778include_expsyms=$lt_include_expsyms
20779
20780# Commands necessary for linking programs (against libraries) with templates.
20781prelink_cmds=$lt_prelink_cmds
20782
20783# Commands necessary for finishing linking programs.
20784postlink_cmds=$lt_postlink_cmds
20785
20786# Specify filename containing input files.
20787file_list_spec=$lt_file_list_spec
20788
20789# How to hardcode a shared library path into an executable.
20790hardcode_action=$hardcode_action
20791
20792# ### END LIBTOOL CONFIG
20793
20794_LT_EOF
20795
20796  case $host_os in
20797  aix3*)
20798    cat <<\_LT_EOF >> "$cfgfile"
20799# AIX sometimes has problems with the GCC collect2 program.  For some
20800# reason, if we set the COLLECT_NAMES environment variable, the problems
20801# vanish in a puff of smoke.
20802if test "X${COLLECT_NAMES+set}" != Xset; then
20803  COLLECT_NAMES=
20804  export COLLECT_NAMES
20805fi
20806_LT_EOF
20807    ;;
20808  esac
20809
20810
20811ltmain="$ac_aux_dir/ltmain.sh"
20812
20813
20814  # We use sed instead of cat because bash on DJGPP gets confused if
20815  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20816  # text mode, it properly converts lines to CR/LF.  This bash problem
20817  # is reportedly fixed, but why not run on old versions too?
20818  sed '$q' "$ltmain" >> "$cfgfile" \
20819     || (rm -f "$cfgfile"; exit 1)
20820
20821  if test x"$xsi_shell" = xyes; then
20822  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20823func_dirname ()\
20824{\
20825\    case ${1} in\
20826\      */*) func_dirname_result="${1%/*}${2}" ;;\
20827\      *  ) func_dirname_result="${3}" ;;\
20828\    esac\
20829} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20830  && mv -f "$cfgfile.tmp" "$cfgfile" \
20831    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20832test 0 -eq $? || _lt_function_replace_fail=:
20833
20834
20835  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20836func_basename ()\
20837{\
20838\    func_basename_result="${1##*/}"\
20839} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20840  && mv -f "$cfgfile.tmp" "$cfgfile" \
20841    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20842test 0 -eq $? || _lt_function_replace_fail=:
20843
20844
20845  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20846func_dirname_and_basename ()\
20847{\
20848\    case ${1} in\
20849\      */*) func_dirname_result="${1%/*}${2}" ;;\
20850\      *  ) func_dirname_result="${3}" ;;\
20851\    esac\
20852\    func_basename_result="${1##*/}"\
20853} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20854  && mv -f "$cfgfile.tmp" "$cfgfile" \
20855    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20856test 0 -eq $? || _lt_function_replace_fail=:
20857
20858
20859  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20860func_stripname ()\
20861{\
20862\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20863\    # positional parameters, so assign one to ordinary parameter first.\
20864\    func_stripname_result=${3}\
20865\    func_stripname_result=${func_stripname_result#"${1}"}\
20866\    func_stripname_result=${func_stripname_result%"${2}"}\
20867} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20868  && mv -f "$cfgfile.tmp" "$cfgfile" \
20869    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20870test 0 -eq $? || _lt_function_replace_fail=:
20871
20872
20873  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20874func_split_long_opt ()\
20875{\
20876\    func_split_long_opt_name=${1%%=*}\
20877\    func_split_long_opt_arg=${1#*=}\
20878} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20879  && mv -f "$cfgfile.tmp" "$cfgfile" \
20880    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20881test 0 -eq $? || _lt_function_replace_fail=:
20882
20883
20884  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20885func_split_short_opt ()\
20886{\
20887\    func_split_short_opt_arg=${1#??}\
20888\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20889} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20890  && mv -f "$cfgfile.tmp" "$cfgfile" \
20891    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20892test 0 -eq $? || _lt_function_replace_fail=:
20893
20894
20895  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20896func_lo2o ()\
20897{\
20898\    case ${1} in\
20899\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20900\      *)    func_lo2o_result=${1} ;;\
20901\    esac\
20902} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20903  && mv -f "$cfgfile.tmp" "$cfgfile" \
20904    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20905test 0 -eq $? || _lt_function_replace_fail=:
20906
20907
20908  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20909func_xform ()\
20910{\
20911    func_xform_result=${1%.*}.lo\
20912} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20913  && mv -f "$cfgfile.tmp" "$cfgfile" \
20914    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20915test 0 -eq $? || _lt_function_replace_fail=:
20916
20917
20918  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20919func_arith ()\
20920{\
20921    func_arith_result=$(( $* ))\
20922} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20923  && mv -f "$cfgfile.tmp" "$cfgfile" \
20924    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20925test 0 -eq $? || _lt_function_replace_fail=:
20926
20927
20928  sed -e '/^func_len ()$/,/^} # func_len /c\
20929func_len ()\
20930{\
20931    func_len_result=${#1}\
20932} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20933  && mv -f "$cfgfile.tmp" "$cfgfile" \
20934    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20935test 0 -eq $? || _lt_function_replace_fail=:
20936
20937fi
20938
20939if test x"$lt_shell_append" = xyes; then
20940  sed -e '/^func_append ()$/,/^} # func_append /c\
20941func_append ()\
20942{\
20943    eval "${1}+=\\${2}"\
20944} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20945  && mv -f "$cfgfile.tmp" "$cfgfile" \
20946    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20947test 0 -eq $? || _lt_function_replace_fail=:
20948
20949
20950  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20951func_append_quoted ()\
20952{\
20953\    func_quote_for_eval "${2}"\
20954\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20955} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20956  && mv -f "$cfgfile.tmp" "$cfgfile" \
20957    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20958test 0 -eq $? || _lt_function_replace_fail=:
20959
20960
20961  # Save a `func_append' function call where possible by direct use of '+='
20962  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20963    && mv -f "$cfgfile.tmp" "$cfgfile" \
20964      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20965  test 0 -eq $? || _lt_function_replace_fail=:
20966else
20967  # Save a `func_append' function call even when '+=' is not available
20968  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20969    && mv -f "$cfgfile.tmp" "$cfgfile" \
20970      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20971  test 0 -eq $? || _lt_function_replace_fail=:
20972fi
20973
20974if test x"$_lt_function_replace_fail" = x":"; then
20975  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20976$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20977fi
20978
20979
20980   mv -f "$cfgfile" "$ofile" ||
20981    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20982  chmod +x "$ofile"
20983
20984 ;;
20985
20986  esac
20987done # for ac_tag
20988
20989
20990as_fn_exit 0
20991_ACEOF
20992ac_clean_files=$ac_clean_files_save
20993
20994test $ac_write_fail = 0 ||
20995  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20996
20997
20998# configure is writing to config.log, and then calls config.status.
20999# config.status does its own redirection, appending to config.log.
21000# Unfortunately, on DOS this fails, as config.log is still kept open
21001# by configure, so config.status won't be able to write to it; its
21002# output is simply discarded.  So we exec the FD to /dev/null,
21003# effectively closing config.log, so it can be properly (re)opened and
21004# appended to by config.status.  When coming back to configure, we
21005# need to make the FD available again.
21006if test "$no_create" != yes; then
21007  ac_cs_success=:
21008  ac_config_status_args=
21009  test "$silent" = yes &&
21010    ac_config_status_args="$ac_config_status_args --quiet"
21011  exec 5>/dev/null
21012  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21013  exec 5>>config.log
21014  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21015  # would make configure fail if this is the last instruction.
21016  $ac_cs_success || as_fn_exit 1
21017fi
21018if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21019  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21020$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21021fi
21022
21023