1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-video-ark 0.7.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ark/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ark/-/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='xf86-video-ark'
624PACKAGE_TARNAME='xf86-video-ark'
625PACKAGE_VERSION='0.7.6'
626PACKAGE_STRING='xf86-video-ark 0.7.6'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-ark/-/issues'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667DRIVER_NAME
668XAA_FALSE
669XAA_TRUE
670XSERVER_LIBPCIACCESS_FALSE
671XSERVER_LIBPCIACCESS_TRUE
672PCIACCESS_LIBS
673PCIACCESS_CFLAGS
674XORG_LIBS
675XORG_CFLAGS
676moduledir
677LT_SYS_LIBRARY_PATH
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683MANIFEST_TOOL
684RANLIB
685ac_ct_AR
686AR
687DLLTOOL
688OBJDUMP
689FILECMD
690LN_S
691NM
692ac_ct_DUMPBIN
693DUMPBIN
694LD
695FGREP
696EGREP
697GREP
698LIBTOOL
699MAN_SUBSTS
700XORG_MAN_PAGE
701ADMIN_MAN_DIR
702DRIVER_MAN_DIR
703MISC_MAN_DIR
704FILE_MAN_DIR
705LIB_MAN_DIR
706APP_MAN_DIR
707ADMIN_MAN_SUFFIX
708DRIVER_MAN_SUFFIX
709MISC_MAN_SUFFIX
710FILE_MAN_SUFFIX
711LIB_MAN_SUFFIX
712APP_MAN_SUFFIX
713SED
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722INSTALL_CMD
723PKG_CONFIG_LIBDIR
724PKG_CONFIG_PATH
725PKG_CONFIG
726CHANGELOG_CMD
727STRICT_CFLAGS
728CWARNFLAGS
729BASE_CFLAGS
730am__fastdepCC_FALSE
731am__fastdepCC_TRUE
732CCDEPMODE
733am__nodep
734AMDEPBACKSLASH
735AMDEP_FALSE
736AMDEP_TRUE
737am__include
738DEPDIR
739OBJEXT
740EXEEXT
741ac_ct_CC
742CPPFLAGS
743LDFLAGS
744CFLAGS
745CC
746MAINT
747MAINTAINER_MODE_FALSE
748MAINTAINER_MODE_TRUE
749AM_BACKSLASH
750AM_DEFAULT_VERBOSITY
751AM_DEFAULT_V
752AM_V
753CSCOPE
754ETAGS
755CTAGS
756am__untar
757am__tar
758AMTAR
759am__leading_dot
760SET_MAKE
761AWK
762mkdir_p
763MKDIR_P
764INSTALL_STRIP_PROGRAM
765STRIP
766install_sh
767MAKEINFO
768AUTOHEADER
769AUTOMAKE
770AUTOCONF
771ACLOCAL
772VERSION
773PACKAGE
774CYGPATH_W
775am__isrc
776INSTALL_DATA
777INSTALL_SCRIPT
778INSTALL_PROGRAM
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798runstatedir
799localstatedir
800sharedstatedir
801sysconfdir
802datadir
803datarootdir
804libexecdir
805sbindir
806bindir
807program_transform_name
808prefix
809exec_prefix
810PACKAGE_URL
811PACKAGE_BUGREPORT
812PACKAGE_STRING
813PACKAGE_VERSION
814PACKAGE_TARNAME
815PACKAGE_NAME
816PATH_SEPARATOR
817SHELL
818am__quote'
819ac_subst_files=''
820ac_user_opts='
821enable_option_checking
822enable_silent_rules
823enable_maintainer_mode
824enable_dependency_tracking
825enable_selective_werror
826enable_strict_compilation
827enable_static
828enable_shared
829with_pic
830enable_fast_install
831with_aix_soname
832with_gnu_ld
833with_sysroot
834enable_libtool_lock
835with_xorg_module_dir
836enable_xaa
837'
838      ac_precious_vars='build_alias
839host_alias
840target_alias
841CC
842CFLAGS
843LDFLAGS
844LIBS
845CPPFLAGS
846PKG_CONFIG
847PKG_CONFIG_PATH
848PKG_CONFIG_LIBDIR
849LT_SYS_LIBRARY_PATH
850XORG_CFLAGS
851XORG_LIBS
852PCIACCESS_CFLAGS
853PCIACCESS_LIBS'
854
855
856# Initialize some variables set by options.
857ac_init_help=
858ac_init_version=false
859ac_unrecognized_opts=
860ac_unrecognized_sep=
861# The variables have the same names as the options, with
862# dashes changed to underlines.
863cache_file=/dev/null
864exec_prefix=NONE
865no_create=
866no_recursion=
867prefix=NONE
868program_prefix=NONE
869program_suffix=NONE
870program_transform_name=s,x,x,
871silent=
872site=
873srcdir=
874verbose=
875x_includes=NONE
876x_libraries=NONE
877
878# Installation directory options.
879# These are left unexpanded so users can "make install exec_prefix=/foo"
880# and all the variables that are supposed to be based on exec_prefix
881# by default will actually change.
882# Use braces instead of parens because sh, perl, etc. also accept them.
883# (The list follows the same order as the GNU Coding Standards.)
884bindir='${exec_prefix}/bin'
885sbindir='${exec_prefix}/sbin'
886libexecdir='${exec_prefix}/libexec'
887datarootdir='${prefix}/share'
888datadir='${datarootdir}'
889sysconfdir='${prefix}/etc'
890sharedstatedir='${prefix}/com'
891localstatedir='${prefix}/var'
892runstatedir='${localstatedir}/run'
893includedir='${prefix}/include'
894oldincludedir='/usr/include'
895docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896infodir='${datarootdir}/info'
897htmldir='${docdir}'
898dvidir='${docdir}'
899pdfdir='${docdir}'
900psdir='${docdir}'
901libdir='${exec_prefix}/lib'
902localedir='${datarootdir}/locale'
903mandir='${datarootdir}/man'
904
905ac_prev=
906ac_dashdash=
907for ac_option
908do
909  # If the previous option needs an argument, assign it.
910  if test -n "$ac_prev"; then
911    eval $ac_prev=\$ac_option
912    ac_prev=
913    continue
914  fi
915
916  case $ac_option in
917  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918  *=)   ac_optarg= ;;
919  *)    ac_optarg=yes ;;
920  esac
921
922  case $ac_dashdash$ac_option in
923  --)
924    ac_dashdash=yes ;;
925
926  -bindir | --bindir | --bindi | --bind | --bin | --bi)
927    ac_prev=bindir ;;
928  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929    bindir=$ac_optarg ;;
930
931  -build | --build | --buil | --bui | --bu)
932    ac_prev=build_alias ;;
933  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934    build_alias=$ac_optarg ;;
935
936  -cache-file | --cache-file | --cache-fil | --cache-fi \
937  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938    ac_prev=cache_file ;;
939  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941    cache_file=$ac_optarg ;;
942
943  --config-cache | -C)
944    cache_file=config.cache ;;
945
946  -datadir | --datadir | --datadi | --datad)
947    ac_prev=datadir ;;
948  -datadir=* | --datadir=* | --datadi=* | --datad=*)
949    datadir=$ac_optarg ;;
950
951  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952  | --dataroo | --dataro | --datar)
953    ac_prev=datarootdir ;;
954  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956    datarootdir=$ac_optarg ;;
957
958  -disable-* | --disable-*)
959    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960    # Reject names that are not valid shell variable names.
961    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962      as_fn_error $? "invalid feature name: \`$ac_useropt'"
963    ac_useropt_orig=$ac_useropt
964    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
965    case $ac_user_opts in
966      *"
967"enable_$ac_useropt"
968"*) ;;
969      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970	 ac_unrecognized_sep=', ';;
971    esac
972    eval enable_$ac_useropt=no ;;
973
974  -docdir | --docdir | --docdi | --doc | --do)
975    ac_prev=docdir ;;
976  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977    docdir=$ac_optarg ;;
978
979  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980    ac_prev=dvidir ;;
981  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982    dvidir=$ac_optarg ;;
983
984  -enable-* | --enable-*)
985    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986    # Reject names that are not valid shell variable names.
987    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988      as_fn_error $? "invalid feature name: \`$ac_useropt'"
989    ac_useropt_orig=$ac_useropt
990    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
991    case $ac_user_opts in
992      *"
993"enable_$ac_useropt"
994"*) ;;
995      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996	 ac_unrecognized_sep=', ';;
997    esac
998    eval enable_$ac_useropt=\$ac_optarg ;;
999
1000  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002  | --exec | --exe | --ex)
1003    ac_prev=exec_prefix ;;
1004  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006  | --exec=* | --exe=* | --ex=*)
1007    exec_prefix=$ac_optarg ;;
1008
1009  -gas | --gas | --ga | --g)
1010    # Obsolete; use --with-gas.
1011    with_gas=yes ;;
1012
1013  -help | --help | --hel | --he | -h)
1014    ac_init_help=long ;;
1015  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016    ac_init_help=recursive ;;
1017  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018    ac_init_help=short ;;
1019
1020  -host | --host | --hos | --ho)
1021    ac_prev=host_alias ;;
1022  -host=* | --host=* | --hos=* | --ho=*)
1023    host_alias=$ac_optarg ;;
1024
1025  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026    ac_prev=htmldir ;;
1027  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028  | --ht=*)
1029    htmldir=$ac_optarg ;;
1030
1031  -includedir | --includedir | --includedi | --included | --include \
1032  | --includ | --inclu | --incl | --inc)
1033    ac_prev=includedir ;;
1034  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035  | --includ=* | --inclu=* | --incl=* | --inc=*)
1036    includedir=$ac_optarg ;;
1037
1038  -infodir | --infodir | --infodi | --infod | --info | --inf)
1039    ac_prev=infodir ;;
1040  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041    infodir=$ac_optarg ;;
1042
1043  -libdir | --libdir | --libdi | --libd)
1044    ac_prev=libdir ;;
1045  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046    libdir=$ac_optarg ;;
1047
1048  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049  | --libexe | --libex | --libe)
1050    ac_prev=libexecdir ;;
1051  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052  | --libexe=* | --libex=* | --libe=*)
1053    libexecdir=$ac_optarg ;;
1054
1055  -localedir | --localedir | --localedi | --localed | --locale)
1056    ac_prev=localedir ;;
1057  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058    localedir=$ac_optarg ;;
1059
1060  -localstatedir | --localstatedir | --localstatedi | --localstated \
1061  | --localstate | --localstat | --localsta | --localst | --locals)
1062    ac_prev=localstatedir ;;
1063  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065    localstatedir=$ac_optarg ;;
1066
1067  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068    ac_prev=mandir ;;
1069  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070    mandir=$ac_optarg ;;
1071
1072  -nfp | --nfp | --nf)
1073    # Obsolete; use --without-fp.
1074    with_fp=no ;;
1075
1076  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077  | --no-cr | --no-c | -n)
1078    no_create=yes ;;
1079
1080  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082    no_recursion=yes ;;
1083
1084  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086  | --oldin | --oldi | --old | --ol | --o)
1087    ac_prev=oldincludedir ;;
1088  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091    oldincludedir=$ac_optarg ;;
1092
1093  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094    ac_prev=prefix ;;
1095  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096    prefix=$ac_optarg ;;
1097
1098  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099  | --program-pre | --program-pr | --program-p)
1100    ac_prev=program_prefix ;;
1101  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103    program_prefix=$ac_optarg ;;
1104
1105  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106  | --program-suf | --program-su | --program-s)
1107    ac_prev=program_suffix ;;
1108  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110    program_suffix=$ac_optarg ;;
1111
1112  -program-transform-name | --program-transform-name \
1113  | --program-transform-nam | --program-transform-na \
1114  | --program-transform-n | --program-transform- \
1115  | --program-transform | --program-transfor \
1116  | --program-transfo | --program-transf \
1117  | --program-trans | --program-tran \
1118  | --progr-tra | --program-tr | --program-t)
1119    ac_prev=program_transform_name ;;
1120  -program-transform-name=* | --program-transform-name=* \
1121  | --program-transform-nam=* | --program-transform-na=* \
1122  | --program-transform-n=* | --program-transform-=* \
1123  | --program-transform=* | --program-transfor=* \
1124  | --program-transfo=* | --program-transf=* \
1125  | --program-trans=* | --program-tran=* \
1126  | --progr-tra=* | --program-tr=* | --program-t=*)
1127    program_transform_name=$ac_optarg ;;
1128
1129  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130    ac_prev=pdfdir ;;
1131  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132    pdfdir=$ac_optarg ;;
1133
1134  -psdir | --psdir | --psdi | --psd | --ps)
1135    ac_prev=psdir ;;
1136  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137    psdir=$ac_optarg ;;
1138
1139  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140  | -silent | --silent | --silen | --sile | --sil)
1141    silent=yes ;;
1142
1143  -runstatedir | --runstatedir | --runstatedi | --runstated \
1144  | --runstate | --runstat | --runsta | --runst | --runs \
1145  | --run | --ru | --r)
1146    ac_prev=runstatedir ;;
1147  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1148  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1149  | --run=* | --ru=* | --r=*)
1150    runstatedir=$ac_optarg ;;
1151
1152  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153    ac_prev=sbindir ;;
1154  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155  | --sbi=* | --sb=*)
1156    sbindir=$ac_optarg ;;
1157
1158  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160  | --sharedst | --shareds | --shared | --share | --shar \
1161  | --sha | --sh)
1162    ac_prev=sharedstatedir ;;
1163  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166  | --sha=* | --sh=*)
1167    sharedstatedir=$ac_optarg ;;
1168
1169  -site | --site | --sit)
1170    ac_prev=site ;;
1171  -site=* | --site=* | --sit=*)
1172    site=$ac_optarg ;;
1173
1174  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175    ac_prev=srcdir ;;
1176  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177    srcdir=$ac_optarg ;;
1178
1179  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180  | --syscon | --sysco | --sysc | --sys | --sy)
1181    ac_prev=sysconfdir ;;
1182  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184    sysconfdir=$ac_optarg ;;
1185
1186  -target | --target | --targe | --targ | --tar | --ta | --t)
1187    ac_prev=target_alias ;;
1188  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189    target_alias=$ac_optarg ;;
1190
1191  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192    verbose=yes ;;
1193
1194  -version | --version | --versio | --versi | --vers | -V)
1195    ac_init_version=: ;;
1196
1197  -with-* | --with-*)
1198    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199    # Reject names that are not valid shell variable names.
1200    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201      as_fn_error $? "invalid package name: \`$ac_useropt'"
1202    ac_useropt_orig=$ac_useropt
1203    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204    case $ac_user_opts in
1205      *"
1206"with_$ac_useropt"
1207"*) ;;
1208      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209	 ac_unrecognized_sep=', ';;
1210    esac
1211    eval with_$ac_useropt=\$ac_optarg ;;
1212
1213  -without-* | --without-*)
1214    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217      as_fn_error $? "invalid package name: \`$ac_useropt'"
1218    ac_useropt_orig=$ac_useropt
1219    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1220    case $ac_user_opts in
1221      *"
1222"with_$ac_useropt"
1223"*) ;;
1224      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225	 ac_unrecognized_sep=', ';;
1226    esac
1227    eval with_$ac_useropt=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
1249    ;;
1250
1251  *=*)
1252    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253    # Reject names that are not valid shell variable names.
1254    case $ac_envvar in #(
1255      '' | [0-9]* | *[!_$as_cr_alnum]* )
1256      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257    esac
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  as_fn_error $? "missing argument to $ac_option"
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278  case $enable_option_checking in
1279    no) ;;
1280    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282  esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287		datadir sysconfdir sharedstatedir localstatedir includedir \
1288		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289		libdir localedir mandir runstatedir
1290do
1291  eval ac_val=\$$ac_var
1292  # Remove trailing slashes.
1293  case $ac_val in
1294    */ )
1295      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296      eval $ac_var=\$ac_val;;
1297  esac
1298  # Be sure to have absolute directory names.
1299  case $ac_val in
1300    [\\/$]* | ?:[\\/]* )  continue;;
1301    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302  esac
1303  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315  if test "x$build_alias" = x; then
1316    cross_compiling=maybe
1317  elif test "x$build_alias" != "x$host_alias"; then
1318    cross_compiling=yes
1319  fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331  as_fn_error $? "working directory cannot be determined"
1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333  as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338  ac_srcdir_defaulted=yes
1339  # Try the directory containing this script, then the parent directory.
1340  ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342	 X"$as_myself" : 'X\(//\)[^/]' \| \
1343	 X"$as_myself" : 'X\(//\)$' \| \
1344	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345printf "%s\n" X"$as_myself" |
1346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)[^/].*/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)$/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\).*/{
1359	    s//\1/
1360	    q
1361	  }
1362	  s/.*/./; q'`
1363  srcdir=$ac_confdir
1364  if test ! -r "$srcdir/$ac_unique_file"; then
1365    srcdir=..
1366  fi
1367else
1368  ac_srcdir_defaulted=no
1369fi
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
1376	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377	pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380  srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_env_${ac_var}_value=\$${ac_var}
1391  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399  # Omit some internal or obsolete options to make the list less imposing.
1400  # This message is too long to be a string in the A/UX 3.1 sh.
1401  cat <<_ACEOF
1402\`configure' configures xf86-video-ark 0.7.6 to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412  -h, --help              display this help and exit
1413      --help=short        display options specific to this package
1414      --help=recursive    display the short help of all the included packages
1415  -V, --version           display version information and exit
1416  -q, --quiet, --silent   do not print \`checking ...' messages
1417      --cache-file=FILE   cache test results in FILE [disabled]
1418  -C, --config-cache      alias for \`--cache-file=config.cache'
1419  -n, --no-create         do not create output files
1420      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423  --prefix=PREFIX         install architecture-independent files in PREFIX
1424                          [$ac_default_prefix]
1425  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426                          [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436  --bindir=DIR            user executables [EPREFIX/bin]
1437  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1438  --libexecdir=DIR        program executables [EPREFIX/libexec]
1439  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1440  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1441  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1442  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1443  --libdir=DIR            object code libraries [EPREFIX/lib]
1444  --includedir=DIR        C header files [PREFIX/include]
1445  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1446  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1447  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1448  --infodir=DIR           info documentation [DATAROOTDIR/info]
1449  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1450  --mandir=DIR            man documentation [DATAROOTDIR/man]
1451  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ark]
1452  --htmldir=DIR           html documentation [DOCDIR]
1453  --dvidir=DIR            dvi documentation [DOCDIR]
1454  --pdfdir=DIR            pdf documentation [DOCDIR]
1455  --psdir=DIR             ps documentation [DOCDIR]
1456_ACEOF
1457
1458  cat <<\_ACEOF
1459
1460Program names:
1461  --program-prefix=PREFIX            prepend PREFIX to installed program names
1462  --program-suffix=SUFFIX            append SUFFIX to installed program names
1463  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1464
1465System types:
1466  --build=BUILD     configure for building on BUILD [guessed]
1467  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1468_ACEOF
1469fi
1470
1471if test -n "$ac_init_help"; then
1472  case $ac_init_help in
1473     short | recursive ) echo "Configuration of xf86-video-ark 0.7.6:";;
1474   esac
1475  cat <<\_ACEOF
1476
1477Optional Features:
1478  --disable-option-checking  ignore unrecognized --enable/--with options
1479  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1480  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1481  --enable-silent-rules   less verbose build output (undo: "make V=1")
1482  --disable-silent-rules  verbose build output (undo: "make V=0")
1483  --enable-maintainer-mode
1484                          enable make rules and dependencies not useful (and
1485                          sometimes confusing) to the casual installer
1486  --enable-dependency-tracking
1487                          do not reject slow dependency extractors
1488  --disable-dependency-tracking
1489                          speeds up one-time build
1490  --disable-selective-werror
1491                          Turn off selective compiler errors. (default:
1492                          enabled)
1493  --enable-strict-compilation
1494                          Enable all warnings from compiler and make them
1495                          errors (default: disabled)
1496  --enable-static[=PKGS]  build static libraries [default=no]
1497  --enable-shared[=PKGS]  build shared libraries [default=yes]
1498  --enable-fast-install[=PKGS]
1499                          optimize for fast installation [default=yes]
1500  --disable-libtool-lock  avoid locking (might break parallel builds)
1501  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1502                          [default=auto]
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1508                          both]
1509  --with-aix-soname=aix|svr4|both
1510                          shared library versioning (aka "SONAME") variant to
1511                          provide on AIX, [default=aix].
1512  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1513  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1514                          compiler's sysroot if not specified).
1515  --with-xorg-module-dir=DIR
1516
1517Some influential environment variables:
1518  CC          C compiler command
1519  CFLAGS      C compiler flags
1520  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521              nonstandard directory <lib dir>
1522  LIBS        libraries to pass to the linker, e.g. -l<library>
1523  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524              you have headers in a nonstandard directory <include dir>
1525  PKG_CONFIG  path to pkg-config utility
1526  PKG_CONFIG_PATH
1527              directories to add to pkg-config's search path
1528  PKG_CONFIG_LIBDIR
1529              path overriding pkg-config's built-in search path
1530  LT_SYS_LIBRARY_PATH
1531              User-defined run-time library search path.
1532  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1533  XORG_LIBS   linker flags for XORG, overriding pkg-config
1534  PCIACCESS_CFLAGS
1535              C compiler flags for PCIACCESS, overriding pkg-config
1536  PCIACCESS_LIBS
1537              linker flags for PCIACCESS, overriding pkg-config
1538
1539Use these variables to override the choices made by `configure' or to help
1540it to find libraries and programs with nonstandard names/locations.
1541
1542Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ark/-/issues>.
1543_ACEOF
1544ac_status=$?
1545fi
1546
1547if test "$ac_init_help" = "recursive"; then
1548  # If there are subdirs, report their specific --help.
1549  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550    test -d "$ac_dir" ||
1551      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552      continue
1553    ac_builddir=.
1554
1555case "$ac_dir" in
1556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557*)
1558  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1559  # A ".." for each directory in $ac_dir_suffix.
1560  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561  case $ac_top_builddir_sub in
1562  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564  esac ;;
1565esac
1566ac_abs_top_builddir=$ac_pwd
1567ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568# for backward compatibility:
1569ac_top_builddir=$ac_top_build_prefix
1570
1571case $srcdir in
1572  .)  # We are building in place.
1573    ac_srcdir=.
1574    ac_top_srcdir=$ac_top_builddir_sub
1575    ac_abs_top_srcdir=$ac_pwd ;;
1576  [\\/]* | ?:[\\/]* )  # Absolute name.
1577    ac_srcdir=$srcdir$ac_dir_suffix;
1578    ac_top_srcdir=$srcdir
1579    ac_abs_top_srcdir=$srcdir ;;
1580  *) # Relative name.
1581    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582    ac_top_srcdir=$ac_top_build_prefix$srcdir
1583    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584esac
1585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587    cd "$ac_dir" || { ac_status=$?; continue; }
1588    # Check for configure.gnu first; this name is used for a wrapper for
1589    # Metaconfig's "Configure" on case-insensitive file systems.
1590    if test -f "$ac_srcdir/configure.gnu"; then
1591      echo &&
1592      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593    elif test -f "$ac_srcdir/configure"; then
1594      echo &&
1595      $SHELL "$ac_srcdir/configure" --help=recursive
1596    else
1597      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598    fi || ac_status=$?
1599    cd "$ac_pwd" || { ac_status=$?; break; }
1600  done
1601fi
1602
1603test -n "$ac_init_help" && exit $ac_status
1604if $ac_init_version; then
1605  cat <<\_ACEOF
1606xf86-video-ark configure 0.7.6
1607generated by GNU Autoconf 2.71
1608
1609Copyright (C) 2021 Free Software Foundation, Inc.
1610This configure script is free software; the Free Software Foundation
1611gives unlimited permission to copy, distribute and modify it.
1612_ACEOF
1613  exit
1614fi
1615
1616## ------------------------ ##
1617## Autoconf initialization. ##
1618## ------------------------ ##
1619
1620# ac_fn_c_try_compile LINENO
1621# --------------------------
1622# Try to compile conftest.$ac_ext, and return whether this succeeded.
1623ac_fn_c_try_compile ()
1624{
1625  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626  rm -f conftest.$ac_objext conftest.beam
1627  if { { ac_try="$ac_compile"
1628case "(($ac_try" in
1629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630  *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633printf "%s\n" "$ac_try_echo"; } >&5
1634  (eval "$ac_compile") 2>conftest.err
1635  ac_status=$?
1636  if test -s conftest.err; then
1637    grep -v '^ *+' conftest.err >conftest.er1
1638    cat conftest.er1 >&5
1639    mv -f conftest.er1 conftest.err
1640  fi
1641  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642  test $ac_status = 0; } && {
1643	 test -z "$ac_c_werror_flag" ||
1644	 test ! -s conftest.err
1645       } && test -s conftest.$ac_objext
1646then :
1647  ac_retval=0
1648else $as_nop
1649  printf "%s\n" "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652	ac_retval=1
1653fi
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655  as_fn_set_status $ac_retval
1656
1657} # ac_fn_c_try_compile
1658
1659# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1660# ------------------------------------------------------------------
1661# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1662# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1663ac_fn_check_decl ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  as_decl_name=`echo $2|sed 's/ *(.*//'`
1667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1668printf %s "checking whether $as_decl_name is declared... " >&6; }
1669if eval test \${$3+y}
1670then :
1671  printf %s "(cached) " >&6
1672else $as_nop
1673  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1674  eval ac_save_FLAGS=\$$6
1675  as_fn_append $6 " $5"
1676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h.  */
1678$4
1679int
1680main (void)
1681{
1682#ifndef $as_decl_name
1683#ifdef __cplusplus
1684  (void) $as_decl_use;
1685#else
1686  (void) $as_decl_name;
1687#endif
1688#endif
1689
1690  ;
1691  return 0;
1692}
1693_ACEOF
1694if ac_fn_c_try_compile "$LINENO"
1695then :
1696  eval "$3=yes"
1697else $as_nop
1698  eval "$3=no"
1699fi
1700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1701  eval $6=\$ac_save_FLAGS
1702
1703fi
1704eval ac_res=\$$3
1705	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706printf "%s\n" "$ac_res" >&6; }
1707  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709} # ac_fn_check_decl
1710
1711# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712# -------------------------------------------------------
1713# Tests whether HEADER exists and can be compiled using the include files in
1714# INCLUDES, setting the cache variable VAR accordingly.
1715ac_fn_c_check_header_compile ()
1716{
1717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719printf %s "checking for $2... " >&6; }
1720if eval test \${$3+y}
1721then :
1722  printf %s "(cached) " >&6
1723else $as_nop
1724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h.  */
1726$4
1727#include <$2>
1728_ACEOF
1729if ac_fn_c_try_compile "$LINENO"
1730then :
1731  eval "$3=yes"
1732else $as_nop
1733  eval "$3=no"
1734fi
1735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1736fi
1737eval ac_res=\$$3
1738	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739printf "%s\n" "$ac_res" >&6; }
1740  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741
1742} # ac_fn_c_check_header_compile
1743
1744# ac_fn_c_try_link LINENO
1745# -----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded.
1747ac_fn_c_try_link ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1751  if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757printf "%s\n" "$ac_try_echo"; } >&5
1758  (eval "$ac_link") 2>conftest.err
1759  ac_status=$?
1760  if test -s conftest.err; then
1761    grep -v '^ *+' conftest.err >conftest.er1
1762    cat conftest.er1 >&5
1763    mv -f conftest.er1 conftest.err
1764  fi
1765  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; } && {
1767	 test -z "$ac_c_werror_flag" ||
1768	 test ! -s conftest.err
1769       } && test -s conftest$ac_exeext && {
1770	 test "$cross_compiling" = yes ||
1771	 test -x conftest$ac_exeext
1772       }
1773then :
1774  ac_retval=0
1775else $as_nop
1776  printf "%s\n" "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779	ac_retval=1
1780fi
1781  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783  # interfere with the next link command; also delete a directory that is
1784  # left behind by Apple's compiler.  We do this before executing the actions.
1785  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787  as_fn_set_status $ac_retval
1788
1789} # ac_fn_c_try_link
1790
1791# ac_fn_c_check_func LINENO FUNC VAR
1792# ----------------------------------
1793# Tests whether FUNC exists, setting the cache variable VAR accordingly
1794ac_fn_c_check_func ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798printf %s "checking for $2... " >&6; }
1799if eval test \${$3+y}
1800then :
1801  printf %s "(cached) " >&6
1802else $as_nop
1803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h.  */
1805/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1807#define $2 innocuous_$2
1808
1809/* System header to define __stub macros and hopefully few prototypes,
1810   which can conflict with char $2 (); below.  */
1811
1812#include <limits.h>
1813#undef $2
1814
1815/* Override any GCC internal prototype to avoid an error.
1816   Use char because int might match the return type of a GCC
1817   builtin and then its argument prototype would still apply.  */
1818#ifdef __cplusplus
1819extern "C"
1820#endif
1821char $2 ();
1822/* The GNU C library defines this for functions which it implements
1823    to always fail with ENOSYS.  Some functions are actually named
1824    something starting with __ and the normal name is an alias.  */
1825#if defined __stub_$2 || defined __stub___$2
1826choke me
1827#endif
1828
1829int
1830main (void)
1831{
1832return $2 ();
1833  ;
1834  return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_link "$LINENO"
1838then :
1839  eval "$3=yes"
1840else $as_nop
1841  eval "$3=no"
1842fi
1843rm -f core conftest.err conftest.$ac_objext conftest.beam \
1844    conftest$ac_exeext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848printf "%s\n" "$ac_res" >&6; }
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851} # ac_fn_c_check_func
1852ac_configure_args_raw=
1853for ac_arg
1854do
1855  case $ac_arg in
1856  *\'*)
1857    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1858  esac
1859  as_fn_append ac_configure_args_raw " '$ac_arg'"
1860done
1861
1862case $ac_configure_args_raw in
1863  *$as_nl*)
1864    ac_safe_unquote= ;;
1865  *)
1866    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1867    ac_unsafe_a="$ac_unsafe_z#~"
1868    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1869    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1870esac
1871
1872cat >config.log <<_ACEOF
1873This file contains any messages produced by compilers while
1874running configure, to aid debugging if configure makes a mistake.
1875
1876It was created by xf86-video-ark $as_me 0.7.6, which was
1877generated by GNU Autoconf 2.71.  Invocation command line was
1878
1879  $ $0$ac_configure_args_raw
1880
1881_ACEOF
1882exec 5>>config.log
1883{
1884cat <<_ASUNAME
1885## --------- ##
1886## Platform. ##
1887## --------- ##
1888
1889hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1890uname -m = `(uname -m) 2>/dev/null || echo unknown`
1891uname -r = `(uname -r) 2>/dev/null || echo unknown`
1892uname -s = `(uname -s) 2>/dev/null || echo unknown`
1893uname -v = `(uname -v) 2>/dev/null || echo unknown`
1894
1895/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1896/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1897
1898/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1899/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1900/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1901/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1902/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1903/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1904/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1905
1906_ASUNAME
1907
1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909for as_dir in $PATH
1910do
1911  IFS=$as_save_IFS
1912  case $as_dir in #(((
1913    '') as_dir=./ ;;
1914    */) ;;
1915    *) as_dir=$as_dir/ ;;
1916  esac
1917    printf "%s\n" "PATH: $as_dir"
1918  done
1919IFS=$as_save_IFS
1920
1921} >&5
1922
1923cat >&5 <<_ACEOF
1924
1925
1926## ----------- ##
1927## Core tests. ##
1928## ----------- ##
1929
1930_ACEOF
1931
1932
1933# Keep a trace of the command line.
1934# Strip out --no-create and --no-recursion so they do not pile up.
1935# Strip out --silent because we don't want to record it for future runs.
1936# Also quote any args containing shell meta-characters.
1937# Make two passes to allow for proper duplicate-argument suppression.
1938ac_configure_args=
1939ac_configure_args0=
1940ac_configure_args1=
1941ac_must_keep_next=false
1942for ac_pass in 1 2
1943do
1944  for ac_arg
1945  do
1946    case $ac_arg in
1947    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949    | -silent | --silent | --silen | --sile | --sil)
1950      continue ;;
1951    *\'*)
1952      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953    esac
1954    case $ac_pass in
1955    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956    2)
1957      as_fn_append ac_configure_args1 " '$ac_arg'"
1958      if test $ac_must_keep_next = true; then
1959	ac_must_keep_next=false # Got value, back to normal.
1960      else
1961	case $ac_arg in
1962	  *=* | --config-cache | -C | -disable-* | --disable-* \
1963	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965	  | -with-* | --with-* | -without-* | --without-* | --x)
1966	    case "$ac_configure_args0 " in
1967	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968	    esac
1969	    ;;
1970	  -* ) ac_must_keep_next=true ;;
1971	esac
1972      fi
1973      as_fn_append ac_configure_args " '$ac_arg'"
1974      ;;
1975    esac
1976  done
1977done
1978{ ac_configure_args0=; unset ac_configure_args0;}
1979{ ac_configure_args1=; unset ac_configure_args1;}
1980
1981# When interrupted or exit'd, cleanup temporary files, and complete
1982# config.log.  We remove comments because anyway the quotes in there
1983# would cause problems or look ugly.
1984# WARNING: Use '\'' to represent an apostrophe within the trap.
1985# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986trap 'exit_status=$?
1987  # Sanitize IFS.
1988  IFS=" ""	$as_nl"
1989  # Save into config.log some information that might help in debugging.
1990  {
1991    echo
1992
1993    printf "%s\n" "## ---------------- ##
1994## Cache variables. ##
1995## ---------------- ##"
1996    echo
1997    # The following way of writing the cache mishandles newlines in values,
1998(
1999  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000    eval ac_val=\$$ac_var
2001    case $ac_val in #(
2002    *${as_nl}*)
2003      case $ac_var in #(
2004      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006      esac
2007      case $ac_var in #(
2008      _ | IFS | as_nl) ;; #(
2009      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010      *) { eval $ac_var=; unset $ac_var;} ;;
2011      esac ;;
2012    esac
2013  done
2014  (set) 2>&1 |
2015    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016    *${as_nl}ac_space=\ *)
2017      sed -n \
2018	"s/'\''/'\''\\\\'\'''\''/g;
2019	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020      ;; #(
2021    *)
2022      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023      ;;
2024    esac |
2025    sort
2026)
2027    echo
2028
2029    printf "%s\n" "## ----------------- ##
2030## Output variables. ##
2031## ----------------- ##"
2032    echo
2033    for ac_var in $ac_subst_vars
2034    do
2035      eval ac_val=\$$ac_var
2036      case $ac_val in
2037      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038      esac
2039      printf "%s\n" "$ac_var='\''$ac_val'\''"
2040    done | sort
2041    echo
2042
2043    if test -n "$ac_subst_files"; then
2044      printf "%s\n" "## ------------------- ##
2045## File substitutions. ##
2046## ------------------- ##"
2047      echo
2048      for ac_var in $ac_subst_files
2049      do
2050	eval ac_val=\$$ac_var
2051	case $ac_val in
2052	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053	esac
2054	printf "%s\n" "$ac_var='\''$ac_val'\''"
2055      done | sort
2056      echo
2057    fi
2058
2059    if test -s confdefs.h; then
2060      printf "%s\n" "## ----------- ##
2061## confdefs.h. ##
2062## ----------- ##"
2063      echo
2064      cat confdefs.h
2065      echo
2066    fi
2067    test "$ac_signal" != 0 &&
2068      printf "%s\n" "$as_me: caught signal $ac_signal"
2069    printf "%s\n" "$as_me: exit $exit_status"
2070  } >&5
2071  rm -f core *.core core.conftest.* &&
2072    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073    exit $exit_status
2074' 0
2075for ac_signal in 1 2 13 15; do
2076  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077done
2078ac_signal=0
2079
2080# confdefs.h avoids OS command line length limits that DEFS can exceed.
2081rm -f -r conftest* confdefs.h
2082
2083printf "%s\n" "/* confdefs.h */" > confdefs.h
2084
2085# Predefined preprocessor variables.
2086
2087printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2088
2089printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2090
2091printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2092
2093printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2094
2095printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2096
2097printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2098
2099
2100# Let the site file select an alternate cache file if it wants to.
2101# Prefer an explicitly selected file to automatically selected ones.
2102if test -n "$CONFIG_SITE"; then
2103  ac_site_files="$CONFIG_SITE"
2104elif test "x$prefix" != xNONE; then
2105  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2106else
2107  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2108fi
2109
2110for ac_site_file in $ac_site_files
2111do
2112  case $ac_site_file in #(
2113  */*) :
2114     ;; #(
2115  *) :
2116    ac_site_file=./$ac_site_file ;;
2117esac
2118  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2119    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2120printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2121    sed 's/^/| /' "$ac_site_file" >&5
2122    . "$ac_site_file" \
2123      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2125as_fn_error $? "failed to load site script $ac_site_file
2126See \`config.log' for more details" "$LINENO" 5; }
2127  fi
2128done
2129
2130if test -r "$cache_file"; then
2131  # Some versions of bash will fail to source /dev/null (special files
2132  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2133  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2134    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2135printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2136    case $cache_file in
2137      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138      *)                      . "./$cache_file";;
2139    esac
2140  fi
2141else
2142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2143printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2144  >$cache_file
2145fi
2146
2147# Test code for whether the C compiler supports C89 (global declarations)
2148ac_c_conftest_c89_globals='
2149/* Does the compiler advertise C89 conformance?
2150   Do not test the value of __STDC__, because some compilers set it to 0
2151   while being otherwise adequately conformant. */
2152#if !defined __STDC__
2153# error "Compiler does not advertise C89 conformance"
2154#endif
2155
2156#include <stddef.h>
2157#include <stdarg.h>
2158struct stat;
2159/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2160struct buf { int x; };
2161struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2162static char *e (p, i)
2163     char **p;
2164     int i;
2165{
2166  return p[i];
2167}
2168static char *f (char * (*g) (char **, int), char **p, ...)
2169{
2170  char *s;
2171  va_list v;
2172  va_start (v,p);
2173  s = g (p, va_arg (v,int));
2174  va_end (v);
2175  return s;
2176}
2177
2178/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2179   function prototypes and stuff, but not \xHH hex character constants.
2180   These do not provoke an error unfortunately, instead are silently treated
2181   as an "x".  The following induces an error, until -std is added to get
2182   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2183   array size at least.  It is necessary to write \x00 == 0 to get something
2184   that is true only with -std.  */
2185int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2186
2187/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2188   inside strings and character constants.  */
2189#define FOO(x) '\''x'\''
2190int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2191
2192int test (int i, double x);
2193struct s1 {int (*f) (int a);};
2194struct s2 {int (*f) (double a);};
2195int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2196               int, int);'
2197
2198# Test code for whether the C compiler supports C89 (body of main).
2199ac_c_conftest_c89_main='
2200ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2201'
2202
2203# Test code for whether the C compiler supports C99 (global declarations)
2204ac_c_conftest_c99_globals='
2205// Does the compiler advertise C99 conformance?
2206#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2207# error "Compiler does not advertise C99 conformance"
2208#endif
2209
2210#include <stdbool.h>
2211extern int puts (const char *);
2212extern int printf (const char *, ...);
2213extern int dprintf (int, const char *, ...);
2214extern void *malloc (size_t);
2215
2216// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2217// dprintf is used instead of fprintf to avoid needing to declare
2218// FILE and stderr.
2219#define debug(...) dprintf (2, __VA_ARGS__)
2220#define showlist(...) puts (#__VA_ARGS__)
2221#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2222static void
2223test_varargs_macros (void)
2224{
2225  int x = 1234;
2226  int y = 5678;
2227  debug ("Flag");
2228  debug ("X = %d\n", x);
2229  showlist (The first, second, and third items.);
2230  report (x>y, "x is %d but y is %d", x, y);
2231}
2232
2233// Check long long types.
2234#define BIG64 18446744073709551615ull
2235#define BIG32 4294967295ul
2236#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2237#if !BIG_OK
2238  #error "your preprocessor is broken"
2239#endif
2240#if BIG_OK
2241#else
2242  #error "your preprocessor is broken"
2243#endif
2244static long long int bignum = -9223372036854775807LL;
2245static unsigned long long int ubignum = BIG64;
2246
2247struct incomplete_array
2248{
2249  int datasize;
2250  double data[];
2251};
2252
2253struct named_init {
2254  int number;
2255  const wchar_t *name;
2256  double average;
2257};
2258
2259typedef const char *ccp;
2260
2261static inline int
2262test_restrict (ccp restrict text)
2263{
2264  // See if C++-style comments work.
2265  // Iterate through items via the restricted pointer.
2266  // Also check for declarations in for loops.
2267  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2268    continue;
2269  return 0;
2270}
2271
2272// Check varargs and va_copy.
2273static bool
2274test_varargs (const char *format, ...)
2275{
2276  va_list args;
2277  va_start (args, format);
2278  va_list args_copy;
2279  va_copy (args_copy, args);
2280
2281  const char *str = "";
2282  int number = 0;
2283  float fnumber = 0;
2284
2285  while (*format)
2286    {
2287      switch (*format++)
2288	{
2289	case '\''s'\'': // string
2290	  str = va_arg (args_copy, const char *);
2291	  break;
2292	case '\''d'\'': // int
2293	  number = va_arg (args_copy, int);
2294	  break;
2295	case '\''f'\'': // float
2296	  fnumber = va_arg (args_copy, double);
2297	  break;
2298	default:
2299	  break;
2300	}
2301    }
2302  va_end (args_copy);
2303  va_end (args);
2304
2305  return *str && number && fnumber;
2306}
2307'
2308
2309# Test code for whether the C compiler supports C99 (body of main).
2310ac_c_conftest_c99_main='
2311  // Check bool.
2312  _Bool success = false;
2313  success |= (argc != 0);
2314
2315  // Check restrict.
2316  if (test_restrict ("String literal") == 0)
2317    success = true;
2318  char *restrict newvar = "Another string";
2319
2320  // Check varargs.
2321  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2322  test_varargs_macros ();
2323
2324  // Check flexible array members.
2325  struct incomplete_array *ia =
2326    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2327  ia->datasize = 10;
2328  for (int i = 0; i < ia->datasize; ++i)
2329    ia->data[i] = i * 1.234;
2330
2331  // Check named initializers.
2332  struct named_init ni = {
2333    .number = 34,
2334    .name = L"Test wide string",
2335    .average = 543.34343,
2336  };
2337
2338  ni.number = 58;
2339
2340  int dynamic_array[ni.number];
2341  dynamic_array[0] = argv[0][0];
2342  dynamic_array[ni.number - 1] = 543;
2343
2344  // work around unused variable warnings
2345  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2346	 || dynamic_array[ni.number - 1] != 543);
2347'
2348
2349# Test code for whether the C compiler supports C11 (global declarations)
2350ac_c_conftest_c11_globals='
2351// Does the compiler advertise C11 conformance?
2352#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2353# error "Compiler does not advertise C11 conformance"
2354#endif
2355
2356// Check _Alignas.
2357char _Alignas (double) aligned_as_double;
2358char _Alignas (0) no_special_alignment;
2359extern char aligned_as_int;
2360char _Alignas (0) _Alignas (int) aligned_as_int;
2361
2362// Check _Alignof.
2363enum
2364{
2365  int_alignment = _Alignof (int),
2366  int_array_alignment = _Alignof (int[100]),
2367  char_alignment = _Alignof (char)
2368};
2369_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2370
2371// Check _Noreturn.
2372int _Noreturn does_not_return (void) { for (;;) continue; }
2373
2374// Check _Static_assert.
2375struct test_static_assert
2376{
2377  int x;
2378  _Static_assert (sizeof (int) <= sizeof (long int),
2379                  "_Static_assert does not work in struct");
2380  long int y;
2381};
2382
2383// Check UTF-8 literals.
2384#define u8 syntax error!
2385char const utf8_literal[] = u8"happens to be ASCII" "another string";
2386
2387// Check duplicate typedefs.
2388typedef long *long_ptr;
2389typedef long int *long_ptr;
2390typedef long_ptr long_ptr;
2391
2392// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2393struct anonymous
2394{
2395  union {
2396    struct { int i; int j; };
2397    struct { int k; long int l; } w;
2398  };
2399  int m;
2400} v1;
2401'
2402
2403# Test code for whether the C compiler supports C11 (body of main).
2404ac_c_conftest_c11_main='
2405  _Static_assert ((offsetof (struct anonymous, i)
2406		   == offsetof (struct anonymous, w.k)),
2407		  "Anonymous union alignment botch");
2408  v1.i = 2;
2409  v1.w.k = 5;
2410  ok |= v1.i != 5;
2411'
2412
2413# Test code for whether the C compiler supports C11 (complete).
2414ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2415${ac_c_conftest_c99_globals}
2416${ac_c_conftest_c11_globals}
2417
2418int
2419main (int argc, char **argv)
2420{
2421  int ok = 0;
2422  ${ac_c_conftest_c89_main}
2423  ${ac_c_conftest_c99_main}
2424  ${ac_c_conftest_c11_main}
2425  return ok;
2426}
2427"
2428
2429# Test code for whether the C compiler supports C99 (complete).
2430ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2431${ac_c_conftest_c99_globals}
2432
2433int
2434main (int argc, char **argv)
2435{
2436  int ok = 0;
2437  ${ac_c_conftest_c89_main}
2438  ${ac_c_conftest_c99_main}
2439  return ok;
2440}
2441"
2442
2443# Test code for whether the C compiler supports C89 (complete).
2444ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2445
2446int
2447main (int argc, char **argv)
2448{
2449  int ok = 0;
2450  ${ac_c_conftest_c89_main}
2451  return ok;
2452}
2453"
2454
2455as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2456as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2457as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2458as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2459as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2460as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2461as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2462as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2463as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2464
2465# Auxiliary files required by this configure script.
2466ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2467
2468# Locations in which to look for auxiliary files.
2469ac_aux_dir_candidates="${srcdir}/."
2470
2471# Search for a directory containing all of the required auxiliary files,
2472# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2473# If we don't find one directory that contains all the files we need,
2474# we report the set of missing files from the *first* directory in
2475# $ac_aux_dir_candidates and give up.
2476ac_missing_aux_files=""
2477ac_first_candidate=:
2478printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480as_found=false
2481for as_dir in $ac_aux_dir_candidates
2482do
2483  IFS=$as_save_IFS
2484  case $as_dir in #(((
2485    '') as_dir=./ ;;
2486    */) ;;
2487    *) as_dir=$as_dir/ ;;
2488  esac
2489  as_found=:
2490
2491  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2492  ac_aux_dir_found=yes
2493  ac_install_sh=
2494  for ac_aux in $ac_aux_files
2495  do
2496    # As a special case, if "install-sh" is required, that requirement
2497    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2498    # and $ac_install_sh is set appropriately for whichever one is found.
2499    if test x"$ac_aux" = x"install-sh"
2500    then
2501      if test -f "${as_dir}install-sh"; then
2502        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2503        ac_install_sh="${as_dir}install-sh -c"
2504      elif test -f "${as_dir}install.sh"; then
2505        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2506        ac_install_sh="${as_dir}install.sh -c"
2507      elif test -f "${as_dir}shtool"; then
2508        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2509        ac_install_sh="${as_dir}shtool install -c"
2510      else
2511        ac_aux_dir_found=no
2512        if $ac_first_candidate; then
2513          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2514        else
2515          break
2516        fi
2517      fi
2518    else
2519      if test -f "${as_dir}${ac_aux}"; then
2520        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2521      else
2522        ac_aux_dir_found=no
2523        if $ac_first_candidate; then
2524          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2525        else
2526          break
2527        fi
2528      fi
2529    fi
2530  done
2531  if test "$ac_aux_dir_found" = yes; then
2532    ac_aux_dir="$as_dir"
2533    break
2534  fi
2535  ac_first_candidate=false
2536
2537  as_found=false
2538done
2539IFS=$as_save_IFS
2540if $as_found
2541then :
2542
2543else $as_nop
2544  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2545fi
2546
2547
2548# These three variables are undocumented and unsupported,
2549# and are intended to be withdrawn in a future Autoconf release.
2550# They can cause serious problems if a builder's source tree is in a directory
2551# whose full name contains unusual characters.
2552if test -f "${ac_aux_dir}config.guess"; then
2553  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2554fi
2555if test -f "${ac_aux_dir}config.sub"; then
2556  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2557fi
2558if test -f "$ac_aux_dir/configure"; then
2559  ac_configure="$SHELL ${ac_aux_dir}configure"
2560fi
2561
2562# Check that the precious variables saved in the cache have kept the same
2563# value.
2564ac_cache_corrupted=false
2565for ac_var in $ac_precious_vars; do
2566  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2567  eval ac_new_set=\$ac_env_${ac_var}_set
2568  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2569  eval ac_new_val=\$ac_env_${ac_var}_value
2570  case $ac_old_set,$ac_new_set in
2571    set,)
2572      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2573printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2574      ac_cache_corrupted=: ;;
2575    ,set)
2576      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2577printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2578      ac_cache_corrupted=: ;;
2579    ,);;
2580    *)
2581      if test "x$ac_old_val" != "x$ac_new_val"; then
2582	# differences in whitespace do not lead to failure.
2583	ac_old_val_w=`echo x $ac_old_val`
2584	ac_new_val_w=`echo x $ac_new_val`
2585	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2586	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2587printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2588	  ac_cache_corrupted=:
2589	else
2590	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2591printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2592	  eval $ac_var=\$ac_old_val
2593	fi
2594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2595printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2596	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2597printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2598      fi;;
2599  esac
2600  # Pass precious variables to config.status.
2601  if test "$ac_new_set" = set; then
2602    case $ac_new_val in
2603    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2604    *) ac_arg=$ac_var=$ac_new_val ;;
2605    esac
2606    case " $ac_configure_args " in
2607      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2608      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2609    esac
2610  fi
2611done
2612if $ac_cache_corrupted; then
2613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2616printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2617  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2618	    and start over" "$LINENO" 5
2619fi
2620## -------------------- ##
2621## Main body of script. ##
2622## -------------------- ##
2623
2624ac_ext=c
2625ac_cpp='$CPP $CPPFLAGS'
2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629
2630
2631
2632ac_config_headers="$ac_config_headers config.h"
2633
2634
2635
2636# Initialize Automake
2637am__api_version='1.16'
2638
2639
2640
2641  # Find a good install program.  We prefer a C program (faster),
2642# so one script is as good as another.  But avoid the broken or
2643# incompatible versions:
2644# SysV /etc/install, /usr/sbin/install
2645# SunOS /usr/etc/install
2646# IRIX /sbin/install
2647# AIX /bin/install
2648# AmigaOS /C/install, which installs bootblocks on floppy discs
2649# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2650# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2651# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2652# OS/2's system install, which has a completely different semantic
2653# ./install, which can be erroneously created by make from ./install.sh.
2654# Reject install programs that cannot install multiple files.
2655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2656printf %s "checking for a BSD-compatible install... " >&6; }
2657if test -z "$INSTALL"; then
2658if test ${ac_cv_path_install+y}
2659then :
2660  printf %s "(cached) " >&6
2661else $as_nop
2662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665  IFS=$as_save_IFS
2666  case $as_dir in #(((
2667    '') as_dir=./ ;;
2668    */) ;;
2669    *) as_dir=$as_dir/ ;;
2670  esac
2671    # Account for fact that we put trailing slashes in our PATH walk.
2672case $as_dir in #((
2673  ./ | /[cC]/* | \
2674  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2675  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2676  /usr/ucb/* ) ;;
2677  *)
2678    # OSF1 and SCO ODT 3.0 have their own names for install.
2679    # Don't use installbsd from OSF since it installs stuff as root
2680    # by default.
2681    for ac_prog in ginstall scoinst install; do
2682      for ac_exec_ext in '' $ac_executable_extensions; do
2683	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2684	  if test $ac_prog = install &&
2685	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686	    # AIX install.  It has an incompatible calling convention.
2687	    :
2688	  elif test $ac_prog = install &&
2689	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2690	    # program-specific install script used by HP pwplus--don't use.
2691	    :
2692	  else
2693	    rm -rf conftest.one conftest.two conftest.dir
2694	    echo one > conftest.one
2695	    echo two > conftest.two
2696	    mkdir conftest.dir
2697	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2698	      test -s conftest.one && test -s conftest.two &&
2699	      test -s conftest.dir/conftest.one &&
2700	      test -s conftest.dir/conftest.two
2701	    then
2702	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2703	      break 3
2704	    fi
2705	  fi
2706	fi
2707      done
2708    done
2709    ;;
2710esac
2711
2712  done
2713IFS=$as_save_IFS
2714
2715rm -rf conftest.one conftest.two conftest.dir
2716
2717fi
2718  if test ${ac_cv_path_install+y}; then
2719    INSTALL=$ac_cv_path_install
2720  else
2721    # As a last resort, use the slow shell script.  Don't cache a
2722    # value for INSTALL within a source directory, because that will
2723    # break other packages using the cache if that directory is
2724    # removed, or if the value is a relative name.
2725    INSTALL=$ac_install_sh
2726  fi
2727fi
2728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2729printf "%s\n" "$INSTALL" >&6; }
2730
2731# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2732# It thinks the first close brace ends the variable substitution.
2733test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2734
2735test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2736
2737test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2738
2739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2740printf %s "checking whether build environment is sane... " >&6; }
2741# Reject unsafe characters in $srcdir or the absolute working directory
2742# name.  Accept space and tab only in the latter.
2743am_lf='
2744'
2745case `pwd` in
2746  *[\\\"\#\$\&\'\`$am_lf]*)
2747    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2748esac
2749case $srcdir in
2750  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2751    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2752esac
2753
2754# Do 'set' in a subshell so we don't clobber the current shell's
2755# arguments.  Must try -L first in case configure is actually a
2756# symlink; some systems play weird games with the mod time of symlinks
2757# (eg FreeBSD returns the mod time of the symlink's containing
2758# directory).
2759if (
2760   am_has_slept=no
2761   for am_try in 1 2; do
2762     echo "timestamp, slept: $am_has_slept" > conftest.file
2763     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2764     if test "$*" = "X"; then
2765	# -L didn't work.
2766	set X `ls -t "$srcdir/configure" conftest.file`
2767     fi
2768     if test "$*" != "X $srcdir/configure conftest.file" \
2769	&& test "$*" != "X conftest.file $srcdir/configure"; then
2770
2771	# If neither matched, then we have a broken ls.  This can happen
2772	# if, for instance, CONFIG_SHELL is bash and it inherits a
2773	# broken ls alias from the environment.  This has actually
2774	# happened.  Such a system could not be considered "sane".
2775	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2776  alias in your environment" "$LINENO" 5
2777     fi
2778     if test "$2" = conftest.file || test $am_try -eq 2; then
2779       break
2780     fi
2781     # Just in case.
2782     sleep 1
2783     am_has_slept=yes
2784   done
2785   test "$2" = conftest.file
2786   )
2787then
2788   # Ok.
2789   :
2790else
2791   as_fn_error $? "newly created file is older than distributed files!
2792Check your system clock" "$LINENO" 5
2793fi
2794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795printf "%s\n" "yes" >&6; }
2796# If we didn't sleep, we still need to ensure time stamps of config.status and
2797# generated files are strictly newer.
2798am_sleep_pid=
2799if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2800  ( sleep 1 ) &
2801  am_sleep_pid=$!
2802fi
2803
2804rm -f conftest.file
2805
2806test "$program_prefix" != NONE &&
2807  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2808# Use a double $ so make ignores it.
2809test "$program_suffix" != NONE &&
2810  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2811# Double any \ or $.
2812# By default was `s,x,x', remove it if useless.
2813ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2814program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2815
2816
2817# Expand $ac_aux_dir to an absolute path.
2818am_aux_dir=`cd "$ac_aux_dir" && pwd`
2819
2820
2821  if test x"${MISSING+set}" != xset; then
2822  MISSING="\${SHELL} '$am_aux_dir/missing'"
2823fi
2824# Use eval to expand $SHELL
2825if eval "$MISSING --is-lightweight"; then
2826  am_missing_run="$MISSING "
2827else
2828  am_missing_run=
2829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2830printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2831fi
2832
2833if test x"${install_sh+set}" != xset; then
2834  case $am_aux_dir in
2835  *\ * | *\	*)
2836    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2837  *)
2838    install_sh="\${SHELL} $am_aux_dir/install-sh"
2839  esac
2840fi
2841
2842# Installed binaries are usually stripped using 'strip' when the user
2843# run "make install-strip".  However 'strip' might not be the right
2844# tool to use in cross-compilation environments, therefore Automake
2845# will honor the 'STRIP' environment variable to overrule this program.
2846if test "$cross_compiling" != no; then
2847  if test -n "$ac_tool_prefix"; then
2848  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2849set dummy ${ac_tool_prefix}strip; ac_word=$2
2850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851printf %s "checking for $ac_word... " >&6; }
2852if test ${ac_cv_prog_STRIP+y}
2853then :
2854  printf %s "(cached) " >&6
2855else $as_nop
2856  if test -n "$STRIP"; then
2857  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862  IFS=$as_save_IFS
2863  case $as_dir in #(((
2864    '') as_dir=./ ;;
2865    */) ;;
2866    *) as_dir=$as_dir/ ;;
2867  esac
2868    for ac_exec_ext in '' $ac_executable_extensions; do
2869  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2870    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2871    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2872    break 2
2873  fi
2874done
2875  done
2876IFS=$as_save_IFS
2877
2878fi
2879fi
2880STRIP=$ac_cv_prog_STRIP
2881if test -n "$STRIP"; then
2882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2883printf "%s\n" "$STRIP" >&6; }
2884else
2885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886printf "%s\n" "no" >&6; }
2887fi
2888
2889
2890fi
2891if test -z "$ac_cv_prog_STRIP"; then
2892  ac_ct_STRIP=$STRIP
2893  # Extract the first word of "strip", so it can be a program name with args.
2894set dummy strip; ac_word=$2
2895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896printf %s "checking for $ac_word... " >&6; }
2897if test ${ac_cv_prog_ac_ct_STRIP+y}
2898then :
2899  printf %s "(cached) " >&6
2900else $as_nop
2901  if test -n "$ac_ct_STRIP"; then
2902  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907  IFS=$as_save_IFS
2908  case $as_dir in #(((
2909    '') as_dir=./ ;;
2910    */) ;;
2911    *) as_dir=$as_dir/ ;;
2912  esac
2913    for ac_exec_ext in '' $ac_executable_extensions; do
2914  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2915    ac_cv_prog_ac_ct_STRIP="strip"
2916    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2917    break 2
2918  fi
2919done
2920  done
2921IFS=$as_save_IFS
2922
2923fi
2924fi
2925ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2926if test -n "$ac_ct_STRIP"; then
2927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2928printf "%s\n" "$ac_ct_STRIP" >&6; }
2929else
2930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931printf "%s\n" "no" >&6; }
2932fi
2933
2934  if test "x$ac_ct_STRIP" = x; then
2935    STRIP=":"
2936  else
2937    case $cross_compiling:$ac_tool_warned in
2938yes:)
2939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941ac_tool_warned=yes ;;
2942esac
2943    STRIP=$ac_ct_STRIP
2944  fi
2945else
2946  STRIP="$ac_cv_prog_STRIP"
2947fi
2948
2949fi
2950INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2951
2952
2953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2954printf %s "checking for a race-free mkdir -p... " >&6; }
2955if test -z "$MKDIR_P"; then
2956  if test ${ac_cv_path_mkdir+y}
2957then :
2958  printf %s "(cached) " >&6
2959else $as_nop
2960  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2962do
2963  IFS=$as_save_IFS
2964  case $as_dir in #(((
2965    '') as_dir=./ ;;
2966    */) ;;
2967    *) as_dir=$as_dir/ ;;
2968  esac
2969    for ac_prog in mkdir gmkdir; do
2970	 for ac_exec_ext in '' $ac_executable_extensions; do
2971	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2972	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2973	     'mkdir ('*'coreutils) '* | \
2974	     'BusyBox '* | \
2975	     'mkdir (fileutils) '4.1*)
2976	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2977	       break 3;;
2978	   esac
2979	 done
2980       done
2981  done
2982IFS=$as_save_IFS
2983
2984fi
2985
2986  test -d ./--version && rmdir ./--version
2987  if test ${ac_cv_path_mkdir+y}; then
2988    MKDIR_P="$ac_cv_path_mkdir -p"
2989  else
2990    # As a last resort, use the slow shell script.  Don't cache a
2991    # value for MKDIR_P within a source directory, because that will
2992    # break other packages using the cache if that directory is
2993    # removed, or if the value is a relative name.
2994    MKDIR_P="$ac_install_sh -d"
2995  fi
2996fi
2997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2998printf "%s\n" "$MKDIR_P" >&6; }
2999
3000for ac_prog in gawk mawk nawk awk
3001do
3002  # Extract the first word of "$ac_prog", so it can be a program name with args.
3003set dummy $ac_prog; ac_word=$2
3004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005printf %s "checking for $ac_word... " >&6; }
3006if test ${ac_cv_prog_AWK+y}
3007then :
3008  printf %s "(cached) " >&6
3009else $as_nop
3010  if test -n "$AWK"; then
3011  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  case $as_dir in #(((
3018    '') as_dir=./ ;;
3019    */) ;;
3020    *) as_dir=$as_dir/ ;;
3021  esac
3022    for ac_exec_ext in '' $ac_executable_extensions; do
3023  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3024    ac_cv_prog_AWK="$ac_prog"
3025    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034AWK=$ac_cv_prog_AWK
3035if test -n "$AWK"; then
3036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3037printf "%s\n" "$AWK" >&6; }
3038else
3039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040printf "%s\n" "no" >&6; }
3041fi
3042
3043
3044  test -n "$AWK" && break
3045done
3046
3047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3048printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049set x ${MAKE-make}
3050ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3051if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3052then :
3053  printf %s "(cached) " >&6
3054else $as_nop
3055  cat >conftest.make <<\_ACEOF
3056SHELL = /bin/sh
3057all:
3058	@echo '@@@%%%=$(MAKE)=@@@%%%'
3059_ACEOF
3060# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3061case `${MAKE-make} -f conftest.make 2>/dev/null` in
3062  *@@@%%%=?*=@@@%%%*)
3063    eval ac_cv_prog_make_${ac_make}_set=yes;;
3064  *)
3065    eval ac_cv_prog_make_${ac_make}_set=no;;
3066esac
3067rm -f conftest.make
3068fi
3069if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071printf "%s\n" "yes" >&6; }
3072  SET_MAKE=
3073else
3074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075printf "%s\n" "no" >&6; }
3076  SET_MAKE="MAKE=${MAKE-make}"
3077fi
3078
3079rm -rf .tst 2>/dev/null
3080mkdir .tst 2>/dev/null
3081if test -d .tst; then
3082  am__leading_dot=.
3083else
3084  am__leading_dot=_
3085fi
3086rmdir .tst 2>/dev/null
3087
3088# Check whether --enable-silent-rules was given.
3089if test ${enable_silent_rules+y}
3090then :
3091  enableval=$enable_silent_rules;
3092fi
3093
3094case $enable_silent_rules in # (((
3095  yes) AM_DEFAULT_VERBOSITY=0;;
3096   no) AM_DEFAULT_VERBOSITY=1;;
3097    *) AM_DEFAULT_VERBOSITY=1;;
3098esac
3099am_make=${MAKE-make}
3100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3101printf %s "checking whether $am_make supports nested variables... " >&6; }
3102if test ${am_cv_make_support_nested_variables+y}
3103then :
3104  printf %s "(cached) " >&6
3105else $as_nop
3106  if printf "%s\n" 'TRUE=$(BAR$(V))
3107BAR0=false
3108BAR1=true
3109V=1
3110am__doit:
3111	@$(TRUE)
3112.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3113  am_cv_make_support_nested_variables=yes
3114else
3115  am_cv_make_support_nested_variables=no
3116fi
3117fi
3118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3119printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3120if test $am_cv_make_support_nested_variables = yes; then
3121    AM_V='$(V)'
3122  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3123else
3124  AM_V=$AM_DEFAULT_VERBOSITY
3125  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3126fi
3127AM_BACKSLASH='\'
3128
3129if test "`cd $srcdir && pwd`" != "`pwd`"; then
3130  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3131  # is not polluted with repeated "-I."
3132  am__isrc=' -I$(srcdir)'
3133  # test to see if srcdir already configured
3134  if test -f $srcdir/config.status; then
3135    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3136  fi
3137fi
3138
3139# test whether we have cygpath
3140if test -z "$CYGPATH_W"; then
3141  if (cygpath --version) >/dev/null 2>/dev/null; then
3142    CYGPATH_W='cygpath -w'
3143  else
3144    CYGPATH_W=echo
3145  fi
3146fi
3147
3148
3149# Define the identity of the package.
3150 PACKAGE='xf86-video-ark'
3151 VERSION='0.7.6'
3152
3153
3154printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3155
3156
3157printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3158
3159# Some tools Automake needs.
3160
3161ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3162
3163
3164AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3165
3166
3167AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3168
3169
3170AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3171
3172
3173MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3174
3175# For better backward compatibility.  To be removed once Automake 1.9.x
3176# dies out for good.  For more background, see:
3177# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3178# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3179mkdir_p='$(MKDIR_P)'
3180
3181# We need awk for the "check" target (and possibly the TAP driver).  The
3182# system "awk" is bad on some platforms.
3183# Always define AMTAR for backward compatibility.  Yes, it's still used
3184# in the wild :-(  We should find a proper way to deprecate it ...
3185AMTAR='$${TAR-tar}'
3186
3187
3188# We'll loop over all known methods to create a tar archive until one works.
3189_am_tools='gnutar  pax cpio none'
3190
3191am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3192
3193
3194
3195
3196
3197# Variables for tags utilities; see am/tags.am
3198if test -z "$CTAGS"; then
3199  CTAGS=ctags
3200fi
3201
3202if test -z "$ETAGS"; then
3203  ETAGS=etags
3204fi
3205
3206if test -z "$CSCOPE"; then
3207  CSCOPE=cscope
3208fi
3209
3210
3211
3212# POSIX will say in a future version that running "rm -f" with no argument
3213# is OK; and we want to be able to make that assumption in our Makefile
3214# recipes.  So use an aggressive probe to check that the usage we want is
3215# actually supported "in the wild" to an acceptable degree.
3216# See automake bug#10828.
3217# To make any issue more visible, cause the running configure to be aborted
3218# by default if the 'rm' program in use doesn't match our expectations; the
3219# user can still override this though.
3220if rm -f && rm -fr && rm -rf; then : OK; else
3221  cat >&2 <<'END'
3222Oops!
3223
3224Your 'rm' program seems unable to run without file operands specified
3225on the command line, even when the '-f' option is present.  This is contrary
3226to the behaviour of most rm programs out there, and not conforming with
3227the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3228
3229Please tell bug-automake@gnu.org about your system, including the value
3230of your $PATH and any error possibly output before this message.  This
3231can help us improve future automake versions.
3232
3233END
3234  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3235    echo 'Configuration will proceed anyway, since you have set the' >&2
3236    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3237    echo >&2
3238  else
3239    cat >&2 <<'END'
3240Aborting the configuration process, to ensure you take notice of the issue.
3241
3242You can download and install GNU coreutils to get an 'rm' implementation
3243that behaves properly: <https://www.gnu.org/software/coreutils/>.
3244
3245If you want to complete the configuration process using your problematic
3246'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3247to "yes", and re-run configure.
3248
3249END
3250    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3251  fi
3252fi
3253
3254
3255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3256printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3257    # Check whether --enable-maintainer-mode was given.
3258if test ${enable_maintainer_mode+y}
3259then :
3260  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3261else $as_nop
3262  USE_MAINTAINER_MODE=no
3263fi
3264
3265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3266printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3267   if test $USE_MAINTAINER_MODE = yes; then
3268  MAINTAINER_MODE_TRUE=
3269  MAINTAINER_MODE_FALSE='#'
3270else
3271  MAINTAINER_MODE_TRUE='#'
3272  MAINTAINER_MODE_FALSE=
3273fi
3274
3275  MAINT=$MAINTAINER_MODE_TRUE
3276
3277
3278
3279# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300DEPDIR="${am__leading_dot}deps"
3301
3302ac_config_commands="$ac_config_commands depfiles"
3303
3304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3305printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3306cat > confinc.mk << 'END'
3307am__doit:
3308	@echo this is the am__doit target >confinc.out
3309.PHONY: am__doit
3310END
3311am__include="#"
3312am__quote=
3313# BSD make does it like this.
3314echo '.include "confinc.mk" # ignored' > confmf.BSD
3315# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3316echo 'include confinc.mk # ignored' > confmf.GNU
3317_am_result=no
3318for s in GNU BSD; do
3319  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3320   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3321   ac_status=$?
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); }
3324  case $?:`cat confinc.out 2>/dev/null` in #(
3325  '0:this is the am__doit target') :
3326    case $s in #(
3327  BSD) :
3328    am__include='.include' am__quote='"' ;; #(
3329  *) :
3330    am__include='include' am__quote='' ;;
3331esac ;; #(
3332  *) :
3333     ;;
3334esac
3335  if test "$am__include" != "#"; then
3336    _am_result="yes ($s style)"
3337    break
3338  fi
3339done
3340rm -f confinc.* confmf.*
3341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3342printf "%s\n" "${_am_result}" >&6; }
3343
3344# Check whether --enable-dependency-tracking was given.
3345if test ${enable_dependency_tracking+y}
3346then :
3347  enableval=$enable_dependency_tracking;
3348fi
3349
3350if test "x$enable_dependency_tracking" != xno; then
3351  am_depcomp="$ac_aux_dir/depcomp"
3352  AMDEPBACKSLASH='\'
3353  am__nodep='_no'
3354fi
3355 if test "x$enable_dependency_tracking" != xno; then
3356  AMDEP_TRUE=
3357  AMDEP_FALSE='#'
3358else
3359  AMDEP_TRUE='#'
3360  AMDEP_FALSE=
3361fi
3362
3363
3364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369if test -n "$ac_tool_prefix"; then
3370  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3371set dummy ${ac_tool_prefix}gcc; ac_word=$2
3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373printf %s "checking for $ac_word... " >&6; }
3374if test ${ac_cv_prog_CC+y}
3375then :
3376  printf %s "(cached) " >&6
3377else $as_nop
3378  if test -n "$CC"; then
3379  ac_cv_prog_CC="$CC" # Let the user override the test.
3380else
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384  IFS=$as_save_IFS
3385  case $as_dir in #(((
3386    '') as_dir=./ ;;
3387    */) ;;
3388    *) as_dir=$as_dir/ ;;
3389  esac
3390    for ac_exec_ext in '' $ac_executable_extensions; do
3391  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3392    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3394    break 2
3395  fi
3396done
3397  done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402CC=$ac_cv_prog_CC
3403if test -n "$CC"; then
3404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405printf "%s\n" "$CC" >&6; }
3406else
3407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408printf "%s\n" "no" >&6; }
3409fi
3410
3411
3412fi
3413if test -z "$ac_cv_prog_CC"; then
3414  ac_ct_CC=$CC
3415  # Extract the first word of "gcc", so it can be a program name with args.
3416set dummy gcc; ac_word=$2
3417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418printf %s "checking for $ac_word... " >&6; }
3419if test ${ac_cv_prog_ac_ct_CC+y}
3420then :
3421  printf %s "(cached) " >&6
3422else $as_nop
3423  if test -n "$ac_ct_CC"; then
3424  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425else
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429  IFS=$as_save_IFS
3430  case $as_dir in #(((
3431    '') as_dir=./ ;;
3432    */) ;;
3433    *) as_dir=$as_dir/ ;;
3434  esac
3435    for ac_exec_ext in '' $ac_executable_extensions; do
3436  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3437    ac_cv_prog_ac_ct_CC="gcc"
3438    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3439    break 2
3440  fi
3441done
3442  done
3443IFS=$as_save_IFS
3444
3445fi
3446fi
3447ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448if test -n "$ac_ct_CC"; then
3449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450printf "%s\n" "$ac_ct_CC" >&6; }
3451else
3452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453printf "%s\n" "no" >&6; }
3454fi
3455
3456  if test "x$ac_ct_CC" = x; then
3457    CC=""
3458  else
3459    case $cross_compiling:$ac_tool_warned in
3460yes:)
3461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463ac_tool_warned=yes ;;
3464esac
3465    CC=$ac_ct_CC
3466  fi
3467else
3468  CC="$ac_cv_prog_CC"
3469fi
3470
3471if test -z "$CC"; then
3472          if test -n "$ac_tool_prefix"; then
3473    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474set dummy ${ac_tool_prefix}cc; ac_word=$2
3475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476printf %s "checking for $ac_word... " >&6; }
3477if test ${ac_cv_prog_CC+y}
3478then :
3479  printf %s "(cached) " >&6
3480else $as_nop
3481  if test -n "$CC"; then
3482  ac_cv_prog_CC="$CC" # Let the user override the test.
3483else
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487  IFS=$as_save_IFS
3488  case $as_dir in #(((
3489    '') as_dir=./ ;;
3490    */) ;;
3491    *) as_dir=$as_dir/ ;;
3492  esac
3493    for ac_exec_ext in '' $ac_executable_extensions; do
3494  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3495    ac_cv_prog_CC="${ac_tool_prefix}cc"
3496    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3497    break 2
3498  fi
3499done
3500  done
3501IFS=$as_save_IFS
3502
3503fi
3504fi
3505CC=$ac_cv_prog_CC
3506if test -n "$CC"; then
3507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508printf "%s\n" "$CC" >&6; }
3509else
3510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511printf "%s\n" "no" >&6; }
3512fi
3513
3514
3515  fi
3516fi
3517if test -z "$CC"; then
3518  # Extract the first word of "cc", so it can be a program name with args.
3519set dummy cc; ac_word=$2
3520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521printf %s "checking for $ac_word... " >&6; }
3522if test ${ac_cv_prog_CC+y}
3523then :
3524  printf %s "(cached) " >&6
3525else $as_nop
3526  if test -n "$CC"; then
3527  ac_cv_prog_CC="$CC" # Let the user override the test.
3528else
3529  ac_prog_rejected=no
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533  IFS=$as_save_IFS
3534  case $as_dir in #(((
3535    '') as_dir=./ ;;
3536    */) ;;
3537    *) as_dir=$as_dir/ ;;
3538  esac
3539    for ac_exec_ext in '' $ac_executable_extensions; do
3540  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3541    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3542       ac_prog_rejected=yes
3543       continue
3544     fi
3545    ac_cv_prog_CC="cc"
3546    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3547    break 2
3548  fi
3549done
3550  done
3551IFS=$as_save_IFS
3552
3553if test $ac_prog_rejected = yes; then
3554  # We found a bogon in the path, so make sure we never use it.
3555  set dummy $ac_cv_prog_CC
3556  shift
3557  if test $# != 0; then
3558    # We chose a different compiler from the bogus one.
3559    # However, it has the same basename, so the bogon will be chosen
3560    # first if we set CC to just the basename; use the full file name.
3561    shift
3562    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3563  fi
3564fi
3565fi
3566fi
3567CC=$ac_cv_prog_CC
3568if test -n "$CC"; then
3569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570printf "%s\n" "$CC" >&6; }
3571else
3572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573printf "%s\n" "no" >&6; }
3574fi
3575
3576
3577fi
3578if test -z "$CC"; then
3579  if test -n "$ac_tool_prefix"; then
3580  for ac_prog in cl.exe
3581  do
3582    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585printf %s "checking for $ac_word... " >&6; }
3586if test ${ac_cv_prog_CC+y}
3587then :
3588  printf %s "(cached) " >&6
3589else $as_nop
3590  if test -n "$CC"; then
3591  ac_cv_prog_CC="$CC" # Let the user override the test.
3592else
3593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594for as_dir in $PATH
3595do
3596  IFS=$as_save_IFS
3597  case $as_dir in #(((
3598    '') as_dir=./ ;;
3599    */) ;;
3600    *) as_dir=$as_dir/ ;;
3601  esac
3602    for ac_exec_ext in '' $ac_executable_extensions; do
3603  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3605    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3606    break 2
3607  fi
3608done
3609  done
3610IFS=$as_save_IFS
3611
3612fi
3613fi
3614CC=$ac_cv_prog_CC
3615if test -n "$CC"; then
3616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617printf "%s\n" "$CC" >&6; }
3618else
3619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620printf "%s\n" "no" >&6; }
3621fi
3622
3623
3624    test -n "$CC" && break
3625  done
3626fi
3627if test -z "$CC"; then
3628  ac_ct_CC=$CC
3629  for ac_prog in cl.exe
3630do
3631  # Extract the first word of "$ac_prog", so it can be a program name with args.
3632set dummy $ac_prog; ac_word=$2
3633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634printf %s "checking for $ac_word... " >&6; }
3635if test ${ac_cv_prog_ac_ct_CC+y}
3636then :
3637  printf %s "(cached) " >&6
3638else $as_nop
3639  if test -n "$ac_ct_CC"; then
3640  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641else
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645  IFS=$as_save_IFS
3646  case $as_dir in #(((
3647    '') as_dir=./ ;;
3648    */) ;;
3649    *) as_dir=$as_dir/ ;;
3650  esac
3651    for ac_exec_ext in '' $ac_executable_extensions; do
3652  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3653    ac_cv_prog_ac_ct_CC="$ac_prog"
3654    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3655    break 2
3656  fi
3657done
3658  done
3659IFS=$as_save_IFS
3660
3661fi
3662fi
3663ac_ct_CC=$ac_cv_prog_ac_ct_CC
3664if test -n "$ac_ct_CC"; then
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3666printf "%s\n" "$ac_ct_CC" >&6; }
3667else
3668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669printf "%s\n" "no" >&6; }
3670fi
3671
3672
3673  test -n "$ac_ct_CC" && break
3674done
3675
3676  if test "x$ac_ct_CC" = x; then
3677    CC=""
3678  else
3679    case $cross_compiling:$ac_tool_warned in
3680yes:)
3681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3682printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3683ac_tool_warned=yes ;;
3684esac
3685    CC=$ac_ct_CC
3686  fi
3687fi
3688
3689fi
3690if test -z "$CC"; then
3691  if test -n "$ac_tool_prefix"; then
3692  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3693set dummy ${ac_tool_prefix}clang; ac_word=$2
3694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695printf %s "checking for $ac_word... " >&6; }
3696if test ${ac_cv_prog_CC+y}
3697then :
3698  printf %s "(cached) " >&6
3699else $as_nop
3700  if test -n "$CC"; then
3701  ac_cv_prog_CC="$CC" # Let the user override the test.
3702else
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706  IFS=$as_save_IFS
3707  case $as_dir in #(((
3708    '') as_dir=./ ;;
3709    */) ;;
3710    *) as_dir=$as_dir/ ;;
3711  esac
3712    for ac_exec_ext in '' $ac_executable_extensions; do
3713  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3714    ac_cv_prog_CC="${ac_tool_prefix}clang"
3715    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3716    break 2
3717  fi
3718done
3719  done
3720IFS=$as_save_IFS
3721
3722fi
3723fi
3724CC=$ac_cv_prog_CC
3725if test -n "$CC"; then
3726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727printf "%s\n" "$CC" >&6; }
3728else
3729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730printf "%s\n" "no" >&6; }
3731fi
3732
3733
3734fi
3735if test -z "$ac_cv_prog_CC"; then
3736  ac_ct_CC=$CC
3737  # Extract the first word of "clang", so it can be a program name with args.
3738set dummy clang; ac_word=$2
3739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740printf %s "checking for $ac_word... " >&6; }
3741if test ${ac_cv_prog_ac_ct_CC+y}
3742then :
3743  printf %s "(cached) " >&6
3744else $as_nop
3745  if test -n "$ac_ct_CC"; then
3746  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747else
3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH
3750do
3751  IFS=$as_save_IFS
3752  case $as_dir in #(((
3753    '') as_dir=./ ;;
3754    */) ;;
3755    *) as_dir=$as_dir/ ;;
3756  esac
3757    for ac_exec_ext in '' $ac_executable_extensions; do
3758  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3759    ac_cv_prog_ac_ct_CC="clang"
3760    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3761    break 2
3762  fi
3763done
3764  done
3765IFS=$as_save_IFS
3766
3767fi
3768fi
3769ac_ct_CC=$ac_cv_prog_ac_ct_CC
3770if test -n "$ac_ct_CC"; then
3771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772printf "%s\n" "$ac_ct_CC" >&6; }
3773else
3774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775printf "%s\n" "no" >&6; }
3776fi
3777
3778  if test "x$ac_ct_CC" = x; then
3779    CC=""
3780  else
3781    case $cross_compiling:$ac_tool_warned in
3782yes:)
3783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785ac_tool_warned=yes ;;
3786esac
3787    CC=$ac_ct_CC
3788  fi
3789else
3790  CC="$ac_cv_prog_CC"
3791fi
3792
3793fi
3794
3795
3796test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3798as_fn_error $? "no acceptable C compiler found in \$PATH
3799See \`config.log' for more details" "$LINENO" 5; }
3800
3801# Provide some information about the compiler.
3802printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3803set X $ac_compile
3804ac_compiler=$2
3805for ac_option in --version -v -V -qversion -version; do
3806  { { ac_try="$ac_compiler $ac_option >&5"
3807case "(($ac_try" in
3808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809  *) ac_try_echo=$ac_try;;
3810esac
3811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812printf "%s\n" "$ac_try_echo"; } >&5
3813  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3814  ac_status=$?
3815  if test -s conftest.err; then
3816    sed '10a\
3817... rest of stderr output deleted ...
3818         10q' conftest.err >conftest.er1
3819    cat conftest.er1 >&5
3820  fi
3821  rm -f conftest.er1 conftest.err
3822  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823  test $ac_status = 0; }
3824done
3825
3826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827/* end confdefs.h.  */
3828
3829int
3830main (void)
3831{
3832
3833  ;
3834  return 0;
3835}
3836_ACEOF
3837ac_clean_files_save=$ac_clean_files
3838ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3839# Try to create an executable without -o first, disregard a.out.
3840# It will help us diagnose broken compilers, and finding out an intuition
3841# of exeext.
3842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3843printf %s "checking whether the C compiler works... " >&6; }
3844ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3845
3846# The possible output files:
3847ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3848
3849ac_rmfiles=
3850for ac_file in $ac_files
3851do
3852  case $ac_file in
3853    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3854    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3855  esac
3856done
3857rm -f $ac_rmfiles
3858
3859if { { ac_try="$ac_link_default"
3860case "(($ac_try" in
3861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862  *) ac_try_echo=$ac_try;;
3863esac
3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865printf "%s\n" "$ac_try_echo"; } >&5
3866  (eval "$ac_link_default") 2>&5
3867  ac_status=$?
3868  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869  test $ac_status = 0; }
3870then :
3871  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3872# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3873# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3874# so that the user can short-circuit this test for compilers unknown to
3875# Autoconf.
3876for ac_file in $ac_files ''
3877do
3878  test -f "$ac_file" || continue
3879  case $ac_file in
3880    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3881	;;
3882    [ab].out )
3883	# We found the default executable, but exeext='' is most
3884	# certainly right.
3885	break;;
3886    *.* )
3887	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3888	then :; else
3889	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3890	fi
3891	# We set ac_cv_exeext here because the later test for it is not
3892	# safe: cross compilers may not add the suffix if given an `-o'
3893	# argument, so we may need to know it at that point already.
3894	# Even if this section looks crufty: it has the advantage of
3895	# actually working.
3896	break;;
3897    * )
3898	break;;
3899  esac
3900done
3901test "$ac_cv_exeext" = no && ac_cv_exeext=
3902
3903else $as_nop
3904  ac_file=''
3905fi
3906if test -z "$ac_file"
3907then :
3908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909printf "%s\n" "no" >&6; }
3910printf "%s\n" "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
3912
3913{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3915as_fn_error 77 "C compiler cannot create executables
3916See \`config.log' for more details" "$LINENO" 5; }
3917else $as_nop
3918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3919printf "%s\n" "yes" >&6; }
3920fi
3921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3922printf %s "checking for C compiler default output file name... " >&6; }
3923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3924printf "%s\n" "$ac_file" >&6; }
3925ac_exeext=$ac_cv_exeext
3926
3927rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3928ac_clean_files=$ac_clean_files_save
3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3930printf %s "checking for suffix of executables... " >&6; }
3931if { { ac_try="$ac_link"
3932case "(($ac_try" in
3933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934  *) ac_try_echo=$ac_try;;
3935esac
3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937printf "%s\n" "$ac_try_echo"; } >&5
3938  (eval "$ac_link") 2>&5
3939  ac_status=$?
3940  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941  test $ac_status = 0; }
3942then :
3943  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3944# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3945# work properly (i.e., refer to `conftest.exe'), while it won't with
3946# `rm'.
3947for ac_file in conftest.exe conftest conftest.*; do
3948  test -f "$ac_file" || continue
3949  case $ac_file in
3950    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3951    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3952	  break;;
3953    * ) break;;
3954  esac
3955done
3956else $as_nop
3957  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3959as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3960See \`config.log' for more details" "$LINENO" 5; }
3961fi
3962rm -f conftest conftest$ac_cv_exeext
3963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3964printf "%s\n" "$ac_cv_exeext" >&6; }
3965
3966rm -f conftest.$ac_ext
3967EXEEXT=$ac_cv_exeext
3968ac_exeext=$EXEEXT
3969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h.  */
3971#include <stdio.h>
3972int
3973main (void)
3974{
3975FILE *f = fopen ("conftest.out", "w");
3976 return ferror (f) || fclose (f) != 0;
3977
3978  ;
3979  return 0;
3980}
3981_ACEOF
3982ac_clean_files="$ac_clean_files conftest.out"
3983# Check that the compiler produces executables we can run.  If not, either
3984# the compiler is broken, or we cross compile.
3985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986printf %s "checking whether we are cross compiling... " >&6; }
3987if test "$cross_compiling" != yes; then
3988  { { ac_try="$ac_link"
3989case "(($ac_try" in
3990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991  *) ac_try_echo=$ac_try;;
3992esac
3993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994printf "%s\n" "$ac_try_echo"; } >&5
3995  (eval "$ac_link") 2>&5
3996  ac_status=$?
3997  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998  test $ac_status = 0; }
3999  if { ac_try='./conftest$ac_cv_exeext'
4000  { { case "(($ac_try" in
4001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002  *) ac_try_echo=$ac_try;;
4003esac
4004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005printf "%s\n" "$ac_try_echo"; } >&5
4006  (eval "$ac_try") 2>&5
4007  ac_status=$?
4008  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009  test $ac_status = 0; }; }; then
4010    cross_compiling=no
4011  else
4012    if test "$cross_compiling" = maybe; then
4013	cross_compiling=yes
4014    else
4015	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4017as_fn_error 77 "cannot run C compiled programs.
4018If you meant to cross compile, use \`--host'.
4019See \`config.log' for more details" "$LINENO" 5; }
4020    fi
4021  fi
4022fi
4023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4024printf "%s\n" "$cross_compiling" >&6; }
4025
4026rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4027ac_clean_files=$ac_clean_files_save
4028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4029printf %s "checking for suffix of object files... " >&6; }
4030if test ${ac_cv_objext+y}
4031then :
4032  printf %s "(cached) " >&6
4033else $as_nop
4034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036
4037int
4038main (void)
4039{
4040
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045rm -f conftest.o conftest.obj
4046if { { ac_try="$ac_compile"
4047case "(($ac_try" in
4048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049  *) ac_try_echo=$ac_try;;
4050esac
4051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052printf "%s\n" "$ac_try_echo"; } >&5
4053  (eval "$ac_compile") 2>&5
4054  ac_status=$?
4055  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056  test $ac_status = 0; }
4057then :
4058  for ac_file in conftest.o conftest.obj conftest.*; do
4059  test -f "$ac_file" || continue;
4060  case $ac_file in
4061    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4062    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4063       break;;
4064  esac
4065done
4066else $as_nop
4067  printf "%s\n" "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4072as_fn_error $? "cannot compute suffix of object files: cannot compile
4073See \`config.log' for more details" "$LINENO" 5; }
4074fi
4075rm -f conftest.$ac_cv_objext conftest.$ac_ext
4076fi
4077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4078printf "%s\n" "$ac_cv_objext" >&6; }
4079OBJEXT=$ac_cv_objext
4080ac_objext=$OBJEXT
4081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4082printf %s "checking whether the compiler supports GNU C... " >&6; }
4083if test ${ac_cv_c_compiler_gnu+y}
4084then :
4085  printf %s "(cached) " >&6
4086else $as_nop
4087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h.  */
4089
4090int
4091main (void)
4092{
4093#ifndef __GNUC__
4094       choke me
4095#endif
4096
4097  ;
4098  return 0;
4099}
4100_ACEOF
4101if ac_fn_c_try_compile "$LINENO"
4102then :
4103  ac_compiler_gnu=yes
4104else $as_nop
4105  ac_compiler_gnu=no
4106fi
4107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4108ac_cv_c_compiler_gnu=$ac_compiler_gnu
4109
4110fi
4111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4112printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4113ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114
4115if test $ac_compiler_gnu = yes; then
4116  GCC=yes
4117else
4118  GCC=
4119fi
4120ac_test_CFLAGS=${CFLAGS+y}
4121ac_save_CFLAGS=$CFLAGS
4122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4123printf %s "checking whether $CC accepts -g... " >&6; }
4124if test ${ac_cv_prog_cc_g+y}
4125then :
4126  printf %s "(cached) " >&6
4127else $as_nop
4128  ac_save_c_werror_flag=$ac_c_werror_flag
4129   ac_c_werror_flag=yes
4130   ac_cv_prog_cc_g=no
4131   CFLAGS="-g"
4132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133/* end confdefs.h.  */
4134
4135int
4136main (void)
4137{
4138
4139  ;
4140  return 0;
4141}
4142_ACEOF
4143if ac_fn_c_try_compile "$LINENO"
4144then :
4145  ac_cv_prog_cc_g=yes
4146else $as_nop
4147  CFLAGS=""
4148      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149/* end confdefs.h.  */
4150
4151int
4152main (void)
4153{
4154
4155  ;
4156  return 0;
4157}
4158_ACEOF
4159if ac_fn_c_try_compile "$LINENO"
4160then :
4161
4162else $as_nop
4163  ac_c_werror_flag=$ac_save_c_werror_flag
4164	 CFLAGS="-g"
4165	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h.  */
4167
4168int
4169main (void)
4170{
4171
4172  ;
4173  return 0;
4174}
4175_ACEOF
4176if ac_fn_c_try_compile "$LINENO"
4177then :
4178  ac_cv_prog_cc_g=yes
4179fi
4180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4181fi
4182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4183fi
4184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4185   ac_c_werror_flag=$ac_save_c_werror_flag
4186fi
4187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4188printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4189if test $ac_test_CFLAGS; then
4190  CFLAGS=$ac_save_CFLAGS
4191elif test $ac_cv_prog_cc_g = yes; then
4192  if test "$GCC" = yes; then
4193    CFLAGS="-g -O2"
4194  else
4195    CFLAGS="-g"
4196  fi
4197else
4198  if test "$GCC" = yes; then
4199    CFLAGS="-O2"
4200  else
4201    CFLAGS=
4202  fi
4203fi
4204ac_prog_cc_stdc=no
4205if test x$ac_prog_cc_stdc = xno
4206then :
4207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4208printf %s "checking for $CC option to enable C11 features... " >&6; }
4209if test ${ac_cv_prog_cc_c11+y}
4210then :
4211  printf %s "(cached) " >&6
4212else $as_nop
4213  ac_cv_prog_cc_c11=no
4214ac_save_CC=$CC
4215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216/* end confdefs.h.  */
4217$ac_c_conftest_c11_program
4218_ACEOF
4219for ac_arg in '' -std=gnu11
4220do
4221  CC="$ac_save_CC $ac_arg"
4222  if ac_fn_c_try_compile "$LINENO"
4223then :
4224  ac_cv_prog_cc_c11=$ac_arg
4225fi
4226rm -f core conftest.err conftest.$ac_objext conftest.beam
4227  test "x$ac_cv_prog_cc_c11" != "xno" && break
4228done
4229rm -f conftest.$ac_ext
4230CC=$ac_save_CC
4231fi
4232
4233if test "x$ac_cv_prog_cc_c11" = xno
4234then :
4235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236printf "%s\n" "unsupported" >&6; }
4237else $as_nop
4238  if test "x$ac_cv_prog_cc_c11" = x
4239then :
4240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241printf "%s\n" "none needed" >&6; }
4242else $as_nop
4243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4244printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4245     CC="$CC $ac_cv_prog_cc_c11"
4246fi
4247  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4248  ac_prog_cc_stdc=c11
4249fi
4250fi
4251if test x$ac_prog_cc_stdc = xno
4252then :
4253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4254printf %s "checking for $CC option to enable C99 features... " >&6; }
4255if test ${ac_cv_prog_cc_c99+y}
4256then :
4257  printf %s "(cached) " >&6
4258else $as_nop
4259  ac_cv_prog_cc_c99=no
4260ac_save_CC=$CC
4261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263$ac_c_conftest_c99_program
4264_ACEOF
4265for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4266do
4267  CC="$ac_save_CC $ac_arg"
4268  if ac_fn_c_try_compile "$LINENO"
4269then :
4270  ac_cv_prog_cc_c99=$ac_arg
4271fi
4272rm -f core conftest.err conftest.$ac_objext conftest.beam
4273  test "x$ac_cv_prog_cc_c99" != "xno" && break
4274done
4275rm -f conftest.$ac_ext
4276CC=$ac_save_CC
4277fi
4278
4279if test "x$ac_cv_prog_cc_c99" = xno
4280then :
4281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282printf "%s\n" "unsupported" >&6; }
4283else $as_nop
4284  if test "x$ac_cv_prog_cc_c99" = x
4285then :
4286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4287printf "%s\n" "none needed" >&6; }
4288else $as_nop
4289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4290printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4291     CC="$CC $ac_cv_prog_cc_c99"
4292fi
4293  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4294  ac_prog_cc_stdc=c99
4295fi
4296fi
4297if test x$ac_prog_cc_stdc = xno
4298then :
4299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4300printf %s "checking for $CC option to enable C89 features... " >&6; }
4301if test ${ac_cv_prog_cc_c89+y}
4302then :
4303  printf %s "(cached) " >&6
4304else $as_nop
4305  ac_cv_prog_cc_c89=no
4306ac_save_CC=$CC
4307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h.  */
4309$ac_c_conftest_c89_program
4310_ACEOF
4311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4312do
4313  CC="$ac_save_CC $ac_arg"
4314  if ac_fn_c_try_compile "$LINENO"
4315then :
4316  ac_cv_prog_cc_c89=$ac_arg
4317fi
4318rm -f core conftest.err conftest.$ac_objext conftest.beam
4319  test "x$ac_cv_prog_cc_c89" != "xno" && break
4320done
4321rm -f conftest.$ac_ext
4322CC=$ac_save_CC
4323fi
4324
4325if test "x$ac_cv_prog_cc_c89" = xno
4326then :
4327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328printf "%s\n" "unsupported" >&6; }
4329else $as_nop
4330  if test "x$ac_cv_prog_cc_c89" = x
4331then :
4332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4333printf "%s\n" "none needed" >&6; }
4334else $as_nop
4335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4336printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4337     CC="$CC $ac_cv_prog_cc_c89"
4338fi
4339  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4340  ac_prog_cc_stdc=c89
4341fi
4342fi
4343
4344ac_ext=c
4345ac_cpp='$CPP $CPPFLAGS'
4346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349
4350
4351  ac_ext=c
4352ac_cpp='$CPP $CPPFLAGS'
4353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4357printf %s "checking whether $CC understands -c and -o together... " >&6; }
4358if test ${am_cv_prog_cc_c_o+y}
4359then :
4360  printf %s "(cached) " >&6
4361else $as_nop
4362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h.  */
4364
4365int
4366main (void)
4367{
4368
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373  # Make sure it works both with $CC and with simple cc.
4374  # Following AC_PROG_CC_C_O, we do the test twice because some
4375  # compilers refuse to overwrite an existing .o file with -o,
4376  # though they will create one.
4377  am_cv_prog_cc_c_o=yes
4378  for am_i in 1 2; do
4379    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4380   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } \
4384         && test -f conftest2.$ac_objext; then
4385      : OK
4386    else
4387      am_cv_prog_cc_c_o=no
4388      break
4389    fi
4390  done
4391  rm -f core conftest*
4392  unset am_i
4393fi
4394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4395printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4396if test "$am_cv_prog_cc_c_o" != yes; then
4397   # Losing compiler, so override with the script.
4398   # FIXME: It is wrong to rewrite CC.
4399   # But if we don't then we get into trouble of one sort or another.
4400   # A longer-term fix would be to have automake use am__CC in this case,
4401   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4402   CC="$am_aux_dir/compile $CC"
4403fi
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410
4411depcc="$CC"   am_compiler_list=
4412
4413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4414printf %s "checking dependency style of $depcc... " >&6; }
4415if test ${am_cv_CC_dependencies_compiler_type+y}
4416then :
4417  printf %s "(cached) " >&6
4418else $as_nop
4419  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4420  # We make a subdir and do the tests there.  Otherwise we can end up
4421  # making bogus files that we don't know about and never remove.  For
4422  # instance it was reported that on HP-UX the gcc test will end up
4423  # making a dummy file named 'D' -- because '-MD' means "put the output
4424  # in D".
4425  rm -rf conftest.dir
4426  mkdir conftest.dir
4427  # Copy depcomp to subdir because otherwise we won't find it if we're
4428  # using a relative directory.
4429  cp "$am_depcomp" conftest.dir
4430  cd conftest.dir
4431  # We will build objects and dependencies in a subdirectory because
4432  # it helps to detect inapplicable dependency modes.  For instance
4433  # both Tru64's cc and ICC support -MD to output dependencies as a
4434  # side effect of compilation, but ICC will put the dependencies in
4435  # the current directory while Tru64 will put them in the object
4436  # directory.
4437  mkdir sub
4438
4439  am_cv_CC_dependencies_compiler_type=none
4440  if test "$am_compiler_list" = ""; then
4441     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4442  fi
4443  am__universal=false
4444  case " $depcc " in #(
4445     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4446     esac
4447
4448  for depmode in $am_compiler_list; do
4449    # Setup a source with many dependencies, because some compilers
4450    # like to wrap large dependency lists on column 80 (with \), and
4451    # we should not choose a depcomp mode which is confused by this.
4452    #
4453    # We need to recreate these files for each test, as the compiler may
4454    # overwrite some of them when testing with obscure command lines.
4455    # This happens at least with the AIX C compiler.
4456    : > sub/conftest.c
4457    for i in 1 2 3 4 5 6; do
4458      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4459      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4460      # Solaris 10 /bin/sh.
4461      echo '/* dummy */' > sub/conftst$i.h
4462    done
4463    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4464
4465    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4466    # mode.  It turns out that the SunPro C++ compiler does not properly
4467    # handle '-M -o', and we need to detect this.  Also, some Intel
4468    # versions had trouble with output in subdirs.
4469    am__obj=sub/conftest.${OBJEXT-o}
4470    am__minus_obj="-o $am__obj"
4471    case $depmode in
4472    gcc)
4473      # This depmode causes a compiler race in universal mode.
4474      test "$am__universal" = false || continue
4475      ;;
4476    nosideeffect)
4477      # After this tag, mechanisms are not by side-effect, so they'll
4478      # only be used when explicitly requested.
4479      if test "x$enable_dependency_tracking" = xyes; then
4480	continue
4481      else
4482	break
4483      fi
4484      ;;
4485    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4486      # This compiler won't grok '-c -o', but also, the minuso test has
4487      # not run yet.  These depmodes are late enough in the game, and
4488      # so weak that their functioning should not be impacted.
4489      am__obj=conftest.${OBJEXT-o}
4490      am__minus_obj=
4491      ;;
4492    none) break ;;
4493    esac
4494    if depmode=$depmode \
4495       source=sub/conftest.c object=$am__obj \
4496       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4497       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4498         >/dev/null 2>conftest.err &&
4499       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4500       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4501       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4502       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4503      # icc doesn't choke on unknown options, it will just issue warnings
4504      # or remarks (even with -Werror).  So we grep stderr for any message
4505      # that says an option was ignored or not supported.
4506      # When given -MP, icc 7.0 and 7.1 complain thusly:
4507      #   icc: Command line warning: ignoring option '-M'; no argument required
4508      # The diagnosis changed in icc 8.0:
4509      #   icc: Command line remark: option '-MP' not supported
4510      if (grep 'ignoring option' conftest.err ||
4511          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4512        am_cv_CC_dependencies_compiler_type=$depmode
4513        break
4514      fi
4515    fi
4516  done
4517
4518  cd ..
4519  rm -rf conftest.dir
4520else
4521  am_cv_CC_dependencies_compiler_type=none
4522fi
4523
4524fi
4525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4526printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4527CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4528
4529 if
4530  test "x$enable_dependency_tracking" != xno \
4531  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4532  am__fastdepCC_TRUE=
4533  am__fastdepCC_FALSE='#'
4534else
4535  am__fastdepCC_TRUE='#'
4536  am__fastdepCC_FALSE=
4537fi
4538
4539
4540
4541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4542printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4543if test ${ac_cv_c_undeclared_builtin_options+y}
4544then :
4545  printf %s "(cached) " >&6
4546else $as_nop
4547  ac_save_CFLAGS=$CFLAGS
4548   ac_cv_c_undeclared_builtin_options='cannot detect'
4549   for ac_arg in '' -fno-builtin; do
4550     CFLAGS="$ac_save_CFLAGS $ac_arg"
4551     # This test program should *not* compile successfully.
4552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h.  */
4554
4555int
4556main (void)
4557{
4558(void) strchr;
4559  ;
4560  return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_compile "$LINENO"
4564then :
4565
4566else $as_nop
4567  # This test program should compile successfully.
4568        # No library function is consistently available on
4569        # freestanding implementations, so test against a dummy
4570        # declaration.  Include always-available headers on the
4571        # off chance that they somehow elicit warnings.
4572        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574#include <float.h>
4575#include <limits.h>
4576#include <stdarg.h>
4577#include <stddef.h>
4578extern void ac_decl (int, char *);
4579
4580int
4581main (void)
4582{
4583(void) ac_decl (0, (char *) 0);
4584  (void) ac_decl;
4585
4586  ;
4587  return 0;
4588}
4589_ACEOF
4590if ac_fn_c_try_compile "$LINENO"
4591then :
4592  if test x"$ac_arg" = x
4593then :
4594  ac_cv_c_undeclared_builtin_options='none needed'
4595else $as_nop
4596  ac_cv_c_undeclared_builtin_options=$ac_arg
4597fi
4598          break
4599fi
4600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4601fi
4602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4603    done
4604    CFLAGS=$ac_save_CFLAGS
4605
4606fi
4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4608printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4609  case $ac_cv_c_undeclared_builtin_options in #(
4610  'cannot detect') :
4611    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4613as_fn_error $? "cannot make $CC report undeclared builtins
4614See \`config.log' for more details" "$LINENO" 5; } ;; #(
4615  'none needed') :
4616    ac_c_undeclared_builtin_options='' ;; #(
4617  *) :
4618    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4619esac
4620
4621ac_header= ac_cache=
4622for ac_item in $ac_header_c_list
4623do
4624  if test $ac_cache; then
4625    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4626    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4627      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4628    fi
4629    ac_header= ac_cache=
4630  elif test $ac_header; then
4631    ac_cache=$ac_item
4632  else
4633    ac_header=$ac_item
4634  fi
4635done
4636
4637
4638
4639
4640
4641
4642
4643
4644if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4645then :
4646
4647printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4648
4649fi
4650
4651
4652
4653
4654ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4655if test "x$ac_cv_have_decl___clang__" = xyes
4656then :
4657  CLANGCC="yes"
4658else $as_nop
4659  CLANGCC="no"
4660fi
4661ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4662if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4663then :
4664  INTELCC="yes"
4665else $as_nop
4666  INTELCC="no"
4667fi
4668ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4669if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4670then :
4671  SUNCC="yes"
4672else $as_nop
4673  SUNCC="no"
4674fi
4675
4676
4677
4678
4679
4680
4681
4682
4683if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4684	if test -n "$ac_tool_prefix"; then
4685  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4686set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688printf %s "checking for $ac_word... " >&6; }
4689if test ${ac_cv_path_PKG_CONFIG+y}
4690then :
4691  printf %s "(cached) " >&6
4692else $as_nop
4693  case $PKG_CONFIG in
4694  [\\/]* | ?:[\\/]*)
4695  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4696  ;;
4697  *)
4698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701  IFS=$as_save_IFS
4702  case $as_dir in #(((
4703    '') as_dir=./ ;;
4704    */) ;;
4705    *) as_dir=$as_dir/ ;;
4706  esac
4707    for ac_exec_ext in '' $ac_executable_extensions; do
4708  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4709    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4710    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4711    break 2
4712  fi
4713done
4714  done
4715IFS=$as_save_IFS
4716
4717  ;;
4718esac
4719fi
4720PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4721if test -n "$PKG_CONFIG"; then
4722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4723printf "%s\n" "$PKG_CONFIG" >&6; }
4724else
4725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726printf "%s\n" "no" >&6; }
4727fi
4728
4729
4730fi
4731if test -z "$ac_cv_path_PKG_CONFIG"; then
4732  ac_pt_PKG_CONFIG=$PKG_CONFIG
4733  # Extract the first word of "pkg-config", so it can be a program name with args.
4734set dummy pkg-config; ac_word=$2
4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736printf %s "checking for $ac_word... " >&6; }
4737if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4738then :
4739  printf %s "(cached) " >&6
4740else $as_nop
4741  case $ac_pt_PKG_CONFIG in
4742  [\\/]* | ?:[\\/]*)
4743  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4744  ;;
4745  *)
4746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  case $as_dir in #(((
4751    '') as_dir=./ ;;
4752    */) ;;
4753    *) as_dir=$as_dir/ ;;
4754  esac
4755    for ac_exec_ext in '' $ac_executable_extensions; do
4756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4757    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4759    break 2
4760  fi
4761done
4762  done
4763IFS=$as_save_IFS
4764
4765  ;;
4766esac
4767fi
4768ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4769if test -n "$ac_pt_PKG_CONFIG"; then
4770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4771printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4772else
4773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774printf "%s\n" "no" >&6; }
4775fi
4776
4777  if test "x$ac_pt_PKG_CONFIG" = x; then
4778    PKG_CONFIG=""
4779  else
4780    case $cross_compiling:$ac_tool_warned in
4781yes:)
4782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4783printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4784ac_tool_warned=yes ;;
4785esac
4786    PKG_CONFIG=$ac_pt_PKG_CONFIG
4787  fi
4788else
4789  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4790fi
4791
4792fi
4793if test -n "$PKG_CONFIG"; then
4794	_pkg_min_version=0.9.0
4795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4796printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4797	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4799printf "%s\n" "yes" >&6; }
4800	else
4801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802printf "%s\n" "no" >&6; }
4803		PKG_CONFIG=""
4804	fi
4805fi
4806
4807
4808  # Make sure we can run config.sub.
4809$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4810  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4811
4812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4813printf %s "checking build system type... " >&6; }
4814if test ${ac_cv_build+y}
4815then :
4816  printf %s "(cached) " >&6
4817else $as_nop
4818  ac_build_alias=$build_alias
4819test "x$ac_build_alias" = x &&
4820  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4821test "x$ac_build_alias" = x &&
4822  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4823ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4824  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4825
4826fi
4827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4828printf "%s\n" "$ac_cv_build" >&6; }
4829case $ac_cv_build in
4830*-*-*) ;;
4831*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4832esac
4833build=$ac_cv_build
4834ac_save_IFS=$IFS; IFS='-'
4835set x $ac_cv_build
4836shift
4837build_cpu=$1
4838build_vendor=$2
4839shift; shift
4840# Remember, the first character of IFS is used to create $*,
4841# except with old shells:
4842build_os=$*
4843IFS=$ac_save_IFS
4844case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4845
4846
4847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4848printf %s "checking host system type... " >&6; }
4849if test ${ac_cv_host+y}
4850then :
4851  printf %s "(cached) " >&6
4852else $as_nop
4853  if test "x$host_alias" = x; then
4854  ac_cv_host=$ac_cv_build
4855else
4856  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4857    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4858fi
4859
4860fi
4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4862printf "%s\n" "$ac_cv_host" >&6; }
4863case $ac_cv_host in
4864*-*-*) ;;
4865*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4866esac
4867host=$ac_cv_host
4868ac_save_IFS=$IFS; IFS='-'
4869set x $ac_cv_host
4870shift
4871host_cpu=$1
4872host_vendor=$2
4873shift; shift
4874# Remember, the first character of IFS is used to create $*,
4875# except with old shells:
4876host_os=$*
4877IFS=$ac_save_IFS
4878case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4879
4880
4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4882printf %s "checking for a sed that does not truncate output... " >&6; }
4883if test ${ac_cv_path_SED+y}
4884then :
4885  printf %s "(cached) " >&6
4886else $as_nop
4887            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4888     for ac_i in 1 2 3 4 5 6 7; do
4889       ac_script="$ac_script$as_nl$ac_script"
4890     done
4891     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4892     { ac_script=; unset ac_script;}
4893     if test -z "$SED"; then
4894  ac_path_SED_found=false
4895  # Loop through the user's path and test for each of PROGNAME-LIST
4896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899  IFS=$as_save_IFS
4900  case $as_dir in #(((
4901    '') as_dir=./ ;;
4902    */) ;;
4903    *) as_dir=$as_dir/ ;;
4904  esac
4905    for ac_prog in sed gsed
4906   do
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4909      as_fn_executable_p "$ac_path_SED" || continue
4910# Check for GNU ac_path_SED and select it if it is found.
4911  # Check for GNU $ac_path_SED
4912case `"$ac_path_SED" --version 2>&1` in
4913*GNU*)
4914  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4915*)
4916  ac_count=0
4917  printf %s 0123456789 >"conftest.in"
4918  while :
4919  do
4920    cat "conftest.in" "conftest.in" >"conftest.tmp"
4921    mv "conftest.tmp" "conftest.in"
4922    cp "conftest.in" "conftest.nl"
4923    printf "%s\n" '' >> "conftest.nl"
4924    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926    as_fn_arith $ac_count + 1 && ac_count=$as_val
4927    if test $ac_count -gt ${ac_path_SED_max-0}; then
4928      # Best one so far, save it but keep looking for a better one
4929      ac_cv_path_SED="$ac_path_SED"
4930      ac_path_SED_max=$ac_count
4931    fi
4932    # 10*(2^10) chars as input seems more than enough
4933    test $ac_count -gt 10 && break
4934  done
4935  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936esac
4937
4938      $ac_path_SED_found && break 3
4939    done
4940  done
4941  done
4942IFS=$as_save_IFS
4943  if test -z "$ac_cv_path_SED"; then
4944    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4945  fi
4946else
4947  ac_cv_path_SED=$SED
4948fi
4949
4950fi
4951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4952printf "%s\n" "$ac_cv_path_SED" >&6; }
4953 SED="$ac_cv_path_SED"
4954  rm -f conftest.sed
4955
4956
4957
4958
4959
4960
4961# Check whether --enable-selective-werror was given.
4962if test ${enable_selective_werror+y}
4963then :
4964  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4965else $as_nop
4966  SELECTIVE_WERROR=yes
4967fi
4968
4969
4970
4971
4972
4973# -v is too short to test reliably with XORG_TESTSET_CFLAG
4974if test "x$SUNCC" = "xyes"; then
4975    BASE_CFLAGS="-v"
4976else
4977    BASE_CFLAGS=""
4978fi
4979
4980# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994xorg_testset_save_CFLAGS="$CFLAGS"
4995
4996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4997	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5000if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5001then :
5002  printf %s "(cached) " >&6
5003else $as_nop
5004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006int i;
5007_ACEOF
5008if ac_fn_c_try_compile "$LINENO"
5009then :
5010  xorg_cv_cc_flag_unknown_warning_option=yes
5011else $as_nop
5012  xorg_cv_cc_flag_unknown_warning_option=no
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5015fi
5016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5017printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5019	CFLAGS="$xorg_testset_save_CFLAGS"
5020fi
5021
5022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025	fi
5026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5028printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5029if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5030then :
5031  printf %s "(cached) " >&6
5032else $as_nop
5033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035int i;
5036_ACEOF
5037if ac_fn_c_try_compile "$LINENO"
5038then :
5039  xorg_cv_cc_flag_unused_command_line_argument=yes
5040else $as_nop
5041  xorg_cv_cc_flag_unused_command_line_argument=no
5042fi
5043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5044fi
5045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5048	CFLAGS="$xorg_testset_save_CFLAGS"
5049fi
5050
5051found="no"
5052
5053	if test $found = "no" ; then
5054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056		fi
5057
5058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060		fi
5061
5062		CFLAGS="$CFLAGS -Wall"
5063
5064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5065printf %s "checking if $CC supports -Wall... " >&6; }
5066		cacheid=xorg_cv_cc_flag__Wall
5067		if eval test \${$cacheid+y}
5068then :
5069  printf %s "(cached) " >&6
5070else $as_nop
5071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h.  */
5073int i;
5074int
5075main (void)
5076{
5077
5078  ;
5079  return 0;
5080}
5081_ACEOF
5082if ac_fn_c_try_link "$LINENO"
5083then :
5084  eval $cacheid=yes
5085else $as_nop
5086  eval $cacheid=no
5087fi
5088rm -f core conftest.err conftest.$ac_objext conftest.beam \
5089    conftest$ac_exeext conftest.$ac_ext
5090fi
5091
5092
5093		CFLAGS="$xorg_testset_save_CFLAGS"
5094
5095		eval supported=\$$cacheid
5096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5097printf "%s\n" "$supported" >&6; }
5098		if test "$supported" = "yes" ; then
5099			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5100			found="yes"
5101		fi
5102	fi
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118xorg_testset_save_CFLAGS="$CFLAGS"
5119
5120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5123printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5124if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5125then :
5126  printf %s "(cached) " >&6
5127else $as_nop
5128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130int i;
5131_ACEOF
5132if ac_fn_c_try_compile "$LINENO"
5133then :
5134  xorg_cv_cc_flag_unknown_warning_option=yes
5135else $as_nop
5136  xorg_cv_cc_flag_unknown_warning_option=no
5137fi
5138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5139fi
5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5141printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5143	CFLAGS="$xorg_testset_save_CFLAGS"
5144fi
5145
5146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149	fi
5150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5151	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5152printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5153if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5154then :
5155  printf %s "(cached) " >&6
5156else $as_nop
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159int i;
5160_ACEOF
5161if ac_fn_c_try_compile "$LINENO"
5162then :
5163  xorg_cv_cc_flag_unused_command_line_argument=yes
5164else $as_nop
5165  xorg_cv_cc_flag_unused_command_line_argument=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5168fi
5169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5170printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5171	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5172	CFLAGS="$xorg_testset_save_CFLAGS"
5173fi
5174
5175found="no"
5176
5177	if test $found = "no" ; then
5178		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180		fi
5181
5182		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184		fi
5185
5186		CFLAGS="$CFLAGS -Wpointer-arith"
5187
5188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5189printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5190		cacheid=xorg_cv_cc_flag__Wpointer_arith
5191		if eval test \${$cacheid+y}
5192then :
5193  printf %s "(cached) " >&6
5194else $as_nop
5195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h.  */
5197int i;
5198int
5199main (void)
5200{
5201
5202  ;
5203  return 0;
5204}
5205_ACEOF
5206if ac_fn_c_try_link "$LINENO"
5207then :
5208  eval $cacheid=yes
5209else $as_nop
5210  eval $cacheid=no
5211fi
5212rm -f core conftest.err conftest.$ac_objext conftest.beam \
5213    conftest$ac_exeext conftest.$ac_ext
5214fi
5215
5216
5217		CFLAGS="$xorg_testset_save_CFLAGS"
5218
5219		eval supported=\$$cacheid
5220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5221printf "%s\n" "$supported" >&6; }
5222		if test "$supported" = "yes" ; then
5223			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5224			found="yes"
5225		fi
5226	fi
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242xorg_testset_save_CFLAGS="$CFLAGS"
5243
5244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5247printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5248if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5249then :
5250  printf %s "(cached) " >&6
5251else $as_nop
5252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h.  */
5254int i;
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"
5257then :
5258  xorg_cv_cc_flag_unknown_warning_option=yes
5259else $as_nop
5260  xorg_cv_cc_flag_unknown_warning_option=no
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263fi
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5265printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5267	CFLAGS="$xorg_testset_save_CFLAGS"
5268fi
5269
5270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273	fi
5274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5276printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5277if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5278then :
5279  printf %s "(cached) " >&6
5280else $as_nop
5281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h.  */
5283int i;
5284_ACEOF
5285if ac_fn_c_try_compile "$LINENO"
5286then :
5287  xorg_cv_cc_flag_unused_command_line_argument=yes
5288else $as_nop
5289  xorg_cv_cc_flag_unused_command_line_argument=no
5290fi
5291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5292fi
5293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5294printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5295	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5296	CFLAGS="$xorg_testset_save_CFLAGS"
5297fi
5298
5299found="no"
5300
5301	if test $found = "no" ; then
5302		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304		fi
5305
5306		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308		fi
5309
5310		CFLAGS="$CFLAGS -Wmissing-declarations"
5311
5312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5313printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5314		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5315		if eval test \${$cacheid+y}
5316then :
5317  printf %s "(cached) " >&6
5318else $as_nop
5319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322int
5323main (void)
5324{
5325
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330if ac_fn_c_try_link "$LINENO"
5331then :
5332  eval $cacheid=yes
5333else $as_nop
5334  eval $cacheid=no
5335fi
5336rm -f core conftest.err conftest.$ac_objext conftest.beam \
5337    conftest$ac_exeext conftest.$ac_ext
5338fi
5339
5340
5341		CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343		eval supported=\$$cacheid
5344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345printf "%s\n" "$supported" >&6; }
5346		if test "$supported" = "yes" ; then
5347			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5348			found="yes"
5349		fi
5350	fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5373then :
5374  printf %s "(cached) " >&6
5375else $as_nop
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378int i;
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"
5381then :
5382  xorg_cv_cc_flag_unknown_warning_option=yes
5383else $as_nop
5384  xorg_cv_cc_flag_unknown_warning_option=no
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5387fi
5388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5391	CFLAGS="$xorg_testset_save_CFLAGS"
5392fi
5393
5394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397	fi
5398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5401if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5402then :
5403  printf %s "(cached) " >&6
5404else $as_nop
5405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407int i;
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"
5410then :
5411  xorg_cv_cc_flag_unused_command_line_argument=yes
5412else $as_nop
5413  xorg_cv_cc_flag_unused_command_line_argument=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5416fi
5417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420	CFLAGS="$xorg_testset_save_CFLAGS"
5421fi
5422
5423found="no"
5424
5425	if test $found = "no" ; then
5426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428		fi
5429
5430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432		fi
5433
5434		CFLAGS="$CFLAGS -Wformat=2"
5435
5436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5437printf %s "checking if $CC supports -Wformat=2... " >&6; }
5438		cacheid=xorg_cv_cc_flag__Wformat_2
5439		if eval test \${$cacheid+y}
5440then :
5441  printf %s "(cached) " >&6
5442else $as_nop
5443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h.  */
5445int i;
5446int
5447main (void)
5448{
5449
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454if ac_fn_c_try_link "$LINENO"
5455then :
5456  eval $cacheid=yes
5457else $as_nop
5458  eval $cacheid=no
5459fi
5460rm -f core conftest.err conftest.$ac_objext conftest.beam \
5461    conftest$ac_exeext conftest.$ac_ext
5462fi
5463
5464
5465		CFLAGS="$xorg_testset_save_CFLAGS"
5466
5467		eval supported=\$$cacheid
5468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5469printf "%s\n" "$supported" >&6; }
5470		if test "$supported" = "yes" ; then
5471			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5472			found="yes"
5473		fi
5474	fi
5475
5476	if test $found = "no" ; then
5477		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479		fi
5480
5481		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483		fi
5484
5485		CFLAGS="$CFLAGS -Wformat"
5486
5487		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5488printf %s "checking if $CC supports -Wformat... " >&6; }
5489		cacheid=xorg_cv_cc_flag__Wformat
5490		if eval test \${$cacheid+y}
5491then :
5492  printf %s "(cached) " >&6
5493else $as_nop
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496int i;
5497int
5498main (void)
5499{
5500
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_link "$LINENO"
5506then :
5507  eval $cacheid=yes
5508else $as_nop
5509  eval $cacheid=no
5510fi
5511rm -f core conftest.err conftest.$ac_objext conftest.beam \
5512    conftest$ac_exeext conftest.$ac_ext
5513fi
5514
5515
5516		CFLAGS="$xorg_testset_save_CFLAGS"
5517
5518		eval supported=\$$cacheid
5519		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5520printf "%s\n" "$supported" >&6; }
5521		if test "$supported" = "yes" ; then
5522			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5523			found="yes"
5524		fi
5525	fi
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543xorg_testset_save_CFLAGS="$CFLAGS"
5544
5545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5548printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5549if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5550then :
5551  printf %s "(cached) " >&6
5552else $as_nop
5553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h.  */
5555int i;
5556_ACEOF
5557if ac_fn_c_try_compile "$LINENO"
5558then :
5559  xorg_cv_cc_flag_unknown_warning_option=yes
5560else $as_nop
5561  xorg_cv_cc_flag_unknown_warning_option=no
5562fi
5563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5564fi
5565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5566printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5567	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5568	CFLAGS="$xorg_testset_save_CFLAGS"
5569fi
5570
5571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5572	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5573		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574	fi
5575	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5577printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5578if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5579then :
5580  printf %s "(cached) " >&6
5581else $as_nop
5582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h.  */
5584int i;
5585_ACEOF
5586if ac_fn_c_try_compile "$LINENO"
5587then :
5588  xorg_cv_cc_flag_unused_command_line_argument=yes
5589else $as_nop
5590  xorg_cv_cc_flag_unused_command_line_argument=no
5591fi
5592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5593fi
5594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5596	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5597	CFLAGS="$xorg_testset_save_CFLAGS"
5598fi
5599
5600found="no"
5601
5602	if test $found = "no" ; then
5603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605		fi
5606
5607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609		fi
5610
5611		CFLAGS="$CFLAGS -Wstrict-prototypes"
5612
5613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5614printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5615		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5616		if eval test \${$cacheid+y}
5617then :
5618  printf %s "(cached) " >&6
5619else $as_nop
5620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h.  */
5622int i;
5623int
5624main (void)
5625{
5626
5627  ;
5628  return 0;
5629}
5630_ACEOF
5631if ac_fn_c_try_link "$LINENO"
5632then :
5633  eval $cacheid=yes
5634else $as_nop
5635  eval $cacheid=no
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.beam \
5638    conftest$ac_exeext conftest.$ac_ext
5639fi
5640
5641
5642		CFLAGS="$xorg_testset_save_CFLAGS"
5643
5644		eval supported=\$$cacheid
5645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5646printf "%s\n" "$supported" >&6; }
5647		if test "$supported" = "yes" ; then
5648			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5649			found="yes"
5650		fi
5651	fi
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667xorg_testset_save_CFLAGS="$CFLAGS"
5668
5669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5673if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5674then :
5675  printf %s "(cached) " >&6
5676else $as_nop
5677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h.  */
5679int i;
5680_ACEOF
5681if ac_fn_c_try_compile "$LINENO"
5682then :
5683  xorg_cv_cc_flag_unknown_warning_option=yes
5684else $as_nop
5685  xorg_cv_cc_flag_unknown_warning_option=no
5686fi
5687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5688fi
5689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5691	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5692	CFLAGS="$xorg_testset_save_CFLAGS"
5693fi
5694
5695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5696	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5697		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698	fi
5699	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5702if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5703then :
5704  printf %s "(cached) " >&6
5705else $as_nop
5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708int i;
5709_ACEOF
5710if ac_fn_c_try_compile "$LINENO"
5711then :
5712  xorg_cv_cc_flag_unused_command_line_argument=yes
5713else $as_nop
5714  xorg_cv_cc_flag_unused_command_line_argument=no
5715fi
5716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5717fi
5718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5721	CFLAGS="$xorg_testset_save_CFLAGS"
5722fi
5723
5724found="no"
5725
5726	if test $found = "no" ; then
5727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729		fi
5730
5731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733		fi
5734
5735		CFLAGS="$CFLAGS -Wmissing-prototypes"
5736
5737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5738printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5739		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5740		if eval test \${$cacheid+y}
5741then :
5742  printf %s "(cached) " >&6
5743else $as_nop
5744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745/* end confdefs.h.  */
5746int i;
5747int
5748main (void)
5749{
5750
5751  ;
5752  return 0;
5753}
5754_ACEOF
5755if ac_fn_c_try_link "$LINENO"
5756then :
5757  eval $cacheid=yes
5758else $as_nop
5759  eval $cacheid=no
5760fi
5761rm -f core conftest.err conftest.$ac_objext conftest.beam \
5762    conftest$ac_exeext conftest.$ac_ext
5763fi
5764
5765
5766		CFLAGS="$xorg_testset_save_CFLAGS"
5767
5768		eval supported=\$$cacheid
5769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5770printf "%s\n" "$supported" >&6; }
5771		if test "$supported" = "yes" ; then
5772			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5773			found="yes"
5774		fi
5775	fi
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791xorg_testset_save_CFLAGS="$CFLAGS"
5792
5793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5797if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5798then :
5799  printf %s "(cached) " >&6
5800else $as_nop
5801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803int i;
5804_ACEOF
5805if ac_fn_c_try_compile "$LINENO"
5806then :
5807  xorg_cv_cc_flag_unknown_warning_option=yes
5808else $as_nop
5809  xorg_cv_cc_flag_unknown_warning_option=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5812fi
5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5816	CFLAGS="$xorg_testset_save_CFLAGS"
5817fi
5818
5819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822	fi
5823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5826if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5827then :
5828  printf %s "(cached) " >&6
5829else $as_nop
5830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h.  */
5832int i;
5833_ACEOF
5834if ac_fn_c_try_compile "$LINENO"
5835then :
5836  xorg_cv_cc_flag_unused_command_line_argument=yes
5837else $as_nop
5838  xorg_cv_cc_flag_unused_command_line_argument=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5841fi
5842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5845	CFLAGS="$xorg_testset_save_CFLAGS"
5846fi
5847
5848found="no"
5849
5850	if test $found = "no" ; then
5851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853		fi
5854
5855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857		fi
5858
5859		CFLAGS="$CFLAGS -Wnested-externs"
5860
5861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5862printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5863		cacheid=xorg_cv_cc_flag__Wnested_externs
5864		if eval test \${$cacheid+y}
5865then :
5866  printf %s "(cached) " >&6
5867else $as_nop
5868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h.  */
5870int i;
5871int
5872main (void)
5873{
5874
5875  ;
5876  return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_link "$LINENO"
5880then :
5881  eval $cacheid=yes
5882else $as_nop
5883  eval $cacheid=no
5884fi
5885rm -f core conftest.err conftest.$ac_objext conftest.beam \
5886    conftest$ac_exeext conftest.$ac_ext
5887fi
5888
5889
5890		CFLAGS="$xorg_testset_save_CFLAGS"
5891
5892		eval supported=\$$cacheid
5893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5894printf "%s\n" "$supported" >&6; }
5895		if test "$supported" = "yes" ; then
5896			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5897			found="yes"
5898		fi
5899	fi
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915xorg_testset_save_CFLAGS="$CFLAGS"
5916
5917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5921if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5922then :
5923  printf %s "(cached) " >&6
5924else $as_nop
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"
5930then :
5931  xorg_cv_cc_flag_unknown_warning_option=yes
5932else $as_nop
5933  xorg_cv_cc_flag_unknown_warning_option=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936fi
5937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940	CFLAGS="$xorg_testset_save_CFLAGS"
5941fi
5942
5943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946	fi
5947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5951then :
5952  printf %s "(cached) " >&6
5953else $as_nop
5954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h.  */
5956int i;
5957_ACEOF
5958if ac_fn_c_try_compile "$LINENO"
5959then :
5960  xorg_cv_cc_flag_unused_command_line_argument=yes
5961else $as_nop
5962  xorg_cv_cc_flag_unused_command_line_argument=no
5963fi
5964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5965fi
5966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5967printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5969	CFLAGS="$xorg_testset_save_CFLAGS"
5970fi
5971
5972found="no"
5973
5974	if test $found = "no" ; then
5975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977		fi
5978
5979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981		fi
5982
5983		CFLAGS="$CFLAGS -Wbad-function-cast"
5984
5985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5986printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5987		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5988		if eval test \${$cacheid+y}
5989then :
5990  printf %s "(cached) " >&6
5991else $as_nop
5992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994int i;
5995int
5996main (void)
5997{
5998
5999  ;
6000  return 0;
6001}
6002_ACEOF
6003if ac_fn_c_try_link "$LINENO"
6004then :
6005  eval $cacheid=yes
6006else $as_nop
6007  eval $cacheid=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.beam \
6010    conftest$ac_exeext conftest.$ac_ext
6011fi
6012
6013
6014		CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016		eval supported=\$$cacheid
6017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018printf "%s\n" "$supported" >&6; }
6019		if test "$supported" = "yes" ; then
6020			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6021			found="yes"
6022		fi
6023	fi
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039xorg_testset_save_CFLAGS="$CFLAGS"
6040
6041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6045if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6046then :
6047  printf %s "(cached) " >&6
6048else $as_nop
6049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051int i;
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"
6054then :
6055  xorg_cv_cc_flag_unknown_warning_option=yes
6056else $as_nop
6057  xorg_cv_cc_flag_unknown_warning_option=no
6058fi
6059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060fi
6061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6064	CFLAGS="$xorg_testset_save_CFLAGS"
6065fi
6066
6067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070	fi
6071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6075then :
6076  printf %s "(cached) " >&6
6077else $as_nop
6078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h.  */
6080int i;
6081_ACEOF
6082if ac_fn_c_try_compile "$LINENO"
6083then :
6084  xorg_cv_cc_flag_unused_command_line_argument=yes
6085else $as_nop
6086  xorg_cv_cc_flag_unused_command_line_argument=no
6087fi
6088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6089fi
6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093	CFLAGS="$xorg_testset_save_CFLAGS"
6094fi
6095
6096found="no"
6097
6098	if test $found = "no" ; then
6099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101		fi
6102
6103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105		fi
6106
6107		CFLAGS="$CFLAGS -Wold-style-definition"
6108
6109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6110printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6111		cacheid=xorg_cv_cc_flag__Wold_style_definition
6112		if eval test \${$cacheid+y}
6113then :
6114  printf %s "(cached) " >&6
6115else $as_nop
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118int i;
6119int
6120main (void)
6121{
6122
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_link "$LINENO"
6128then :
6129  eval $cacheid=yes
6130else $as_nop
6131  eval $cacheid=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.beam \
6134    conftest$ac_exeext conftest.$ac_ext
6135fi
6136
6137
6138		CFLAGS="$xorg_testset_save_CFLAGS"
6139
6140		eval supported=\$$cacheid
6141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6142printf "%s\n" "$supported" >&6; }
6143		if test "$supported" = "yes" ; then
6144			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6145			found="yes"
6146		fi
6147	fi
6148
6149	if test $found = "no" ; then
6150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152		fi
6153
6154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156		fi
6157
6158		CFLAGS="$CFLAGS -fd"
6159
6160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6161printf %s "checking if $CC supports -fd... " >&6; }
6162		cacheid=xorg_cv_cc_flag__fd
6163		if eval test \${$cacheid+y}
6164then :
6165  printf %s "(cached) " >&6
6166else $as_nop
6167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h.  */
6169int i;
6170int
6171main (void)
6172{
6173
6174  ;
6175  return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_link "$LINENO"
6179then :
6180  eval $cacheid=yes
6181else $as_nop
6182  eval $cacheid=no
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.beam \
6185    conftest$ac_exeext conftest.$ac_ext
6186fi
6187
6188
6189		CFLAGS="$xorg_testset_save_CFLAGS"
6190
6191		eval supported=\$$cacheid
6192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6193printf "%s\n" "$supported" >&6; }
6194		if test "$supported" = "yes" ; then
6195			BASE_CFLAGS="$BASE_CFLAGS -fd"
6196			found="yes"
6197		fi
6198	fi
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214xorg_testset_save_CFLAGS="$CFLAGS"
6215
6216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6220if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6221then :
6222  printf %s "(cached) " >&6
6223else $as_nop
6224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h.  */
6226int i;
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"
6229then :
6230  xorg_cv_cc_flag_unknown_warning_option=yes
6231else $as_nop
6232  xorg_cv_cc_flag_unknown_warning_option=no
6233fi
6234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6235fi
6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6239	CFLAGS="$xorg_testset_save_CFLAGS"
6240fi
6241
6242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245	fi
6246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6250then :
6251  printf %s "(cached) " >&6
6252else $as_nop
6253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254/* end confdefs.h.  */
6255int i;
6256_ACEOF
6257if ac_fn_c_try_compile "$LINENO"
6258then :
6259  xorg_cv_cc_flag_unused_command_line_argument=yes
6260else $as_nop
6261  xorg_cv_cc_flag_unused_command_line_argument=no
6262fi
6263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6264fi
6265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6268	CFLAGS="$xorg_testset_save_CFLAGS"
6269fi
6270
6271found="no"
6272
6273	if test $found = "no" ; then
6274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276		fi
6277
6278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280		fi
6281
6282		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6283
6284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6285printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6286		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6287		if eval test \${$cacheid+y}
6288then :
6289  printf %s "(cached) " >&6
6290else $as_nop
6291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h.  */
6293int i;
6294int
6295main (void)
6296{
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302if ac_fn_c_try_link "$LINENO"
6303then :
6304  eval $cacheid=yes
6305else $as_nop
6306  eval $cacheid=no
6307fi
6308rm -f core conftest.err conftest.$ac_objext conftest.beam \
6309    conftest$ac_exeext conftest.$ac_ext
6310fi
6311
6312
6313		CFLAGS="$xorg_testset_save_CFLAGS"
6314
6315		eval supported=\$$cacheid
6316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6317printf "%s\n" "$supported" >&6; }
6318		if test "$supported" = "yes" ; then
6319			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6320			found="yes"
6321		fi
6322	fi
6323
6324
6325
6326
6327
6328# This chunk adds additional warnings that could catch undesired effects.
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342xorg_testset_save_CFLAGS="$CFLAGS"
6343
6344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6348if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6349then :
6350  printf %s "(cached) " >&6
6351else $as_nop
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354int i;
6355_ACEOF
6356if ac_fn_c_try_compile "$LINENO"
6357then :
6358  xorg_cv_cc_flag_unknown_warning_option=yes
6359else $as_nop
6360  xorg_cv_cc_flag_unknown_warning_option=no
6361fi
6362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6363fi
6364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6366	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6367	CFLAGS="$xorg_testset_save_CFLAGS"
6368fi
6369
6370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6371	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6372		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373	fi
6374	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6377if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6378then :
6379  printf %s "(cached) " >&6
6380else $as_nop
6381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383int i;
6384_ACEOF
6385if ac_fn_c_try_compile "$LINENO"
6386then :
6387  xorg_cv_cc_flag_unused_command_line_argument=yes
6388else $as_nop
6389  xorg_cv_cc_flag_unused_command_line_argument=no
6390fi
6391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6392fi
6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6395	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6396	CFLAGS="$xorg_testset_save_CFLAGS"
6397fi
6398
6399found="no"
6400
6401	if test $found = "no" ; then
6402		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404		fi
6405
6406		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408		fi
6409
6410		CFLAGS="$CFLAGS -Wunused"
6411
6412		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6413printf %s "checking if $CC supports -Wunused... " >&6; }
6414		cacheid=xorg_cv_cc_flag__Wunused
6415		if eval test \${$cacheid+y}
6416then :
6417  printf %s "(cached) " >&6
6418else $as_nop
6419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h.  */
6421int i;
6422int
6423main (void)
6424{
6425
6426  ;
6427  return 0;
6428}
6429_ACEOF
6430if ac_fn_c_try_link "$LINENO"
6431then :
6432  eval $cacheid=yes
6433else $as_nop
6434  eval $cacheid=no
6435fi
6436rm -f core conftest.err conftest.$ac_objext conftest.beam \
6437    conftest$ac_exeext conftest.$ac_ext
6438fi
6439
6440
6441		CFLAGS="$xorg_testset_save_CFLAGS"
6442
6443		eval supported=\$$cacheid
6444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6445printf "%s\n" "$supported" >&6; }
6446		if test "$supported" = "yes" ; then
6447			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6448			found="yes"
6449		fi
6450	fi
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466xorg_testset_save_CFLAGS="$CFLAGS"
6467
6468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6472if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6473then :
6474  printf %s "(cached) " >&6
6475else $as_nop
6476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478int i;
6479_ACEOF
6480if ac_fn_c_try_compile "$LINENO"
6481then :
6482  xorg_cv_cc_flag_unknown_warning_option=yes
6483else $as_nop
6484  xorg_cv_cc_flag_unknown_warning_option=no
6485fi
6486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6487fi
6488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6491	CFLAGS="$xorg_testset_save_CFLAGS"
6492fi
6493
6494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497	fi
6498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6501if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6502then :
6503  printf %s "(cached) " >&6
6504else $as_nop
6505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507int i;
6508_ACEOF
6509if ac_fn_c_try_compile "$LINENO"
6510then :
6511  xorg_cv_cc_flag_unused_command_line_argument=yes
6512else $as_nop
6513  xorg_cv_cc_flag_unused_command_line_argument=no
6514fi
6515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6516fi
6517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6520	CFLAGS="$xorg_testset_save_CFLAGS"
6521fi
6522
6523found="no"
6524
6525	if test $found = "no" ; then
6526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528		fi
6529
6530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532		fi
6533
6534		CFLAGS="$CFLAGS -Wuninitialized"
6535
6536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6537printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6538		cacheid=xorg_cv_cc_flag__Wuninitialized
6539		if eval test \${$cacheid+y}
6540then :
6541  printf %s "(cached) " >&6
6542else $as_nop
6543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h.  */
6545int i;
6546int
6547main (void)
6548{
6549
6550  ;
6551  return 0;
6552}
6553_ACEOF
6554if ac_fn_c_try_link "$LINENO"
6555then :
6556  eval $cacheid=yes
6557else $as_nop
6558  eval $cacheid=no
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.beam \
6561    conftest$ac_exeext conftest.$ac_ext
6562fi
6563
6564
6565		CFLAGS="$xorg_testset_save_CFLAGS"
6566
6567		eval supported=\$$cacheid
6568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6569printf "%s\n" "$supported" >&6; }
6570		if test "$supported" = "yes" ; then
6571			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6572			found="yes"
6573		fi
6574	fi
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590xorg_testset_save_CFLAGS="$CFLAGS"
6591
6592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6596if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6597then :
6598  printf %s "(cached) " >&6
6599else $as_nop
6600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601/* end confdefs.h.  */
6602int i;
6603_ACEOF
6604if ac_fn_c_try_compile "$LINENO"
6605then :
6606  xorg_cv_cc_flag_unknown_warning_option=yes
6607else $as_nop
6608  xorg_cv_cc_flag_unknown_warning_option=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6611fi
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621	fi
6622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6625if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6626then :
6627  printf %s "(cached) " >&6
6628else $as_nop
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"
6634then :
6635  xorg_cv_cc_flag_unused_command_line_argument=yes
6636else $as_nop
6637  xorg_cv_cc_flag_unused_command_line_argument=no
6638fi
6639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6640fi
6641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6644	CFLAGS="$xorg_testset_save_CFLAGS"
6645fi
6646
6647found="no"
6648
6649	if test $found = "no" ; then
6650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652		fi
6653
6654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656		fi
6657
6658		CFLAGS="$CFLAGS -Wshadow"
6659
6660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6661printf %s "checking if $CC supports -Wshadow... " >&6; }
6662		cacheid=xorg_cv_cc_flag__Wshadow
6663		if eval test \${$cacheid+y}
6664then :
6665  printf %s "(cached) " >&6
6666else $as_nop
6667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h.  */
6669int i;
6670int
6671main (void)
6672{
6673
6674  ;
6675  return 0;
6676}
6677_ACEOF
6678if ac_fn_c_try_link "$LINENO"
6679then :
6680  eval $cacheid=yes
6681else $as_nop
6682  eval $cacheid=no
6683fi
6684rm -f core conftest.err conftest.$ac_objext conftest.beam \
6685    conftest$ac_exeext conftest.$ac_ext
6686fi
6687
6688
6689		CFLAGS="$xorg_testset_save_CFLAGS"
6690
6691		eval supported=\$$cacheid
6692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6693printf "%s\n" "$supported" >&6; }
6694		if test "$supported" = "yes" ; then
6695			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6696			found="yes"
6697		fi
6698	fi
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714xorg_testset_save_CFLAGS="$CFLAGS"
6715
6716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6720if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6721then :
6722  printf %s "(cached) " >&6
6723else $as_nop
6724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h.  */
6726int i;
6727_ACEOF
6728if ac_fn_c_try_compile "$LINENO"
6729then :
6730  xorg_cv_cc_flag_unknown_warning_option=yes
6731else $as_nop
6732  xorg_cv_cc_flag_unknown_warning_option=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735fi
6736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6739	CFLAGS="$xorg_testset_save_CFLAGS"
6740fi
6741
6742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745	fi
6746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6749if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6750then :
6751  printf %s "(cached) " >&6
6752else $as_nop
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"
6758then :
6759  xorg_cv_cc_flag_unused_command_line_argument=yes
6760else $as_nop
6761  xorg_cv_cc_flag_unused_command_line_argument=no
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6764fi
6765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6768	CFLAGS="$xorg_testset_save_CFLAGS"
6769fi
6770
6771found="no"
6772
6773	if test $found = "no" ; then
6774		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776		fi
6777
6778		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780		fi
6781
6782		CFLAGS="$CFLAGS -Wmissing-noreturn"
6783
6784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6785printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6786		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6787		if eval test \${$cacheid+y}
6788then :
6789  printf %s "(cached) " >&6
6790else $as_nop
6791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792/* end confdefs.h.  */
6793int i;
6794int
6795main (void)
6796{
6797
6798  ;
6799  return 0;
6800}
6801_ACEOF
6802if ac_fn_c_try_link "$LINENO"
6803then :
6804  eval $cacheid=yes
6805else $as_nop
6806  eval $cacheid=no
6807fi
6808rm -f core conftest.err conftest.$ac_objext conftest.beam \
6809    conftest$ac_exeext conftest.$ac_ext
6810fi
6811
6812
6813		CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815		eval supported=\$$cacheid
6816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817printf "%s\n" "$supported" >&6; }
6818		if test "$supported" = "yes" ; then
6819			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6820			found="yes"
6821		fi
6822	fi
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838xorg_testset_save_CFLAGS="$CFLAGS"
6839
6840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6844if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6845then :
6846  printf %s "(cached) " >&6
6847else $as_nop
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850int i;
6851_ACEOF
6852if ac_fn_c_try_compile "$LINENO"
6853then :
6854  xorg_cv_cc_flag_unknown_warning_option=yes
6855else $as_nop
6856  xorg_cv_cc_flag_unknown_warning_option=no
6857fi
6858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6859fi
6860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6863	CFLAGS="$xorg_testset_save_CFLAGS"
6864fi
6865
6866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869	fi
6870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6873if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6874then :
6875  printf %s "(cached) " >&6
6876else $as_nop
6877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h.  */
6879int i;
6880_ACEOF
6881if ac_fn_c_try_compile "$LINENO"
6882then :
6883  xorg_cv_cc_flag_unused_command_line_argument=yes
6884else $as_nop
6885  xorg_cv_cc_flag_unused_command_line_argument=no
6886fi
6887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6888fi
6889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6892	CFLAGS="$xorg_testset_save_CFLAGS"
6893fi
6894
6895found="no"
6896
6897	if test $found = "no" ; then
6898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900		fi
6901
6902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904		fi
6905
6906		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6907
6908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6909printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6910		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6911		if eval test \${$cacheid+y}
6912then :
6913  printf %s "(cached) " >&6
6914else $as_nop
6915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917int i;
6918int
6919main (void)
6920{
6921
6922  ;
6923  return 0;
6924}
6925_ACEOF
6926if ac_fn_c_try_link "$LINENO"
6927then :
6928  eval $cacheid=yes
6929else $as_nop
6930  eval $cacheid=no
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.beam \
6933    conftest$ac_exeext conftest.$ac_ext
6934fi
6935
6936
6937		CFLAGS="$xorg_testset_save_CFLAGS"
6938
6939		eval supported=\$$cacheid
6940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6941printf "%s\n" "$supported" >&6; }
6942		if test "$supported" = "yes" ; then
6943			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6944			found="yes"
6945		fi
6946	fi
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962xorg_testset_save_CFLAGS="$CFLAGS"
6963
6964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6968if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6969then :
6970  printf %s "(cached) " >&6
6971else $as_nop
6972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974int i;
6975_ACEOF
6976if ac_fn_c_try_compile "$LINENO"
6977then :
6978  xorg_cv_cc_flag_unknown_warning_option=yes
6979else $as_nop
6980  xorg_cv_cc_flag_unknown_warning_option=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6983fi
6984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987	CFLAGS="$xorg_testset_save_CFLAGS"
6988fi
6989
6990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993	fi
6994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6998then :
6999  printf %s "(cached) " >&6
7000else $as_nop
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003int i;
7004_ACEOF
7005if ac_fn_c_try_compile "$LINENO"
7006then :
7007  xorg_cv_cc_flag_unused_command_line_argument=yes
7008else $as_nop
7009  xorg_cv_cc_flag_unused_command_line_argument=no
7010fi
7011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7012fi
7013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7016	CFLAGS="$xorg_testset_save_CFLAGS"
7017fi
7018
7019found="no"
7020
7021	if test $found = "no" ; then
7022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024		fi
7025
7026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028		fi
7029
7030		CFLAGS="$CFLAGS -Wredundant-decls"
7031
7032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7033printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7034		cacheid=xorg_cv_cc_flag__Wredundant_decls
7035		if eval test \${$cacheid+y}
7036then :
7037  printf %s "(cached) " >&6
7038else $as_nop
7039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041int i;
7042int
7043main (void)
7044{
7045
7046  ;
7047  return 0;
7048}
7049_ACEOF
7050if ac_fn_c_try_link "$LINENO"
7051then :
7052  eval $cacheid=yes
7053else $as_nop
7054  eval $cacheid=no
7055fi
7056rm -f core conftest.err conftest.$ac_objext conftest.beam \
7057    conftest$ac_exeext conftest.$ac_ext
7058fi
7059
7060
7061		CFLAGS="$xorg_testset_save_CFLAGS"
7062
7063		eval supported=\$$cacheid
7064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7065printf "%s\n" "$supported" >&6; }
7066		if test "$supported" = "yes" ; then
7067			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7068			found="yes"
7069		fi
7070	fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086xorg_testset_save_CFLAGS="$CFLAGS"
7087
7088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7092if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7093then :
7094  printf %s "(cached) " >&6
7095else $as_nop
7096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h.  */
7098int i;
7099_ACEOF
7100if ac_fn_c_try_compile "$LINENO"
7101then :
7102  xorg_cv_cc_flag_unknown_warning_option=yes
7103else $as_nop
7104  xorg_cv_cc_flag_unknown_warning_option=no
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7107fi
7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7111	CFLAGS="$xorg_testset_save_CFLAGS"
7112fi
7113
7114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117	fi
7118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7121if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7122then :
7123  printf %s "(cached) " >&6
7124else $as_nop
7125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127int i;
7128_ACEOF
7129if ac_fn_c_try_compile "$LINENO"
7130then :
7131  xorg_cv_cc_flag_unused_command_line_argument=yes
7132else $as_nop
7133  xorg_cv_cc_flag_unused_command_line_argument=no
7134fi
7135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7136fi
7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140	CFLAGS="$xorg_testset_save_CFLAGS"
7141fi
7142
7143found="no"
7144
7145	if test $found = "no" ; then
7146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148		fi
7149
7150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152		fi
7153
7154		CFLAGS="$CFLAGS -Wlogical-op"
7155
7156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7157printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7158		cacheid=xorg_cv_cc_flag__Wlogical_op
7159		if eval test \${$cacheid+y}
7160then :
7161  printf %s "(cached) " >&6
7162else $as_nop
7163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165int i;
7166int
7167main (void)
7168{
7169
7170  ;
7171  return 0;
7172}
7173_ACEOF
7174if ac_fn_c_try_link "$LINENO"
7175then :
7176  eval $cacheid=yes
7177else $as_nop
7178  eval $cacheid=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.beam \
7181    conftest$ac_exeext conftest.$ac_ext
7182fi
7183
7184
7185		CFLAGS="$xorg_testset_save_CFLAGS"
7186
7187		eval supported=\$$cacheid
7188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7189printf "%s\n" "$supported" >&6; }
7190		if test "$supported" = "yes" ; then
7191			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7192			found="yes"
7193		fi
7194	fi
7195
7196
7197
7198# These are currently disabled because they are noisy.  They will be enabled
7199# in the future once the codebase is sufficiently modernized to silence
7200# them.  For now, I don't want them to drown out the other warnings.
7201# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7202# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7203# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7204
7205# Turn some warnings into errors, so we don't accidentally get successful builds
7206# when there are problems that should be fixed.
7207
7208if test "x$SELECTIVE_WERROR" = "xyes" ; then
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222xorg_testset_save_CFLAGS="$CFLAGS"
7223
7224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7228if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7229then :
7230  printf %s "(cached) " >&6
7231else $as_nop
7232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233/* end confdefs.h.  */
7234int i;
7235_ACEOF
7236if ac_fn_c_try_compile "$LINENO"
7237then :
7238  xorg_cv_cc_flag_unknown_warning_option=yes
7239else $as_nop
7240  xorg_cv_cc_flag_unknown_warning_option=no
7241fi
7242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7243fi
7244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7247	CFLAGS="$xorg_testset_save_CFLAGS"
7248fi
7249
7250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253	fi
7254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7257if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7258then :
7259  printf %s "(cached) " >&6
7260else $as_nop
7261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262/* end confdefs.h.  */
7263int i;
7264_ACEOF
7265if ac_fn_c_try_compile "$LINENO"
7266then :
7267  xorg_cv_cc_flag_unused_command_line_argument=yes
7268else $as_nop
7269  xorg_cv_cc_flag_unused_command_line_argument=no
7270fi
7271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7272fi
7273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7276	CFLAGS="$xorg_testset_save_CFLAGS"
7277fi
7278
7279found="no"
7280
7281	if test $found = "no" ; then
7282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284		fi
7285
7286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7288		fi
7289
7290		CFLAGS="$CFLAGS -Werror=implicit"
7291
7292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7293printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7294		cacheid=xorg_cv_cc_flag__Werror_implicit
7295		if eval test \${$cacheid+y}
7296then :
7297  printf %s "(cached) " >&6
7298else $as_nop
7299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300/* end confdefs.h.  */
7301int i;
7302int
7303main (void)
7304{
7305
7306  ;
7307  return 0;
7308}
7309_ACEOF
7310if ac_fn_c_try_link "$LINENO"
7311then :
7312  eval $cacheid=yes
7313else $as_nop
7314  eval $cacheid=no
7315fi
7316rm -f core conftest.err conftest.$ac_objext conftest.beam \
7317    conftest$ac_exeext conftest.$ac_ext
7318fi
7319
7320
7321		CFLAGS="$xorg_testset_save_CFLAGS"
7322
7323		eval supported=\$$cacheid
7324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7325printf "%s\n" "$supported" >&6; }
7326		if test "$supported" = "yes" ; then
7327			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7328			found="yes"
7329		fi
7330	fi
7331
7332	if test $found = "no" ; then
7333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335		fi
7336
7337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339		fi
7340
7341		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7342
7343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7344printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7345		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7346		if eval test \${$cacheid+y}
7347then :
7348  printf %s "(cached) " >&6
7349else $as_nop
7350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h.  */
7352int i;
7353int
7354main (void)
7355{
7356
7357  ;
7358  return 0;
7359}
7360_ACEOF
7361if ac_fn_c_try_link "$LINENO"
7362then :
7363  eval $cacheid=yes
7364else $as_nop
7365  eval $cacheid=no
7366fi
7367rm -f core conftest.err conftest.$ac_objext conftest.beam \
7368    conftest$ac_exeext conftest.$ac_ext
7369fi
7370
7371
7372		CFLAGS="$xorg_testset_save_CFLAGS"
7373
7374		eval supported=\$$cacheid
7375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7376printf "%s\n" "$supported" >&6; }
7377		if test "$supported" = "yes" ; then
7378			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7379			found="yes"
7380		fi
7381	fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397xorg_testset_save_CFLAGS="$CFLAGS"
7398
7399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7403if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7404then :
7405  printf %s "(cached) " >&6
7406else $as_nop
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"
7412then :
7413  xorg_cv_cc_flag_unknown_warning_option=yes
7414else $as_nop
7415  xorg_cv_cc_flag_unknown_warning_option=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7418fi
7419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7422	CFLAGS="$xorg_testset_save_CFLAGS"
7423fi
7424
7425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428	fi
7429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7432if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7433then :
7434  printf %s "(cached) " >&6
7435else $as_nop
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438int i;
7439_ACEOF
7440if ac_fn_c_try_compile "$LINENO"
7441then :
7442  xorg_cv_cc_flag_unused_command_line_argument=yes
7443else $as_nop
7444  xorg_cv_cc_flag_unused_command_line_argument=no
7445fi
7446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7447fi
7448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7451	CFLAGS="$xorg_testset_save_CFLAGS"
7452fi
7453
7454found="no"
7455
7456	if test $found = "no" ; then
7457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459		fi
7460
7461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463		fi
7464
7465		CFLAGS="$CFLAGS -Werror=nonnull"
7466
7467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7468printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7469		cacheid=xorg_cv_cc_flag__Werror_nonnull
7470		if eval test \${$cacheid+y}
7471then :
7472  printf %s "(cached) " >&6
7473else $as_nop
7474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476int i;
7477int
7478main (void)
7479{
7480
7481  ;
7482  return 0;
7483}
7484_ACEOF
7485if ac_fn_c_try_link "$LINENO"
7486then :
7487  eval $cacheid=yes
7488else $as_nop
7489  eval $cacheid=no
7490fi
7491rm -f core conftest.err conftest.$ac_objext conftest.beam \
7492    conftest$ac_exeext conftest.$ac_ext
7493fi
7494
7495
7496		CFLAGS="$xorg_testset_save_CFLAGS"
7497
7498		eval supported=\$$cacheid
7499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7500printf "%s\n" "$supported" >&6; }
7501		if test "$supported" = "yes" ; then
7502			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7503			found="yes"
7504		fi
7505	fi
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521xorg_testset_save_CFLAGS="$CFLAGS"
7522
7523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7527if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7528then :
7529  printf %s "(cached) " >&6
7530else $as_nop
7531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h.  */
7533int i;
7534_ACEOF
7535if ac_fn_c_try_compile "$LINENO"
7536then :
7537  xorg_cv_cc_flag_unknown_warning_option=yes
7538else $as_nop
7539  xorg_cv_cc_flag_unknown_warning_option=no
7540fi
7541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7542fi
7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7546	CFLAGS="$xorg_testset_save_CFLAGS"
7547fi
7548
7549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7552	fi
7553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7556if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7557then :
7558  printf %s "(cached) " >&6
7559else $as_nop
7560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h.  */
7562int i;
7563_ACEOF
7564if ac_fn_c_try_compile "$LINENO"
7565then :
7566  xorg_cv_cc_flag_unused_command_line_argument=yes
7567else $as_nop
7568  xorg_cv_cc_flag_unused_command_line_argument=no
7569fi
7570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7571fi
7572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7575	CFLAGS="$xorg_testset_save_CFLAGS"
7576fi
7577
7578found="no"
7579
7580	if test $found = "no" ; then
7581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583		fi
7584
7585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587		fi
7588
7589		CFLAGS="$CFLAGS -Werror=init-self"
7590
7591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7592printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7593		cacheid=xorg_cv_cc_flag__Werror_init_self
7594		if eval test \${$cacheid+y}
7595then :
7596  printf %s "(cached) " >&6
7597else $as_nop
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600int i;
7601int
7602main (void)
7603{
7604
7605  ;
7606  return 0;
7607}
7608_ACEOF
7609if ac_fn_c_try_link "$LINENO"
7610then :
7611  eval $cacheid=yes
7612else $as_nop
7613  eval $cacheid=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.beam \
7616    conftest$ac_exeext conftest.$ac_ext
7617fi
7618
7619
7620		CFLAGS="$xorg_testset_save_CFLAGS"
7621
7622		eval supported=\$$cacheid
7623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7624printf "%s\n" "$supported" >&6; }
7625		if test "$supported" = "yes" ; then
7626			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7627			found="yes"
7628		fi
7629	fi
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645xorg_testset_save_CFLAGS="$CFLAGS"
7646
7647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7651if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7652then :
7653  printf %s "(cached) " >&6
7654else $as_nop
7655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657int i;
7658_ACEOF
7659if ac_fn_c_try_compile "$LINENO"
7660then :
7661  xorg_cv_cc_flag_unknown_warning_option=yes
7662else $as_nop
7663  xorg_cv_cc_flag_unknown_warning_option=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7666fi
7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670	CFLAGS="$xorg_testset_save_CFLAGS"
7671fi
7672
7673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676	fi
7677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7681then :
7682  printf %s "(cached) " >&6
7683else $as_nop
7684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685/* end confdefs.h.  */
7686int i;
7687_ACEOF
7688if ac_fn_c_try_compile "$LINENO"
7689then :
7690  xorg_cv_cc_flag_unused_command_line_argument=yes
7691else $as_nop
7692  xorg_cv_cc_flag_unused_command_line_argument=no
7693fi
7694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7695fi
7696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7699	CFLAGS="$xorg_testset_save_CFLAGS"
7700fi
7701
7702found="no"
7703
7704	if test $found = "no" ; then
7705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707		fi
7708
7709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711		fi
7712
7713		CFLAGS="$CFLAGS -Werror=main"
7714
7715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7716printf %s "checking if $CC supports -Werror=main... " >&6; }
7717		cacheid=xorg_cv_cc_flag__Werror_main
7718		if eval test \${$cacheid+y}
7719then :
7720  printf %s "(cached) " >&6
7721else $as_nop
7722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724int i;
7725int
7726main (void)
7727{
7728
7729  ;
7730  return 0;
7731}
7732_ACEOF
7733if ac_fn_c_try_link "$LINENO"
7734then :
7735  eval $cacheid=yes
7736else $as_nop
7737  eval $cacheid=no
7738fi
7739rm -f core conftest.err conftest.$ac_objext conftest.beam \
7740    conftest$ac_exeext conftest.$ac_ext
7741fi
7742
7743
7744		CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746		eval supported=\$$cacheid
7747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748printf "%s\n" "$supported" >&6; }
7749		if test "$supported" = "yes" ; then
7750			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7751			found="yes"
7752		fi
7753	fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7776then :
7777  printf %s "(cached) " >&6
7778else $as_nop
7779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"
7784then :
7785  xorg_cv_cc_flag_unknown_warning_option=yes
7786else $as_nop
7787  xorg_cv_cc_flag_unknown_warning_option=no
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7790fi
7791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794	CFLAGS="$xorg_testset_save_CFLAGS"
7795fi
7796
7797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800	fi
7801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7805then :
7806  printf %s "(cached) " >&6
7807else $as_nop
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810int i;
7811_ACEOF
7812if ac_fn_c_try_compile "$LINENO"
7813then :
7814  xorg_cv_cc_flag_unused_command_line_argument=yes
7815else $as_nop
7816  xorg_cv_cc_flag_unused_command_line_argument=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7819fi
7820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7823	CFLAGS="$xorg_testset_save_CFLAGS"
7824fi
7825
7826found="no"
7827
7828	if test $found = "no" ; then
7829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831		fi
7832
7833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835		fi
7836
7837		CFLAGS="$CFLAGS -Werror=missing-braces"
7838
7839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7840printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7841		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7842		if eval test \${$cacheid+y}
7843then :
7844  printf %s "(cached) " >&6
7845else $as_nop
7846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847/* end confdefs.h.  */
7848int i;
7849int
7850main (void)
7851{
7852
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857if ac_fn_c_try_link "$LINENO"
7858then :
7859  eval $cacheid=yes
7860else $as_nop
7861  eval $cacheid=no
7862fi
7863rm -f core conftest.err conftest.$ac_objext conftest.beam \
7864    conftest$ac_exeext conftest.$ac_ext
7865fi
7866
7867
7868		CFLAGS="$xorg_testset_save_CFLAGS"
7869
7870		eval supported=\$$cacheid
7871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872printf "%s\n" "$supported" >&6; }
7873		if test "$supported" = "yes" ; then
7874			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7875			found="yes"
7876		fi
7877	fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893xorg_testset_save_CFLAGS="$CFLAGS"
7894
7895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7899if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7900then :
7901  printf %s "(cached) " >&6
7902else $as_nop
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905int i;
7906_ACEOF
7907if ac_fn_c_try_compile "$LINENO"
7908then :
7909  xorg_cv_cc_flag_unknown_warning_option=yes
7910else $as_nop
7911  xorg_cv_cc_flag_unknown_warning_option=no
7912fi
7913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7914fi
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7918	CFLAGS="$xorg_testset_save_CFLAGS"
7919fi
7920
7921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924	fi
7925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7928if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7929then :
7930  printf %s "(cached) " >&6
7931else $as_nop
7932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h.  */
7934int i;
7935_ACEOF
7936if ac_fn_c_try_compile "$LINENO"
7937then :
7938  xorg_cv_cc_flag_unused_command_line_argument=yes
7939else $as_nop
7940  xorg_cv_cc_flag_unused_command_line_argument=no
7941fi
7942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7943fi
7944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7947	CFLAGS="$xorg_testset_save_CFLAGS"
7948fi
7949
7950found="no"
7951
7952	if test $found = "no" ; then
7953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955		fi
7956
7957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959		fi
7960
7961		CFLAGS="$CFLAGS -Werror=sequence-point"
7962
7963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7964printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7965		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7966		if eval test \${$cacheid+y}
7967then :
7968  printf %s "(cached) " >&6
7969else $as_nop
7970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971/* end confdefs.h.  */
7972int i;
7973int
7974main (void)
7975{
7976
7977  ;
7978  return 0;
7979}
7980_ACEOF
7981if ac_fn_c_try_link "$LINENO"
7982then :
7983  eval $cacheid=yes
7984else $as_nop
7985  eval $cacheid=no
7986fi
7987rm -f core conftest.err conftest.$ac_objext conftest.beam \
7988    conftest$ac_exeext conftest.$ac_ext
7989fi
7990
7991
7992		CFLAGS="$xorg_testset_save_CFLAGS"
7993
7994		eval supported=\$$cacheid
7995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7996printf "%s\n" "$supported" >&6; }
7997		if test "$supported" = "yes" ; then
7998			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7999			found="yes"
8000		fi
8001	fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017xorg_testset_save_CFLAGS="$CFLAGS"
8018
8019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8023if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8024then :
8025  printf %s "(cached) " >&6
8026else $as_nop
8027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028/* end confdefs.h.  */
8029int i;
8030_ACEOF
8031if ac_fn_c_try_compile "$LINENO"
8032then :
8033  xorg_cv_cc_flag_unknown_warning_option=yes
8034else $as_nop
8035  xorg_cv_cc_flag_unknown_warning_option=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8038fi
8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042	CFLAGS="$xorg_testset_save_CFLAGS"
8043fi
8044
8045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048	fi
8049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8053then :
8054  printf %s "(cached) " >&6
8055else $as_nop
8056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057/* end confdefs.h.  */
8058int i;
8059_ACEOF
8060if ac_fn_c_try_compile "$LINENO"
8061then :
8062  xorg_cv_cc_flag_unused_command_line_argument=yes
8063else $as_nop
8064  xorg_cv_cc_flag_unused_command_line_argument=no
8065fi
8066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8067fi
8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8071	CFLAGS="$xorg_testset_save_CFLAGS"
8072fi
8073
8074found="no"
8075
8076	if test $found = "no" ; then
8077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079		fi
8080
8081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8083		fi
8084
8085		CFLAGS="$CFLAGS -Werror=return-type"
8086
8087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8088printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8089		cacheid=xorg_cv_cc_flag__Werror_return_type
8090		if eval test \${$cacheid+y}
8091then :
8092  printf %s "(cached) " >&6
8093else $as_nop
8094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h.  */
8096int i;
8097int
8098main (void)
8099{
8100
8101  ;
8102  return 0;
8103}
8104_ACEOF
8105if ac_fn_c_try_link "$LINENO"
8106then :
8107  eval $cacheid=yes
8108else $as_nop
8109  eval $cacheid=no
8110fi
8111rm -f core conftest.err conftest.$ac_objext conftest.beam \
8112    conftest$ac_exeext conftest.$ac_ext
8113fi
8114
8115
8116		CFLAGS="$xorg_testset_save_CFLAGS"
8117
8118		eval supported=\$$cacheid
8119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120printf "%s\n" "$supported" >&6; }
8121		if test "$supported" = "yes" ; then
8122			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8123			found="yes"
8124		fi
8125	fi
8126
8127	if test $found = "no" ; then
8128		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8130		fi
8131
8132		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134		fi
8135
8136		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8137
8138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8139printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8140		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8141		if eval test \${$cacheid+y}
8142then :
8143  printf %s "(cached) " >&6
8144else $as_nop
8145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146/* end confdefs.h.  */
8147int i;
8148int
8149main (void)
8150{
8151
8152  ;
8153  return 0;
8154}
8155_ACEOF
8156if ac_fn_c_try_link "$LINENO"
8157then :
8158  eval $cacheid=yes
8159else $as_nop
8160  eval $cacheid=no
8161fi
8162rm -f core conftest.err conftest.$ac_objext conftest.beam \
8163    conftest$ac_exeext conftest.$ac_ext
8164fi
8165
8166
8167		CFLAGS="$xorg_testset_save_CFLAGS"
8168
8169		eval supported=\$$cacheid
8170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8171printf "%s\n" "$supported" >&6; }
8172		if test "$supported" = "yes" ; then
8173			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8174			found="yes"
8175		fi
8176	fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192xorg_testset_save_CFLAGS="$CFLAGS"
8193
8194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8198if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8199then :
8200  printf %s "(cached) " >&6
8201else $as_nop
8202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204int i;
8205_ACEOF
8206if ac_fn_c_try_compile "$LINENO"
8207then :
8208  xorg_cv_cc_flag_unknown_warning_option=yes
8209else $as_nop
8210  xorg_cv_cc_flag_unknown_warning_option=no
8211fi
8212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8213fi
8214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217	CFLAGS="$xorg_testset_save_CFLAGS"
8218fi
8219
8220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223	fi
8224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8228then :
8229  printf %s "(cached) " >&6
8230else $as_nop
8231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232/* end confdefs.h.  */
8233int i;
8234_ACEOF
8235if ac_fn_c_try_compile "$LINENO"
8236then :
8237  xorg_cv_cc_flag_unused_command_line_argument=yes
8238else $as_nop
8239  xorg_cv_cc_flag_unused_command_line_argument=no
8240fi
8241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8242fi
8243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8246	CFLAGS="$xorg_testset_save_CFLAGS"
8247fi
8248
8249found="no"
8250
8251	if test $found = "no" ; then
8252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254		fi
8255
8256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258		fi
8259
8260		CFLAGS="$CFLAGS -Werror=trigraphs"
8261
8262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8263printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8264		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8265		if eval test \${$cacheid+y}
8266then :
8267  printf %s "(cached) " >&6
8268else $as_nop
8269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270/* end confdefs.h.  */
8271int i;
8272int
8273main (void)
8274{
8275
8276  ;
8277  return 0;
8278}
8279_ACEOF
8280if ac_fn_c_try_link "$LINENO"
8281then :
8282  eval $cacheid=yes
8283else $as_nop
8284  eval $cacheid=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.beam \
8287    conftest$ac_exeext conftest.$ac_ext
8288fi
8289
8290
8291		CFLAGS="$xorg_testset_save_CFLAGS"
8292
8293		eval supported=\$$cacheid
8294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8295printf "%s\n" "$supported" >&6; }
8296		if test "$supported" = "yes" ; then
8297			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8298			found="yes"
8299		fi
8300	fi
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316xorg_testset_save_CFLAGS="$CFLAGS"
8317
8318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8321printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8322if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8323then :
8324  printf %s "(cached) " >&6
8325else $as_nop
8326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328int i;
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"
8331then :
8332  xorg_cv_cc_flag_unknown_warning_option=yes
8333else $as_nop
8334  xorg_cv_cc_flag_unknown_warning_option=no
8335fi
8336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8337fi
8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8341	CFLAGS="$xorg_testset_save_CFLAGS"
8342fi
8343
8344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347	fi
8348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8351if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8352then :
8353  printf %s "(cached) " >&6
8354else $as_nop
8355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356/* end confdefs.h.  */
8357int i;
8358_ACEOF
8359if ac_fn_c_try_compile "$LINENO"
8360then :
8361  xorg_cv_cc_flag_unused_command_line_argument=yes
8362else $as_nop
8363  xorg_cv_cc_flag_unused_command_line_argument=no
8364fi
8365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8366fi
8367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8370	CFLAGS="$xorg_testset_save_CFLAGS"
8371fi
8372
8373found="no"
8374
8375	if test $found = "no" ; then
8376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378		fi
8379
8380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382		fi
8383
8384		CFLAGS="$CFLAGS -Werror=array-bounds"
8385
8386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8387printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8388		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8389		if eval test \${$cacheid+y}
8390then :
8391  printf %s "(cached) " >&6
8392else $as_nop
8393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395int i;
8396int
8397main (void)
8398{
8399
8400  ;
8401  return 0;
8402}
8403_ACEOF
8404if ac_fn_c_try_link "$LINENO"
8405then :
8406  eval $cacheid=yes
8407else $as_nop
8408  eval $cacheid=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext conftest.beam \
8411    conftest$ac_exeext conftest.$ac_ext
8412fi
8413
8414
8415		CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417		eval supported=\$$cacheid
8418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419printf "%s\n" "$supported" >&6; }
8420		if test "$supported" = "yes" ; then
8421			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8422			found="yes"
8423		fi
8424	fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8447then :
8448  printf %s "(cached) " >&6
8449else $as_nop
8450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h.  */
8452int i;
8453_ACEOF
8454if ac_fn_c_try_compile "$LINENO"
8455then :
8456  xorg_cv_cc_flag_unknown_warning_option=yes
8457else $as_nop
8458  xorg_cv_cc_flag_unknown_warning_option=no
8459fi
8460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461fi
8462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465	CFLAGS="$xorg_testset_save_CFLAGS"
8466fi
8467
8468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471	fi
8472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8476then :
8477  printf %s "(cached) " >&6
8478else $as_nop
8479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h.  */
8481int i;
8482_ACEOF
8483if ac_fn_c_try_compile "$LINENO"
8484then :
8485  xorg_cv_cc_flag_unused_command_line_argument=yes
8486else $as_nop
8487  xorg_cv_cc_flag_unused_command_line_argument=no
8488fi
8489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8490fi
8491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8494	CFLAGS="$xorg_testset_save_CFLAGS"
8495fi
8496
8497found="no"
8498
8499	if test $found = "no" ; then
8500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502		fi
8503
8504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506		fi
8507
8508		CFLAGS="$CFLAGS -Werror=write-strings"
8509
8510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8511printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8512		cacheid=xorg_cv_cc_flag__Werror_write_strings
8513		if eval test \${$cacheid+y}
8514then :
8515  printf %s "(cached) " >&6
8516else $as_nop
8517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h.  */
8519int i;
8520int
8521main (void)
8522{
8523
8524  ;
8525  return 0;
8526}
8527_ACEOF
8528if ac_fn_c_try_link "$LINENO"
8529then :
8530  eval $cacheid=yes
8531else $as_nop
8532  eval $cacheid=no
8533fi
8534rm -f core conftest.err conftest.$ac_objext conftest.beam \
8535    conftest$ac_exeext conftest.$ac_ext
8536fi
8537
8538
8539		CFLAGS="$xorg_testset_save_CFLAGS"
8540
8541		eval supported=\$$cacheid
8542		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8543printf "%s\n" "$supported" >&6; }
8544		if test "$supported" = "yes" ; then
8545			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8546			found="yes"
8547		fi
8548	fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564xorg_testset_save_CFLAGS="$CFLAGS"
8565
8566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8570if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8571then :
8572  printf %s "(cached) " >&6
8573else $as_nop
8574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576int i;
8577_ACEOF
8578if ac_fn_c_try_compile "$LINENO"
8579then :
8580  xorg_cv_cc_flag_unknown_warning_option=yes
8581else $as_nop
8582  xorg_cv_cc_flag_unknown_warning_option=no
8583fi
8584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8585fi
8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8589	CFLAGS="$xorg_testset_save_CFLAGS"
8590fi
8591
8592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595	fi
8596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8600then :
8601  printf %s "(cached) " >&6
8602else $as_nop
8603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604/* end confdefs.h.  */
8605int i;
8606_ACEOF
8607if ac_fn_c_try_compile "$LINENO"
8608then :
8609  xorg_cv_cc_flag_unused_command_line_argument=yes
8610else $as_nop
8611  xorg_cv_cc_flag_unused_command_line_argument=no
8612fi
8613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8614fi
8615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8618	CFLAGS="$xorg_testset_save_CFLAGS"
8619fi
8620
8621found="no"
8622
8623	if test $found = "no" ; then
8624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626		fi
8627
8628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630		fi
8631
8632		CFLAGS="$CFLAGS -Werror=address"
8633
8634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8635printf %s "checking if $CC supports -Werror=address... " >&6; }
8636		cacheid=xorg_cv_cc_flag__Werror_address
8637		if eval test \${$cacheid+y}
8638then :
8639  printf %s "(cached) " >&6
8640else $as_nop
8641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642/* end confdefs.h.  */
8643int i;
8644int
8645main (void)
8646{
8647
8648  ;
8649  return 0;
8650}
8651_ACEOF
8652if ac_fn_c_try_link "$LINENO"
8653then :
8654  eval $cacheid=yes
8655else $as_nop
8656  eval $cacheid=no
8657fi
8658rm -f core conftest.err conftest.$ac_objext conftest.beam \
8659    conftest$ac_exeext conftest.$ac_ext
8660fi
8661
8662
8663		CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665		eval supported=\$$cacheid
8666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667printf "%s\n" "$supported" >&6; }
8668		if test "$supported" = "yes" ; then
8669			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8670			found="yes"
8671		fi
8672	fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688xorg_testset_save_CFLAGS="$CFLAGS"
8689
8690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8694if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8695then :
8696  printf %s "(cached) " >&6
8697else $as_nop
8698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699/* end confdefs.h.  */
8700int i;
8701_ACEOF
8702if ac_fn_c_try_compile "$LINENO"
8703then :
8704  xorg_cv_cc_flag_unknown_warning_option=yes
8705else $as_nop
8706  xorg_cv_cc_flag_unknown_warning_option=no
8707fi
8708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8709fi
8710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8713	CFLAGS="$xorg_testset_save_CFLAGS"
8714fi
8715
8716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719	fi
8720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8723if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8724then :
8725  printf %s "(cached) " >&6
8726else $as_nop
8727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h.  */
8729int i;
8730_ACEOF
8731if ac_fn_c_try_compile "$LINENO"
8732then :
8733  xorg_cv_cc_flag_unused_command_line_argument=yes
8734else $as_nop
8735  xorg_cv_cc_flag_unused_command_line_argument=no
8736fi
8737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8738fi
8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742	CFLAGS="$xorg_testset_save_CFLAGS"
8743fi
8744
8745found="no"
8746
8747	if test $found = "no" ; then
8748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750		fi
8751
8752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754		fi
8755
8756		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8757
8758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8759printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8760		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8761		if eval test \${$cacheid+y}
8762then :
8763  printf %s "(cached) " >&6
8764else $as_nop
8765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766/* end confdefs.h.  */
8767int i;
8768int
8769main (void)
8770{
8771
8772  ;
8773  return 0;
8774}
8775_ACEOF
8776if ac_fn_c_try_link "$LINENO"
8777then :
8778  eval $cacheid=yes
8779else $as_nop
8780  eval $cacheid=no
8781fi
8782rm -f core conftest.err conftest.$ac_objext conftest.beam \
8783    conftest$ac_exeext conftest.$ac_ext
8784fi
8785
8786
8787		CFLAGS="$xorg_testset_save_CFLAGS"
8788
8789		eval supported=\$$cacheid
8790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8791printf "%s\n" "$supported" >&6; }
8792		if test "$supported" = "yes" ; then
8793			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8794			found="yes"
8795		fi
8796	fi
8797
8798	if test $found = "no" ; then
8799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801		fi
8802
8803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805		fi
8806
8807		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8808
8809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8810printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8811		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8812		if eval test \${$cacheid+y}
8813then :
8814  printf %s "(cached) " >&6
8815else $as_nop
8816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h.  */
8818int i;
8819int
8820main (void)
8821{
8822
8823  ;
8824  return 0;
8825}
8826_ACEOF
8827if ac_fn_c_try_link "$LINENO"
8828then :
8829  eval $cacheid=yes
8830else $as_nop
8831  eval $cacheid=no
8832fi
8833rm -f core conftest.err conftest.$ac_objext conftest.beam \
8834    conftest$ac_exeext conftest.$ac_ext
8835fi
8836
8837
8838		CFLAGS="$xorg_testset_save_CFLAGS"
8839
8840		eval supported=\$$cacheid
8841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8842printf "%s\n" "$supported" >&6; }
8843		if test "$supported" = "yes" ; then
8844			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8845			found="yes"
8846		fi
8847	fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863xorg_testset_save_CFLAGS="$CFLAGS"
8864
8865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8868printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8869if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8870then :
8871  printf %s "(cached) " >&6
8872else $as_nop
8873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h.  */
8875int i;
8876_ACEOF
8877if ac_fn_c_try_compile "$LINENO"
8878then :
8879  xorg_cv_cc_flag_unknown_warning_option=yes
8880else $as_nop
8881  xorg_cv_cc_flag_unknown_warning_option=no
8882fi
8883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8884fi
8885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8886printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8888	CFLAGS="$xorg_testset_save_CFLAGS"
8889fi
8890
8891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894	fi
8895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8896	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8897printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8898if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8899then :
8900  printf %s "(cached) " >&6
8901else $as_nop
8902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903/* end confdefs.h.  */
8904int i;
8905_ACEOF
8906if ac_fn_c_try_compile "$LINENO"
8907then :
8908  xorg_cv_cc_flag_unused_command_line_argument=yes
8909else $as_nop
8910  xorg_cv_cc_flag_unused_command_line_argument=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8913fi
8914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8915printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8916	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8917	CFLAGS="$xorg_testset_save_CFLAGS"
8918fi
8919
8920found="no"
8921
8922	if test $found = "no" ; then
8923		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8924			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925		fi
8926
8927		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8928			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929		fi
8930
8931		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8932
8933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8934printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8935		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8936		if eval test \${$cacheid+y}
8937then :
8938  printf %s "(cached) " >&6
8939else $as_nop
8940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942int i;
8943int
8944main (void)
8945{
8946
8947  ;
8948  return 0;
8949}
8950_ACEOF
8951if ac_fn_c_try_link "$LINENO"
8952then :
8953  eval $cacheid=yes
8954else $as_nop
8955  eval $cacheid=no
8956fi
8957rm -f core conftest.err conftest.$ac_objext conftest.beam \
8958    conftest$ac_exeext conftest.$ac_ext
8959fi
8960
8961
8962		CFLAGS="$xorg_testset_save_CFLAGS"
8963
8964		eval supported=\$$cacheid
8965		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8966printf "%s\n" "$supported" >&6; }
8967		if test "$supported" = "yes" ; then
8968			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8969			found="yes"
8970		fi
8971	fi
8972
8973 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8974else
8975{ printf "%s\n" "$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
8976printf "%s\n" "$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;}
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990xorg_testset_save_CFLAGS="$CFLAGS"
8991
8992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8996if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8997then :
8998  printf %s "(cached) " >&6
8999else $as_nop
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"
9005then :
9006  xorg_cv_cc_flag_unknown_warning_option=yes
9007else $as_nop
9008  xorg_cv_cc_flag_unknown_warning_option=no
9009fi
9010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9011fi
9012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9014	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9015	CFLAGS="$xorg_testset_save_CFLAGS"
9016fi
9017
9018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9019	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021	fi
9022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9025if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9026then :
9027  printf %s "(cached) " >&6
9028else $as_nop
9029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030/* end confdefs.h.  */
9031int i;
9032_ACEOF
9033if ac_fn_c_try_compile "$LINENO"
9034then :
9035  xorg_cv_cc_flag_unused_command_line_argument=yes
9036else $as_nop
9037  xorg_cv_cc_flag_unused_command_line_argument=no
9038fi
9039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9040fi
9041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9044	CFLAGS="$xorg_testset_save_CFLAGS"
9045fi
9046
9047found="no"
9048
9049	if test $found = "no" ; then
9050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052		fi
9053
9054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056		fi
9057
9058		CFLAGS="$CFLAGS -Wimplicit"
9059
9060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9061printf %s "checking if $CC supports -Wimplicit... " >&6; }
9062		cacheid=xorg_cv_cc_flag__Wimplicit
9063		if eval test \${$cacheid+y}
9064then :
9065  printf %s "(cached) " >&6
9066else $as_nop
9067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h.  */
9069int i;
9070int
9071main (void)
9072{
9073
9074  ;
9075  return 0;
9076}
9077_ACEOF
9078if ac_fn_c_try_link "$LINENO"
9079then :
9080  eval $cacheid=yes
9081else $as_nop
9082  eval $cacheid=no
9083fi
9084rm -f core conftest.err conftest.$ac_objext conftest.beam \
9085    conftest$ac_exeext conftest.$ac_ext
9086fi
9087
9088
9089		CFLAGS="$xorg_testset_save_CFLAGS"
9090
9091		eval supported=\$$cacheid
9092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9093printf "%s\n" "$supported" >&6; }
9094		if test "$supported" = "yes" ; then
9095			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9096			found="yes"
9097		fi
9098	fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114xorg_testset_save_CFLAGS="$CFLAGS"
9115
9116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9117	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9120if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9121then :
9122  printf %s "(cached) " >&6
9123else $as_nop
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126int i;
9127_ACEOF
9128if ac_fn_c_try_compile "$LINENO"
9129then :
9130  xorg_cv_cc_flag_unknown_warning_option=yes
9131else $as_nop
9132  xorg_cv_cc_flag_unknown_warning_option=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9135fi
9136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9137printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9138	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9139	CFLAGS="$xorg_testset_save_CFLAGS"
9140fi
9141
9142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9143	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145	fi
9146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9148printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9149if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9150then :
9151  printf %s "(cached) " >&6
9152else $as_nop
9153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154/* end confdefs.h.  */
9155int i;
9156_ACEOF
9157if ac_fn_c_try_compile "$LINENO"
9158then :
9159  xorg_cv_cc_flag_unused_command_line_argument=yes
9160else $as_nop
9161  xorg_cv_cc_flag_unused_command_line_argument=no
9162fi
9163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9164fi
9165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9166printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9168	CFLAGS="$xorg_testset_save_CFLAGS"
9169fi
9170
9171found="no"
9172
9173	if test $found = "no" ; then
9174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176		fi
9177
9178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9180		fi
9181
9182		CFLAGS="$CFLAGS -Wnonnull"
9183
9184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9185printf %s "checking if $CC supports -Wnonnull... " >&6; }
9186		cacheid=xorg_cv_cc_flag__Wnonnull
9187		if eval test \${$cacheid+y}
9188then :
9189  printf %s "(cached) " >&6
9190else $as_nop
9191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193int i;
9194int
9195main (void)
9196{
9197
9198  ;
9199  return 0;
9200}
9201_ACEOF
9202if ac_fn_c_try_link "$LINENO"
9203then :
9204  eval $cacheid=yes
9205else $as_nop
9206  eval $cacheid=no
9207fi
9208rm -f core conftest.err conftest.$ac_objext conftest.beam \
9209    conftest$ac_exeext conftest.$ac_ext
9210fi
9211
9212
9213		CFLAGS="$xorg_testset_save_CFLAGS"
9214
9215		eval supported=\$$cacheid
9216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9217printf "%s\n" "$supported" >&6; }
9218		if test "$supported" = "yes" ; then
9219			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9220			found="yes"
9221		fi
9222	fi
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238xorg_testset_save_CFLAGS="$CFLAGS"
9239
9240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9244if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9245then :
9246  printf %s "(cached) " >&6
9247else $as_nop
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251_ACEOF
9252if ac_fn_c_try_compile "$LINENO"
9253then :
9254  xorg_cv_cc_flag_unknown_warning_option=yes
9255else $as_nop
9256  xorg_cv_cc_flag_unknown_warning_option=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9259fi
9260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9263	CFLAGS="$xorg_testset_save_CFLAGS"
9264fi
9265
9266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269	fi
9270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9273if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9274then :
9275  printf %s "(cached) " >&6
9276else $as_nop
9277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278/* end confdefs.h.  */
9279int i;
9280_ACEOF
9281if ac_fn_c_try_compile "$LINENO"
9282then :
9283  xorg_cv_cc_flag_unused_command_line_argument=yes
9284else $as_nop
9285  xorg_cv_cc_flag_unused_command_line_argument=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9288fi
9289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9292	CFLAGS="$xorg_testset_save_CFLAGS"
9293fi
9294
9295found="no"
9296
9297	if test $found = "no" ; then
9298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300		fi
9301
9302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304		fi
9305
9306		CFLAGS="$CFLAGS -Winit-self"
9307
9308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9309printf %s "checking if $CC supports -Winit-self... " >&6; }
9310		cacheid=xorg_cv_cc_flag__Winit_self
9311		if eval test \${$cacheid+y}
9312then :
9313  printf %s "(cached) " >&6
9314else $as_nop
9315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316/* end confdefs.h.  */
9317int i;
9318int
9319main (void)
9320{
9321
9322  ;
9323  return 0;
9324}
9325_ACEOF
9326if ac_fn_c_try_link "$LINENO"
9327then :
9328  eval $cacheid=yes
9329else $as_nop
9330  eval $cacheid=no
9331fi
9332rm -f core conftest.err conftest.$ac_objext conftest.beam \
9333    conftest$ac_exeext conftest.$ac_ext
9334fi
9335
9336
9337		CFLAGS="$xorg_testset_save_CFLAGS"
9338
9339		eval supported=\$$cacheid
9340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9341printf "%s\n" "$supported" >&6; }
9342		if test "$supported" = "yes" ; then
9343			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9344			found="yes"
9345		fi
9346	fi
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362xorg_testset_save_CFLAGS="$CFLAGS"
9363
9364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9368if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9369then :
9370  printf %s "(cached) " >&6
9371else $as_nop
9372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374int i;
9375_ACEOF
9376if ac_fn_c_try_compile "$LINENO"
9377then :
9378  xorg_cv_cc_flag_unknown_warning_option=yes
9379else $as_nop
9380  xorg_cv_cc_flag_unknown_warning_option=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9383fi
9384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9387	CFLAGS="$xorg_testset_save_CFLAGS"
9388fi
9389
9390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393	fi
9394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9397if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9398then :
9399  printf %s "(cached) " >&6
9400else $as_nop
9401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402/* end confdefs.h.  */
9403int i;
9404_ACEOF
9405if ac_fn_c_try_compile "$LINENO"
9406then :
9407  xorg_cv_cc_flag_unused_command_line_argument=yes
9408else $as_nop
9409  xorg_cv_cc_flag_unused_command_line_argument=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9412fi
9413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9416	CFLAGS="$xorg_testset_save_CFLAGS"
9417fi
9418
9419found="no"
9420
9421	if test $found = "no" ; then
9422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424		fi
9425
9426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428		fi
9429
9430		CFLAGS="$CFLAGS -Wmain"
9431
9432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9433printf %s "checking if $CC supports -Wmain... " >&6; }
9434		cacheid=xorg_cv_cc_flag__Wmain
9435		if eval test \${$cacheid+y}
9436then :
9437  printf %s "(cached) " >&6
9438else $as_nop
9439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441int i;
9442int
9443main (void)
9444{
9445
9446  ;
9447  return 0;
9448}
9449_ACEOF
9450if ac_fn_c_try_link "$LINENO"
9451then :
9452  eval $cacheid=yes
9453else $as_nop
9454  eval $cacheid=no
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.beam \
9457    conftest$ac_exeext conftest.$ac_ext
9458fi
9459
9460
9461		CFLAGS="$xorg_testset_save_CFLAGS"
9462
9463		eval supported=\$$cacheid
9464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9465printf "%s\n" "$supported" >&6; }
9466		if test "$supported" = "yes" ; then
9467			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9468			found="yes"
9469		fi
9470	fi
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486xorg_testset_save_CFLAGS="$CFLAGS"
9487
9488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9492if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9493then :
9494  printf %s "(cached) " >&6
9495else $as_nop
9496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h.  */
9498int i;
9499_ACEOF
9500if ac_fn_c_try_compile "$LINENO"
9501then :
9502  xorg_cv_cc_flag_unknown_warning_option=yes
9503else $as_nop
9504  xorg_cv_cc_flag_unknown_warning_option=no
9505fi
9506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9507fi
9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9511	CFLAGS="$xorg_testset_save_CFLAGS"
9512fi
9513
9514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517	fi
9518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9521if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9522then :
9523  printf %s "(cached) " >&6
9524else $as_nop
9525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526/* end confdefs.h.  */
9527int i;
9528_ACEOF
9529if ac_fn_c_try_compile "$LINENO"
9530then :
9531  xorg_cv_cc_flag_unused_command_line_argument=yes
9532else $as_nop
9533  xorg_cv_cc_flag_unused_command_line_argument=no
9534fi
9535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9536fi
9537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540	CFLAGS="$xorg_testset_save_CFLAGS"
9541fi
9542
9543found="no"
9544
9545	if test $found = "no" ; then
9546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548		fi
9549
9550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552		fi
9553
9554		CFLAGS="$CFLAGS -Wmissing-braces"
9555
9556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9557printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9558		cacheid=xorg_cv_cc_flag__Wmissing_braces
9559		if eval test \${$cacheid+y}
9560then :
9561  printf %s "(cached) " >&6
9562else $as_nop
9563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564/* end confdefs.h.  */
9565int i;
9566int
9567main (void)
9568{
9569
9570  ;
9571  return 0;
9572}
9573_ACEOF
9574if ac_fn_c_try_link "$LINENO"
9575then :
9576  eval $cacheid=yes
9577else $as_nop
9578  eval $cacheid=no
9579fi
9580rm -f core conftest.err conftest.$ac_objext conftest.beam \
9581    conftest$ac_exeext conftest.$ac_ext
9582fi
9583
9584
9585		CFLAGS="$xorg_testset_save_CFLAGS"
9586
9587		eval supported=\$$cacheid
9588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9589printf "%s\n" "$supported" >&6; }
9590		if test "$supported" = "yes" ; then
9591			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9592			found="yes"
9593		fi
9594	fi
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610xorg_testset_save_CFLAGS="$CFLAGS"
9611
9612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9616if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9617then :
9618  printf %s "(cached) " >&6
9619else $as_nop
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623_ACEOF
9624if ac_fn_c_try_compile "$LINENO"
9625then :
9626  xorg_cv_cc_flag_unknown_warning_option=yes
9627else $as_nop
9628  xorg_cv_cc_flag_unknown_warning_option=no
9629fi
9630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9631fi
9632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635	CFLAGS="$xorg_testset_save_CFLAGS"
9636fi
9637
9638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641	fi
9642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9646then :
9647  printf %s "(cached) " >&6
9648else $as_nop
9649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651int i;
9652_ACEOF
9653if ac_fn_c_try_compile "$LINENO"
9654then :
9655  xorg_cv_cc_flag_unused_command_line_argument=yes
9656else $as_nop
9657  xorg_cv_cc_flag_unused_command_line_argument=no
9658fi
9659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9660fi
9661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9664	CFLAGS="$xorg_testset_save_CFLAGS"
9665fi
9666
9667found="no"
9668
9669	if test $found = "no" ; then
9670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672		fi
9673
9674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676		fi
9677
9678		CFLAGS="$CFLAGS -Wsequence-point"
9679
9680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9681printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9682		cacheid=xorg_cv_cc_flag__Wsequence_point
9683		if eval test \${$cacheid+y}
9684then :
9685  printf %s "(cached) " >&6
9686else $as_nop
9687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h.  */
9689int i;
9690int
9691main (void)
9692{
9693
9694  ;
9695  return 0;
9696}
9697_ACEOF
9698if ac_fn_c_try_link "$LINENO"
9699then :
9700  eval $cacheid=yes
9701else $as_nop
9702  eval $cacheid=no
9703fi
9704rm -f core conftest.err conftest.$ac_objext conftest.beam \
9705    conftest$ac_exeext conftest.$ac_ext
9706fi
9707
9708
9709		CFLAGS="$xorg_testset_save_CFLAGS"
9710
9711		eval supported=\$$cacheid
9712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9713printf "%s\n" "$supported" >&6; }
9714		if test "$supported" = "yes" ; then
9715			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9716			found="yes"
9717		fi
9718	fi
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734xorg_testset_save_CFLAGS="$CFLAGS"
9735
9736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9740if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9741then :
9742  printf %s "(cached) " >&6
9743else $as_nop
9744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746int i;
9747_ACEOF
9748if ac_fn_c_try_compile "$LINENO"
9749then :
9750  xorg_cv_cc_flag_unknown_warning_option=yes
9751else $as_nop
9752  xorg_cv_cc_flag_unknown_warning_option=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9755fi
9756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9759	CFLAGS="$xorg_testset_save_CFLAGS"
9760fi
9761
9762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765	fi
9766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9769if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9770then :
9771  printf %s "(cached) " >&6
9772else $as_nop
9773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774/* end confdefs.h.  */
9775int i;
9776_ACEOF
9777if ac_fn_c_try_compile "$LINENO"
9778then :
9779  xorg_cv_cc_flag_unused_command_line_argument=yes
9780else $as_nop
9781  xorg_cv_cc_flag_unused_command_line_argument=no
9782fi
9783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9784fi
9785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788	CFLAGS="$xorg_testset_save_CFLAGS"
9789fi
9790
9791found="no"
9792
9793	if test $found = "no" ; then
9794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796		fi
9797
9798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800		fi
9801
9802		CFLAGS="$CFLAGS -Wreturn-type"
9803
9804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9805printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9806		cacheid=xorg_cv_cc_flag__Wreturn_type
9807		if eval test \${$cacheid+y}
9808then :
9809  printf %s "(cached) " >&6
9810else $as_nop
9811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h.  */
9813int i;
9814int
9815main (void)
9816{
9817
9818  ;
9819  return 0;
9820}
9821_ACEOF
9822if ac_fn_c_try_link "$LINENO"
9823then :
9824  eval $cacheid=yes
9825else $as_nop
9826  eval $cacheid=no
9827fi
9828rm -f core conftest.err conftest.$ac_objext conftest.beam \
9829    conftest$ac_exeext conftest.$ac_ext
9830fi
9831
9832
9833		CFLAGS="$xorg_testset_save_CFLAGS"
9834
9835		eval supported=\$$cacheid
9836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9837printf "%s\n" "$supported" >&6; }
9838		if test "$supported" = "yes" ; then
9839			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9840			found="yes"
9841		fi
9842	fi
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858xorg_testset_save_CFLAGS="$CFLAGS"
9859
9860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9864if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9865then :
9866  printf %s "(cached) " >&6
9867else $as_nop
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871_ACEOF
9872if ac_fn_c_try_compile "$LINENO"
9873then :
9874  xorg_cv_cc_flag_unknown_warning_option=yes
9875else $as_nop
9876  xorg_cv_cc_flag_unknown_warning_option=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9879fi
9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889	fi
9890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9894then :
9895  printf %s "(cached) " >&6
9896else $as_nop
9897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900_ACEOF
9901if ac_fn_c_try_compile "$LINENO"
9902then :
9903  xorg_cv_cc_flag_unused_command_line_argument=yes
9904else $as_nop
9905  xorg_cv_cc_flag_unused_command_line_argument=no
9906fi
9907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9908fi
9909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9912	CFLAGS="$xorg_testset_save_CFLAGS"
9913fi
9914
9915found="no"
9916
9917	if test $found = "no" ; then
9918		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920		fi
9921
9922		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924		fi
9925
9926		CFLAGS="$CFLAGS -Wtrigraphs"
9927
9928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9929printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9930		cacheid=xorg_cv_cc_flag__Wtrigraphs
9931		if eval test \${$cacheid+y}
9932then :
9933  printf %s "(cached) " >&6
9934else $as_nop
9935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937int i;
9938int
9939main (void)
9940{
9941
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946if ac_fn_c_try_link "$LINENO"
9947then :
9948  eval $cacheid=yes
9949else $as_nop
9950  eval $cacheid=no
9951fi
9952rm -f core conftest.err conftest.$ac_objext conftest.beam \
9953    conftest$ac_exeext conftest.$ac_ext
9954fi
9955
9956
9957		CFLAGS="$xorg_testset_save_CFLAGS"
9958
9959		eval supported=\$$cacheid
9960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9961printf "%s\n" "$supported" >&6; }
9962		if test "$supported" = "yes" ; then
9963			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9964			found="yes"
9965		fi
9966	fi
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982xorg_testset_save_CFLAGS="$CFLAGS"
9983
9984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9988if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9989then :
9990  printf %s "(cached) " >&6
9991else $as_nop
9992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h.  */
9994int i;
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"
9997then :
9998  xorg_cv_cc_flag_unknown_warning_option=yes
9999else $as_nop
10000  xorg_cv_cc_flag_unknown_warning_option=no
10001fi
10002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10003fi
10004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10005printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10007	CFLAGS="$xorg_testset_save_CFLAGS"
10008fi
10009
10010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013	fi
10014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10016printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10017if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10018then :
10019  printf %s "(cached) " >&6
10020else $as_nop
10021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022/* end confdefs.h.  */
10023int i;
10024_ACEOF
10025if ac_fn_c_try_compile "$LINENO"
10026then :
10027  xorg_cv_cc_flag_unused_command_line_argument=yes
10028else $as_nop
10029  xorg_cv_cc_flag_unused_command_line_argument=no
10030fi
10031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10032fi
10033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10036	CFLAGS="$xorg_testset_save_CFLAGS"
10037fi
10038
10039found="no"
10040
10041	if test $found = "no" ; then
10042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044		fi
10045
10046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048		fi
10049
10050		CFLAGS="$CFLAGS -Warray-bounds"
10051
10052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10053printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10054		cacheid=xorg_cv_cc_flag__Warray_bounds
10055		if eval test \${$cacheid+y}
10056then :
10057  printf %s "(cached) " >&6
10058else $as_nop
10059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060/* end confdefs.h.  */
10061int i;
10062int
10063main (void)
10064{
10065
10066  ;
10067  return 0;
10068}
10069_ACEOF
10070if ac_fn_c_try_link "$LINENO"
10071then :
10072  eval $cacheid=yes
10073else $as_nop
10074  eval $cacheid=no
10075fi
10076rm -f core conftest.err conftest.$ac_objext conftest.beam \
10077    conftest$ac_exeext conftest.$ac_ext
10078fi
10079
10080
10081		CFLAGS="$xorg_testset_save_CFLAGS"
10082
10083		eval supported=\$$cacheid
10084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10085printf "%s\n" "$supported" >&6; }
10086		if test "$supported" = "yes" ; then
10087			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10088			found="yes"
10089		fi
10090	fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106xorg_testset_save_CFLAGS="$CFLAGS"
10107
10108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10112if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10113then :
10114  printf %s "(cached) " >&6
10115else $as_nop
10116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118int i;
10119_ACEOF
10120if ac_fn_c_try_compile "$LINENO"
10121then :
10122  xorg_cv_cc_flag_unknown_warning_option=yes
10123else $as_nop
10124  xorg_cv_cc_flag_unknown_warning_option=no
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10127fi
10128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131	CFLAGS="$xorg_testset_save_CFLAGS"
10132fi
10133
10134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137	fi
10138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10142then :
10143  printf %s "(cached) " >&6
10144else $as_nop
10145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h.  */
10147int i;
10148_ACEOF
10149if ac_fn_c_try_compile "$LINENO"
10150then :
10151  xorg_cv_cc_flag_unused_command_line_argument=yes
10152else $as_nop
10153  xorg_cv_cc_flag_unused_command_line_argument=no
10154fi
10155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10156fi
10157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160	CFLAGS="$xorg_testset_save_CFLAGS"
10161fi
10162
10163found="no"
10164
10165	if test $found = "no" ; then
10166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168		fi
10169
10170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172		fi
10173
10174		CFLAGS="$CFLAGS -Wwrite-strings"
10175
10176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10177printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10178		cacheid=xorg_cv_cc_flag__Wwrite_strings
10179		if eval test \${$cacheid+y}
10180then :
10181  printf %s "(cached) " >&6
10182else $as_nop
10183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185int i;
10186int
10187main (void)
10188{
10189
10190  ;
10191  return 0;
10192}
10193_ACEOF
10194if ac_fn_c_try_link "$LINENO"
10195then :
10196  eval $cacheid=yes
10197else $as_nop
10198  eval $cacheid=no
10199fi
10200rm -f core conftest.err conftest.$ac_objext conftest.beam \
10201    conftest$ac_exeext conftest.$ac_ext
10202fi
10203
10204
10205		CFLAGS="$xorg_testset_save_CFLAGS"
10206
10207		eval supported=\$$cacheid
10208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10209printf "%s\n" "$supported" >&6; }
10210		if test "$supported" = "yes" ; then
10211			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10212			found="yes"
10213		fi
10214	fi
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230xorg_testset_save_CFLAGS="$CFLAGS"
10231
10232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10236if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10237then :
10238  printf %s "(cached) " >&6
10239else $as_nop
10240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242int i;
10243_ACEOF
10244if ac_fn_c_try_compile "$LINENO"
10245then :
10246  xorg_cv_cc_flag_unknown_warning_option=yes
10247else $as_nop
10248  xorg_cv_cc_flag_unknown_warning_option=no
10249fi
10250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10251fi
10252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10254	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10255	CFLAGS="$xorg_testset_save_CFLAGS"
10256fi
10257
10258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10259	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10261	fi
10262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10265if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10266then :
10267  printf %s "(cached) " >&6
10268else $as_nop
10269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270/* end confdefs.h.  */
10271int i;
10272_ACEOF
10273if ac_fn_c_try_compile "$LINENO"
10274then :
10275  xorg_cv_cc_flag_unused_command_line_argument=yes
10276else $as_nop
10277  xorg_cv_cc_flag_unused_command_line_argument=no
10278fi
10279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10280fi
10281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10284	CFLAGS="$xorg_testset_save_CFLAGS"
10285fi
10286
10287found="no"
10288
10289	if test $found = "no" ; then
10290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292		fi
10293
10294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296		fi
10297
10298		CFLAGS="$CFLAGS -Waddress"
10299
10300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10301printf %s "checking if $CC supports -Waddress... " >&6; }
10302		cacheid=xorg_cv_cc_flag__Waddress
10303		if eval test \${$cacheid+y}
10304then :
10305  printf %s "(cached) " >&6
10306else $as_nop
10307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310int
10311main (void)
10312{
10313
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_link "$LINENO"
10319then :
10320  eval $cacheid=yes
10321else $as_nop
10322  eval $cacheid=no
10323fi
10324rm -f core conftest.err conftest.$ac_objext conftest.beam \
10325    conftest$ac_exeext conftest.$ac_ext
10326fi
10327
10328
10329		CFLAGS="$xorg_testset_save_CFLAGS"
10330
10331		eval supported=\$$cacheid
10332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333printf "%s\n" "$supported" >&6; }
10334		if test "$supported" = "yes" ; then
10335			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10336			found="yes"
10337		fi
10338	fi
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354xorg_testset_save_CFLAGS="$CFLAGS"
10355
10356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10361then :
10362  printf %s "(cached) " >&6
10363else $as_nop
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367_ACEOF
10368if ac_fn_c_try_compile "$LINENO"
10369then :
10370  xorg_cv_cc_flag_unknown_warning_option=yes
10371else $as_nop
10372  xorg_cv_cc_flag_unknown_warning_option=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10375fi
10376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379	CFLAGS="$xorg_testset_save_CFLAGS"
10380fi
10381
10382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385	fi
10386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10390then :
10391  printf %s "(cached) " >&6
10392else $as_nop
10393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h.  */
10395int i;
10396_ACEOF
10397if ac_fn_c_try_compile "$LINENO"
10398then :
10399  xorg_cv_cc_flag_unused_command_line_argument=yes
10400else $as_nop
10401  xorg_cv_cc_flag_unused_command_line_argument=no
10402fi
10403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10404fi
10405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10408	CFLAGS="$xorg_testset_save_CFLAGS"
10409fi
10410
10411found="no"
10412
10413	if test $found = "no" ; then
10414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416		fi
10417
10418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420		fi
10421
10422		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10423
10424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10425printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10426		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10427		if eval test \${$cacheid+y}
10428then :
10429  printf %s "(cached) " >&6
10430else $as_nop
10431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432/* end confdefs.h.  */
10433int i;
10434int
10435main (void)
10436{
10437
10438  ;
10439  return 0;
10440}
10441_ACEOF
10442if ac_fn_c_try_link "$LINENO"
10443then :
10444  eval $cacheid=yes
10445else $as_nop
10446  eval $cacheid=no
10447fi
10448rm -f core conftest.err conftest.$ac_objext conftest.beam \
10449    conftest$ac_exeext conftest.$ac_ext
10450fi
10451
10452
10453		CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455		eval supported=\$$cacheid
10456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457printf "%s\n" "$supported" >&6; }
10458		if test "$supported" = "yes" ; then
10459			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10460			found="yes"
10461		fi
10462	fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478xorg_testset_save_CFLAGS="$CFLAGS"
10479
10480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10484if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10485then :
10486  printf %s "(cached) " >&6
10487else $as_nop
10488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h.  */
10490int i;
10491_ACEOF
10492if ac_fn_c_try_compile "$LINENO"
10493then :
10494  xorg_cv_cc_flag_unknown_warning_option=yes
10495else $as_nop
10496  xorg_cv_cc_flag_unknown_warning_option=no
10497fi
10498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10499fi
10500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10503	CFLAGS="$xorg_testset_save_CFLAGS"
10504fi
10505
10506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509	fi
10510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10513if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10514then :
10515  printf %s "(cached) " >&6
10516else $as_nop
10517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h.  */
10519int i;
10520_ACEOF
10521if ac_fn_c_try_compile "$LINENO"
10522then :
10523  xorg_cv_cc_flag_unused_command_line_argument=yes
10524else $as_nop
10525  xorg_cv_cc_flag_unused_command_line_argument=no
10526fi
10527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10528fi
10529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10531	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10532	CFLAGS="$xorg_testset_save_CFLAGS"
10533fi
10534
10535found="no"
10536
10537	if test $found = "no" ; then
10538		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10539			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10540		fi
10541
10542		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10543			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10544		fi
10545
10546		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10547
10548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10549printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10550		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10551		if eval test \${$cacheid+y}
10552then :
10553  printf %s "(cached) " >&6
10554else $as_nop
10555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556/* end confdefs.h.  */
10557int i;
10558int
10559main (void)
10560{
10561
10562  ;
10563  return 0;
10564}
10565_ACEOF
10566if ac_fn_c_try_link "$LINENO"
10567then :
10568  eval $cacheid=yes
10569else $as_nop
10570  eval $cacheid=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext conftest.beam \
10573    conftest$ac_exeext conftest.$ac_ext
10574fi
10575
10576
10577		CFLAGS="$xorg_testset_save_CFLAGS"
10578
10579		eval supported=\$$cacheid
10580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10581printf "%s\n" "$supported" >&6; }
10582		if test "$supported" = "yes" ; then
10583			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10584			found="yes"
10585		fi
10586	fi
10587
10588
10589fi
10590
10591
10592
10593
10594
10595
10596
10597		CWARNFLAGS="$BASE_CFLAGS"
10598		if  test "x$GCC" = xyes ; then
10599		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10600		fi
10601
10602
10603
10604
10605
10606
10607
10608
10609# Check whether --enable-strict-compilation was given.
10610if test ${enable_strict_compilation+y}
10611then :
10612  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10613else $as_nop
10614  STRICT_COMPILE=no
10615fi
10616
10617
10618
10619
10620
10621
10622STRICT_CFLAGS=""
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636xorg_testset_save_CFLAGS="$CFLAGS"
10637
10638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10643then :
10644  printf %s "(cached) " >&6
10645else $as_nop
10646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648int i;
10649_ACEOF
10650if ac_fn_c_try_compile "$LINENO"
10651then :
10652  xorg_cv_cc_flag_unknown_warning_option=yes
10653else $as_nop
10654  xorg_cv_cc_flag_unknown_warning_option=no
10655fi
10656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10657fi
10658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10659printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10660	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10661	CFLAGS="$xorg_testset_save_CFLAGS"
10662fi
10663
10664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10665	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10666		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10667	fi
10668	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10669	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10670printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10671if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10672then :
10673  printf %s "(cached) " >&6
10674else $as_nop
10675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677int i;
10678_ACEOF
10679if ac_fn_c_try_compile "$LINENO"
10680then :
10681  xorg_cv_cc_flag_unused_command_line_argument=yes
10682else $as_nop
10683  xorg_cv_cc_flag_unused_command_line_argument=no
10684fi
10685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10686fi
10687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10690	CFLAGS="$xorg_testset_save_CFLAGS"
10691fi
10692
10693found="no"
10694
10695	if test $found = "no" ; then
10696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10698		fi
10699
10700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10702		fi
10703
10704		CFLAGS="$CFLAGS -pedantic"
10705
10706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10707printf %s "checking if $CC supports -pedantic... " >&6; }
10708		cacheid=xorg_cv_cc_flag__pedantic
10709		if eval test \${$cacheid+y}
10710then :
10711  printf %s "(cached) " >&6
10712else $as_nop
10713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714/* end confdefs.h.  */
10715int i;
10716int
10717main (void)
10718{
10719
10720  ;
10721  return 0;
10722}
10723_ACEOF
10724if ac_fn_c_try_link "$LINENO"
10725then :
10726  eval $cacheid=yes
10727else $as_nop
10728  eval $cacheid=no
10729fi
10730rm -f core conftest.err conftest.$ac_objext conftest.beam \
10731    conftest$ac_exeext conftest.$ac_ext
10732fi
10733
10734
10735		CFLAGS="$xorg_testset_save_CFLAGS"
10736
10737		eval supported=\$$cacheid
10738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10739printf "%s\n" "$supported" >&6; }
10740		if test "$supported" = "yes" ; then
10741			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10742			found="yes"
10743		fi
10744	fi
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760xorg_testset_save_CFLAGS="$CFLAGS"
10761
10762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10765printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10766if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10767then :
10768  printf %s "(cached) " >&6
10769else $as_nop
10770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772int i;
10773_ACEOF
10774if ac_fn_c_try_compile "$LINENO"
10775then :
10776  xorg_cv_cc_flag_unknown_warning_option=yes
10777else $as_nop
10778  xorg_cv_cc_flag_unknown_warning_option=no
10779fi
10780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10781fi
10782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10783printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10785	CFLAGS="$xorg_testset_save_CFLAGS"
10786fi
10787
10788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10791	fi
10792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10793	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10794printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10795if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10796then :
10797  printf %s "(cached) " >&6
10798else $as_nop
10799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800/* end confdefs.h.  */
10801int i;
10802_ACEOF
10803if ac_fn_c_try_compile "$LINENO"
10804then :
10805  xorg_cv_cc_flag_unused_command_line_argument=yes
10806else $as_nop
10807  xorg_cv_cc_flag_unused_command_line_argument=no
10808fi
10809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10810fi
10811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10812printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10813	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10814	CFLAGS="$xorg_testset_save_CFLAGS"
10815fi
10816
10817found="no"
10818
10819	if test $found = "no" ; then
10820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10822		fi
10823
10824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10826		fi
10827
10828		CFLAGS="$CFLAGS -Werror"
10829
10830		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10831printf %s "checking if $CC supports -Werror... " >&6; }
10832		cacheid=xorg_cv_cc_flag__Werror
10833		if eval test \${$cacheid+y}
10834then :
10835  printf %s "(cached) " >&6
10836else $as_nop
10837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838/* end confdefs.h.  */
10839int i;
10840int
10841main (void)
10842{
10843
10844  ;
10845  return 0;
10846}
10847_ACEOF
10848if ac_fn_c_try_link "$LINENO"
10849then :
10850  eval $cacheid=yes
10851else $as_nop
10852  eval $cacheid=no
10853fi
10854rm -f core conftest.err conftest.$ac_objext conftest.beam \
10855    conftest$ac_exeext conftest.$ac_ext
10856fi
10857
10858
10859		CFLAGS="$xorg_testset_save_CFLAGS"
10860
10861		eval supported=\$$cacheid
10862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10863printf "%s\n" "$supported" >&6; }
10864		if test "$supported" = "yes" ; then
10865			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10866			found="yes"
10867		fi
10868	fi
10869
10870	if test $found = "no" ; then
10871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10873		fi
10874
10875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10877		fi
10878
10879		CFLAGS="$CFLAGS -errwarn"
10880
10881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10882printf %s "checking if $CC supports -errwarn... " >&6; }
10883		cacheid=xorg_cv_cc_flag__errwarn
10884		if eval test \${$cacheid+y}
10885then :
10886  printf %s "(cached) " >&6
10887else $as_nop
10888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889/* end confdefs.h.  */
10890int i;
10891int
10892main (void)
10893{
10894
10895  ;
10896  return 0;
10897}
10898_ACEOF
10899if ac_fn_c_try_link "$LINENO"
10900then :
10901  eval $cacheid=yes
10902else $as_nop
10903  eval $cacheid=no
10904fi
10905rm -f core conftest.err conftest.$ac_objext conftest.beam \
10906    conftest$ac_exeext conftest.$ac_ext
10907fi
10908
10909
10910		CFLAGS="$xorg_testset_save_CFLAGS"
10911
10912		eval supported=\$$cacheid
10913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10914printf "%s\n" "$supported" >&6; }
10915		if test "$supported" = "yes" ; then
10916			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10917			found="yes"
10918		fi
10919	fi
10920
10921
10922
10923# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10924# activate it with -Werror, so we add it here explicitly.
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938xorg_testset_save_CFLAGS="$CFLAGS"
10939
10940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10942	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10944if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10945then :
10946  printf %s "(cached) " >&6
10947else $as_nop
10948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950int i;
10951_ACEOF
10952if ac_fn_c_try_compile "$LINENO"
10953then :
10954  xorg_cv_cc_flag_unknown_warning_option=yes
10955else $as_nop
10956  xorg_cv_cc_flag_unknown_warning_option=no
10957fi
10958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10959fi
10960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10963	CFLAGS="$xorg_testset_save_CFLAGS"
10964fi
10965
10966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10969	fi
10970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10973if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10974then :
10975  printf %s "(cached) " >&6
10976else $as_nop
10977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978/* end confdefs.h.  */
10979int i;
10980_ACEOF
10981if ac_fn_c_try_compile "$LINENO"
10982then :
10983  xorg_cv_cc_flag_unused_command_line_argument=yes
10984else $as_nop
10985  xorg_cv_cc_flag_unused_command_line_argument=no
10986fi
10987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10988fi
10989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10991	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10992	CFLAGS="$xorg_testset_save_CFLAGS"
10993fi
10994
10995found="no"
10996
10997	if test $found = "no" ; then
10998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11000		fi
11001
11002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11004		fi
11005
11006		CFLAGS="$CFLAGS -Werror=attributes"
11007
11008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11009printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11010		cacheid=xorg_cv_cc_flag__Werror_attributes
11011		if eval test \${$cacheid+y}
11012then :
11013  printf %s "(cached) " >&6
11014else $as_nop
11015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016/* end confdefs.h.  */
11017int i;
11018int
11019main (void)
11020{
11021
11022  ;
11023  return 0;
11024}
11025_ACEOF
11026if ac_fn_c_try_link "$LINENO"
11027then :
11028  eval $cacheid=yes
11029else $as_nop
11030  eval $cacheid=no
11031fi
11032rm -f core conftest.err conftest.$ac_objext conftest.beam \
11033    conftest$ac_exeext conftest.$ac_ext
11034fi
11035
11036
11037		CFLAGS="$xorg_testset_save_CFLAGS"
11038
11039		eval supported=\$$cacheid
11040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11041printf "%s\n" "$supported" >&6; }
11042		if test "$supported" = "yes" ; then
11043			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11044			found="yes"
11045		fi
11046	fi
11047
11048
11049
11050if test "x$STRICT_COMPILE" = "xyes"; then
11051    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11052    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11053fi
11054
11055
11056
11057
11058
11059
11060
11061
11062cat >>confdefs.h <<_ACEOF
11063#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11064_ACEOF
11065
11066	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11067	if test "x$PVM" = "x"; then
11068		PVM="0"
11069	fi
11070
11071printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11072
11073	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11074	if test "x$PVP" = "x"; then
11075		PVP="0"
11076	fi
11077
11078printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11079
11080
11081
11082CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11083mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11084|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11085touch \$(top_srcdir)/ChangeLog; \
11086echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11087
11088
11089
11090
11091macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11092INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11093mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11094|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11095touch \$(top_srcdir)/INSTALL; \
11096echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11097
11098
11099
11100
11101
11102
11103case $host_os in
11104    solaris*)
11105        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11106        # check for a man page file found in later versions that use
11107        # traditional section numbers instead
11108        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11109printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11110if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11111then :
11112  printf %s "(cached) " >&6
11113else $as_nop
11114  test "$cross_compiling" = yes &&
11115  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11116if test -r "/usr/share/man/man7/attributes.7"; then
11117  ac_cv_file__usr_share_man_man7_attributes_7=yes
11118else
11119  ac_cv_file__usr_share_man_man7_attributes_7=no
11120fi
11121fi
11122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11123printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11124if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11125then :
11126  SYSV_MAN_SECTIONS=false
11127else $as_nop
11128  SYSV_MAN_SECTIONS=true
11129fi
11130
11131        ;;
11132    *) SYSV_MAN_SECTIONS=false ;;
11133esac
11134
11135if test x$APP_MAN_SUFFIX = x    ; then
11136    APP_MAN_SUFFIX=1
11137fi
11138if test x$APP_MAN_DIR = x    ; then
11139    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11140fi
11141
11142if test x$LIB_MAN_SUFFIX = x    ; then
11143    LIB_MAN_SUFFIX=3
11144fi
11145if test x$LIB_MAN_DIR = x    ; then
11146    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11147fi
11148
11149if test x$FILE_MAN_SUFFIX = x    ; then
11150    case $SYSV_MAN_SECTIONS in
11151	true)				FILE_MAN_SUFFIX=4  ;;
11152	*)				FILE_MAN_SUFFIX=5  ;;
11153    esac
11154fi
11155if test x$FILE_MAN_DIR = x    ; then
11156    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11157fi
11158
11159if test x$MISC_MAN_SUFFIX = x    ; then
11160    case $SYSV_MAN_SECTIONS in
11161	true)				MISC_MAN_SUFFIX=5  ;;
11162	*)				MISC_MAN_SUFFIX=7  ;;
11163    esac
11164fi
11165if test x$MISC_MAN_DIR = x    ; then
11166    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11167fi
11168
11169if test x$DRIVER_MAN_SUFFIX = x    ; then
11170    case $SYSV_MAN_SECTIONS in
11171	true)				DRIVER_MAN_SUFFIX=7  ;;
11172	*)				DRIVER_MAN_SUFFIX=4  ;;
11173    esac
11174fi
11175if test x$DRIVER_MAN_DIR = x    ; then
11176    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11177fi
11178
11179if test x$ADMIN_MAN_SUFFIX = x    ; then
11180    case $SYSV_MAN_SECTIONS in
11181	true)				ADMIN_MAN_SUFFIX=1m ;;
11182	*)				ADMIN_MAN_SUFFIX=8  ;;
11183    esac
11184fi
11185if test x$ADMIN_MAN_DIR = x    ; then
11186    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11187fi
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203XORG_MAN_PAGE="X Version 11"
11204
11205MAN_SUBSTS="\
11206	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11207	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11208	-e 's|__xservername__|Xorg|g' \
11209	-e 's|__xconfigfile__|xorg.conf|g' \
11210	-e 's|__projectroot__|\$(prefix)|g' \
11211	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11212	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11213	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11214	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11215	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11216	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11217	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11218
11219
11220
11221# Check whether --enable-silent-rules was given.
11222if test ${enable_silent_rules+y}
11223then :
11224  enableval=$enable_silent_rules;
11225fi
11226
11227case $enable_silent_rules in # (((
11228  yes) AM_DEFAULT_VERBOSITY=0;;
11229   no) AM_DEFAULT_VERBOSITY=1;;
11230    *) AM_DEFAULT_VERBOSITY=0;;
11231esac
11232am_make=${MAKE-make}
11233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11234printf %s "checking whether $am_make supports nested variables... " >&6; }
11235if test ${am_cv_make_support_nested_variables+y}
11236then :
11237  printf %s "(cached) " >&6
11238else $as_nop
11239  if printf "%s\n" 'TRUE=$(BAR$(V))
11240BAR0=false
11241BAR1=true
11242V=1
11243am__doit:
11244	@$(TRUE)
11245.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11246  am_cv_make_support_nested_variables=yes
11247else
11248  am_cv_make_support_nested_variables=no
11249fi
11250fi
11251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11252printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11253if test $am_cv_make_support_nested_variables = yes; then
11254    AM_V='$(V)'
11255  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11256else
11257  AM_V=$AM_DEFAULT_VERBOSITY
11258  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11259fi
11260AM_BACKSLASH='\'
11261
11262
11263
11264
11265# Initialize libtool
11266# Check whether --enable-static was given.
11267if test ${enable_static+y}
11268then :
11269  enableval=$enable_static; p=${PACKAGE-default}
11270    case $enableval in
11271    yes) enable_static=yes ;;
11272    no) enable_static=no ;;
11273    *)
11274     enable_static=no
11275      # Look at the argument we got.  We use all the common list separators.
11276      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11277      for pkg in $enableval; do
11278	IFS=$lt_save_ifs
11279	if test "X$pkg" = "X$p"; then
11280	  enable_static=yes
11281	fi
11282      done
11283      IFS=$lt_save_ifs
11284      ;;
11285    esac
11286else $as_nop
11287  enable_static=no
11288fi
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298case `pwd` in
11299  *\ * | *\	*)
11300    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11301printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11302esac
11303
11304
11305
11306macro_version='2.4.7'
11307macro_revision='2.4.7'
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322ltmain=$ac_aux_dir/ltmain.sh
11323
11324# Backslashify metacharacters that are still active within
11325# double-quoted strings.
11326sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11327
11328# Same as above, but do not quote variable references.
11329double_quote_subst='s/\(["`\\]\)/\\\1/g'
11330
11331# Sed substitution to delay expansion of an escaped shell variable in a
11332# double_quote_subst'ed string.
11333delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11334
11335# Sed substitution to delay expansion of an escaped single quote.
11336delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11337
11338# Sed substitution to avoid accidental globbing in evaled expressions
11339no_glob_subst='s/\*/\\\*/g'
11340
11341ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11342ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11343ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11344
11345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11346printf %s "checking how to print strings... " >&6; }
11347# Test print first, because it will be a builtin if present.
11348if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11349   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11350  ECHO='print -r --'
11351elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11352  ECHO='printf %s\n'
11353else
11354  # Use this function as a fallback that always works.
11355  func_fallback_echo ()
11356  {
11357    eval 'cat <<_LTECHO_EOF
11358$1
11359_LTECHO_EOF'
11360  }
11361  ECHO='func_fallback_echo'
11362fi
11363
11364# func_echo_all arg...
11365# Invoke $ECHO with all args, space-separated.
11366func_echo_all ()
11367{
11368    $ECHO ""
11369}
11370
11371case $ECHO in
11372  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11373printf "%s\n" "printf" >&6; } ;;
11374  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11375printf "%s\n" "print -r" >&6; } ;;
11376  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11377printf "%s\n" "cat" >&6; } ;;
11378esac
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11394printf %s "checking for a sed that does not truncate output... " >&6; }
11395if test ${ac_cv_path_SED+y}
11396then :
11397  printf %s "(cached) " >&6
11398else $as_nop
11399            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11400     for ac_i in 1 2 3 4 5 6 7; do
11401       ac_script="$ac_script$as_nl$ac_script"
11402     done
11403     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11404     { ac_script=; unset ac_script;}
11405     if test -z "$SED"; then
11406  ac_path_SED_found=false
11407  # Loop through the user's path and test for each of PROGNAME-LIST
11408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409for as_dir in $PATH
11410do
11411  IFS=$as_save_IFS
11412  case $as_dir in #(((
11413    '') as_dir=./ ;;
11414    */) ;;
11415    *) as_dir=$as_dir/ ;;
11416  esac
11417    for ac_prog in sed gsed
11418   do
11419    for ac_exec_ext in '' $ac_executable_extensions; do
11420      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11421      as_fn_executable_p "$ac_path_SED" || continue
11422# Check for GNU ac_path_SED and select it if it is found.
11423  # Check for GNU $ac_path_SED
11424case `"$ac_path_SED" --version 2>&1` in
11425*GNU*)
11426  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11427*)
11428  ac_count=0
11429  printf %s 0123456789 >"conftest.in"
11430  while :
11431  do
11432    cat "conftest.in" "conftest.in" >"conftest.tmp"
11433    mv "conftest.tmp" "conftest.in"
11434    cp "conftest.in" "conftest.nl"
11435    printf "%s\n" '' >> "conftest.nl"
11436    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11437    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11438    as_fn_arith $ac_count + 1 && ac_count=$as_val
11439    if test $ac_count -gt ${ac_path_SED_max-0}; then
11440      # Best one so far, save it but keep looking for a better one
11441      ac_cv_path_SED="$ac_path_SED"
11442      ac_path_SED_max=$ac_count
11443    fi
11444    # 10*(2^10) chars as input seems more than enough
11445    test $ac_count -gt 10 && break
11446  done
11447  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11448esac
11449
11450      $ac_path_SED_found && break 3
11451    done
11452  done
11453  done
11454IFS=$as_save_IFS
11455  if test -z "$ac_cv_path_SED"; then
11456    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11457  fi
11458else
11459  ac_cv_path_SED=$SED
11460fi
11461
11462fi
11463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11464printf "%s\n" "$ac_cv_path_SED" >&6; }
11465 SED="$ac_cv_path_SED"
11466  rm -f conftest.sed
11467
11468test -z "$SED" && SED=sed
11469Xsed="$SED -e 1s/^X//"
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11482printf %s "checking for grep that handles long lines and -e... " >&6; }
11483if test ${ac_cv_path_GREP+y}
11484then :
11485  printf %s "(cached) " >&6
11486else $as_nop
11487  if test -z "$GREP"; then
11488  ac_path_GREP_found=false
11489  # Loop through the user's path and test for each of PROGNAME-LIST
11490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11492do
11493  IFS=$as_save_IFS
11494  case $as_dir in #(((
11495    '') as_dir=./ ;;
11496    */) ;;
11497    *) as_dir=$as_dir/ ;;
11498  esac
11499    for ac_prog in grep ggrep
11500   do
11501    for ac_exec_ext in '' $ac_executable_extensions; do
11502      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11503      as_fn_executable_p "$ac_path_GREP" || continue
11504# Check for GNU ac_path_GREP and select it if it is found.
11505  # Check for GNU $ac_path_GREP
11506case `"$ac_path_GREP" --version 2>&1` in
11507*GNU*)
11508  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11509*)
11510  ac_count=0
11511  printf %s 0123456789 >"conftest.in"
11512  while :
11513  do
11514    cat "conftest.in" "conftest.in" >"conftest.tmp"
11515    mv "conftest.tmp" "conftest.in"
11516    cp "conftest.in" "conftest.nl"
11517    printf "%s\n" 'GREP' >> "conftest.nl"
11518    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11519    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11520    as_fn_arith $ac_count + 1 && ac_count=$as_val
11521    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11522      # Best one so far, save it but keep looking for a better one
11523      ac_cv_path_GREP="$ac_path_GREP"
11524      ac_path_GREP_max=$ac_count
11525    fi
11526    # 10*(2^10) chars as input seems more than enough
11527    test $ac_count -gt 10 && break
11528  done
11529  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11530esac
11531
11532      $ac_path_GREP_found && break 3
11533    done
11534  done
11535  done
11536IFS=$as_save_IFS
11537  if test -z "$ac_cv_path_GREP"; then
11538    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11539  fi
11540else
11541  ac_cv_path_GREP=$GREP
11542fi
11543
11544fi
11545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11546printf "%s\n" "$ac_cv_path_GREP" >&6; }
11547 GREP="$ac_cv_path_GREP"
11548
11549
11550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11551printf %s "checking for egrep... " >&6; }
11552if test ${ac_cv_path_EGREP+y}
11553then :
11554  printf %s "(cached) " >&6
11555else $as_nop
11556  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11557   then ac_cv_path_EGREP="$GREP -E"
11558   else
11559     if test -z "$EGREP"; then
11560  ac_path_EGREP_found=false
11561  # Loop through the user's path and test for each of PROGNAME-LIST
11562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11564do
11565  IFS=$as_save_IFS
11566  case $as_dir in #(((
11567    '') as_dir=./ ;;
11568    */) ;;
11569    *) as_dir=$as_dir/ ;;
11570  esac
11571    for ac_prog in egrep
11572   do
11573    for ac_exec_ext in '' $ac_executable_extensions; do
11574      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11575      as_fn_executable_p "$ac_path_EGREP" || continue
11576# Check for GNU ac_path_EGREP and select it if it is found.
11577  # Check for GNU $ac_path_EGREP
11578case `"$ac_path_EGREP" --version 2>&1` in
11579*GNU*)
11580  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11581*)
11582  ac_count=0
11583  printf %s 0123456789 >"conftest.in"
11584  while :
11585  do
11586    cat "conftest.in" "conftest.in" >"conftest.tmp"
11587    mv "conftest.tmp" "conftest.in"
11588    cp "conftest.in" "conftest.nl"
11589    printf "%s\n" 'EGREP' >> "conftest.nl"
11590    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11591    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11592    as_fn_arith $ac_count + 1 && ac_count=$as_val
11593    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11594      # Best one so far, save it but keep looking for a better one
11595      ac_cv_path_EGREP="$ac_path_EGREP"
11596      ac_path_EGREP_max=$ac_count
11597    fi
11598    # 10*(2^10) chars as input seems more than enough
11599    test $ac_count -gt 10 && break
11600  done
11601  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11602esac
11603
11604      $ac_path_EGREP_found && break 3
11605    done
11606  done
11607  done
11608IFS=$as_save_IFS
11609  if test -z "$ac_cv_path_EGREP"; then
11610    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11611  fi
11612else
11613  ac_cv_path_EGREP=$EGREP
11614fi
11615
11616   fi
11617fi
11618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11619printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11620 EGREP="$ac_cv_path_EGREP"
11621
11622
11623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11624printf %s "checking for fgrep... " >&6; }
11625if test ${ac_cv_path_FGREP+y}
11626then :
11627  printf %s "(cached) " >&6
11628else $as_nop
11629  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11630   then ac_cv_path_FGREP="$GREP -F"
11631   else
11632     if test -z "$FGREP"; then
11633  ac_path_FGREP_found=false
11634  # Loop through the user's path and test for each of PROGNAME-LIST
11635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11637do
11638  IFS=$as_save_IFS
11639  case $as_dir in #(((
11640    '') as_dir=./ ;;
11641    */) ;;
11642    *) as_dir=$as_dir/ ;;
11643  esac
11644    for ac_prog in fgrep
11645   do
11646    for ac_exec_ext in '' $ac_executable_extensions; do
11647      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11648      as_fn_executable_p "$ac_path_FGREP" || continue
11649# Check for GNU ac_path_FGREP and select it if it is found.
11650  # Check for GNU $ac_path_FGREP
11651case `"$ac_path_FGREP" --version 2>&1` in
11652*GNU*)
11653  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11654*)
11655  ac_count=0
11656  printf %s 0123456789 >"conftest.in"
11657  while :
11658  do
11659    cat "conftest.in" "conftest.in" >"conftest.tmp"
11660    mv "conftest.tmp" "conftest.in"
11661    cp "conftest.in" "conftest.nl"
11662    printf "%s\n" 'FGREP' >> "conftest.nl"
11663    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11664    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11665    as_fn_arith $ac_count + 1 && ac_count=$as_val
11666    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11667      # Best one so far, save it but keep looking for a better one
11668      ac_cv_path_FGREP="$ac_path_FGREP"
11669      ac_path_FGREP_max=$ac_count
11670    fi
11671    # 10*(2^10) chars as input seems more than enough
11672    test $ac_count -gt 10 && break
11673  done
11674  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11675esac
11676
11677      $ac_path_FGREP_found && break 3
11678    done
11679  done
11680  done
11681IFS=$as_save_IFS
11682  if test -z "$ac_cv_path_FGREP"; then
11683    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11684  fi
11685else
11686  ac_cv_path_FGREP=$FGREP
11687fi
11688
11689   fi
11690fi
11691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11692printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11693 FGREP="$ac_cv_path_FGREP"
11694
11695
11696test -z "$GREP" && GREP=grep
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716# Check whether --with-gnu-ld was given.
11717if test ${with_gnu_ld+y}
11718then :
11719  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11720else $as_nop
11721  with_gnu_ld=no
11722fi
11723
11724ac_prog=ld
11725if test yes = "$GCC"; then
11726  # Check if gcc -print-prog-name=ld gives a path.
11727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11728printf %s "checking for ld used by $CC... " >&6; }
11729  case $host in
11730  *-*-mingw*)
11731    # gcc leaves a trailing carriage return, which upsets mingw
11732    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11733  *)
11734    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11735  esac
11736  case $ac_prog in
11737    # Accept absolute paths.
11738    [\\/]* | ?:[\\/]*)
11739      re_direlt='/[^/][^/]*/\.\./'
11740      # Canonicalize the pathname of ld
11741      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11742      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11743	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11744      done
11745      test -z "$LD" && LD=$ac_prog
11746      ;;
11747  "")
11748    # If it fails, then pretend we aren't using GCC.
11749    ac_prog=ld
11750    ;;
11751  *)
11752    # If it is relative, then search for the first ld in PATH.
11753    with_gnu_ld=unknown
11754    ;;
11755  esac
11756elif test yes = "$with_gnu_ld"; then
11757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11758printf %s "checking for GNU ld... " >&6; }
11759else
11760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11761printf %s "checking for non-GNU ld... " >&6; }
11762fi
11763if test ${lt_cv_path_LD+y}
11764then :
11765  printf %s "(cached) " >&6
11766else $as_nop
11767  if test -z "$LD"; then
11768  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11769  for ac_dir in $PATH; do
11770    IFS=$lt_save_ifs
11771    test -z "$ac_dir" && ac_dir=.
11772    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11773      lt_cv_path_LD=$ac_dir/$ac_prog
11774      # Check to see if the program is GNU ld.  I'd rather use --version,
11775      # but apparently some variants of GNU ld only accept -v.
11776      # Break only if it was the GNU/non-GNU ld that we prefer.
11777      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11778      *GNU* | *'with BFD'*)
11779	test no != "$with_gnu_ld" && break
11780	;;
11781      *)
11782	test yes != "$with_gnu_ld" && break
11783	;;
11784      esac
11785    fi
11786  done
11787  IFS=$lt_save_ifs
11788else
11789  lt_cv_path_LD=$LD # Let the user override the test with a path.
11790fi
11791fi
11792
11793LD=$lt_cv_path_LD
11794if test -n "$LD"; then
11795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11796printf "%s\n" "$LD" >&6; }
11797else
11798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799printf "%s\n" "no" >&6; }
11800fi
11801test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11803printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11804if test ${lt_cv_prog_gnu_ld+y}
11805then :
11806  printf %s "(cached) " >&6
11807else $as_nop
11808  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11809case `$LD -v 2>&1 </dev/null` in
11810*GNU* | *'with BFD'*)
11811  lt_cv_prog_gnu_ld=yes
11812  ;;
11813*)
11814  lt_cv_prog_gnu_ld=no
11815  ;;
11816esac
11817fi
11818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11819printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11820with_gnu_ld=$lt_cv_prog_gnu_ld
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11831printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11832if test ${lt_cv_path_NM+y}
11833then :
11834  printf %s "(cached) " >&6
11835else $as_nop
11836  if test -n "$NM"; then
11837  # Let the user override the test.
11838  lt_cv_path_NM=$NM
11839else
11840  lt_nm_to_check=${ac_tool_prefix}nm
11841  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11842    lt_nm_to_check="$lt_nm_to_check nm"
11843  fi
11844  for lt_tmp_nm in $lt_nm_to_check; do
11845    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11846    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11847      IFS=$lt_save_ifs
11848      test -z "$ac_dir" && ac_dir=.
11849      tmp_nm=$ac_dir/$lt_tmp_nm
11850      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11851	# Check to see if the nm accepts a BSD-compat flag.
11852	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11853	#   nm: unknown option "B" ignored
11854	# Tru64's nm complains that /dev/null is an invalid object file
11855	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11856	case $build_os in
11857	mingw*) lt_bad_file=conftest.nm/nofile ;;
11858	*) lt_bad_file=/dev/null ;;
11859	esac
11860	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11861	*$lt_bad_file* | *'Invalid file or object type'*)
11862	  lt_cv_path_NM="$tmp_nm -B"
11863	  break 2
11864	  ;;
11865	*)
11866	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11867	  */dev/null*)
11868	    lt_cv_path_NM="$tmp_nm -p"
11869	    break 2
11870	    ;;
11871	  *)
11872	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11873	    continue # so that we can try to find one that supports BSD flags
11874	    ;;
11875	  esac
11876	  ;;
11877	esac
11878      fi
11879    done
11880    IFS=$lt_save_ifs
11881  done
11882  : ${lt_cv_path_NM=no}
11883fi
11884fi
11885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11886printf "%s\n" "$lt_cv_path_NM" >&6; }
11887if test no != "$lt_cv_path_NM"; then
11888  NM=$lt_cv_path_NM
11889else
11890  # Didn't find any BSD compatible name lister, look for dumpbin.
11891  if test -n "$DUMPBIN"; then :
11892    # Let the user override the test.
11893  else
11894    if test -n "$ac_tool_prefix"; then
11895  for ac_prog in dumpbin "link -dump"
11896  do
11897    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900printf %s "checking for $ac_word... " >&6; }
11901if test ${ac_cv_prog_DUMPBIN+y}
11902then :
11903  printf %s "(cached) " >&6
11904else $as_nop
11905  if test -n "$DUMPBIN"; then
11906  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11907else
11908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909for as_dir in $PATH
11910do
11911  IFS=$as_save_IFS
11912  case $as_dir in #(((
11913    '') as_dir=./ ;;
11914    */) ;;
11915    *) as_dir=$as_dir/ ;;
11916  esac
11917    for ac_exec_ext in '' $ac_executable_extensions; do
11918  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11919    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11920    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11921    break 2
11922  fi
11923done
11924  done
11925IFS=$as_save_IFS
11926
11927fi
11928fi
11929DUMPBIN=$ac_cv_prog_DUMPBIN
11930if test -n "$DUMPBIN"; then
11931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11932printf "%s\n" "$DUMPBIN" >&6; }
11933else
11934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935printf "%s\n" "no" >&6; }
11936fi
11937
11938
11939    test -n "$DUMPBIN" && break
11940  done
11941fi
11942if test -z "$DUMPBIN"; then
11943  ac_ct_DUMPBIN=$DUMPBIN
11944  for ac_prog in dumpbin "link -dump"
11945do
11946  # Extract the first word of "$ac_prog", so it can be a program name with args.
11947set dummy $ac_prog; ac_word=$2
11948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949printf %s "checking for $ac_word... " >&6; }
11950if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11951then :
11952  printf %s "(cached) " >&6
11953else $as_nop
11954  if test -n "$ac_ct_DUMPBIN"; then
11955  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11956else
11957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958for as_dir in $PATH
11959do
11960  IFS=$as_save_IFS
11961  case $as_dir in #(((
11962    '') as_dir=./ ;;
11963    */) ;;
11964    *) as_dir=$as_dir/ ;;
11965  esac
11966    for ac_exec_ext in '' $ac_executable_extensions; do
11967  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11968    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11969    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11970    break 2
11971  fi
11972done
11973  done
11974IFS=$as_save_IFS
11975
11976fi
11977fi
11978ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11979if test -n "$ac_ct_DUMPBIN"; then
11980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11981printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11982else
11983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984printf "%s\n" "no" >&6; }
11985fi
11986
11987
11988  test -n "$ac_ct_DUMPBIN" && break
11989done
11990
11991  if test "x$ac_ct_DUMPBIN" = x; then
11992    DUMPBIN=":"
11993  else
11994    case $cross_compiling:$ac_tool_warned in
11995yes:)
11996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11997printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11998ac_tool_warned=yes ;;
11999esac
12000    DUMPBIN=$ac_ct_DUMPBIN
12001  fi
12002fi
12003
12004    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12005    *COFF*)
12006      DUMPBIN="$DUMPBIN -symbols -headers"
12007      ;;
12008    *)
12009      DUMPBIN=:
12010      ;;
12011    esac
12012  fi
12013
12014  if test : != "$DUMPBIN"; then
12015    NM=$DUMPBIN
12016  fi
12017fi
12018test -z "$NM" && NM=nm
12019
12020
12021
12022
12023
12024
12025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12026printf %s "checking the name lister ($NM) interface... " >&6; }
12027if test ${lt_cv_nm_interface+y}
12028then :
12029  printf %s "(cached) " >&6
12030else $as_nop
12031  lt_cv_nm_interface="BSD nm"
12032  echo "int some_variable = 0;" > conftest.$ac_ext
12033  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12034  (eval "$ac_compile" 2>conftest.err)
12035  cat conftest.err >&5
12036  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12037  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12038  cat conftest.err >&5
12039  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12040  cat conftest.out >&5
12041  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12042    lt_cv_nm_interface="MS dumpbin"
12043  fi
12044  rm -f conftest*
12045fi
12046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12047printf "%s\n" "$lt_cv_nm_interface" >&6; }
12048
12049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12050printf %s "checking whether ln -s works... " >&6; }
12051LN_S=$as_ln_s
12052if test "$LN_S" = "ln -s"; then
12053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12054printf "%s\n" "yes" >&6; }
12055else
12056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12057printf "%s\n" "no, using $LN_S" >&6; }
12058fi
12059
12060# find the maximum length of command line arguments
12061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12062printf %s "checking the maximum length of command line arguments... " >&6; }
12063if test ${lt_cv_sys_max_cmd_len+y}
12064then :
12065  printf %s "(cached) " >&6
12066else $as_nop
12067    i=0
12068  teststring=ABCD
12069
12070  case $build_os in
12071  msdosdjgpp*)
12072    # On DJGPP, this test can blow up pretty badly due to problems in libc
12073    # (any single argument exceeding 2000 bytes causes a buffer overrun
12074    # during glob expansion).  Even if it were fixed, the result of this
12075    # check would be larger than it should be.
12076    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12077    ;;
12078
12079  gnu*)
12080    # Under GNU Hurd, this test is not required because there is
12081    # no limit to the length of command line arguments.
12082    # Libtool will interpret -1 as no limit whatsoever
12083    lt_cv_sys_max_cmd_len=-1;
12084    ;;
12085
12086  cygwin* | mingw* | cegcc*)
12087    # On Win9x/ME, this test blows up -- it succeeds, but takes
12088    # about 5 minutes as the teststring grows exponentially.
12089    # Worse, since 9x/ME are not pre-emptively multitasking,
12090    # you end up with a "frozen" computer, even though with patience
12091    # the test eventually succeeds (with a max line length of 256k).
12092    # Instead, let's just punt: use the minimum linelength reported by
12093    # all of the supported platforms: 8192 (on NT/2K/XP).
12094    lt_cv_sys_max_cmd_len=8192;
12095    ;;
12096
12097  mint*)
12098    # On MiNT this can take a long time and run out of memory.
12099    lt_cv_sys_max_cmd_len=8192;
12100    ;;
12101
12102  amigaos*)
12103    # On AmigaOS with pdksh, this test takes hours, literally.
12104    # So we just punt and use a minimum line length of 8192.
12105    lt_cv_sys_max_cmd_len=8192;
12106    ;;
12107
12108  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12109    # This has been around since 386BSD, at least.  Likely further.
12110    if test -x /sbin/sysctl; then
12111      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12112    elif test -x /usr/sbin/sysctl; then
12113      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12114    else
12115      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12116    fi
12117    # And add a safety zone
12118    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12119    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12120    ;;
12121
12122  interix*)
12123    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12124    lt_cv_sys_max_cmd_len=196608
12125    ;;
12126
12127  os2*)
12128    # The test takes a long time on OS/2.
12129    lt_cv_sys_max_cmd_len=8192
12130    ;;
12131
12132  osf*)
12133    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12134    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12135    # nice to cause kernel panics so lets avoid the loop below.
12136    # First set a reasonable default.
12137    lt_cv_sys_max_cmd_len=16384
12138    #
12139    if test -x /sbin/sysconfig; then
12140      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12141        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12142      esac
12143    fi
12144    ;;
12145  sco3.2v5*)
12146    lt_cv_sys_max_cmd_len=102400
12147    ;;
12148  sysv5* | sco5v6* | sysv4.2uw2*)
12149    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12150    if test -n "$kargmax"; then
12151      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12152    else
12153      lt_cv_sys_max_cmd_len=32768
12154    fi
12155    ;;
12156  *)
12157    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12158    if test -n "$lt_cv_sys_max_cmd_len" && \
12159       test undefined != "$lt_cv_sys_max_cmd_len"; then
12160      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12161      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12162    else
12163      # Make teststring a little bigger before we do anything with it.
12164      # a 1K string should be a reasonable start.
12165      for i in 1 2 3 4 5 6 7 8; do
12166        teststring=$teststring$teststring
12167      done
12168      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12169      # If test is not a shell built-in, we'll probably end up computing a
12170      # maximum length that is only half of the actual maximum length, but
12171      # we can't tell.
12172      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12173	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12174	      test 17 != "$i" # 1/2 MB should be enough
12175      do
12176        i=`expr $i + 1`
12177        teststring=$teststring$teststring
12178      done
12179      # Only check the string length outside the loop.
12180      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12181      teststring=
12182      # Add a significant safety factor because C++ compilers can tack on
12183      # massive amounts of additional arguments before passing them to the
12184      # linker.  It appears as though 1/2 is a usable value.
12185      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12186    fi
12187    ;;
12188  esac
12189
12190fi
12191
12192if test -n "$lt_cv_sys_max_cmd_len"; then
12193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12194printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12195else
12196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12197printf "%s\n" "none" >&6; }
12198fi
12199max_cmd_len=$lt_cv_sys_max_cmd_len
12200
12201
12202
12203
12204
12205
12206: ${CP="cp -f"}
12207: ${MV="mv -f"}
12208: ${RM="rm -f"}
12209
12210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12211  lt_unset=unset
12212else
12213  lt_unset=false
12214fi
12215
12216
12217
12218
12219
12220# test EBCDIC or ASCII
12221case `echo X|tr X '\101'` in
12222 A) # ASCII based system
12223    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12224  lt_SP2NL='tr \040 \012'
12225  lt_NL2SP='tr \015\012 \040\040'
12226  ;;
12227 *) # EBCDIC based system
12228  lt_SP2NL='tr \100 \n'
12229  lt_NL2SP='tr \r\n \100\100'
12230  ;;
12231esac
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12242printf %s "checking how to convert $build file names to $host format... " >&6; }
12243if test ${lt_cv_to_host_file_cmd+y}
12244then :
12245  printf %s "(cached) " >&6
12246else $as_nop
12247  case $host in
12248  *-*-mingw* )
12249    case $build in
12250      *-*-mingw* ) # actually msys
12251        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12252        ;;
12253      *-*-cygwin* )
12254        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12255        ;;
12256      * ) # otherwise, assume *nix
12257        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12258        ;;
12259    esac
12260    ;;
12261  *-*-cygwin* )
12262    case $build in
12263      *-*-mingw* ) # actually msys
12264        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12265        ;;
12266      *-*-cygwin* )
12267        lt_cv_to_host_file_cmd=func_convert_file_noop
12268        ;;
12269      * ) # otherwise, assume *nix
12270        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12271        ;;
12272    esac
12273    ;;
12274  * ) # unhandled hosts (and "normal" native builds)
12275    lt_cv_to_host_file_cmd=func_convert_file_noop
12276    ;;
12277esac
12278
12279fi
12280
12281to_host_file_cmd=$lt_cv_to_host_file_cmd
12282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12283printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12284
12285
12286
12287
12288
12289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12290printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12291if test ${lt_cv_to_tool_file_cmd+y}
12292then :
12293  printf %s "(cached) " >&6
12294else $as_nop
12295  #assume ordinary cross tools, or native build.
12296lt_cv_to_tool_file_cmd=func_convert_file_noop
12297case $host in
12298  *-*-mingw* )
12299    case $build in
12300      *-*-mingw* ) # actually msys
12301        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12302        ;;
12303    esac
12304    ;;
12305esac
12306
12307fi
12308
12309to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12311printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12312
12313
12314
12315
12316
12317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12318printf %s "checking for $LD option to reload object files... " >&6; }
12319if test ${lt_cv_ld_reload_flag+y}
12320then :
12321  printf %s "(cached) " >&6
12322else $as_nop
12323  lt_cv_ld_reload_flag='-r'
12324fi
12325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12326printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12327reload_flag=$lt_cv_ld_reload_flag
12328case $reload_flag in
12329"" | " "*) ;;
12330*) reload_flag=" $reload_flag" ;;
12331esac
12332reload_cmds='$LD$reload_flag -o $output$reload_objs'
12333case $host_os in
12334  cygwin* | mingw* | pw32* | cegcc*)
12335    if test yes != "$GCC"; then
12336      reload_cmds=false
12337    fi
12338    ;;
12339  darwin*)
12340    if test yes = "$GCC"; then
12341      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12342    else
12343      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12344    fi
12345    ;;
12346esac
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356if test -n "$ac_tool_prefix"; then
12357  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12358set dummy ${ac_tool_prefix}file; ac_word=$2
12359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360printf %s "checking for $ac_word... " >&6; }
12361if test ${ac_cv_prog_FILECMD+y}
12362then :
12363  printf %s "(cached) " >&6
12364else $as_nop
12365  if test -n "$FILECMD"; then
12366  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12367else
12368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369for as_dir in $PATH
12370do
12371  IFS=$as_save_IFS
12372  case $as_dir in #(((
12373    '') as_dir=./ ;;
12374    */) ;;
12375    *) as_dir=$as_dir/ ;;
12376  esac
12377    for ac_exec_ext in '' $ac_executable_extensions; do
12378  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12379    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12380    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12381    break 2
12382  fi
12383done
12384  done
12385IFS=$as_save_IFS
12386
12387fi
12388fi
12389FILECMD=$ac_cv_prog_FILECMD
12390if test -n "$FILECMD"; then
12391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12392printf "%s\n" "$FILECMD" >&6; }
12393else
12394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395printf "%s\n" "no" >&6; }
12396fi
12397
12398
12399fi
12400if test -z "$ac_cv_prog_FILECMD"; then
12401  ac_ct_FILECMD=$FILECMD
12402  # Extract the first word of "file", so it can be a program name with args.
12403set dummy file; ac_word=$2
12404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405printf %s "checking for $ac_word... " >&6; }
12406if test ${ac_cv_prog_ac_ct_FILECMD+y}
12407then :
12408  printf %s "(cached) " >&6
12409else $as_nop
12410  if test -n "$ac_ct_FILECMD"; then
12411  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12412else
12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414for as_dir in $PATH
12415do
12416  IFS=$as_save_IFS
12417  case $as_dir in #(((
12418    '') as_dir=./ ;;
12419    */) ;;
12420    *) as_dir=$as_dir/ ;;
12421  esac
12422    for ac_exec_ext in '' $ac_executable_extensions; do
12423  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12424    ac_cv_prog_ac_ct_FILECMD="file"
12425    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12426    break 2
12427  fi
12428done
12429  done
12430IFS=$as_save_IFS
12431
12432fi
12433fi
12434ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12435if test -n "$ac_ct_FILECMD"; then
12436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12437printf "%s\n" "$ac_ct_FILECMD" >&6; }
12438else
12439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440printf "%s\n" "no" >&6; }
12441fi
12442
12443  if test "x$ac_ct_FILECMD" = x; then
12444    FILECMD=":"
12445  else
12446    case $cross_compiling:$ac_tool_warned in
12447yes:)
12448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12449printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12450ac_tool_warned=yes ;;
12451esac
12452    FILECMD=$ac_ct_FILECMD
12453  fi
12454else
12455  FILECMD="$ac_cv_prog_FILECMD"
12456fi
12457
12458
12459
12460
12461
12462
12463
12464if test -n "$ac_tool_prefix"; then
12465  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12466set dummy ${ac_tool_prefix}objdump; ac_word=$2
12467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468printf %s "checking for $ac_word... " >&6; }
12469if test ${ac_cv_prog_OBJDUMP+y}
12470then :
12471  printf %s "(cached) " >&6
12472else $as_nop
12473  if test -n "$OBJDUMP"; then
12474  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12475else
12476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477for as_dir in $PATH
12478do
12479  IFS=$as_save_IFS
12480  case $as_dir in #(((
12481    '') as_dir=./ ;;
12482    */) ;;
12483    *) as_dir=$as_dir/ ;;
12484  esac
12485    for ac_exec_ext in '' $ac_executable_extensions; do
12486  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12487    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12488    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12489    break 2
12490  fi
12491done
12492  done
12493IFS=$as_save_IFS
12494
12495fi
12496fi
12497OBJDUMP=$ac_cv_prog_OBJDUMP
12498if test -n "$OBJDUMP"; then
12499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12500printf "%s\n" "$OBJDUMP" >&6; }
12501else
12502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503printf "%s\n" "no" >&6; }
12504fi
12505
12506
12507fi
12508if test -z "$ac_cv_prog_OBJDUMP"; then
12509  ac_ct_OBJDUMP=$OBJDUMP
12510  # Extract the first word of "objdump", so it can be a program name with args.
12511set dummy objdump; ac_word=$2
12512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513printf %s "checking for $ac_word... " >&6; }
12514if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12515then :
12516  printf %s "(cached) " >&6
12517else $as_nop
12518  if test -n "$ac_ct_OBJDUMP"; then
12519  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12520else
12521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522for as_dir in $PATH
12523do
12524  IFS=$as_save_IFS
12525  case $as_dir in #(((
12526    '') as_dir=./ ;;
12527    */) ;;
12528    *) as_dir=$as_dir/ ;;
12529  esac
12530    for ac_exec_ext in '' $ac_executable_extensions; do
12531  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12532    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12533    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12534    break 2
12535  fi
12536done
12537  done
12538IFS=$as_save_IFS
12539
12540fi
12541fi
12542ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12543if test -n "$ac_ct_OBJDUMP"; then
12544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12545printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12546else
12547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548printf "%s\n" "no" >&6; }
12549fi
12550
12551  if test "x$ac_ct_OBJDUMP" = x; then
12552    OBJDUMP="false"
12553  else
12554    case $cross_compiling:$ac_tool_warned in
12555yes:)
12556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12557printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12558ac_tool_warned=yes ;;
12559esac
12560    OBJDUMP=$ac_ct_OBJDUMP
12561  fi
12562else
12563  OBJDUMP="$ac_cv_prog_OBJDUMP"
12564fi
12565
12566test -z "$OBJDUMP" && OBJDUMP=objdump
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12577printf %s "checking how to recognize dependent libraries... " >&6; }
12578if test ${lt_cv_deplibs_check_method+y}
12579then :
12580  printf %s "(cached) " >&6
12581else $as_nop
12582  lt_cv_file_magic_cmd='$MAGIC_CMD'
12583lt_cv_file_magic_test_file=
12584lt_cv_deplibs_check_method='unknown'
12585# Need to set the preceding variable on all platforms that support
12586# interlibrary dependencies.
12587# 'none' -- dependencies not supported.
12588# 'unknown' -- same as none, but documents that we really don't know.
12589# 'pass_all' -- all dependencies passed with no checks.
12590# 'test_compile' -- check by making test program.
12591# 'file_magic [[regex]]' -- check by looking for files in library path
12592# that responds to the $file_magic_cmd with a given extended regex.
12593# If you have 'file' or equivalent on your system and you're not sure
12594# whether 'pass_all' will *always* work, you probably want this one.
12595
12596case $host_os in
12597aix[4-9]*)
12598  lt_cv_deplibs_check_method=pass_all
12599  ;;
12600
12601beos*)
12602  lt_cv_deplibs_check_method=pass_all
12603  ;;
12604
12605bsdi[45]*)
12606  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12607  lt_cv_file_magic_cmd='$FILECMD -L'
12608  lt_cv_file_magic_test_file=/shlib/libc.so
12609  ;;
12610
12611cygwin*)
12612  # func_win32_libid is a shell function defined in ltmain.sh
12613  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12614  lt_cv_file_magic_cmd='func_win32_libid'
12615  ;;
12616
12617mingw* | pw32*)
12618  # Base MSYS/MinGW do not provide the 'file' command needed by
12619  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12620  # unless we find 'file', for example because we are cross-compiling.
12621  if ( file / ) >/dev/null 2>&1; then
12622    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12623    lt_cv_file_magic_cmd='func_win32_libid'
12624  else
12625    # Keep this pattern in sync with the one in func_win32_libid.
12626    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12627    lt_cv_file_magic_cmd='$OBJDUMP -f'
12628  fi
12629  ;;
12630
12631cegcc*)
12632  # use the weaker test based on 'objdump'. See mingw*.
12633  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12634  lt_cv_file_magic_cmd='$OBJDUMP -f'
12635  ;;
12636
12637darwin* | rhapsody*)
12638  lt_cv_deplibs_check_method=pass_all
12639  ;;
12640
12641freebsd* | dragonfly* | midnightbsd*)
12642  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12643    case $host_cpu in
12644    i*86 )
12645      # Not sure whether the presence of OpenBSD here was a mistake.
12646      # Let's accept both of them until this is cleared up.
12647      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12648      lt_cv_file_magic_cmd=$FILECMD
12649      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12650      ;;
12651    esac
12652  else
12653    lt_cv_deplibs_check_method=pass_all
12654  fi
12655  ;;
12656
12657haiku*)
12658  lt_cv_deplibs_check_method=pass_all
12659  ;;
12660
12661hpux10.20* | hpux11*)
12662  lt_cv_file_magic_cmd=$FILECMD
12663  case $host_cpu in
12664  ia64*)
12665    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12666    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12667    ;;
12668  hppa*64*)
12669    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]'
12670    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12671    ;;
12672  *)
12673    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12674    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12675    ;;
12676  esac
12677  ;;
12678
12679interix[3-9]*)
12680  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12681  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12682  ;;
12683
12684irix5* | irix6* | nonstopux*)
12685  case $LD in
12686  *-32|*"-32 ") libmagic=32-bit;;
12687  *-n32|*"-n32 ") libmagic=N32;;
12688  *-64|*"-64 ") libmagic=64-bit;;
12689  *) libmagic=never-match;;
12690  esac
12691  lt_cv_deplibs_check_method=pass_all
12692  ;;
12693
12694# This must be glibc/ELF.
12695linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12696  lt_cv_deplibs_check_method=pass_all
12697  ;;
12698
12699netbsd*)
12700  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12701    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12702  else
12703    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12704  fi
12705  ;;
12706
12707newos6*)
12708  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12709  lt_cv_file_magic_cmd=$FILECMD
12710  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12711  ;;
12712
12713*nto* | *qnx*)
12714  lt_cv_deplibs_check_method=pass_all
12715  ;;
12716
12717openbsd* | bitrig*)
12718  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12719    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12720  else
12721    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12722  fi
12723  ;;
12724
12725osf3* | osf4* | osf5*)
12726  lt_cv_deplibs_check_method=pass_all
12727  ;;
12728
12729rdos*)
12730  lt_cv_deplibs_check_method=pass_all
12731  ;;
12732
12733solaris*)
12734  lt_cv_deplibs_check_method=pass_all
12735  ;;
12736
12737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12738  lt_cv_deplibs_check_method=pass_all
12739  ;;
12740
12741sysv4 | sysv4.3*)
12742  case $host_vendor in
12743  motorola)
12744    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]'
12745    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12746    ;;
12747  ncr)
12748    lt_cv_deplibs_check_method=pass_all
12749    ;;
12750  sequent)
12751    lt_cv_file_magic_cmd='/bin/file'
12752    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12753    ;;
12754  sni)
12755    lt_cv_file_magic_cmd='/bin/file'
12756    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12757    lt_cv_file_magic_test_file=/lib/libc.so
12758    ;;
12759  siemens)
12760    lt_cv_deplibs_check_method=pass_all
12761    ;;
12762  pc)
12763    lt_cv_deplibs_check_method=pass_all
12764    ;;
12765  esac
12766  ;;
12767
12768tpf*)
12769  lt_cv_deplibs_check_method=pass_all
12770  ;;
12771os2*)
12772  lt_cv_deplibs_check_method=pass_all
12773  ;;
12774esac
12775
12776fi
12777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12778printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12779
12780file_magic_glob=
12781want_nocaseglob=no
12782if test "$build" = "$host"; then
12783  case $host_os in
12784  mingw* | pw32*)
12785    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12786      want_nocaseglob=yes
12787    else
12788      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12789    fi
12790    ;;
12791  esac
12792fi
12793
12794file_magic_cmd=$lt_cv_file_magic_cmd
12795deplibs_check_method=$lt_cv_deplibs_check_method
12796test -z "$deplibs_check_method" && deplibs_check_method=unknown
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819if test -n "$ac_tool_prefix"; then
12820  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12821set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823printf %s "checking for $ac_word... " >&6; }
12824if test ${ac_cv_prog_DLLTOOL+y}
12825then :
12826  printf %s "(cached) " >&6
12827else $as_nop
12828  if test -n "$DLLTOOL"; then
12829  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12830else
12831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832for as_dir in $PATH
12833do
12834  IFS=$as_save_IFS
12835  case $as_dir in #(((
12836    '') as_dir=./ ;;
12837    */) ;;
12838    *) as_dir=$as_dir/ ;;
12839  esac
12840    for ac_exec_ext in '' $ac_executable_extensions; do
12841  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12842    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12843    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12844    break 2
12845  fi
12846done
12847  done
12848IFS=$as_save_IFS
12849
12850fi
12851fi
12852DLLTOOL=$ac_cv_prog_DLLTOOL
12853if test -n "$DLLTOOL"; then
12854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12855printf "%s\n" "$DLLTOOL" >&6; }
12856else
12857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858printf "%s\n" "no" >&6; }
12859fi
12860
12861
12862fi
12863if test -z "$ac_cv_prog_DLLTOOL"; then
12864  ac_ct_DLLTOOL=$DLLTOOL
12865  # Extract the first word of "dlltool", so it can be a program name with args.
12866set dummy dlltool; ac_word=$2
12867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868printf %s "checking for $ac_word... " >&6; }
12869if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12870then :
12871  printf %s "(cached) " >&6
12872else $as_nop
12873  if test -n "$ac_ct_DLLTOOL"; then
12874  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12875else
12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879  IFS=$as_save_IFS
12880  case $as_dir in #(((
12881    '') as_dir=./ ;;
12882    */) ;;
12883    *) as_dir=$as_dir/ ;;
12884  esac
12885    for ac_exec_ext in '' $ac_executable_extensions; do
12886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12887    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12889    break 2
12890  fi
12891done
12892  done
12893IFS=$as_save_IFS
12894
12895fi
12896fi
12897ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12898if test -n "$ac_ct_DLLTOOL"; then
12899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12900printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12901else
12902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903printf "%s\n" "no" >&6; }
12904fi
12905
12906  if test "x$ac_ct_DLLTOOL" = x; then
12907    DLLTOOL="false"
12908  else
12909    case $cross_compiling:$ac_tool_warned in
12910yes:)
12911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12912printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12913ac_tool_warned=yes ;;
12914esac
12915    DLLTOOL=$ac_ct_DLLTOOL
12916  fi
12917else
12918  DLLTOOL="$ac_cv_prog_DLLTOOL"
12919fi
12920
12921test -z "$DLLTOOL" && DLLTOOL=dlltool
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12933printf %s "checking how to associate runtime and link libraries... " >&6; }
12934if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12935then :
12936  printf %s "(cached) " >&6
12937else $as_nop
12938  lt_cv_sharedlib_from_linklib_cmd='unknown'
12939
12940case $host_os in
12941cygwin* | mingw* | pw32* | cegcc*)
12942  # two different shell functions defined in ltmain.sh;
12943  # decide which one to use based on capabilities of $DLLTOOL
12944  case `$DLLTOOL --help 2>&1` in
12945  *--identify-strict*)
12946    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12947    ;;
12948  *)
12949    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12950    ;;
12951  esac
12952  ;;
12953*)
12954  # fallback: assume linklib IS sharedlib
12955  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12956  ;;
12957esac
12958
12959fi
12960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12961printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12962sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12963test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12964
12965
12966
12967
12968
12969
12970
12971if test -n "$ac_tool_prefix"; then
12972  for ac_prog in ar
12973  do
12974    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977printf %s "checking for $ac_word... " >&6; }
12978if test ${ac_cv_prog_AR+y}
12979then :
12980  printf %s "(cached) " >&6
12981else $as_nop
12982  if test -n "$AR"; then
12983  ac_cv_prog_AR="$AR" # Let the user override the test.
12984else
12985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986for as_dir in $PATH
12987do
12988  IFS=$as_save_IFS
12989  case $as_dir in #(((
12990    '') as_dir=./ ;;
12991    */) ;;
12992    *) as_dir=$as_dir/ ;;
12993  esac
12994    for ac_exec_ext in '' $ac_executable_extensions; do
12995  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12996    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12997    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12998    break 2
12999  fi
13000done
13001  done
13002IFS=$as_save_IFS
13003
13004fi
13005fi
13006AR=$ac_cv_prog_AR
13007if test -n "$AR"; then
13008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13009printf "%s\n" "$AR" >&6; }
13010else
13011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012printf "%s\n" "no" >&6; }
13013fi
13014
13015
13016    test -n "$AR" && break
13017  done
13018fi
13019if test -z "$AR"; then
13020  ac_ct_AR=$AR
13021  for ac_prog in ar
13022do
13023  # Extract the first word of "$ac_prog", so it can be a program name with args.
13024set dummy $ac_prog; ac_word=$2
13025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13026printf %s "checking for $ac_word... " >&6; }
13027if test ${ac_cv_prog_ac_ct_AR+y}
13028then :
13029  printf %s "(cached) " >&6
13030else $as_nop
13031  if test -n "$ac_ct_AR"; then
13032  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13033else
13034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035for as_dir in $PATH
13036do
13037  IFS=$as_save_IFS
13038  case $as_dir in #(((
13039    '') as_dir=./ ;;
13040    */) ;;
13041    *) as_dir=$as_dir/ ;;
13042  esac
13043    for ac_exec_ext in '' $ac_executable_extensions; do
13044  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13045    ac_cv_prog_ac_ct_AR="$ac_prog"
13046    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13047    break 2
13048  fi
13049done
13050  done
13051IFS=$as_save_IFS
13052
13053fi
13054fi
13055ac_ct_AR=$ac_cv_prog_ac_ct_AR
13056if test -n "$ac_ct_AR"; then
13057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13058printf "%s\n" "$ac_ct_AR" >&6; }
13059else
13060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061printf "%s\n" "no" >&6; }
13062fi
13063
13064
13065  test -n "$ac_ct_AR" && break
13066done
13067
13068  if test "x$ac_ct_AR" = x; then
13069    AR="false"
13070  else
13071    case $cross_compiling:$ac_tool_warned in
13072yes:)
13073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13074printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13075ac_tool_warned=yes ;;
13076esac
13077    AR=$ac_ct_AR
13078  fi
13079fi
13080
13081: ${AR=ar}
13082
13083
13084
13085
13086
13087
13088# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13089# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13090# higher priority because thats what people were doing historically (setting
13091# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13092# variable obsoleted/removed.
13093
13094test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13095lt_ar_flags=$AR_FLAGS
13096
13097
13098
13099
13100
13101
13102# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13103# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13104
13105
13106
13107
13108
13109
13110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13111printf %s "checking for archiver @FILE support... " >&6; }
13112if test ${lt_cv_ar_at_file+y}
13113then :
13114  printf %s "(cached) " >&6
13115else $as_nop
13116  lt_cv_ar_at_file=no
13117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118/* end confdefs.h.  */
13119
13120int
13121main (void)
13122{
13123
13124  ;
13125  return 0;
13126}
13127_ACEOF
13128if ac_fn_c_try_compile "$LINENO"
13129then :
13130  echo conftest.$ac_objext > conftest.lst
13131      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13132      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13133  (eval $lt_ar_try) 2>&5
13134  ac_status=$?
13135  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13136  test $ac_status = 0; }
13137      if test 0 -eq "$ac_status"; then
13138	# Ensure the archiver fails upon bogus file names.
13139	rm -f conftest.$ac_objext libconftest.a
13140	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13141  (eval $lt_ar_try) 2>&5
13142  ac_status=$?
13143  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144  test $ac_status = 0; }
13145	if test 0 -ne "$ac_status"; then
13146          lt_cv_ar_at_file=@
13147        fi
13148      fi
13149      rm -f conftest.* libconftest.a
13150
13151fi
13152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13153
13154fi
13155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13156printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13157
13158if test no = "$lt_cv_ar_at_file"; then
13159  archiver_list_spec=
13160else
13161  archiver_list_spec=$lt_cv_ar_at_file
13162fi
13163
13164
13165
13166
13167
13168
13169
13170if test -n "$ac_tool_prefix"; then
13171  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13172set dummy ${ac_tool_prefix}strip; ac_word=$2
13173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174printf %s "checking for $ac_word... " >&6; }
13175if test ${ac_cv_prog_STRIP+y}
13176then :
13177  printf %s "(cached) " >&6
13178else $as_nop
13179  if test -n "$STRIP"; then
13180  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13181else
13182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185  IFS=$as_save_IFS
13186  case $as_dir in #(((
13187    '') as_dir=./ ;;
13188    */) ;;
13189    *) as_dir=$as_dir/ ;;
13190  esac
13191    for ac_exec_ext in '' $ac_executable_extensions; do
13192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13193    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13195    break 2
13196  fi
13197done
13198  done
13199IFS=$as_save_IFS
13200
13201fi
13202fi
13203STRIP=$ac_cv_prog_STRIP
13204if test -n "$STRIP"; then
13205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13206printf "%s\n" "$STRIP" >&6; }
13207else
13208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209printf "%s\n" "no" >&6; }
13210fi
13211
13212
13213fi
13214if test -z "$ac_cv_prog_STRIP"; then
13215  ac_ct_STRIP=$STRIP
13216  # Extract the first word of "strip", so it can be a program name with args.
13217set dummy strip; ac_word=$2
13218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219printf %s "checking for $ac_word... " >&6; }
13220if test ${ac_cv_prog_ac_ct_STRIP+y}
13221then :
13222  printf %s "(cached) " >&6
13223else $as_nop
13224  if test -n "$ac_ct_STRIP"; then
13225  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13226else
13227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228for as_dir in $PATH
13229do
13230  IFS=$as_save_IFS
13231  case $as_dir in #(((
13232    '') as_dir=./ ;;
13233    */) ;;
13234    *) as_dir=$as_dir/ ;;
13235  esac
13236    for ac_exec_ext in '' $ac_executable_extensions; do
13237  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13238    ac_cv_prog_ac_ct_STRIP="strip"
13239    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13240    break 2
13241  fi
13242done
13243  done
13244IFS=$as_save_IFS
13245
13246fi
13247fi
13248ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13249if test -n "$ac_ct_STRIP"; then
13250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13251printf "%s\n" "$ac_ct_STRIP" >&6; }
13252else
13253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254printf "%s\n" "no" >&6; }
13255fi
13256
13257  if test "x$ac_ct_STRIP" = x; then
13258    STRIP=":"
13259  else
13260    case $cross_compiling:$ac_tool_warned in
13261yes:)
13262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13263printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13264ac_tool_warned=yes ;;
13265esac
13266    STRIP=$ac_ct_STRIP
13267  fi
13268else
13269  STRIP="$ac_cv_prog_STRIP"
13270fi
13271
13272test -z "$STRIP" && STRIP=:
13273
13274
13275
13276
13277
13278
13279if test -n "$ac_tool_prefix"; then
13280  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13281set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13283printf %s "checking for $ac_word... " >&6; }
13284if test ${ac_cv_prog_RANLIB+y}
13285then :
13286  printf %s "(cached) " >&6
13287else $as_nop
13288  if test -n "$RANLIB"; then
13289  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13290else
13291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292for as_dir in $PATH
13293do
13294  IFS=$as_save_IFS
13295  case $as_dir in #(((
13296    '') as_dir=./ ;;
13297    */) ;;
13298    *) as_dir=$as_dir/ ;;
13299  esac
13300    for ac_exec_ext in '' $ac_executable_extensions; do
13301  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13302    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13303    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13304    break 2
13305  fi
13306done
13307  done
13308IFS=$as_save_IFS
13309
13310fi
13311fi
13312RANLIB=$ac_cv_prog_RANLIB
13313if test -n "$RANLIB"; then
13314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13315printf "%s\n" "$RANLIB" >&6; }
13316else
13317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318printf "%s\n" "no" >&6; }
13319fi
13320
13321
13322fi
13323if test -z "$ac_cv_prog_RANLIB"; then
13324  ac_ct_RANLIB=$RANLIB
13325  # Extract the first word of "ranlib", so it can be a program name with args.
13326set dummy ranlib; ac_word=$2
13327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328printf %s "checking for $ac_word... " >&6; }
13329if test ${ac_cv_prog_ac_ct_RANLIB+y}
13330then :
13331  printf %s "(cached) " >&6
13332else $as_nop
13333  if test -n "$ac_ct_RANLIB"; then
13334  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13335else
13336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337for as_dir in $PATH
13338do
13339  IFS=$as_save_IFS
13340  case $as_dir in #(((
13341    '') as_dir=./ ;;
13342    */) ;;
13343    *) as_dir=$as_dir/ ;;
13344  esac
13345    for ac_exec_ext in '' $ac_executable_extensions; do
13346  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13347    ac_cv_prog_ac_ct_RANLIB="ranlib"
13348    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13349    break 2
13350  fi
13351done
13352  done
13353IFS=$as_save_IFS
13354
13355fi
13356fi
13357ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13358if test -n "$ac_ct_RANLIB"; then
13359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13360printf "%s\n" "$ac_ct_RANLIB" >&6; }
13361else
13362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363printf "%s\n" "no" >&6; }
13364fi
13365
13366  if test "x$ac_ct_RANLIB" = x; then
13367    RANLIB=":"
13368  else
13369    case $cross_compiling:$ac_tool_warned in
13370yes:)
13371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13372printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13373ac_tool_warned=yes ;;
13374esac
13375    RANLIB=$ac_ct_RANLIB
13376  fi
13377else
13378  RANLIB="$ac_cv_prog_RANLIB"
13379fi
13380
13381test -z "$RANLIB" && RANLIB=:
13382
13383
13384
13385
13386
13387
13388# Determine commands to create old-style static archives.
13389old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13390old_postinstall_cmds='chmod 644 $oldlib'
13391old_postuninstall_cmds=
13392
13393if test -n "$RANLIB"; then
13394  case $host_os in
13395  bitrig* | openbsd*)
13396    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13397    ;;
13398  *)
13399    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13400    ;;
13401  esac
13402  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13403fi
13404
13405case $host_os in
13406  darwin*)
13407    lock_old_archive_extraction=yes ;;
13408  *)
13409    lock_old_archive_extraction=no ;;
13410esac
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450# If no C compiler was specified, use CC.
13451LTCC=${LTCC-"$CC"}
13452
13453# If no C compiler flags were specified, use CFLAGS.
13454LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13455
13456# Allow CC to be a program name with arguments.
13457compiler=$CC
13458
13459
13460# Check for command to grab the raw symbol name followed by C symbol from nm.
13461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13462printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13463if test ${lt_cv_sys_global_symbol_pipe+y}
13464then :
13465  printf %s "(cached) " >&6
13466else $as_nop
13467
13468# These are sane defaults that work on at least a few old systems.
13469# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13470
13471# Character class describing NM global symbol codes.
13472symcode='[BCDEGRST]'
13473
13474# Regexp to match symbols that can be accessed directly from C.
13475sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13476
13477# Define system-specific variables.
13478case $host_os in
13479aix*)
13480  symcode='[BCDT]'
13481  ;;
13482cygwin* | mingw* | pw32* | cegcc*)
13483  symcode='[ABCDGISTW]'
13484  ;;
13485hpux*)
13486  if test ia64 = "$host_cpu"; then
13487    symcode='[ABCDEGRST]'
13488  fi
13489  ;;
13490irix* | nonstopux*)
13491  symcode='[BCDEGRST]'
13492  ;;
13493osf*)
13494  symcode='[BCDEGQRST]'
13495  ;;
13496solaris*)
13497  symcode='[BDRT]'
13498  ;;
13499sco3.2v5*)
13500  symcode='[DT]'
13501  ;;
13502sysv4.2uw2*)
13503  symcode='[DT]'
13504  ;;
13505sysv5* | sco5v6* | unixware* | OpenUNIX*)
13506  symcode='[ABDT]'
13507  ;;
13508sysv4)
13509  symcode='[DFNSTU]'
13510  ;;
13511esac
13512
13513# If we're using GNU nm, then use its standard symbol codes.
13514case `$NM -V 2>&1` in
13515*GNU* | *'with BFD'*)
13516  symcode='[ABCDGIRSTW]' ;;
13517esac
13518
13519if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13520  # Gets list of data symbols to import.
13521  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13522  # Adjust the below global symbol transforms to fixup imported variables.
13523  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13524  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13525  lt_c_name_lib_hook="\
13526  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13527  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13528else
13529  # Disable hooks by default.
13530  lt_cv_sys_global_symbol_to_import=
13531  lt_cdecl_hook=
13532  lt_c_name_hook=
13533  lt_c_name_lib_hook=
13534fi
13535
13536# Transform an extracted symbol line into a proper C declaration.
13537# Some systems (esp. on ia64) link data and code symbols differently,
13538# so use this general approach.
13539lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13540$lt_cdecl_hook\
13541" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13542" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13543
13544# Transform an extracted symbol line into symbol name and symbol address
13545lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13546$lt_c_name_hook\
13547" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13548" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13549
13550# Transform an extracted symbol line into symbol name with lib prefix and
13551# symbol address.
13552lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13553$lt_c_name_lib_hook\
13554" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13555" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13556" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13557
13558# Handle CRLF in mingw tool chain
13559opt_cr=
13560case $build_os in
13561mingw*)
13562  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13563  ;;
13564esac
13565
13566# Try without a prefix underscore, then with it.
13567for ac_symprfx in "" "_"; do
13568
13569  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13570  symxfrm="\\1 $ac_symprfx\\2 \\2"
13571
13572  # Write the raw and C identifiers.
13573  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13574    # Fake it for dumpbin and say T for any non-static function,
13575    # D for any global variable and I for any imported variable.
13576    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13577    # which start with @ or ?.
13578    lt_cv_sys_global_symbol_pipe="$AWK '"\
13579"     {last_section=section; section=\$ 3};"\
13580"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13581"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13582"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13583"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13584"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13585"     \$ 0!~/External *\|/{next};"\
13586"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13587"     {if(hide[section]) next};"\
13588"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13589"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13590"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13591"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13592"     ' prfx=^$ac_symprfx"
13593  else
13594    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13595  fi
13596  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13597
13598  # Check to see that the pipe works correctly.
13599  pipe_works=no
13600
13601  rm -f conftest*
13602  cat > conftest.$ac_ext <<_LT_EOF
13603#ifdef __cplusplus
13604extern "C" {
13605#endif
13606char nm_test_var;
13607void nm_test_func(void);
13608void nm_test_func(void){}
13609#ifdef __cplusplus
13610}
13611#endif
13612int main(){nm_test_var='a';nm_test_func();return(0);}
13613_LT_EOF
13614
13615  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13616  (eval $ac_compile) 2>&5
13617  ac_status=$?
13618  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13619  test $ac_status = 0; }; then
13620    # Now try to grab the symbols.
13621    nlist=conftest.nm
13622    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13623  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13624  ac_status=$?
13625  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626  test $ac_status = 0; } && test -s "$nlist"; then
13627      # Try sorting and uniquifying the output.
13628      if sort "$nlist" | uniq > "$nlist"T; then
13629	mv -f "$nlist"T "$nlist"
13630      else
13631	rm -f "$nlist"T
13632      fi
13633
13634      # Make sure that we snagged all the symbols we need.
13635      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13636	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13637	  cat <<_LT_EOF > conftest.$ac_ext
13638/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13639#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13640/* DATA imports from DLLs on WIN32 can't be const, because runtime
13641   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13642# define LT_DLSYM_CONST
13643#elif defined __osf__
13644/* This system does not cope well with relocations in const data.  */
13645# define LT_DLSYM_CONST
13646#else
13647# define LT_DLSYM_CONST const
13648#endif
13649
13650#ifdef __cplusplus
13651extern "C" {
13652#endif
13653
13654_LT_EOF
13655	  # Now generate the symbol file.
13656	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13657
13658	  cat <<_LT_EOF >> conftest.$ac_ext
13659
13660/* The mapping between symbol names and symbols.  */
13661LT_DLSYM_CONST struct {
13662  const char *name;
13663  void       *address;
13664}
13665lt__PROGRAM__LTX_preloaded_symbols[] =
13666{
13667  { "@PROGRAM@", (void *) 0 },
13668_LT_EOF
13669	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13670	  cat <<\_LT_EOF >> conftest.$ac_ext
13671  {0, (void *) 0}
13672};
13673
13674/* This works around a problem in FreeBSD linker */
13675#ifdef FREEBSD_WORKAROUND
13676static const void *lt_preloaded_setup() {
13677  return lt__PROGRAM__LTX_preloaded_symbols;
13678}
13679#endif
13680
13681#ifdef __cplusplus
13682}
13683#endif
13684_LT_EOF
13685	  # Now try linking the two files.
13686	  mv conftest.$ac_objext conftstm.$ac_objext
13687	  lt_globsym_save_LIBS=$LIBS
13688	  lt_globsym_save_CFLAGS=$CFLAGS
13689	  LIBS=conftstm.$ac_objext
13690	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13691	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13692  (eval $ac_link) 2>&5
13693  ac_status=$?
13694  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13695  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13696	    pipe_works=yes
13697	  fi
13698	  LIBS=$lt_globsym_save_LIBS
13699	  CFLAGS=$lt_globsym_save_CFLAGS
13700	else
13701	  echo "cannot find nm_test_func in $nlist" >&5
13702	fi
13703      else
13704	echo "cannot find nm_test_var in $nlist" >&5
13705      fi
13706    else
13707      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13708    fi
13709  else
13710    echo "$progname: failed program was:" >&5
13711    cat conftest.$ac_ext >&5
13712  fi
13713  rm -rf conftest* conftst*
13714
13715  # Do not use the global_symbol_pipe unless it works.
13716  if test yes = "$pipe_works"; then
13717    break
13718  else
13719    lt_cv_sys_global_symbol_pipe=
13720  fi
13721done
13722
13723fi
13724
13725if test -z "$lt_cv_sys_global_symbol_pipe"; then
13726  lt_cv_sys_global_symbol_to_cdecl=
13727fi
13728if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13730printf "%s\n" "failed" >&6; }
13731else
13732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13733printf "%s\n" "ok" >&6; }
13734fi
13735
13736# Response file support.
13737if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13738  nm_file_list_spec='@'
13739elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13740  nm_file_list_spec='@'
13741fi
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13780printf %s "checking for sysroot... " >&6; }
13781
13782# Check whether --with-sysroot was given.
13783if test ${with_sysroot+y}
13784then :
13785  withval=$with_sysroot;
13786else $as_nop
13787  with_sysroot=no
13788fi
13789
13790
13791lt_sysroot=
13792case $with_sysroot in #(
13793 yes)
13794   if test yes = "$GCC"; then
13795     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13796   fi
13797   ;; #(
13798 /*)
13799   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13800   ;; #(
13801 no|'')
13802   ;; #(
13803 *)
13804   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13805printf "%s\n" "$with_sysroot" >&6; }
13806   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13807   ;;
13808esac
13809
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13811printf "%s\n" "${lt_sysroot:-no}" >&6; }
13812
13813
13814
13815
13816
13817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13818printf %s "checking for a working dd... " >&6; }
13819if test ${ac_cv_path_lt_DD+y}
13820then :
13821  printf %s "(cached) " >&6
13822else $as_nop
13823  printf 0123456789abcdef0123456789abcdef >conftest.i
13824cat conftest.i conftest.i >conftest2.i
13825: ${lt_DD:=$DD}
13826if test -z "$lt_DD"; then
13827  ac_path_lt_DD_found=false
13828  # Loop through the user's path and test for each of PROGNAME-LIST
13829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830for as_dir in $PATH
13831do
13832  IFS=$as_save_IFS
13833  case $as_dir in #(((
13834    '') as_dir=./ ;;
13835    */) ;;
13836    *) as_dir=$as_dir/ ;;
13837  esac
13838    for ac_prog in dd
13839   do
13840    for ac_exec_ext in '' $ac_executable_extensions; do
13841      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13842      as_fn_executable_p "$ac_path_lt_DD" || continue
13843if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13844  cmp -s conftest.i conftest.out \
13845  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13846fi
13847      $ac_path_lt_DD_found && break 3
13848    done
13849  done
13850  done
13851IFS=$as_save_IFS
13852  if test -z "$ac_cv_path_lt_DD"; then
13853    :
13854  fi
13855else
13856  ac_cv_path_lt_DD=$lt_DD
13857fi
13858
13859rm -f conftest.i conftest2.i conftest.out
13860fi
13861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13862printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13863
13864
13865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13866printf %s "checking how to truncate binary pipes... " >&6; }
13867if test ${lt_cv_truncate_bin+y}
13868then :
13869  printf %s "(cached) " >&6
13870else $as_nop
13871  printf 0123456789abcdef0123456789abcdef >conftest.i
13872cat conftest.i conftest.i >conftest2.i
13873lt_cv_truncate_bin=
13874if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13875  cmp -s conftest.i conftest.out \
13876  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13877fi
13878rm -f conftest.i conftest2.i conftest.out
13879test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13880fi
13881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13882printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13883
13884
13885
13886
13887
13888
13889
13890# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13891func_cc_basename ()
13892{
13893    for cc_temp in $*""; do
13894      case $cc_temp in
13895        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13896        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13897        \-*) ;;
13898        *) break;;
13899      esac
13900    done
13901    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13902}
13903
13904# Check whether --enable-libtool-lock was given.
13905if test ${enable_libtool_lock+y}
13906then :
13907  enableval=$enable_libtool_lock;
13908fi
13909
13910test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13911
13912# Some flags need to be propagated to the compiler or linker for good
13913# libtool support.
13914case $host in
13915ia64-*-hpux*)
13916  # Find out what ABI is being produced by ac_compile, and set mode
13917  # options accordingly.
13918  echo 'int i;' > conftest.$ac_ext
13919  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13920  (eval $ac_compile) 2>&5
13921  ac_status=$?
13922  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13923  test $ac_status = 0; }; then
13924    case `$FILECMD conftest.$ac_objext` in
13925      *ELF-32*)
13926	HPUX_IA64_MODE=32
13927	;;
13928      *ELF-64*)
13929	HPUX_IA64_MODE=64
13930	;;
13931    esac
13932  fi
13933  rm -rf conftest*
13934  ;;
13935*-*-irix6*)
13936  # Find out what ABI is being produced by ac_compile, and set linker
13937  # options accordingly.
13938  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13939  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13940  (eval $ac_compile) 2>&5
13941  ac_status=$?
13942  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13943  test $ac_status = 0; }; then
13944    if test yes = "$lt_cv_prog_gnu_ld"; then
13945      case `$FILECMD conftest.$ac_objext` in
13946	*32-bit*)
13947	  LD="${LD-ld} -melf32bsmip"
13948	  ;;
13949	*N32*)
13950	  LD="${LD-ld} -melf32bmipn32"
13951	  ;;
13952	*64-bit*)
13953	  LD="${LD-ld} -melf64bmip"
13954	;;
13955      esac
13956    else
13957      case `$FILECMD conftest.$ac_objext` in
13958	*32-bit*)
13959	  LD="${LD-ld} -32"
13960	  ;;
13961	*N32*)
13962	  LD="${LD-ld} -n32"
13963	  ;;
13964	*64-bit*)
13965	  LD="${LD-ld} -64"
13966	  ;;
13967      esac
13968    fi
13969  fi
13970  rm -rf conftest*
13971  ;;
13972
13973mips64*-*linux*)
13974  # Find out what ABI is being produced by ac_compile, and set linker
13975  # options accordingly.
13976  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13977  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13978  (eval $ac_compile) 2>&5
13979  ac_status=$?
13980  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13981  test $ac_status = 0; }; then
13982    emul=elf
13983    case `$FILECMD conftest.$ac_objext` in
13984      *32-bit*)
13985	emul="${emul}32"
13986	;;
13987      *64-bit*)
13988	emul="${emul}64"
13989	;;
13990    esac
13991    case `$FILECMD conftest.$ac_objext` in
13992      *MSB*)
13993	emul="${emul}btsmip"
13994	;;
13995      *LSB*)
13996	emul="${emul}ltsmip"
13997	;;
13998    esac
13999    case `$FILECMD conftest.$ac_objext` in
14000      *N32*)
14001	emul="${emul}n32"
14002	;;
14003    esac
14004    LD="${LD-ld} -m $emul"
14005  fi
14006  rm -rf conftest*
14007  ;;
14008
14009x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14010s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14011  # Find out what ABI is being produced by ac_compile, and set linker
14012  # options accordingly.  Note that the listed cases only cover the
14013  # situations where additional linker options are needed (such as when
14014  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14015  # vice versa); the common cases where no linker options are needed do
14016  # not appear in the list.
14017  echo 'int i;' > conftest.$ac_ext
14018  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14019  (eval $ac_compile) 2>&5
14020  ac_status=$?
14021  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022  test $ac_status = 0; }; then
14023    case `$FILECMD conftest.o` in
14024      *32-bit*)
14025	case $host in
14026	  x86_64-*kfreebsd*-gnu)
14027	    LD="${LD-ld} -m elf_i386_fbsd"
14028	    ;;
14029	  x86_64-*linux*)
14030	    case `$FILECMD conftest.o` in
14031	      *x86-64*)
14032		LD="${LD-ld} -m elf32_x86_64"
14033		;;
14034	      *)
14035		LD="${LD-ld} -m elf_i386"
14036		;;
14037	    esac
14038	    ;;
14039	  powerpc64le-*linux*)
14040	    LD="${LD-ld} -m elf32lppclinux"
14041	    ;;
14042	  powerpc64-*linux*)
14043	    LD="${LD-ld} -m elf32ppclinux"
14044	    ;;
14045	  s390x-*linux*)
14046	    LD="${LD-ld} -m elf_s390"
14047	    ;;
14048	  sparc64-*linux*)
14049	    LD="${LD-ld} -m elf32_sparc"
14050	    ;;
14051	esac
14052	;;
14053      *64-bit*)
14054	case $host in
14055	  x86_64-*kfreebsd*-gnu)
14056	    LD="${LD-ld} -m elf_x86_64_fbsd"
14057	    ;;
14058	  x86_64-*linux*)
14059	    LD="${LD-ld} -m elf_x86_64"
14060	    ;;
14061	  powerpcle-*linux*)
14062	    LD="${LD-ld} -m elf64lppc"
14063	    ;;
14064	  powerpc-*linux*)
14065	    LD="${LD-ld} -m elf64ppc"
14066	    ;;
14067	  s390*-*linux*|s390*-*tpf*)
14068	    LD="${LD-ld} -m elf64_s390"
14069	    ;;
14070	  sparc*-*linux*)
14071	    LD="${LD-ld} -m elf64_sparc"
14072	    ;;
14073	esac
14074	;;
14075    esac
14076  fi
14077  rm -rf conftest*
14078  ;;
14079
14080*-*-sco3.2v5*)
14081  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14082  SAVE_CFLAGS=$CFLAGS
14083  CFLAGS="$CFLAGS -belf"
14084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14085printf %s "checking whether the C compiler needs -belf... " >&6; }
14086if test ${lt_cv_cc_needs_belf+y}
14087then :
14088  printf %s "(cached) " >&6
14089else $as_nop
14090  ac_ext=c
14091ac_cpp='$CPP $CPPFLAGS'
14092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14094ac_compiler_gnu=$ac_cv_c_compiler_gnu
14095
14096     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097/* end confdefs.h.  */
14098
14099int
14100main (void)
14101{
14102
14103  ;
14104  return 0;
14105}
14106_ACEOF
14107if ac_fn_c_try_link "$LINENO"
14108then :
14109  lt_cv_cc_needs_belf=yes
14110else $as_nop
14111  lt_cv_cc_needs_belf=no
14112fi
14113rm -f core conftest.err conftest.$ac_objext conftest.beam \
14114    conftest$ac_exeext conftest.$ac_ext
14115     ac_ext=c
14116ac_cpp='$CPP $CPPFLAGS'
14117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14119ac_compiler_gnu=$ac_cv_c_compiler_gnu
14120
14121fi
14122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14123printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14124  if test yes != "$lt_cv_cc_needs_belf"; then
14125    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14126    CFLAGS=$SAVE_CFLAGS
14127  fi
14128  ;;
14129*-*solaris*)
14130  # Find out what ABI is being produced by ac_compile, and set linker
14131  # options accordingly.
14132  echo 'int i;' > conftest.$ac_ext
14133  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14134  (eval $ac_compile) 2>&5
14135  ac_status=$?
14136  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14137  test $ac_status = 0; }; then
14138    case `$FILECMD conftest.o` in
14139    *64-bit*)
14140      case $lt_cv_prog_gnu_ld in
14141      yes*)
14142        case $host in
14143        i?86-*-solaris*|x86_64-*-solaris*)
14144          LD="${LD-ld} -m elf_x86_64"
14145          ;;
14146        sparc*-*-solaris*)
14147          LD="${LD-ld} -m elf64_sparc"
14148          ;;
14149        esac
14150        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14151        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14152          LD=${LD-ld}_sol2
14153        fi
14154        ;;
14155      *)
14156	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14157	  LD="${LD-ld} -64"
14158	fi
14159	;;
14160      esac
14161      ;;
14162    esac
14163  fi
14164  rm -rf conftest*
14165  ;;
14166esac
14167
14168need_locks=$enable_libtool_lock
14169
14170if test -n "$ac_tool_prefix"; then
14171  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14172set dummy ${ac_tool_prefix}mt; ac_word=$2
14173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14174printf %s "checking for $ac_word... " >&6; }
14175if test ${ac_cv_prog_MANIFEST_TOOL+y}
14176then :
14177  printf %s "(cached) " >&6
14178else $as_nop
14179  if test -n "$MANIFEST_TOOL"; then
14180  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14181else
14182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183for as_dir in $PATH
14184do
14185  IFS=$as_save_IFS
14186  case $as_dir in #(((
14187    '') as_dir=./ ;;
14188    */) ;;
14189    *) as_dir=$as_dir/ ;;
14190  esac
14191    for ac_exec_ext in '' $ac_executable_extensions; do
14192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14193    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14195    break 2
14196  fi
14197done
14198  done
14199IFS=$as_save_IFS
14200
14201fi
14202fi
14203MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14204if test -n "$MANIFEST_TOOL"; then
14205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14206printf "%s\n" "$MANIFEST_TOOL" >&6; }
14207else
14208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209printf "%s\n" "no" >&6; }
14210fi
14211
14212
14213fi
14214if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14215  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14216  # Extract the first word of "mt", so it can be a program name with args.
14217set dummy mt; ac_word=$2
14218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14219printf %s "checking for $ac_word... " >&6; }
14220if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14221then :
14222  printf %s "(cached) " >&6
14223else $as_nop
14224  if test -n "$ac_ct_MANIFEST_TOOL"; then
14225  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14226else
14227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228for as_dir in $PATH
14229do
14230  IFS=$as_save_IFS
14231  case $as_dir in #(((
14232    '') as_dir=./ ;;
14233    */) ;;
14234    *) as_dir=$as_dir/ ;;
14235  esac
14236    for ac_exec_ext in '' $ac_executable_extensions; do
14237  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14238    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14239    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14240    break 2
14241  fi
14242done
14243  done
14244IFS=$as_save_IFS
14245
14246fi
14247fi
14248ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14249if test -n "$ac_ct_MANIFEST_TOOL"; then
14250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14251printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14252else
14253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254printf "%s\n" "no" >&6; }
14255fi
14256
14257  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14258    MANIFEST_TOOL=":"
14259  else
14260    case $cross_compiling:$ac_tool_warned in
14261yes:)
14262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14263printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14264ac_tool_warned=yes ;;
14265esac
14266    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14267  fi
14268else
14269  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14270fi
14271
14272test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14274printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14275if test ${lt_cv_path_mainfest_tool+y}
14276then :
14277  printf %s "(cached) " >&6
14278else $as_nop
14279  lt_cv_path_mainfest_tool=no
14280  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14281  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14282  cat conftest.err >&5
14283  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14284    lt_cv_path_mainfest_tool=yes
14285  fi
14286  rm -f conftest*
14287fi
14288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14289printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14290if test yes != "$lt_cv_path_mainfest_tool"; then
14291  MANIFEST_TOOL=:
14292fi
14293
14294
14295
14296
14297
14298
14299  case $host_os in
14300    rhapsody* | darwin*)
14301    if test -n "$ac_tool_prefix"; then
14302  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14303set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14305printf %s "checking for $ac_word... " >&6; }
14306if test ${ac_cv_prog_DSYMUTIL+y}
14307then :
14308  printf %s "(cached) " >&6
14309else $as_nop
14310  if test -n "$DSYMUTIL"; then
14311  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14312else
14313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314for as_dir in $PATH
14315do
14316  IFS=$as_save_IFS
14317  case $as_dir in #(((
14318    '') as_dir=./ ;;
14319    */) ;;
14320    *) as_dir=$as_dir/ ;;
14321  esac
14322    for ac_exec_ext in '' $ac_executable_extensions; do
14323  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14324    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14325    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14326    break 2
14327  fi
14328done
14329  done
14330IFS=$as_save_IFS
14331
14332fi
14333fi
14334DSYMUTIL=$ac_cv_prog_DSYMUTIL
14335if test -n "$DSYMUTIL"; then
14336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14337printf "%s\n" "$DSYMUTIL" >&6; }
14338else
14339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340printf "%s\n" "no" >&6; }
14341fi
14342
14343
14344fi
14345if test -z "$ac_cv_prog_DSYMUTIL"; then
14346  ac_ct_DSYMUTIL=$DSYMUTIL
14347  # Extract the first word of "dsymutil", so it can be a program name with args.
14348set dummy dsymutil; ac_word=$2
14349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14350printf %s "checking for $ac_word... " >&6; }
14351if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14352then :
14353  printf %s "(cached) " >&6
14354else $as_nop
14355  if test -n "$ac_ct_DSYMUTIL"; then
14356  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14357else
14358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359for as_dir in $PATH
14360do
14361  IFS=$as_save_IFS
14362  case $as_dir in #(((
14363    '') as_dir=./ ;;
14364    */) ;;
14365    *) as_dir=$as_dir/ ;;
14366  esac
14367    for ac_exec_ext in '' $ac_executable_extensions; do
14368  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14369    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14370    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14371    break 2
14372  fi
14373done
14374  done
14375IFS=$as_save_IFS
14376
14377fi
14378fi
14379ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14380if test -n "$ac_ct_DSYMUTIL"; then
14381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14382printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14383else
14384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14385printf "%s\n" "no" >&6; }
14386fi
14387
14388  if test "x$ac_ct_DSYMUTIL" = x; then
14389    DSYMUTIL=":"
14390  else
14391    case $cross_compiling:$ac_tool_warned in
14392yes:)
14393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14394printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14395ac_tool_warned=yes ;;
14396esac
14397    DSYMUTIL=$ac_ct_DSYMUTIL
14398  fi
14399else
14400  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14401fi
14402
14403    if test -n "$ac_tool_prefix"; then
14404  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14405set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14407printf %s "checking for $ac_word... " >&6; }
14408if test ${ac_cv_prog_NMEDIT+y}
14409then :
14410  printf %s "(cached) " >&6
14411else $as_nop
14412  if test -n "$NMEDIT"; then
14413  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14414else
14415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416for as_dir in $PATH
14417do
14418  IFS=$as_save_IFS
14419  case $as_dir in #(((
14420    '') as_dir=./ ;;
14421    */) ;;
14422    *) as_dir=$as_dir/ ;;
14423  esac
14424    for ac_exec_ext in '' $ac_executable_extensions; do
14425  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14426    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14428    break 2
14429  fi
14430done
14431  done
14432IFS=$as_save_IFS
14433
14434fi
14435fi
14436NMEDIT=$ac_cv_prog_NMEDIT
14437if test -n "$NMEDIT"; then
14438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14439printf "%s\n" "$NMEDIT" >&6; }
14440else
14441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442printf "%s\n" "no" >&6; }
14443fi
14444
14445
14446fi
14447if test -z "$ac_cv_prog_NMEDIT"; then
14448  ac_ct_NMEDIT=$NMEDIT
14449  # Extract the first word of "nmedit", so it can be a program name with args.
14450set dummy nmedit; ac_word=$2
14451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14452printf %s "checking for $ac_word... " >&6; }
14453if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14454then :
14455  printf %s "(cached) " >&6
14456else $as_nop
14457  if test -n "$ac_ct_NMEDIT"; then
14458  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14459else
14460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461for as_dir in $PATH
14462do
14463  IFS=$as_save_IFS
14464  case $as_dir in #(((
14465    '') as_dir=./ ;;
14466    */) ;;
14467    *) as_dir=$as_dir/ ;;
14468  esac
14469    for ac_exec_ext in '' $ac_executable_extensions; do
14470  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14471    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14472    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14473    break 2
14474  fi
14475done
14476  done
14477IFS=$as_save_IFS
14478
14479fi
14480fi
14481ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14482if test -n "$ac_ct_NMEDIT"; then
14483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14484printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14485else
14486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487printf "%s\n" "no" >&6; }
14488fi
14489
14490  if test "x$ac_ct_NMEDIT" = x; then
14491    NMEDIT=":"
14492  else
14493    case $cross_compiling:$ac_tool_warned in
14494yes:)
14495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14496printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14497ac_tool_warned=yes ;;
14498esac
14499    NMEDIT=$ac_ct_NMEDIT
14500  fi
14501else
14502  NMEDIT="$ac_cv_prog_NMEDIT"
14503fi
14504
14505    if test -n "$ac_tool_prefix"; then
14506  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14507set dummy ${ac_tool_prefix}lipo; ac_word=$2
14508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14509printf %s "checking for $ac_word... " >&6; }
14510if test ${ac_cv_prog_LIPO+y}
14511then :
14512  printf %s "(cached) " >&6
14513else $as_nop
14514  if test -n "$LIPO"; then
14515  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14516else
14517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14518for as_dir in $PATH
14519do
14520  IFS=$as_save_IFS
14521  case $as_dir in #(((
14522    '') as_dir=./ ;;
14523    */) ;;
14524    *) as_dir=$as_dir/ ;;
14525  esac
14526    for ac_exec_ext in '' $ac_executable_extensions; do
14527  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14528    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14529    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14530    break 2
14531  fi
14532done
14533  done
14534IFS=$as_save_IFS
14535
14536fi
14537fi
14538LIPO=$ac_cv_prog_LIPO
14539if test -n "$LIPO"; then
14540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14541printf "%s\n" "$LIPO" >&6; }
14542else
14543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544printf "%s\n" "no" >&6; }
14545fi
14546
14547
14548fi
14549if test -z "$ac_cv_prog_LIPO"; then
14550  ac_ct_LIPO=$LIPO
14551  # Extract the first word of "lipo", so it can be a program name with args.
14552set dummy lipo; ac_word=$2
14553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14554printf %s "checking for $ac_word... " >&6; }
14555if test ${ac_cv_prog_ac_ct_LIPO+y}
14556then :
14557  printf %s "(cached) " >&6
14558else $as_nop
14559  if test -n "$ac_ct_LIPO"; then
14560  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14561else
14562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563for as_dir in $PATH
14564do
14565  IFS=$as_save_IFS
14566  case $as_dir in #(((
14567    '') as_dir=./ ;;
14568    */) ;;
14569    *) as_dir=$as_dir/ ;;
14570  esac
14571    for ac_exec_ext in '' $ac_executable_extensions; do
14572  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14573    ac_cv_prog_ac_ct_LIPO="lipo"
14574    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14575    break 2
14576  fi
14577done
14578  done
14579IFS=$as_save_IFS
14580
14581fi
14582fi
14583ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14584if test -n "$ac_ct_LIPO"; then
14585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14586printf "%s\n" "$ac_ct_LIPO" >&6; }
14587else
14588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589printf "%s\n" "no" >&6; }
14590fi
14591
14592  if test "x$ac_ct_LIPO" = x; then
14593    LIPO=":"
14594  else
14595    case $cross_compiling:$ac_tool_warned in
14596yes:)
14597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14598printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14599ac_tool_warned=yes ;;
14600esac
14601    LIPO=$ac_ct_LIPO
14602  fi
14603else
14604  LIPO="$ac_cv_prog_LIPO"
14605fi
14606
14607    if test -n "$ac_tool_prefix"; then
14608  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14609set dummy ${ac_tool_prefix}otool; ac_word=$2
14610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14611printf %s "checking for $ac_word... " >&6; }
14612if test ${ac_cv_prog_OTOOL+y}
14613then :
14614  printf %s "(cached) " >&6
14615else $as_nop
14616  if test -n "$OTOOL"; then
14617  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14618else
14619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14620for as_dir in $PATH
14621do
14622  IFS=$as_save_IFS
14623  case $as_dir in #(((
14624    '') as_dir=./ ;;
14625    */) ;;
14626    *) as_dir=$as_dir/ ;;
14627  esac
14628    for ac_exec_ext in '' $ac_executable_extensions; do
14629  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14630    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14631    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14632    break 2
14633  fi
14634done
14635  done
14636IFS=$as_save_IFS
14637
14638fi
14639fi
14640OTOOL=$ac_cv_prog_OTOOL
14641if test -n "$OTOOL"; then
14642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14643printf "%s\n" "$OTOOL" >&6; }
14644else
14645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646printf "%s\n" "no" >&6; }
14647fi
14648
14649
14650fi
14651if test -z "$ac_cv_prog_OTOOL"; then
14652  ac_ct_OTOOL=$OTOOL
14653  # Extract the first word of "otool", so it can be a program name with args.
14654set dummy otool; ac_word=$2
14655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14656printf %s "checking for $ac_word... " >&6; }
14657if test ${ac_cv_prog_ac_ct_OTOOL+y}
14658then :
14659  printf %s "(cached) " >&6
14660else $as_nop
14661  if test -n "$ac_ct_OTOOL"; then
14662  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14663else
14664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665for as_dir in $PATH
14666do
14667  IFS=$as_save_IFS
14668  case $as_dir in #(((
14669    '') as_dir=./ ;;
14670    */) ;;
14671    *) as_dir=$as_dir/ ;;
14672  esac
14673    for ac_exec_ext in '' $ac_executable_extensions; do
14674  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14675    ac_cv_prog_ac_ct_OTOOL="otool"
14676    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14677    break 2
14678  fi
14679done
14680  done
14681IFS=$as_save_IFS
14682
14683fi
14684fi
14685ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14686if test -n "$ac_ct_OTOOL"; then
14687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14688printf "%s\n" "$ac_ct_OTOOL" >&6; }
14689else
14690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691printf "%s\n" "no" >&6; }
14692fi
14693
14694  if test "x$ac_ct_OTOOL" = x; then
14695    OTOOL=":"
14696  else
14697    case $cross_compiling:$ac_tool_warned in
14698yes:)
14699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14700printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14701ac_tool_warned=yes ;;
14702esac
14703    OTOOL=$ac_ct_OTOOL
14704  fi
14705else
14706  OTOOL="$ac_cv_prog_OTOOL"
14707fi
14708
14709    if test -n "$ac_tool_prefix"; then
14710  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14711set dummy ${ac_tool_prefix}otool64; ac_word=$2
14712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14713printf %s "checking for $ac_word... " >&6; }
14714if test ${ac_cv_prog_OTOOL64+y}
14715then :
14716  printf %s "(cached) " >&6
14717else $as_nop
14718  if test -n "$OTOOL64"; then
14719  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14720else
14721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722for as_dir in $PATH
14723do
14724  IFS=$as_save_IFS
14725  case $as_dir in #(((
14726    '') as_dir=./ ;;
14727    */) ;;
14728    *) as_dir=$as_dir/ ;;
14729  esac
14730    for ac_exec_ext in '' $ac_executable_extensions; do
14731  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14732    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14733    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14734    break 2
14735  fi
14736done
14737  done
14738IFS=$as_save_IFS
14739
14740fi
14741fi
14742OTOOL64=$ac_cv_prog_OTOOL64
14743if test -n "$OTOOL64"; then
14744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14745printf "%s\n" "$OTOOL64" >&6; }
14746else
14747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748printf "%s\n" "no" >&6; }
14749fi
14750
14751
14752fi
14753if test -z "$ac_cv_prog_OTOOL64"; then
14754  ac_ct_OTOOL64=$OTOOL64
14755  # Extract the first word of "otool64", so it can be a program name with args.
14756set dummy otool64; ac_word=$2
14757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14758printf %s "checking for $ac_word... " >&6; }
14759if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14760then :
14761  printf %s "(cached) " >&6
14762else $as_nop
14763  if test -n "$ac_ct_OTOOL64"; then
14764  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14765else
14766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767for as_dir in $PATH
14768do
14769  IFS=$as_save_IFS
14770  case $as_dir in #(((
14771    '') as_dir=./ ;;
14772    */) ;;
14773    *) as_dir=$as_dir/ ;;
14774  esac
14775    for ac_exec_ext in '' $ac_executable_extensions; do
14776  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14777    ac_cv_prog_ac_ct_OTOOL64="otool64"
14778    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14779    break 2
14780  fi
14781done
14782  done
14783IFS=$as_save_IFS
14784
14785fi
14786fi
14787ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14788if test -n "$ac_ct_OTOOL64"; then
14789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14790printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14791else
14792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14793printf "%s\n" "no" >&6; }
14794fi
14795
14796  if test "x$ac_ct_OTOOL64" = x; then
14797    OTOOL64=":"
14798  else
14799    case $cross_compiling:$ac_tool_warned in
14800yes:)
14801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14802printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14803ac_tool_warned=yes ;;
14804esac
14805    OTOOL64=$ac_ct_OTOOL64
14806  fi
14807else
14808  OTOOL64="$ac_cv_prog_OTOOL64"
14809fi
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14838printf %s "checking for -single_module linker flag... " >&6; }
14839if test ${lt_cv_apple_cc_single_mod+y}
14840then :
14841  printf %s "(cached) " >&6
14842else $as_nop
14843  lt_cv_apple_cc_single_mod=no
14844      if test -z "$LT_MULTI_MODULE"; then
14845	# By default we will add the -single_module flag. You can override
14846	# by either setting the environment variable LT_MULTI_MODULE
14847	# non-empty at configure time, or by adding -multi_module to the
14848	# link flags.
14849	rm -rf libconftest.dylib*
14850	echo "int foo(void){return 1;}" > conftest.c
14851	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14852-dynamiclib -Wl,-single_module conftest.c" >&5
14853	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14854	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14855        _lt_result=$?
14856	# If there is a non-empty error log, and "single_module"
14857	# appears in it, assume the flag caused a linker warning
14858        if test -s conftest.err && $GREP single_module conftest.err; then
14859	  cat conftest.err >&5
14860	# Otherwise, if the output was created with a 0 exit code from
14861	# the compiler, it worked.
14862	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14863	  lt_cv_apple_cc_single_mod=yes
14864	else
14865	  cat conftest.err >&5
14866	fi
14867	rm -rf libconftest.dylib*
14868	rm -f conftest.*
14869      fi
14870fi
14871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14872printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14873
14874    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14875printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14876if test ${lt_cv_ld_exported_symbols_list+y}
14877then :
14878  printf %s "(cached) " >&6
14879else $as_nop
14880  lt_cv_ld_exported_symbols_list=no
14881      save_LDFLAGS=$LDFLAGS
14882      echo "_main" > conftest.sym
14883      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14884      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885/* end confdefs.h.  */
14886
14887int
14888main (void)
14889{
14890
14891  ;
14892  return 0;
14893}
14894_ACEOF
14895if ac_fn_c_try_link "$LINENO"
14896then :
14897  lt_cv_ld_exported_symbols_list=yes
14898else $as_nop
14899  lt_cv_ld_exported_symbols_list=no
14900fi
14901rm -f core conftest.err conftest.$ac_objext conftest.beam \
14902    conftest$ac_exeext conftest.$ac_ext
14903	LDFLAGS=$save_LDFLAGS
14904
14905fi
14906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14907printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14908
14909    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14910printf %s "checking for -force_load linker flag... " >&6; }
14911if test ${lt_cv_ld_force_load+y}
14912then :
14913  printf %s "(cached) " >&6
14914else $as_nop
14915  lt_cv_ld_force_load=no
14916      cat > conftest.c << _LT_EOF
14917int forced_loaded() { return 2;}
14918_LT_EOF
14919      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14920      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14921      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14922      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14923      echo "$RANLIB libconftest.a" >&5
14924      $RANLIB libconftest.a 2>&5
14925      cat > conftest.c << _LT_EOF
14926int main() { return 0;}
14927_LT_EOF
14928      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14929      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14930      _lt_result=$?
14931      if test -s conftest.err && $GREP force_load conftest.err; then
14932	cat conftest.err >&5
14933      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14934	lt_cv_ld_force_load=yes
14935      else
14936	cat conftest.err >&5
14937      fi
14938        rm -f conftest.err libconftest.a conftest conftest.c
14939        rm -rf conftest.dSYM
14940
14941fi
14942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14943printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14944    case $host_os in
14945    rhapsody* | darwin1.[012])
14946      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14947    darwin1.*)
14948      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14949    darwin*)
14950      case $MACOSX_DEPLOYMENT_TARGET,$host in
14951        10.[012],*|,*powerpc*-darwin[5-8]*)
14952          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14953        *)
14954          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14955      esac
14956    ;;
14957  esac
14958    if test yes = "$lt_cv_apple_cc_single_mod"; then
14959      _lt_dar_single_mod='$single_module'
14960    fi
14961    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14962      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14963    else
14964      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14965    fi
14966    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14967      _lt_dsymutil='~$DSYMUTIL $lib || :'
14968    else
14969      _lt_dsymutil=
14970    fi
14971    ;;
14972  esac
14973
14974# func_munge_path_list VARIABLE PATH
14975# -----------------------------------
14976# VARIABLE is name of variable containing _space_ separated list of
14977# directories to be munged by the contents of PATH, which is string
14978# having a format:
14979# "DIR[:DIR]:"
14980#       string "DIR[ DIR]" will be prepended to VARIABLE
14981# ":DIR[:DIR]"
14982#       string "DIR[ DIR]" will be appended to VARIABLE
14983# "DIRP[:DIRP]::[DIRA:]DIRA"
14984#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14985#       "DIRA[ DIRA]" will be appended to VARIABLE
14986# "DIR[:DIR]"
14987#       VARIABLE will be replaced by "DIR[ DIR]"
14988func_munge_path_list ()
14989{
14990    case x$2 in
14991    x)
14992        ;;
14993    *:)
14994        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14995        ;;
14996    x:*)
14997        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14998        ;;
14999    *::*)
15000        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15001        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15002        ;;
15003    *)
15004        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15005        ;;
15006    esac
15007}
15008
15009ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15010"
15011if test "x$ac_cv_header_dlfcn_h" = xyes
15012then :
15013  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15014
15015fi
15016
15017
15018
15019
15020
15021# Set options
15022
15023
15024
15025        enable_dlopen=no
15026
15027
15028  enable_win32_dll=no
15029
15030
15031            # Check whether --enable-shared was given.
15032if test ${enable_shared+y}
15033then :
15034  enableval=$enable_shared; p=${PACKAGE-default}
15035    case $enableval in
15036    yes) enable_shared=yes ;;
15037    no) enable_shared=no ;;
15038    *)
15039      enable_shared=no
15040      # Look at the argument we got.  We use all the common list separators.
15041      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15042      for pkg in $enableval; do
15043	IFS=$lt_save_ifs
15044	if test "X$pkg" = "X$p"; then
15045	  enable_shared=yes
15046	fi
15047      done
15048      IFS=$lt_save_ifs
15049      ;;
15050    esac
15051else $as_nop
15052  enable_shared=yes
15053fi
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065# Check whether --with-pic was given.
15066if test ${with_pic+y}
15067then :
15068  withval=$with_pic; lt_p=${PACKAGE-default}
15069    case $withval in
15070    yes|no) pic_mode=$withval ;;
15071    *)
15072      pic_mode=default
15073      # Look at the argument we got.  We use all the common list separators.
15074      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15075      for lt_pkg in $withval; do
15076	IFS=$lt_save_ifs
15077	if test "X$lt_pkg" = "X$lt_p"; then
15078	  pic_mode=yes
15079	fi
15080      done
15081      IFS=$lt_save_ifs
15082      ;;
15083    esac
15084else $as_nop
15085  pic_mode=default
15086fi
15087
15088
15089
15090
15091
15092
15093
15094
15095  # Check whether --enable-fast-install was given.
15096if test ${enable_fast_install+y}
15097then :
15098  enableval=$enable_fast_install; p=${PACKAGE-default}
15099    case $enableval in
15100    yes) enable_fast_install=yes ;;
15101    no) enable_fast_install=no ;;
15102    *)
15103      enable_fast_install=no
15104      # Look at the argument we got.  We use all the common list separators.
15105      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15106      for pkg in $enableval; do
15107	IFS=$lt_save_ifs
15108	if test "X$pkg" = "X$p"; then
15109	  enable_fast_install=yes
15110	fi
15111      done
15112      IFS=$lt_save_ifs
15113      ;;
15114    esac
15115else $as_nop
15116  enable_fast_install=yes
15117fi
15118
15119
15120
15121
15122
15123
15124
15125
15126  shared_archive_member_spec=
15127case $host,$enable_shared in
15128power*-*-aix[5-9]*,yes)
15129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15130printf %s "checking which variant of shared library versioning to provide... " >&6; }
15131
15132# Check whether --with-aix-soname was given.
15133if test ${with_aix_soname+y}
15134then :
15135  withval=$with_aix_soname; case $withval in
15136    aix|svr4|both)
15137      ;;
15138    *)
15139      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15140      ;;
15141    esac
15142    lt_cv_with_aix_soname=$with_aix_soname
15143else $as_nop
15144  if test ${lt_cv_with_aix_soname+y}
15145then :
15146  printf %s "(cached) " >&6
15147else $as_nop
15148  lt_cv_with_aix_soname=aix
15149fi
15150
15151    with_aix_soname=$lt_cv_with_aix_soname
15152fi
15153
15154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15155printf "%s\n" "$with_aix_soname" >&6; }
15156  if test aix != "$with_aix_soname"; then
15157    # For the AIX way of multilib, we name the shared archive member
15158    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15159    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15160    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15161    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15162    if test 64 = "${OBJECT_MODE-32}"; then
15163      shared_archive_member_spec=shr_64
15164    else
15165      shared_archive_member_spec=shr
15166    fi
15167  fi
15168  ;;
15169*)
15170  with_aix_soname=aix
15171  ;;
15172esac
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183# This can be used to rebuild libtool when needed
15184LIBTOOL_DEPS=$ltmain
15185
15186# Always use our own libtool.
15187LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218test -z "$LN_S" && LN_S="ln -s"
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233if test -n "${ZSH_VERSION+set}"; then
15234   setopt NO_GLOB_SUBST
15235fi
15236
15237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15238printf %s "checking for objdir... " >&6; }
15239if test ${lt_cv_objdir+y}
15240then :
15241  printf %s "(cached) " >&6
15242else $as_nop
15243  rm -f .libs 2>/dev/null
15244mkdir .libs 2>/dev/null
15245if test -d .libs; then
15246  lt_cv_objdir=.libs
15247else
15248  # MS-DOS does not allow filenames that begin with a dot.
15249  lt_cv_objdir=_libs
15250fi
15251rmdir .libs 2>/dev/null
15252fi
15253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15254printf "%s\n" "$lt_cv_objdir" >&6; }
15255objdir=$lt_cv_objdir
15256
15257
15258
15259
15260
15261printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15262
15263
15264
15265
15266case $host_os in
15267aix3*)
15268  # AIX sometimes has problems with the GCC collect2 program.  For some
15269  # reason, if we set the COLLECT_NAMES environment variable, the problems
15270  # vanish in a puff of smoke.
15271  if test set != "${COLLECT_NAMES+set}"; then
15272    COLLECT_NAMES=
15273    export COLLECT_NAMES
15274  fi
15275  ;;
15276esac
15277
15278# Global variables:
15279ofile=libtool
15280can_build_shared=yes
15281
15282# All known linkers require a '.a' archive for static linking (except MSVC and
15283# ICC, which need '.lib').
15284libext=a
15285
15286with_gnu_ld=$lt_cv_prog_gnu_ld
15287
15288old_CC=$CC
15289old_CFLAGS=$CFLAGS
15290
15291# Set sane defaults for various variables
15292test -z "$CC" && CC=cc
15293test -z "$LTCC" && LTCC=$CC
15294test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15295test -z "$LD" && LD=ld
15296test -z "$ac_objext" && ac_objext=o
15297
15298func_cc_basename $compiler
15299cc_basename=$func_cc_basename_result
15300
15301
15302# Only perform the check for file, if the check method requires it
15303test -z "$MAGIC_CMD" && MAGIC_CMD=file
15304case $deplibs_check_method in
15305file_magic*)
15306  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15307    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15308printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15309if test ${lt_cv_path_MAGIC_CMD+y}
15310then :
15311  printf %s "(cached) " >&6
15312else $as_nop
15313  case $MAGIC_CMD in
15314[\\/*] |  ?:[\\/]*)
15315  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15316  ;;
15317*)
15318  lt_save_MAGIC_CMD=$MAGIC_CMD
15319  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15320  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15321  for ac_dir in $ac_dummy; do
15322    IFS=$lt_save_ifs
15323    test -z "$ac_dir" && ac_dir=.
15324    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15325      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15326      if test -n "$file_magic_test_file"; then
15327	case $deplibs_check_method in
15328	"file_magic "*)
15329	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15330	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15331	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15332	    $EGREP "$file_magic_regex" > /dev/null; then
15333	    :
15334	  else
15335	    cat <<_LT_EOF 1>&2
15336
15337*** Warning: the command libtool uses to detect shared libraries,
15338*** $file_magic_cmd, produces output that libtool cannot recognize.
15339*** The result is that libtool may fail to recognize shared libraries
15340*** as such.  This will affect the creation of libtool libraries that
15341*** depend on shared libraries, but programs linked with such libtool
15342*** libraries will work regardless of this problem.  Nevertheless, you
15343*** may want to report the problem to your system manager and/or to
15344*** bug-libtool@gnu.org
15345
15346_LT_EOF
15347	  fi ;;
15348	esac
15349      fi
15350      break
15351    fi
15352  done
15353  IFS=$lt_save_ifs
15354  MAGIC_CMD=$lt_save_MAGIC_CMD
15355  ;;
15356esac
15357fi
15358
15359MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15360if test -n "$MAGIC_CMD"; then
15361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15362printf "%s\n" "$MAGIC_CMD" >&6; }
15363else
15364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365printf "%s\n" "no" >&6; }
15366fi
15367
15368
15369
15370
15371
15372if test -z "$lt_cv_path_MAGIC_CMD"; then
15373  if test -n "$ac_tool_prefix"; then
15374    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15375printf %s "checking for file... " >&6; }
15376if test ${lt_cv_path_MAGIC_CMD+y}
15377then :
15378  printf %s "(cached) " >&6
15379else $as_nop
15380  case $MAGIC_CMD in
15381[\\/*] |  ?:[\\/]*)
15382  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15383  ;;
15384*)
15385  lt_save_MAGIC_CMD=$MAGIC_CMD
15386  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15387  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15388  for ac_dir in $ac_dummy; do
15389    IFS=$lt_save_ifs
15390    test -z "$ac_dir" && ac_dir=.
15391    if test -f "$ac_dir/file"; then
15392      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15393      if test -n "$file_magic_test_file"; then
15394	case $deplibs_check_method in
15395	"file_magic "*)
15396	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15397	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15398	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15399	    $EGREP "$file_magic_regex" > /dev/null; then
15400	    :
15401	  else
15402	    cat <<_LT_EOF 1>&2
15403
15404*** Warning: the command libtool uses to detect shared libraries,
15405*** $file_magic_cmd, produces output that libtool cannot recognize.
15406*** The result is that libtool may fail to recognize shared libraries
15407*** as such.  This will affect the creation of libtool libraries that
15408*** depend on shared libraries, but programs linked with such libtool
15409*** libraries will work regardless of this problem.  Nevertheless, you
15410*** may want to report the problem to your system manager and/or to
15411*** bug-libtool@gnu.org
15412
15413_LT_EOF
15414	  fi ;;
15415	esac
15416      fi
15417      break
15418    fi
15419  done
15420  IFS=$lt_save_ifs
15421  MAGIC_CMD=$lt_save_MAGIC_CMD
15422  ;;
15423esac
15424fi
15425
15426MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15427if test -n "$MAGIC_CMD"; then
15428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15429printf "%s\n" "$MAGIC_CMD" >&6; }
15430else
15431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15432printf "%s\n" "no" >&6; }
15433fi
15434
15435
15436  else
15437    MAGIC_CMD=:
15438  fi
15439fi
15440
15441  fi
15442  ;;
15443esac
15444
15445# Use C for the default configuration in the libtool script
15446
15447lt_save_CC=$CC
15448ac_ext=c
15449ac_cpp='$CPP $CPPFLAGS'
15450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15452ac_compiler_gnu=$ac_cv_c_compiler_gnu
15453
15454
15455# Source file extension for C test sources.
15456ac_ext=c
15457
15458# Object file extension for compiled C test sources.
15459objext=o
15460objext=$objext
15461
15462# Code to be used in simple compile tests
15463lt_simple_compile_test_code="int some_variable = 0;"
15464
15465# Code to be used in simple link tests
15466lt_simple_link_test_code='int main(){return(0);}'
15467
15468
15469
15470
15471
15472
15473
15474# If no C compiler was specified, use CC.
15475LTCC=${LTCC-"$CC"}
15476
15477# If no C compiler flags were specified, use CFLAGS.
15478LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15479
15480# Allow CC to be a program name with arguments.
15481compiler=$CC
15482
15483# Save the default compiler, since it gets overwritten when the other
15484# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15485compiler_DEFAULT=$CC
15486
15487# save warnings/boilerplate of simple test code
15488ac_outfile=conftest.$ac_objext
15489echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15490eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15491_lt_compiler_boilerplate=`cat conftest.err`
15492$RM conftest*
15493
15494ac_outfile=conftest.$ac_objext
15495echo "$lt_simple_link_test_code" >conftest.$ac_ext
15496eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15497_lt_linker_boilerplate=`cat conftest.err`
15498$RM -r conftest*
15499
15500
15501if test -n "$compiler"; then
15502
15503lt_prog_compiler_no_builtin_flag=
15504
15505if test yes = "$GCC"; then
15506  case $cc_basename in
15507  nvcc*)
15508    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15509  *)
15510    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15511  esac
15512
15513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15514printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15515if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15516then :
15517  printf %s "(cached) " >&6
15518else $as_nop
15519  lt_cv_prog_compiler_rtti_exceptions=no
15520   ac_outfile=conftest.$ac_objext
15521   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15522   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15523   # Insert the option either (1) after the last *FLAGS variable, or
15524   # (2) before a word containing "conftest.", or (3) at the end.
15525   # Note that $ac_compile itself does not contain backslashes and begins
15526   # with a dollar sign (not a hyphen), so the echo should work correctly.
15527   # The option is referenced via a variable to avoid confusing sed.
15528   lt_compile=`echo "$ac_compile" | $SED \
15529   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15530   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15531   -e 's:$: $lt_compiler_flag:'`
15532   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15533   (eval "$lt_compile" 2>conftest.err)
15534   ac_status=$?
15535   cat conftest.err >&5
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   if (exit $ac_status) && test -s "$ac_outfile"; then
15538     # The compiler can only warn and ignore the option if not recognized
15539     # So say no if there are warnings other than the usual output.
15540     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15541     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15542     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15543       lt_cv_prog_compiler_rtti_exceptions=yes
15544     fi
15545   fi
15546   $RM conftest*
15547
15548fi
15549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15550printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15551
15552if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15553    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15554else
15555    :
15556fi
15557
15558fi
15559
15560
15561
15562
15563
15564
15565  lt_prog_compiler_wl=
15566lt_prog_compiler_pic=
15567lt_prog_compiler_static=
15568
15569
15570  if test yes = "$GCC"; then
15571    lt_prog_compiler_wl='-Wl,'
15572    lt_prog_compiler_static='-static'
15573
15574    case $host_os in
15575      aix*)
15576      # All AIX code is PIC.
15577      if test ia64 = "$host_cpu"; then
15578	# AIX 5 now supports IA64 processor
15579	lt_prog_compiler_static='-Bstatic'
15580      fi
15581      lt_prog_compiler_pic='-fPIC'
15582      ;;
15583
15584    amigaos*)
15585      case $host_cpu in
15586      powerpc)
15587            # see comment about AmigaOS4 .so support
15588            lt_prog_compiler_pic='-fPIC'
15589        ;;
15590      m68k)
15591            # FIXME: we need at least 68020 code to build shared libraries, but
15592            # adding the '-m68020' flag to GCC prevents building anything better,
15593            # like '-m68040'.
15594            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15595        ;;
15596      esac
15597      ;;
15598
15599    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15600      # PIC is the default for these OSes.
15601      ;;
15602
15603    mingw* | cygwin* | pw32* | os2* | cegcc*)
15604      # This hack is so that the source file can tell whether it is being
15605      # built for inclusion in a dll (and should export symbols for example).
15606      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15607      # (--disable-auto-import) libraries
15608      lt_prog_compiler_pic='-DDLL_EXPORT'
15609      case $host_os in
15610      os2*)
15611	lt_prog_compiler_static='$wl-static'
15612	;;
15613      esac
15614      ;;
15615
15616    darwin* | rhapsody*)
15617      # PIC is the default on this platform
15618      # Common symbols not allowed in MH_DYLIB files
15619      lt_prog_compiler_pic='-fno-common'
15620      ;;
15621
15622    haiku*)
15623      # PIC is the default for Haiku.
15624      # The "-static" flag exists, but is broken.
15625      lt_prog_compiler_static=
15626      ;;
15627
15628    hpux*)
15629      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15630      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15631      # sets the default TLS model and affects inlining.
15632      case $host_cpu in
15633      hppa*64*)
15634	# +Z the default
15635	;;
15636      *)
15637	lt_prog_compiler_pic='-fPIC'
15638	;;
15639      esac
15640      ;;
15641
15642    interix[3-9]*)
15643      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15644      # Instead, we relocate shared libraries at runtime.
15645      ;;
15646
15647    msdosdjgpp*)
15648      # Just because we use GCC doesn't mean we suddenly get shared libraries
15649      # on systems that don't support them.
15650      lt_prog_compiler_can_build_shared=no
15651      enable_shared=no
15652      ;;
15653
15654    *nto* | *qnx*)
15655      # QNX uses GNU C++, but need to define -shared option too, otherwise
15656      # it will coredump.
15657      lt_prog_compiler_pic='-fPIC -shared'
15658      ;;
15659
15660    sysv4*MP*)
15661      if test -d /usr/nec; then
15662	lt_prog_compiler_pic=-Kconform_pic
15663      fi
15664      ;;
15665
15666    *)
15667      lt_prog_compiler_pic='-fPIC'
15668      ;;
15669    esac
15670
15671    case $cc_basename in
15672    nvcc*) # Cuda Compiler Driver 2.2
15673      lt_prog_compiler_wl='-Xlinker '
15674      if test -n "$lt_prog_compiler_pic"; then
15675        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15676      fi
15677      ;;
15678    esac
15679  else
15680    # PORTME Check for flag to pass linker flags through the system compiler.
15681    case $host_os in
15682    aix*)
15683      lt_prog_compiler_wl='-Wl,'
15684      if test ia64 = "$host_cpu"; then
15685	# AIX 5 now supports IA64 processor
15686	lt_prog_compiler_static='-Bstatic'
15687      else
15688	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15689      fi
15690      ;;
15691
15692    darwin* | rhapsody*)
15693      # PIC is the default on this platform
15694      # Common symbols not allowed in MH_DYLIB files
15695      lt_prog_compiler_pic='-fno-common'
15696      case $cc_basename in
15697      nagfor*)
15698        # NAG Fortran compiler
15699        lt_prog_compiler_wl='-Wl,-Wl,,'
15700        lt_prog_compiler_pic='-PIC'
15701        lt_prog_compiler_static='-Bstatic'
15702        ;;
15703      esac
15704      ;;
15705
15706    mingw* | cygwin* | pw32* | os2* | cegcc*)
15707      # This hack is so that the source file can tell whether it is being
15708      # built for inclusion in a dll (and should export symbols for example).
15709      lt_prog_compiler_pic='-DDLL_EXPORT'
15710      case $host_os in
15711      os2*)
15712	lt_prog_compiler_static='$wl-static'
15713	;;
15714      esac
15715      ;;
15716
15717    hpux9* | hpux10* | hpux11*)
15718      lt_prog_compiler_wl='-Wl,'
15719      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15720      # not for PA HP-UX.
15721      case $host_cpu in
15722      hppa*64*|ia64*)
15723	# +Z the default
15724	;;
15725      *)
15726	lt_prog_compiler_pic='+Z'
15727	;;
15728      esac
15729      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15730      lt_prog_compiler_static='$wl-a ${wl}archive'
15731      ;;
15732
15733    irix5* | irix6* | nonstopux*)
15734      lt_prog_compiler_wl='-Wl,'
15735      # PIC (with -KPIC) is the default.
15736      lt_prog_compiler_static='-non_shared'
15737      ;;
15738
15739    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15740      case $cc_basename in
15741      # old Intel for x86_64, which still supported -KPIC.
15742      ecc*)
15743	lt_prog_compiler_wl='-Wl,'
15744	lt_prog_compiler_pic='-KPIC'
15745	lt_prog_compiler_static='-static'
15746        ;;
15747      # icc used to be incompatible with GCC.
15748      # ICC 10 doesn't accept -KPIC any more.
15749      icc* | ifort*)
15750	lt_prog_compiler_wl='-Wl,'
15751	lt_prog_compiler_pic='-fPIC'
15752	lt_prog_compiler_static='-static'
15753        ;;
15754      # Lahey Fortran 8.1.
15755      lf95*)
15756	lt_prog_compiler_wl='-Wl,'
15757	lt_prog_compiler_pic='--shared'
15758	lt_prog_compiler_static='--static'
15759	;;
15760      nagfor*)
15761	# NAG Fortran compiler
15762	lt_prog_compiler_wl='-Wl,-Wl,,'
15763	lt_prog_compiler_pic='-PIC'
15764	lt_prog_compiler_static='-Bstatic'
15765	;;
15766      tcc*)
15767	# Fabrice Bellard et al's Tiny C Compiler
15768	lt_prog_compiler_wl='-Wl,'
15769	lt_prog_compiler_pic='-fPIC'
15770	lt_prog_compiler_static='-static'
15771	;;
15772      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15773        # Portland Group compilers (*not* the Pentium gcc compiler,
15774	# which looks to be a dead project)
15775	lt_prog_compiler_wl='-Wl,'
15776	lt_prog_compiler_pic='-fpic'
15777	lt_prog_compiler_static='-Bstatic'
15778        ;;
15779      ccc*)
15780        lt_prog_compiler_wl='-Wl,'
15781        # All Alpha code is PIC.
15782        lt_prog_compiler_static='-non_shared'
15783        ;;
15784      xl* | bgxl* | bgf* | mpixl*)
15785	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15786	lt_prog_compiler_wl='-Wl,'
15787	lt_prog_compiler_pic='-qpic'
15788	lt_prog_compiler_static='-qstaticlink'
15789	;;
15790      *)
15791	case `$CC -V 2>&1 | $SED 5q` in
15792	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15793	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15794	  lt_prog_compiler_pic='-KPIC'
15795	  lt_prog_compiler_static='-Bstatic'
15796	  lt_prog_compiler_wl=''
15797	  ;;
15798	*Sun\ F* | *Sun*Fortran*)
15799	  lt_prog_compiler_pic='-KPIC'
15800	  lt_prog_compiler_static='-Bstatic'
15801	  lt_prog_compiler_wl='-Qoption ld '
15802	  ;;
15803	*Sun\ C*)
15804	  # Sun C 5.9
15805	  lt_prog_compiler_pic='-KPIC'
15806	  lt_prog_compiler_static='-Bstatic'
15807	  lt_prog_compiler_wl='-Wl,'
15808	  ;;
15809        *Intel*\ [CF]*Compiler*)
15810	  lt_prog_compiler_wl='-Wl,'
15811	  lt_prog_compiler_pic='-fPIC'
15812	  lt_prog_compiler_static='-static'
15813	  ;;
15814	*Portland\ Group*)
15815	  lt_prog_compiler_wl='-Wl,'
15816	  lt_prog_compiler_pic='-fpic'
15817	  lt_prog_compiler_static='-Bstatic'
15818	  ;;
15819	esac
15820	;;
15821      esac
15822      ;;
15823
15824    newsos6)
15825      lt_prog_compiler_pic='-KPIC'
15826      lt_prog_compiler_static='-Bstatic'
15827      ;;
15828
15829    *nto* | *qnx*)
15830      # QNX uses GNU C++, but need to define -shared option too, otherwise
15831      # it will coredump.
15832      lt_prog_compiler_pic='-fPIC -shared'
15833      ;;
15834
15835    osf3* | osf4* | osf5*)
15836      lt_prog_compiler_wl='-Wl,'
15837      # All OSF/1 code is PIC.
15838      lt_prog_compiler_static='-non_shared'
15839      ;;
15840
15841    rdos*)
15842      lt_prog_compiler_static='-non_shared'
15843      ;;
15844
15845    solaris*)
15846      lt_prog_compiler_pic='-KPIC'
15847      lt_prog_compiler_static='-Bstatic'
15848      case $cc_basename in
15849      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15850	lt_prog_compiler_wl='-Qoption ld ';;
15851      *)
15852	lt_prog_compiler_wl='-Wl,';;
15853      esac
15854      ;;
15855
15856    sunos4*)
15857      lt_prog_compiler_wl='-Qoption ld '
15858      lt_prog_compiler_pic='-PIC'
15859      lt_prog_compiler_static='-Bstatic'
15860      ;;
15861
15862    sysv4 | sysv4.2uw2* | sysv4.3*)
15863      lt_prog_compiler_wl='-Wl,'
15864      lt_prog_compiler_pic='-KPIC'
15865      lt_prog_compiler_static='-Bstatic'
15866      ;;
15867
15868    sysv4*MP*)
15869      if test -d /usr/nec; then
15870	lt_prog_compiler_pic='-Kconform_pic'
15871	lt_prog_compiler_static='-Bstatic'
15872      fi
15873      ;;
15874
15875    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15876      lt_prog_compiler_wl='-Wl,'
15877      lt_prog_compiler_pic='-KPIC'
15878      lt_prog_compiler_static='-Bstatic'
15879      ;;
15880
15881    unicos*)
15882      lt_prog_compiler_wl='-Wl,'
15883      lt_prog_compiler_can_build_shared=no
15884      ;;
15885
15886    uts4*)
15887      lt_prog_compiler_pic='-pic'
15888      lt_prog_compiler_static='-Bstatic'
15889      ;;
15890
15891    *)
15892      lt_prog_compiler_can_build_shared=no
15893      ;;
15894    esac
15895  fi
15896
15897case $host_os in
15898  # For platforms that do not support PIC, -DPIC is meaningless:
15899  *djgpp*)
15900    lt_prog_compiler_pic=
15901    ;;
15902  *)
15903    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15904    ;;
15905esac
15906
15907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15908printf %s "checking for $compiler option to produce PIC... " >&6; }
15909if test ${lt_cv_prog_compiler_pic+y}
15910then :
15911  printf %s "(cached) " >&6
15912else $as_nop
15913  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15914fi
15915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15916printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15917lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15918
15919#
15920# Check to make sure the PIC flag actually works.
15921#
15922if test -n "$lt_prog_compiler_pic"; then
15923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15924printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15925if test ${lt_cv_prog_compiler_pic_works+y}
15926then :
15927  printf %s "(cached) " >&6
15928else $as_nop
15929  lt_cv_prog_compiler_pic_works=no
15930   ac_outfile=conftest.$ac_objext
15931   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15932   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15933   # Insert the option either (1) after the last *FLAGS variable, or
15934   # (2) before a word containing "conftest.", or (3) at the end.
15935   # Note that $ac_compile itself does not contain backslashes and begins
15936   # with a dollar sign (not a hyphen), so the echo should work correctly.
15937   # The option is referenced via a variable to avoid confusing sed.
15938   lt_compile=`echo "$ac_compile" | $SED \
15939   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15940   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15941   -e 's:$: $lt_compiler_flag:'`
15942   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15943   (eval "$lt_compile" 2>conftest.err)
15944   ac_status=$?
15945   cat conftest.err >&5
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   if (exit $ac_status) && test -s "$ac_outfile"; then
15948     # The compiler can only warn and ignore the option if not recognized
15949     # So say no if there are warnings other than the usual output.
15950     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15951     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15952     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15953       lt_cv_prog_compiler_pic_works=yes
15954     fi
15955   fi
15956   $RM conftest*
15957
15958fi
15959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15960printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15961
15962if test yes = "$lt_cv_prog_compiler_pic_works"; then
15963    case $lt_prog_compiler_pic in
15964     "" | " "*) ;;
15965     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15966     esac
15967else
15968    lt_prog_compiler_pic=
15969     lt_prog_compiler_can_build_shared=no
15970fi
15971
15972fi
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984#
15985# Check to make sure the static flag actually works.
15986#
15987wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15989printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15990if test ${lt_cv_prog_compiler_static_works+y}
15991then :
15992  printf %s "(cached) " >&6
15993else $as_nop
15994  lt_cv_prog_compiler_static_works=no
15995   save_LDFLAGS=$LDFLAGS
15996   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15997   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15998   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15999     # The linker can only warn and ignore the option if not recognized
16000     # So say no if there are warnings
16001     if test -s conftest.err; then
16002       # Append any errors to the config.log.
16003       cat conftest.err 1>&5
16004       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16005       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16006       if diff conftest.exp conftest.er2 >/dev/null; then
16007         lt_cv_prog_compiler_static_works=yes
16008       fi
16009     else
16010       lt_cv_prog_compiler_static_works=yes
16011     fi
16012   fi
16013   $RM -r conftest*
16014   LDFLAGS=$save_LDFLAGS
16015
16016fi
16017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16018printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16019
16020if test yes = "$lt_cv_prog_compiler_static_works"; then
16021    :
16022else
16023    lt_prog_compiler_static=
16024fi
16025
16026
16027
16028
16029
16030
16031
16032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16033printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16034if test ${lt_cv_prog_compiler_c_o+y}
16035then :
16036  printf %s "(cached) " >&6
16037else $as_nop
16038  lt_cv_prog_compiler_c_o=no
16039   $RM -r conftest 2>/dev/null
16040   mkdir conftest
16041   cd conftest
16042   mkdir out
16043   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16044
16045   lt_compiler_flag="-o out/conftest2.$ac_objext"
16046   # Insert the option either (1) after the last *FLAGS variable, or
16047   # (2) before a word containing "conftest.", or (3) at the end.
16048   # Note that $ac_compile itself does not contain backslashes and begins
16049   # with a dollar sign (not a hyphen), so the echo should work correctly.
16050   lt_compile=`echo "$ac_compile" | $SED \
16051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16053   -e 's:$: $lt_compiler_flag:'`
16054   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16055   (eval "$lt_compile" 2>out/conftest.err)
16056   ac_status=$?
16057   cat out/conftest.err >&5
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16060   then
16061     # The compiler can only warn and ignore the option if not recognized
16062     # So say no if there are warnings
16063     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16066       lt_cv_prog_compiler_c_o=yes
16067     fi
16068   fi
16069   chmod u+w . 2>&5
16070   $RM conftest*
16071   # SGI C++ compiler will create directory out/ii_files/ for
16072   # template instantiation
16073   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16074   $RM out/* && rmdir out
16075   cd ..
16076   $RM -r conftest
16077   $RM conftest*
16078
16079fi
16080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16081printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16082
16083
16084
16085
16086
16087
16088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16089printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16090if test ${lt_cv_prog_compiler_c_o+y}
16091then :
16092  printf %s "(cached) " >&6
16093else $as_nop
16094  lt_cv_prog_compiler_c_o=no
16095   $RM -r conftest 2>/dev/null
16096   mkdir conftest
16097   cd conftest
16098   mkdir out
16099   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16100
16101   lt_compiler_flag="-o out/conftest2.$ac_objext"
16102   # Insert the option either (1) after the last *FLAGS variable, or
16103   # (2) before a word containing "conftest.", or (3) at the end.
16104   # Note that $ac_compile itself does not contain backslashes and begins
16105   # with a dollar sign (not a hyphen), so the echo should work correctly.
16106   lt_compile=`echo "$ac_compile" | $SED \
16107   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16108   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16109   -e 's:$: $lt_compiler_flag:'`
16110   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16111   (eval "$lt_compile" 2>out/conftest.err)
16112   ac_status=$?
16113   cat out/conftest.err >&5
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16116   then
16117     # The compiler can only warn and ignore the option if not recognized
16118     # So say no if there are warnings
16119     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16120     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16121     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16122       lt_cv_prog_compiler_c_o=yes
16123     fi
16124   fi
16125   chmod u+w . 2>&5
16126   $RM conftest*
16127   # SGI C++ compiler will create directory out/ii_files/ for
16128   # template instantiation
16129   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16130   $RM out/* && rmdir out
16131   cd ..
16132   $RM -r conftest
16133   $RM conftest*
16134
16135fi
16136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16137printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16138
16139
16140
16141
16142hard_links=nottested
16143if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16144  # do not overwrite the value of need_locks provided by the user
16145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16146printf %s "checking if we can lock with hard links... " >&6; }
16147  hard_links=yes
16148  $RM conftest*
16149  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16150  touch conftest.a
16151  ln conftest.a conftest.b 2>&5 || hard_links=no
16152  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16154printf "%s\n" "$hard_links" >&6; }
16155  if test no = "$hard_links"; then
16156    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16157printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16158    need_locks=warn
16159  fi
16160else
16161  need_locks=no
16162fi
16163
16164
16165
16166
16167
16168
16169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16170printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16171
16172  runpath_var=
16173  allow_undefined_flag=
16174  always_export_symbols=no
16175  archive_cmds=
16176  archive_expsym_cmds=
16177  compiler_needs_object=no
16178  enable_shared_with_static_runtimes=no
16179  export_dynamic_flag_spec=
16180  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16181  hardcode_automatic=no
16182  hardcode_direct=no
16183  hardcode_direct_absolute=no
16184  hardcode_libdir_flag_spec=
16185  hardcode_libdir_separator=
16186  hardcode_minus_L=no
16187  hardcode_shlibpath_var=unsupported
16188  inherit_rpath=no
16189  link_all_deplibs=unknown
16190  module_cmds=
16191  module_expsym_cmds=
16192  old_archive_from_new_cmds=
16193  old_archive_from_expsyms_cmds=
16194  thread_safe_flag_spec=
16195  whole_archive_flag_spec=
16196  # include_expsyms should be a list of space-separated symbols to be *always*
16197  # included in the symbol list
16198  include_expsyms=
16199  # exclude_expsyms can be an extended regexp of symbols to exclude
16200  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16201  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16202  # as well as any symbol that contains 'd'.
16203  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16204  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16205  # platforms (ab)use it in PIC code, but their linkers get confused if
16206  # the symbol is explicitly referenced.  Since portable code cannot
16207  # rely on this symbol name, it's probably fine to never include it in
16208  # preloaded symbol tables.
16209  # Exclude shared library initialization/finalization symbols.
16210  extract_expsyms_cmds=
16211
16212  case $host_os in
16213  cygwin* | mingw* | pw32* | cegcc*)
16214    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16215    # When not using gcc, we currently assume that we are using
16216    # Microsoft Visual C++ or Intel C++ Compiler.
16217    if test yes != "$GCC"; then
16218      with_gnu_ld=no
16219    fi
16220    ;;
16221  interix*)
16222    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16223    with_gnu_ld=yes
16224    ;;
16225  openbsd* | bitrig*)
16226    with_gnu_ld=no
16227    ;;
16228  esac
16229
16230  ld_shlibs=yes
16231
16232  # On some targets, GNU ld is compatible enough with the native linker
16233  # that we're better off using the native interface for both.
16234  lt_use_gnu_ld_interface=no
16235  if test yes = "$with_gnu_ld"; then
16236    case $host_os in
16237      aix*)
16238	# The AIX port of GNU ld has always aspired to compatibility
16239	# with the native linker.  However, as the warning in the GNU ld
16240	# block says, versions before 2.19.5* couldn't really create working
16241	# shared libraries, regardless of the interface used.
16242	case `$LD -v 2>&1` in
16243	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16244	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16245	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16246	  *)
16247	    lt_use_gnu_ld_interface=yes
16248	    ;;
16249	esac
16250	;;
16251      *)
16252	lt_use_gnu_ld_interface=yes
16253	;;
16254    esac
16255  fi
16256
16257  if test yes = "$lt_use_gnu_ld_interface"; then
16258    # If archive_cmds runs LD, not CC, wlarc should be empty
16259    wlarc='$wl'
16260
16261    # Set some defaults for GNU ld with shared library support. These
16262    # are reset later if shared libraries are not supported. Putting them
16263    # here allows them to be overridden if necessary.
16264    runpath_var=LD_RUN_PATH
16265    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16266    export_dynamic_flag_spec='$wl--export-dynamic'
16267    # ancient GNU ld didn't support --whole-archive et. al.
16268    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16269      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16270    else
16271      whole_archive_flag_spec=
16272    fi
16273    supports_anon_versioning=no
16274    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16275      *GNU\ gold*) supports_anon_versioning=yes ;;
16276      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16277      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16278      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16279      *\ 2.11.*) ;; # other 2.11 versions
16280      *) supports_anon_versioning=yes ;;
16281    esac
16282
16283    # See if GNU ld supports shared libraries.
16284    case $host_os in
16285    aix[3-9]*)
16286      # On AIX/PPC, the GNU linker is very broken
16287      if test ia64 != "$host_cpu"; then
16288	ld_shlibs=no
16289	cat <<_LT_EOF 1>&2
16290
16291*** Warning: the GNU linker, at least up to release 2.19, is reported
16292*** to be unable to reliably create shared libraries on AIX.
16293*** Therefore, libtool is disabling shared libraries support.  If you
16294*** really care for shared libraries, you may want to install binutils
16295*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16296*** You will then need to restart the configuration process.
16297
16298_LT_EOF
16299      fi
16300      ;;
16301
16302    amigaos*)
16303      case $host_cpu in
16304      powerpc)
16305            # see comment about AmigaOS4 .so support
16306            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16307            archive_expsym_cmds=''
16308        ;;
16309      m68k)
16310            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)'
16311            hardcode_libdir_flag_spec='-L$libdir'
16312            hardcode_minus_L=yes
16313        ;;
16314      esac
16315      ;;
16316
16317    beos*)
16318      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16319	allow_undefined_flag=unsupported
16320	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16321	# support --undefined.  This deserves some investigation.  FIXME
16322	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16323      else
16324	ld_shlibs=no
16325      fi
16326      ;;
16327
16328    cygwin* | mingw* | pw32* | cegcc*)
16329      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16330      # as there is no search path for DLLs.
16331      hardcode_libdir_flag_spec='-L$libdir'
16332      export_dynamic_flag_spec='$wl--export-all-symbols'
16333      allow_undefined_flag=unsupported
16334      always_export_symbols=no
16335      enable_shared_with_static_runtimes=yes
16336      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'
16337      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16338
16339      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16340        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16341	# If the export-symbols file already is a .def file, use it as
16342	# is; otherwise, prepend EXPORTS...
16343	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16344          cp $export_symbols $output_objdir/$soname.def;
16345        else
16346          echo EXPORTS > $output_objdir/$soname.def;
16347          cat $export_symbols >> $output_objdir/$soname.def;
16348        fi~
16349        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16350      else
16351	ld_shlibs=no
16352      fi
16353      ;;
16354
16355    haiku*)
16356      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16357      link_all_deplibs=yes
16358      ;;
16359
16360    os2*)
16361      hardcode_libdir_flag_spec='-L$libdir'
16362      hardcode_minus_L=yes
16363      allow_undefined_flag=unsupported
16364      shrext_cmds=.dll
16365      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16366	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16367	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16368	$ECHO EXPORTS >> $output_objdir/$libname.def~
16369	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16370	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16371	emximp -o $lib $output_objdir/$libname.def'
16372      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16373	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16374	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16375	$ECHO EXPORTS >> $output_objdir/$libname.def~
16376	prefix_cmds="$SED"~
16377	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16378	  prefix_cmds="$prefix_cmds -e 1d";
16379	fi~
16380	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16381	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16382	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16383	emximp -o $lib $output_objdir/$libname.def'
16384      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16385      enable_shared_with_static_runtimes=yes
16386      file_list_spec='@'
16387      ;;
16388
16389    interix[3-9]*)
16390      hardcode_direct=no
16391      hardcode_shlibpath_var=no
16392      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16393      export_dynamic_flag_spec='$wl-E'
16394      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16395      # Instead, shared libraries are loaded at an image base (0x10000000 by
16396      # default) and relocated if they conflict, which is a slow very memory
16397      # consuming and fragmenting process.  To avoid this, we pick a random,
16398      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16399      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16400      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16401      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'
16402      ;;
16403
16404    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16405      tmp_diet=no
16406      if test linux-dietlibc = "$host_os"; then
16407	case $cc_basename in
16408	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16409	esac
16410      fi
16411      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16412	 && test no = "$tmp_diet"
16413      then
16414	tmp_addflag=' $pic_flag'
16415	tmp_sharedflag='-shared'
16416	case $cc_basename,$host_cpu in
16417        pgcc*)				# Portland Group C compiler
16418	  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'
16419	  tmp_addflag=' $pic_flag'
16420	  ;;
16421	pgf77* | pgf90* | pgf95* | pgfortran*)
16422					# Portland Group f77 and f90 compilers
16423	  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'
16424	  tmp_addflag=' $pic_flag -Mnomain' ;;
16425	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16426	  tmp_addflag=' -i_dynamic' ;;
16427	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16428	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16429	ifc* | ifort*)			# Intel Fortran compiler
16430	  tmp_addflag=' -nofor_main' ;;
16431	lf95*)				# Lahey Fortran 8.1
16432	  whole_archive_flag_spec=
16433	  tmp_sharedflag='--shared' ;;
16434        nagfor*)                        # NAGFOR 5.3
16435          tmp_sharedflag='-Wl,-shared' ;;
16436	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16437	  tmp_sharedflag='-qmkshrobj'
16438	  tmp_addflag= ;;
16439	nvcc*)	# Cuda Compiler Driver 2.2
16440	  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'
16441	  compiler_needs_object=yes
16442	  ;;
16443	esac
16444	case `$CC -V 2>&1 | $SED 5q` in
16445	*Sun\ C*)			# Sun C 5.9
16446	  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'
16447	  compiler_needs_object=yes
16448	  tmp_sharedflag='-G' ;;
16449	*Sun\ F*)			# Sun Fortran 8.3
16450	  tmp_sharedflag='-G' ;;
16451	esac
16452	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16453
16454        if test yes = "$supports_anon_versioning"; then
16455          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16456            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16457            echo "local: *; };" >> $output_objdir/$libname.ver~
16458            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16459        fi
16460
16461	case $cc_basename in
16462	tcc*)
16463	  export_dynamic_flag_spec='-rdynamic'
16464	  ;;
16465	xlf* | bgf* | bgxlf* | mpixlf*)
16466	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16467	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16468	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16469	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16470	  if test yes = "$supports_anon_versioning"; then
16471	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16472              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16473              echo "local: *; };" >> $output_objdir/$libname.ver~
16474              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16475	  fi
16476	  ;;
16477	esac
16478      else
16479        ld_shlibs=no
16480      fi
16481      ;;
16482
16483    netbsd*)
16484      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16485	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16486	wlarc=
16487      else
16488	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16489	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16490      fi
16491      ;;
16492
16493    solaris*)
16494      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16495	ld_shlibs=no
16496	cat <<_LT_EOF 1>&2
16497
16498*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16499*** create shared libraries on Solaris systems.  Therefore, libtool
16500*** is disabling shared libraries support.  We urge you to upgrade GNU
16501*** binutils to release 2.9.1 or newer.  Another option is to modify
16502*** your PATH or compiler configuration so that the native linker is
16503*** used, and then restart.
16504
16505_LT_EOF
16506      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16507	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16508	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16509      else
16510	ld_shlibs=no
16511      fi
16512      ;;
16513
16514    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16515      case `$LD -v 2>&1` in
16516        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16517	ld_shlibs=no
16518	cat <<_LT_EOF 1>&2
16519
16520*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16521*** reliably create shared libraries on SCO systems.  Therefore, libtool
16522*** is disabling shared libraries support.  We urge you to upgrade GNU
16523*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16524*** your PATH or compiler configuration so that the native linker is
16525*** used, and then restart.
16526
16527_LT_EOF
16528	;;
16529	*)
16530	  # For security reasons, it is highly recommended that you always
16531	  # use absolute paths for naming shared libraries, and exclude the
16532	  # DT_RUNPATH tag from executables and libraries.  But doing so
16533	  # requires that you compile everything twice, which is a pain.
16534	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16535	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16536	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16537	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16538	  else
16539	    ld_shlibs=no
16540	  fi
16541	;;
16542      esac
16543      ;;
16544
16545    sunos4*)
16546      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16547      wlarc=
16548      hardcode_direct=yes
16549      hardcode_shlibpath_var=no
16550      ;;
16551
16552    *)
16553      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16554	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16555	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16556      else
16557	ld_shlibs=no
16558      fi
16559      ;;
16560    esac
16561
16562    if test no = "$ld_shlibs"; then
16563      runpath_var=
16564      hardcode_libdir_flag_spec=
16565      export_dynamic_flag_spec=
16566      whole_archive_flag_spec=
16567    fi
16568  else
16569    # PORTME fill in a description of your system's linker (not GNU ld)
16570    case $host_os in
16571    aix3*)
16572      allow_undefined_flag=unsupported
16573      always_export_symbols=yes
16574      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'
16575      # Note: this linker hardcodes the directories in LIBPATH if there
16576      # are no directories specified by -L.
16577      hardcode_minus_L=yes
16578      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16579	# Neither direct hardcoding nor static linking is supported with a
16580	# broken collect2.
16581	hardcode_direct=unsupported
16582      fi
16583      ;;
16584
16585    aix[4-9]*)
16586      if test ia64 = "$host_cpu"; then
16587	# On IA64, the linker does run time linking by default, so we don't
16588	# have to do anything special.
16589	aix_use_runtimelinking=no
16590	exp_sym_flag='-Bexport'
16591	no_entry_flag=
16592      else
16593	# If we're using GNU nm, then we don't want the "-C" option.
16594	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16595	# Without the "-l" option, or with the "-B" option, AIX nm treats
16596	# weak defined symbols like other global defined symbols, whereas
16597	# GNU nm marks them as "W".
16598	# While the 'weak' keyword is ignored in the Export File, we need
16599	# it in the Import File for the 'aix-soname' feature, so we have
16600	# to replace the "-B" option with "-P" for AIX nm.
16601	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16602	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16603	else
16604	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16605	fi
16606	aix_use_runtimelinking=no
16607
16608	# Test if we are trying to use run time linking or normal
16609	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16610	# have runtime linking enabled, and use it for executables.
16611	# For shared libraries, we enable/disable runtime linking
16612	# depending on the kind of the shared library created -
16613	# when "with_aix_soname,aix_use_runtimelinking" is:
16614	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16615	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16616	#            lib.a           static archive
16617	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16618	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16619	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16620	#            lib.a(lib.so.V) shared, rtl:no
16621	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16622	#            lib.a           static archive
16623	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16624	  for ld_flag in $LDFLAGS; do
16625	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16626	    aix_use_runtimelinking=yes
16627	    break
16628	  fi
16629	  done
16630	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16631	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16632	    # so we don't have lib.a shared libs to link our executables.
16633	    # We have to force runtime linking in this case.
16634	    aix_use_runtimelinking=yes
16635	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16636	  fi
16637	  ;;
16638	esac
16639
16640	exp_sym_flag='-bexport'
16641	no_entry_flag='-bnoentry'
16642      fi
16643
16644      # When large executables or shared objects are built, AIX ld can
16645      # have problems creating the table of contents.  If linking a library
16646      # or program results in "error TOC overflow" add -mminimal-toc to
16647      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16648      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16649
16650      archive_cmds=''
16651      hardcode_direct=yes
16652      hardcode_direct_absolute=yes
16653      hardcode_libdir_separator=':'
16654      link_all_deplibs=yes
16655      file_list_spec='$wl-f,'
16656      case $with_aix_soname,$aix_use_runtimelinking in
16657      aix,*) ;; # traditional, no import file
16658      svr4,* | *,yes) # use import file
16659	# The Import File defines what to hardcode.
16660	hardcode_direct=no
16661	hardcode_direct_absolute=no
16662	;;
16663      esac
16664
16665      if test yes = "$GCC"; then
16666	case $host_os in aix4.[012]|aix4.[012].*)
16667	# We only want to do this on AIX 4.2 and lower, the check
16668	# below for broken collect2 doesn't work under 4.3+
16669	  collect2name=`$CC -print-prog-name=collect2`
16670	  if test -f "$collect2name" &&
16671	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16672	  then
16673	  # We have reworked collect2
16674	  :
16675	  else
16676	  # We have old collect2
16677	  hardcode_direct=unsupported
16678	  # It fails to find uninstalled libraries when the uninstalled
16679	  # path is not listed in the libpath.  Setting hardcode_minus_L
16680	  # to unsupported forces relinking
16681	  hardcode_minus_L=yes
16682	  hardcode_libdir_flag_spec='-L$libdir'
16683	  hardcode_libdir_separator=
16684	  fi
16685	  ;;
16686	esac
16687	shared_flag='-shared'
16688	if test yes = "$aix_use_runtimelinking"; then
16689	  shared_flag="$shared_flag "'$wl-G'
16690	fi
16691	# Need to ensure runtime linking is disabled for the traditional
16692	# shared library, or the linker may eventually find shared libraries
16693	# /with/ Import File - we do not want to mix them.
16694	shared_flag_aix='-shared'
16695	shared_flag_svr4='-shared $wl-G'
16696      else
16697	# not using gcc
16698	if test ia64 = "$host_cpu"; then
16699	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16700	# chokes on -Wl,-G. The following line is correct:
16701	  shared_flag='-G'
16702	else
16703	  if test yes = "$aix_use_runtimelinking"; then
16704	    shared_flag='$wl-G'
16705	  else
16706	    shared_flag='$wl-bM:SRE'
16707	  fi
16708	  shared_flag_aix='$wl-bM:SRE'
16709	  shared_flag_svr4='$wl-G'
16710	fi
16711      fi
16712
16713      export_dynamic_flag_spec='$wl-bexpall'
16714      # It seems that -bexpall does not export symbols beginning with
16715      # underscore (_), so it is better to generate a list of symbols to export.
16716      always_export_symbols=yes
16717      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16718	# Warning - without using the other runtime loading flags (-brtl),
16719	# -berok will link without error, but may produce a broken library.
16720	allow_undefined_flag='-berok'
16721        # Determine the default libpath from the value encoded in an
16722        # empty executable.
16723        if test set = "${lt_cv_aix_libpath+set}"; then
16724  aix_libpath=$lt_cv_aix_libpath
16725else
16726  if test ${lt_cv_aix_libpath_+y}
16727then :
16728  printf %s "(cached) " >&6
16729else $as_nop
16730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731/* end confdefs.h.  */
16732
16733int
16734main (void)
16735{
16736
16737  ;
16738  return 0;
16739}
16740_ACEOF
16741if ac_fn_c_try_link "$LINENO"
16742then :
16743
16744  lt_aix_libpath_sed='
16745      /Import File Strings/,/^$/ {
16746	  /^0/ {
16747	      s/^0  *\([^ ]*\) *$/\1/
16748	      p
16749	  }
16750      }'
16751  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16752  # Check for a 64-bit object if we didn't find anything.
16753  if test -z "$lt_cv_aix_libpath_"; then
16754    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16755  fi
16756fi
16757rm -f core conftest.err conftest.$ac_objext conftest.beam \
16758    conftest$ac_exeext conftest.$ac_ext
16759  if test -z "$lt_cv_aix_libpath_"; then
16760    lt_cv_aix_libpath_=/usr/lib:/lib
16761  fi
16762
16763fi
16764
16765  aix_libpath=$lt_cv_aix_libpath_
16766fi
16767
16768        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16769        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
16770      else
16771	if test ia64 = "$host_cpu"; then
16772	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16773	  allow_undefined_flag="-z nodefs"
16774	  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"
16775	else
16776	 # Determine the default libpath from the value encoded in an
16777	 # empty executable.
16778	 if test set = "${lt_cv_aix_libpath+set}"; then
16779  aix_libpath=$lt_cv_aix_libpath
16780else
16781  if test ${lt_cv_aix_libpath_+y}
16782then :
16783  printf %s "(cached) " >&6
16784else $as_nop
16785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786/* end confdefs.h.  */
16787
16788int
16789main (void)
16790{
16791
16792  ;
16793  return 0;
16794}
16795_ACEOF
16796if ac_fn_c_try_link "$LINENO"
16797then :
16798
16799  lt_aix_libpath_sed='
16800      /Import File Strings/,/^$/ {
16801	  /^0/ {
16802	      s/^0  *\([^ ]*\) *$/\1/
16803	      p
16804	  }
16805      }'
16806  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16807  # Check for a 64-bit object if we didn't find anything.
16808  if test -z "$lt_cv_aix_libpath_"; then
16809    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16810  fi
16811fi
16812rm -f core conftest.err conftest.$ac_objext conftest.beam \
16813    conftest$ac_exeext conftest.$ac_ext
16814  if test -z "$lt_cv_aix_libpath_"; then
16815    lt_cv_aix_libpath_=/usr/lib:/lib
16816  fi
16817
16818fi
16819
16820  aix_libpath=$lt_cv_aix_libpath_
16821fi
16822
16823	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16824	  # Warning - without using the other run time loading flags,
16825	  # -berok will link without error, but may produce a broken library.
16826	  no_undefined_flag=' $wl-bernotok'
16827	  allow_undefined_flag=' $wl-berok'
16828	  if test yes = "$with_gnu_ld"; then
16829	    # We only use this code for GNU lds that support --whole-archive.
16830	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16831	  else
16832	    # Exported symbols can be pulled into shared objects from archives
16833	    whole_archive_flag_spec='$convenience'
16834	  fi
16835	  archive_cmds_need_lc=yes
16836	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16837	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16838	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16839	  if test svr4 != "$with_aix_soname"; then
16840	    # This is similar to how AIX traditionally builds its shared libraries.
16841	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16842	  fi
16843	  if test aix != "$with_aix_soname"; then
16844	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16845	  else
16846	    # used by -dlpreopen to get the symbols
16847	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16848	  fi
16849	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16850	fi
16851      fi
16852      ;;
16853
16854    amigaos*)
16855      case $host_cpu in
16856      powerpc)
16857            # see comment about AmigaOS4 .so support
16858            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16859            archive_expsym_cmds=''
16860        ;;
16861      m68k)
16862            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)'
16863            hardcode_libdir_flag_spec='-L$libdir'
16864            hardcode_minus_L=yes
16865        ;;
16866      esac
16867      ;;
16868
16869    bsdi[45]*)
16870      export_dynamic_flag_spec=-rdynamic
16871      ;;
16872
16873    cygwin* | mingw* | pw32* | cegcc*)
16874      # When not using gcc, we currently assume that we are using
16875      # Microsoft Visual C++ or Intel C++ Compiler.
16876      # hardcode_libdir_flag_spec is actually meaningless, as there is
16877      # no search path for DLLs.
16878      case $cc_basename in
16879      cl* | icl*)
16880	# Native MSVC or ICC
16881	hardcode_libdir_flag_spec=' '
16882	allow_undefined_flag=unsupported
16883	always_export_symbols=yes
16884	file_list_spec='@'
16885	# Tell ltmain to make .lib files, not .a files.
16886	libext=lib
16887	# Tell ltmain to make .dll files, not .so files.
16888	shrext_cmds=.dll
16889	# FIXME: Setting linknames here is a bad hack.
16890	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16891	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16892            cp "$export_symbols" "$output_objdir/$soname.def";
16893            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16894          else
16895            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16896          fi~
16897          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16898          linknames='
16899	# The linker will not automatically build a static lib if we build a DLL.
16900	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16901	enable_shared_with_static_runtimes=yes
16902	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16903	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16904	# Don't use ranlib
16905	old_postinstall_cmds='chmod 644 $oldlib'
16906	postlink_cmds='lt_outputfile="@OUTPUT@"~
16907          lt_tool_outputfile="@TOOL_OUTPUT@"~
16908          case $lt_outputfile in
16909            *.exe|*.EXE) ;;
16910            *)
16911              lt_outputfile=$lt_outputfile.exe
16912              lt_tool_outputfile=$lt_tool_outputfile.exe
16913              ;;
16914          esac~
16915          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16916            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16917            $RM "$lt_outputfile.manifest";
16918          fi'
16919	;;
16920      *)
16921	# Assume MSVC and ICC wrapper
16922	hardcode_libdir_flag_spec=' '
16923	allow_undefined_flag=unsupported
16924	# Tell ltmain to make .lib files, not .a files.
16925	libext=lib
16926	# Tell ltmain to make .dll files, not .so files.
16927	shrext_cmds=.dll
16928	# FIXME: Setting linknames here is a bad hack.
16929	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16930	# The linker will automatically build a .lib file if we build a DLL.
16931	old_archive_from_new_cmds='true'
16932	# FIXME: Should let the user specify the lib program.
16933	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16934	enable_shared_with_static_runtimes=yes
16935	;;
16936      esac
16937      ;;
16938
16939    darwin* | rhapsody*)
16940
16941
16942  archive_cmds_need_lc=no
16943  hardcode_direct=no
16944  hardcode_automatic=yes
16945  hardcode_shlibpath_var=unsupported
16946  if test yes = "$lt_cv_ld_force_load"; then
16947    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\"`'
16948
16949  else
16950    whole_archive_flag_spec=''
16951  fi
16952  link_all_deplibs=yes
16953  allow_undefined_flag=$_lt_dar_allow_undefined
16954  case $cc_basename in
16955     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16956     *) _lt_dar_can_shared=$GCC ;;
16957  esac
16958  if test yes = "$_lt_dar_can_shared"; then
16959    output_verbose_link_cmd=func_echo_all
16960    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16961    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16962    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"
16963    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"
16964
16965  else
16966  ld_shlibs=no
16967  fi
16968
16969      ;;
16970
16971    dgux*)
16972      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16973      hardcode_libdir_flag_spec='-L$libdir'
16974      hardcode_shlibpath_var=no
16975      ;;
16976
16977    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16978    # support.  Future versions do this automatically, but an explicit c++rt0.o
16979    # does not break anything, and helps significantly (at the cost of a little
16980    # extra space).
16981    freebsd2.2*)
16982      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16983      hardcode_libdir_flag_spec='-R$libdir'
16984      hardcode_direct=yes
16985      hardcode_shlibpath_var=no
16986      ;;
16987
16988    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16989    freebsd2.*)
16990      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16991      hardcode_direct=yes
16992      hardcode_minus_L=yes
16993      hardcode_shlibpath_var=no
16994      ;;
16995
16996    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16997    freebsd* | dragonfly* | midnightbsd*)
16998      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16999      hardcode_libdir_flag_spec='-R$libdir'
17000      hardcode_direct=yes
17001      hardcode_shlibpath_var=no
17002      ;;
17003
17004    hpux9*)
17005      if test yes = "$GCC"; then
17006	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17007      else
17008	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17009      fi
17010      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17011      hardcode_libdir_separator=:
17012      hardcode_direct=yes
17013
17014      # hardcode_minus_L: Not really in the search PATH,
17015      # but as the default location of the library.
17016      hardcode_minus_L=yes
17017      export_dynamic_flag_spec='$wl-E'
17018      ;;
17019
17020    hpux10*)
17021      if test yes,no = "$GCC,$with_gnu_ld"; then
17022	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17023      else
17024	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17025      fi
17026      if test no = "$with_gnu_ld"; then
17027	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17028	hardcode_libdir_separator=:
17029	hardcode_direct=yes
17030	hardcode_direct_absolute=yes
17031	export_dynamic_flag_spec='$wl-E'
17032	# hardcode_minus_L: Not really in the search PATH,
17033	# but as the default location of the library.
17034	hardcode_minus_L=yes
17035      fi
17036      ;;
17037
17038    hpux11*)
17039      if test yes,no = "$GCC,$with_gnu_ld"; then
17040	case $host_cpu in
17041	hppa*64*)
17042	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17043	  ;;
17044	ia64*)
17045	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17046	  ;;
17047	*)
17048	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17049	  ;;
17050	esac
17051      else
17052	case $host_cpu in
17053	hppa*64*)
17054	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17055	  ;;
17056	ia64*)
17057	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17058	  ;;
17059	*)
17060
17061	  # Older versions of the 11.00 compiler do not understand -b yet
17062	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17063	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17064printf %s "checking if $CC understands -b... " >&6; }
17065if test ${lt_cv_prog_compiler__b+y}
17066then :
17067  printf %s "(cached) " >&6
17068else $as_nop
17069  lt_cv_prog_compiler__b=no
17070   save_LDFLAGS=$LDFLAGS
17071   LDFLAGS="$LDFLAGS -b"
17072   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17073   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17074     # The linker can only warn and ignore the option if not recognized
17075     # So say no if there are warnings
17076     if test -s conftest.err; then
17077       # Append any errors to the config.log.
17078       cat conftest.err 1>&5
17079       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17080       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17081       if diff conftest.exp conftest.er2 >/dev/null; then
17082         lt_cv_prog_compiler__b=yes
17083       fi
17084     else
17085       lt_cv_prog_compiler__b=yes
17086     fi
17087   fi
17088   $RM -r conftest*
17089   LDFLAGS=$save_LDFLAGS
17090
17091fi
17092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17093printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17094
17095if test yes = "$lt_cv_prog_compiler__b"; then
17096    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17097else
17098    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17099fi
17100
17101	  ;;
17102	esac
17103      fi
17104      if test no = "$with_gnu_ld"; then
17105	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17106	hardcode_libdir_separator=:
17107
17108	case $host_cpu in
17109	hppa*64*|ia64*)
17110	  hardcode_direct=no
17111	  hardcode_shlibpath_var=no
17112	  ;;
17113	*)
17114	  hardcode_direct=yes
17115	  hardcode_direct_absolute=yes
17116	  export_dynamic_flag_spec='$wl-E'
17117
17118	  # hardcode_minus_L: Not really in the search PATH,
17119	  # but as the default location of the library.
17120	  hardcode_minus_L=yes
17121	  ;;
17122	esac
17123      fi
17124      ;;
17125
17126    irix5* | irix6* | nonstopux*)
17127      if test yes = "$GCC"; then
17128	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'
17129	# Try to use the -exported_symbol ld option, if it does not
17130	# work, assume that -exports_file does not work either and
17131	# implicitly export all symbols.
17132	# This should be the same for all languages, so no per-tag cache variable.
17133	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17134printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17135if test ${lt_cv_irix_exported_symbol+y}
17136then :
17137  printf %s "(cached) " >&6
17138else $as_nop
17139  save_LDFLAGS=$LDFLAGS
17140	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17141	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142/* end confdefs.h.  */
17143int foo (void) { return 0; }
17144_ACEOF
17145if ac_fn_c_try_link "$LINENO"
17146then :
17147  lt_cv_irix_exported_symbol=yes
17148else $as_nop
17149  lt_cv_irix_exported_symbol=no
17150fi
17151rm -f core conftest.err conftest.$ac_objext conftest.beam \
17152    conftest$ac_exeext conftest.$ac_ext
17153           LDFLAGS=$save_LDFLAGS
17154fi
17155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17156printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17157	if test yes = "$lt_cv_irix_exported_symbol"; then
17158          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'
17159	fi
17160      else
17161	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'
17162	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'
17163      fi
17164      archive_cmds_need_lc='no'
17165      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17166      hardcode_libdir_separator=:
17167      inherit_rpath=yes
17168      link_all_deplibs=yes
17169      ;;
17170
17171    linux*)
17172      case $cc_basename in
17173      tcc*)
17174	# Fabrice Bellard et al's Tiny C Compiler
17175	ld_shlibs=yes
17176	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17177	;;
17178      esac
17179      ;;
17180
17181    netbsd*)
17182      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17183	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17184      else
17185	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17186      fi
17187      hardcode_libdir_flag_spec='-R$libdir'
17188      hardcode_direct=yes
17189      hardcode_shlibpath_var=no
17190      ;;
17191
17192    newsos6)
17193      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17194      hardcode_direct=yes
17195      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17196      hardcode_libdir_separator=:
17197      hardcode_shlibpath_var=no
17198      ;;
17199
17200    *nto* | *qnx*)
17201      ;;
17202
17203    openbsd* | bitrig*)
17204      if test -f /usr/libexec/ld.so; then
17205	hardcode_direct=yes
17206	hardcode_shlibpath_var=no
17207	hardcode_direct_absolute=yes
17208	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17209	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17210	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17211	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17212	  export_dynamic_flag_spec='$wl-E'
17213	else
17214	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17215	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17216	fi
17217      else
17218	ld_shlibs=no
17219      fi
17220      ;;
17221
17222    os2*)
17223      hardcode_libdir_flag_spec='-L$libdir'
17224      hardcode_minus_L=yes
17225      allow_undefined_flag=unsupported
17226      shrext_cmds=.dll
17227      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17228	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17229	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17230	$ECHO EXPORTS >> $output_objdir/$libname.def~
17231	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17232	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17233	emximp -o $lib $output_objdir/$libname.def'
17234      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17235	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17236	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17237	$ECHO EXPORTS >> $output_objdir/$libname.def~
17238	prefix_cmds="$SED"~
17239	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17240	  prefix_cmds="$prefix_cmds -e 1d";
17241	fi~
17242	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17243	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17244	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17245	emximp -o $lib $output_objdir/$libname.def'
17246      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17247      enable_shared_with_static_runtimes=yes
17248      file_list_spec='@'
17249      ;;
17250
17251    osf3*)
17252      if test yes = "$GCC"; then
17253	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17254	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'
17255      else
17256	allow_undefined_flag=' -expect_unresolved \*'
17257	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'
17258      fi
17259      archive_cmds_need_lc='no'
17260      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17261      hardcode_libdir_separator=:
17262      ;;
17263
17264    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17265      if test yes = "$GCC"; then
17266	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17267	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'
17268	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17269      else
17270	allow_undefined_flag=' -expect_unresolved \*'
17271	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'
17272	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~
17273          $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'
17274
17275	# Both c and cxx compiler support -rpath directly
17276	hardcode_libdir_flag_spec='-rpath $libdir'
17277      fi
17278      archive_cmds_need_lc='no'
17279      hardcode_libdir_separator=:
17280      ;;
17281
17282    solaris*)
17283      no_undefined_flag=' -z defs'
17284      if test yes = "$GCC"; then
17285	wlarc='$wl'
17286	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17287	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17288          $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'
17289      else
17290	case `$CC -V 2>&1` in
17291	*"Compilers 5.0"*)
17292	  wlarc=''
17293	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17294	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17295            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17296	  ;;
17297	*)
17298	  wlarc='$wl'
17299	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17300	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17301            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17302	  ;;
17303	esac
17304      fi
17305      hardcode_libdir_flag_spec='-R$libdir'
17306      hardcode_shlibpath_var=no
17307      case $host_os in
17308      solaris2.[0-5] | solaris2.[0-5].*) ;;
17309      *)
17310	# The compiler driver will combine and reorder linker options,
17311	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17312	# but is careful enough not to reorder.
17313	# Supported since Solaris 2.6 (maybe 2.5.1?)
17314	if test yes = "$GCC"; then
17315	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17316	else
17317	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17318	fi
17319	;;
17320      esac
17321      link_all_deplibs=yes
17322      ;;
17323
17324    sunos4*)
17325      if test sequent = "$host_vendor"; then
17326	# Use $CC to link under sequent, because it throws in some extra .o
17327	# files that make .init and .fini sections work.
17328	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17329      else
17330	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17331      fi
17332      hardcode_libdir_flag_spec='-L$libdir'
17333      hardcode_direct=yes
17334      hardcode_minus_L=yes
17335      hardcode_shlibpath_var=no
17336      ;;
17337
17338    sysv4)
17339      case $host_vendor in
17340	sni)
17341	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17342	  hardcode_direct=yes # is this really true???
17343	;;
17344	siemens)
17345	  ## LD is ld it makes a PLAMLIB
17346	  ## CC just makes a GrossModule.
17347	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17348	  reload_cmds='$CC -r -o $output$reload_objs'
17349	  hardcode_direct=no
17350        ;;
17351	motorola)
17352	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17353	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17354	;;
17355      esac
17356      runpath_var='LD_RUN_PATH'
17357      hardcode_shlibpath_var=no
17358      ;;
17359
17360    sysv4.3*)
17361      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17362      hardcode_shlibpath_var=no
17363      export_dynamic_flag_spec='-Bexport'
17364      ;;
17365
17366    sysv4*MP*)
17367      if test -d /usr/nec; then
17368	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17369	hardcode_shlibpath_var=no
17370	runpath_var=LD_RUN_PATH
17371	hardcode_runpath_var=yes
17372	ld_shlibs=yes
17373      fi
17374      ;;
17375
17376    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17377      no_undefined_flag='$wl-z,text'
17378      archive_cmds_need_lc=no
17379      hardcode_shlibpath_var=no
17380      runpath_var='LD_RUN_PATH'
17381
17382      if test yes = "$GCC"; then
17383	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17384	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17385      else
17386	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17387	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17388      fi
17389      ;;
17390
17391    sysv5* | sco3.2v5* | sco5v6*)
17392      # Note: We CANNOT use -z defs as we might desire, because we do not
17393      # link with -lc, and that would cause any symbols used from libc to
17394      # always be unresolved, which means just about no library would
17395      # ever link correctly.  If we're not using GNU ld we use -z text
17396      # though, which does catch some bad symbols but isn't as heavy-handed
17397      # as -z defs.
17398      no_undefined_flag='$wl-z,text'
17399      allow_undefined_flag='$wl-z,nodefs'
17400      archive_cmds_need_lc=no
17401      hardcode_shlibpath_var=no
17402      hardcode_libdir_flag_spec='$wl-R,$libdir'
17403      hardcode_libdir_separator=':'
17404      link_all_deplibs=yes
17405      export_dynamic_flag_spec='$wl-Bexport'
17406      runpath_var='LD_RUN_PATH'
17407
17408      if test yes = "$GCC"; then
17409	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17410	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17411      else
17412	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17413	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17414      fi
17415      ;;
17416
17417    uts4*)
17418      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17419      hardcode_libdir_flag_spec='-L$libdir'
17420      hardcode_shlibpath_var=no
17421      ;;
17422
17423    *)
17424      ld_shlibs=no
17425      ;;
17426    esac
17427
17428    if test sni = "$host_vendor"; then
17429      case $host in
17430      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17431	export_dynamic_flag_spec='$wl-Blargedynsym'
17432	;;
17433      esac
17434    fi
17435  fi
17436
17437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17438printf "%s\n" "$ld_shlibs" >&6; }
17439test no = "$ld_shlibs" && can_build_shared=no
17440
17441with_gnu_ld=$with_gnu_ld
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457#
17458# Do we need to explicitly link libc?
17459#
17460case "x$archive_cmds_need_lc" in
17461x|xyes)
17462  # Assume -lc should be added
17463  archive_cmds_need_lc=yes
17464
17465  if test yes,yes = "$GCC,$enable_shared"; then
17466    case $archive_cmds in
17467    *'~'*)
17468      # FIXME: we may have to deal with multi-command sequences.
17469      ;;
17470    '$CC '*)
17471      # Test whether the compiler implicitly links with -lc since on some
17472      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17473      # to ld, don't add -lc before -lgcc.
17474      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17475printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17476if test ${lt_cv_archive_cmds_need_lc+y}
17477then :
17478  printf %s "(cached) " >&6
17479else $as_nop
17480  $RM conftest*
17481	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17482
17483	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17484  (eval $ac_compile) 2>&5
17485  ac_status=$?
17486  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17487  test $ac_status = 0; } 2>conftest.err; then
17488	  soname=conftest
17489	  lib=conftest
17490	  libobjs=conftest.$ac_objext
17491	  deplibs=
17492	  wl=$lt_prog_compiler_wl
17493	  pic_flag=$lt_prog_compiler_pic
17494	  compiler_flags=-v
17495	  linker_flags=-v
17496	  verstring=
17497	  output_objdir=.
17498	  libname=conftest
17499	  lt_save_allow_undefined_flag=$allow_undefined_flag
17500	  allow_undefined_flag=
17501	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17502  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17503  ac_status=$?
17504  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17505  test $ac_status = 0; }
17506	  then
17507	    lt_cv_archive_cmds_need_lc=no
17508	  else
17509	    lt_cv_archive_cmds_need_lc=yes
17510	  fi
17511	  allow_undefined_flag=$lt_save_allow_undefined_flag
17512	else
17513	  cat conftest.err 1>&5
17514	fi
17515	$RM conftest*
17516
17517fi
17518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17519printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17520      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17521      ;;
17522    esac
17523  fi
17524  ;;
17525esac
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17679printf %s "checking dynamic linker characteristics... " >&6; }
17680
17681if test yes = "$GCC"; then
17682  case $host_os in
17683    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17684    *) lt_awk_arg='/^libraries:/' ;;
17685  esac
17686  case $host_os in
17687    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17688    *) lt_sed_strip_eq='s|=/|/|g' ;;
17689  esac
17690  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17691  case $lt_search_path_spec in
17692  *\;*)
17693    # if the path contains ";" then we assume it to be the separator
17694    # otherwise default to the standard path separator (i.e. ":") - it is
17695    # assumed that no part of a normal pathname contains ";" but that should
17696    # okay in the real world where ";" in dirpaths is itself problematic.
17697    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17698    ;;
17699  *)
17700    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17701    ;;
17702  esac
17703  # Ok, now we have the path, separated by spaces, we can step through it
17704  # and add multilib dir if necessary...
17705  lt_tmp_lt_search_path_spec=
17706  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17707  # ...but if some path component already ends with the multilib dir we assume
17708  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17709  case "$lt_multi_os_dir; $lt_search_path_spec " in
17710  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17711    lt_multi_os_dir=
17712    ;;
17713  esac
17714  for lt_sys_path in $lt_search_path_spec; do
17715    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17716      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17717    elif test -n "$lt_multi_os_dir"; then
17718      test -d "$lt_sys_path" && \
17719	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17720    fi
17721  done
17722  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17723BEGIN {RS = " "; FS = "/|\n";} {
17724  lt_foo = "";
17725  lt_count = 0;
17726  for (lt_i = NF; lt_i > 0; lt_i--) {
17727    if ($lt_i != "" && $lt_i != ".") {
17728      if ($lt_i == "..") {
17729        lt_count++;
17730      } else {
17731        if (lt_count == 0) {
17732          lt_foo = "/" $lt_i lt_foo;
17733        } else {
17734          lt_count--;
17735        }
17736      }
17737    }
17738  }
17739  if (lt_foo != "") { lt_freq[lt_foo]++; }
17740  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17741}'`
17742  # AWK program above erroneously prepends '/' to C:/dos/paths
17743  # for these hosts.
17744  case $host_os in
17745    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17746      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17747  esac
17748  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17749else
17750  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17751fi
17752library_names_spec=
17753libname_spec='lib$name'
17754soname_spec=
17755shrext_cmds=.so
17756postinstall_cmds=
17757postuninstall_cmds=
17758finish_cmds=
17759finish_eval=
17760shlibpath_var=
17761shlibpath_overrides_runpath=unknown
17762version_type=none
17763dynamic_linker="$host_os ld.so"
17764sys_lib_dlsearch_path_spec="/lib /usr/lib"
17765need_lib_prefix=unknown
17766hardcode_into_libs=no
17767
17768# when you set need_version to no, make sure it does not cause -set_version
17769# flags to be left without arguments
17770need_version=unknown
17771
17772
17773
17774case $host_os in
17775aix3*)
17776  version_type=linux # correct to gnu/linux during the next big refactor
17777  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17778  shlibpath_var=LIBPATH
17779
17780  # AIX 3 has no versioning support, so we append a major version to the name.
17781  soname_spec='$libname$release$shared_ext$major'
17782  ;;
17783
17784aix[4-9]*)
17785  version_type=linux # correct to gnu/linux during the next big refactor
17786  need_lib_prefix=no
17787  need_version=no
17788  hardcode_into_libs=yes
17789  if test ia64 = "$host_cpu"; then
17790    # AIX 5 supports IA64
17791    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17792    shlibpath_var=LD_LIBRARY_PATH
17793  else
17794    # With GCC up to 2.95.x, collect2 would create an import file
17795    # for dependence libraries.  The import file would start with
17796    # the line '#! .'.  This would cause the generated library to
17797    # depend on '.', always an invalid library.  This was fixed in
17798    # development snapshots of GCC prior to 3.0.
17799    case $host_os in
17800      aix4 | aix4.[01] | aix4.[01].*)
17801      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17802	   echo ' yes '
17803	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17804	:
17805      else
17806	can_build_shared=no
17807      fi
17808      ;;
17809    esac
17810    # Using Import Files as archive members, it is possible to support
17811    # filename-based versioning of shared library archives on AIX. While
17812    # this would work for both with and without runtime linking, it will
17813    # prevent static linking of such archives. So we do filename-based
17814    # shared library versioning with .so extension only, which is used
17815    # when both runtime linking and shared linking is enabled.
17816    # Unfortunately, runtime linking may impact performance, so we do
17817    # not want this to be the default eventually. Also, we use the
17818    # versioned .so libs for executables only if there is the -brtl
17819    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17820    # To allow for filename-based versioning support, we need to create
17821    # libNAME.so.V as an archive file, containing:
17822    # *) an Import File, referring to the versioned filename of the
17823    #    archive as well as the shared archive member, telling the
17824    #    bitwidth (32 or 64) of that shared object, and providing the
17825    #    list of exported symbols of that shared object, eventually
17826    #    decorated with the 'weak' keyword
17827    # *) the shared object with the F_LOADONLY flag set, to really avoid
17828    #    it being seen by the linker.
17829    # At run time we better use the real file rather than another symlink,
17830    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17831
17832    case $with_aix_soname,$aix_use_runtimelinking in
17833    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17834    # soname into executable. Probably we can add versioning support to
17835    # collect2, so additional links can be useful in future.
17836    aix,yes) # traditional libtool
17837      dynamic_linker='AIX unversionable lib.so'
17838      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17839      # instead of lib<name>.a to let people know that these are not
17840      # typical AIX shared libraries.
17841      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17842      ;;
17843    aix,no) # traditional AIX only
17844      dynamic_linker='AIX lib.a(lib.so.V)'
17845      # We preserve .a as extension for shared libraries through AIX4.2
17846      # and later when we are not doing run time linking.
17847      library_names_spec='$libname$release.a $libname.a'
17848      soname_spec='$libname$release$shared_ext$major'
17849      ;;
17850    svr4,*) # full svr4 only
17851      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17852      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17853      # We do not specify a path in Import Files, so LIBPATH fires.
17854      shlibpath_overrides_runpath=yes
17855      ;;
17856    *,yes) # both, prefer svr4
17857      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17858      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17859      # unpreferred sharedlib libNAME.a needs extra handling
17860      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17861      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17862      # We do not specify a path in Import Files, so LIBPATH fires.
17863      shlibpath_overrides_runpath=yes
17864      ;;
17865    *,no) # both, prefer aix
17866      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17867      library_names_spec='$libname$release.a $libname.a'
17868      soname_spec='$libname$release$shared_ext$major'
17869      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17870      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17871      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17872      ;;
17873    esac
17874    shlibpath_var=LIBPATH
17875  fi
17876  ;;
17877
17878amigaos*)
17879  case $host_cpu in
17880  powerpc)
17881    # Since July 2007 AmigaOS4 officially supports .so libraries.
17882    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17883    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17884    ;;
17885  m68k)
17886    library_names_spec='$libname.ixlibrary $libname.a'
17887    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17888    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17889    ;;
17890  esac
17891  ;;
17892
17893beos*)
17894  library_names_spec='$libname$shared_ext'
17895  dynamic_linker="$host_os ld.so"
17896  shlibpath_var=LIBRARY_PATH
17897  ;;
17898
17899bsdi[45]*)
17900  version_type=linux # correct to gnu/linux during the next big refactor
17901  need_version=no
17902  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17903  soname_spec='$libname$release$shared_ext$major'
17904  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17905  shlibpath_var=LD_LIBRARY_PATH
17906  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17907  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17908  # the default ld.so.conf also contains /usr/contrib/lib and
17909  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17910  # libtool to hard-code these into programs
17911  ;;
17912
17913cygwin* | mingw* | pw32* | cegcc*)
17914  version_type=windows
17915  shrext_cmds=.dll
17916  need_version=no
17917  need_lib_prefix=no
17918
17919  case $GCC,$cc_basename in
17920  yes,*)
17921    # gcc
17922    library_names_spec='$libname.dll.a'
17923    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17924    postinstall_cmds='base_file=`basename \$file`~
17925      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17926      dldir=$destdir/`dirname \$dlpath`~
17927      test -d \$dldir || mkdir -p \$dldir~
17928      $install_prog $dir/$dlname \$dldir/$dlname~
17929      chmod a+x \$dldir/$dlname~
17930      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17931        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17932      fi'
17933    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17934      dlpath=$dir/\$dldll~
17935       $RM \$dlpath'
17936    shlibpath_overrides_runpath=yes
17937
17938    case $host_os in
17939    cygwin*)
17940      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17941      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17942
17943      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17944      ;;
17945    mingw* | cegcc*)
17946      # MinGW DLLs use traditional 'lib' prefix
17947      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17948      ;;
17949    pw32*)
17950      # pw32 DLLs use 'pw' prefix rather than 'lib'
17951      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17952      ;;
17953    esac
17954    dynamic_linker='Win32 ld.exe'
17955    ;;
17956
17957  *,cl* | *,icl*)
17958    # Native MSVC or ICC
17959    libname_spec='$name'
17960    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17961    library_names_spec='$libname.dll.lib'
17962
17963    case $build_os in
17964    mingw*)
17965      sys_lib_search_path_spec=
17966      lt_save_ifs=$IFS
17967      IFS=';'
17968      for lt_path in $LIB
17969      do
17970        IFS=$lt_save_ifs
17971        # Let DOS variable expansion print the short 8.3 style file name.
17972        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17973        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17974      done
17975      IFS=$lt_save_ifs
17976      # Convert to MSYS style.
17977      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17978      ;;
17979    cygwin*)
17980      # Convert to unix form, then to dos form, then back to unix form
17981      # but this time dos style (no spaces!) so that the unix form looks
17982      # like /cygdrive/c/PROGRA~1:/cygdr...
17983      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17984      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17985      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17986      ;;
17987    *)
17988      sys_lib_search_path_spec=$LIB
17989      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17990        # It is most probably a Windows format PATH.
17991        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17992      else
17993        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17994      fi
17995      # FIXME: find the short name or the path components, as spaces are
17996      # common. (e.g. "Program Files" -> "PROGRA~1")
17997      ;;
17998    esac
17999
18000    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18001    postinstall_cmds='base_file=`basename \$file`~
18002      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18003      dldir=$destdir/`dirname \$dlpath`~
18004      test -d \$dldir || mkdir -p \$dldir~
18005      $install_prog $dir/$dlname \$dldir/$dlname'
18006    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18007      dlpath=$dir/\$dldll~
18008       $RM \$dlpath'
18009    shlibpath_overrides_runpath=yes
18010    dynamic_linker='Win32 link.exe'
18011    ;;
18012
18013  *)
18014    # Assume MSVC and ICC wrapper
18015    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18016    dynamic_linker='Win32 ld.exe'
18017    ;;
18018  esac
18019  # FIXME: first we should search . and the directory the executable is in
18020  shlibpath_var=PATH
18021  ;;
18022
18023darwin* | rhapsody*)
18024  dynamic_linker="$host_os dyld"
18025  version_type=darwin
18026  need_lib_prefix=no
18027  need_version=no
18028  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18029  soname_spec='$libname$release$major$shared_ext'
18030  shlibpath_overrides_runpath=yes
18031  shlibpath_var=DYLD_LIBRARY_PATH
18032  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18033
18034  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18035  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18036  ;;
18037
18038dgux*)
18039  version_type=linux # correct to gnu/linux during the next big refactor
18040  need_lib_prefix=no
18041  need_version=no
18042  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18043  soname_spec='$libname$release$shared_ext$major'
18044  shlibpath_var=LD_LIBRARY_PATH
18045  ;;
18046
18047freebsd* | dragonfly* | midnightbsd*)
18048  # DragonFly does not have aout.  When/if they implement a new
18049  # versioning mechanism, adjust this.
18050  if test -x /usr/bin/objformat; then
18051    objformat=`/usr/bin/objformat`
18052  else
18053    case $host_os in
18054    freebsd[23].*) objformat=aout ;;
18055    *) objformat=elf ;;
18056    esac
18057  fi
18058  version_type=freebsd-$objformat
18059  case $version_type in
18060    freebsd-elf*)
18061      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18062      soname_spec='$libname$release$shared_ext$major'
18063      need_version=no
18064      need_lib_prefix=no
18065      ;;
18066    freebsd-*)
18067      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18068      need_version=yes
18069      ;;
18070  esac
18071  shlibpath_var=LD_LIBRARY_PATH
18072  case $host_os in
18073  freebsd2.*)
18074    shlibpath_overrides_runpath=yes
18075    ;;
18076  freebsd3.[01]* | freebsdelf3.[01]*)
18077    shlibpath_overrides_runpath=yes
18078    hardcode_into_libs=yes
18079    ;;
18080  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18081  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18082    shlibpath_overrides_runpath=no
18083    hardcode_into_libs=yes
18084    ;;
18085  *) # from 4.6 on, and DragonFly
18086    shlibpath_overrides_runpath=yes
18087    hardcode_into_libs=yes
18088    ;;
18089  esac
18090  ;;
18091
18092haiku*)
18093  version_type=linux # correct to gnu/linux during the next big refactor
18094  need_lib_prefix=no
18095  need_version=no
18096  dynamic_linker="$host_os runtime_loader"
18097  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18098  soname_spec='$libname$release$shared_ext$major'
18099  shlibpath_var=LIBRARY_PATH
18100  shlibpath_overrides_runpath=no
18101  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18102  hardcode_into_libs=yes
18103  ;;
18104
18105hpux9* | hpux10* | hpux11*)
18106  # Give a soname corresponding to the major version so that dld.sl refuses to
18107  # link against other versions.
18108  version_type=sunos
18109  need_lib_prefix=no
18110  need_version=no
18111  case $host_cpu in
18112  ia64*)
18113    shrext_cmds='.so'
18114    hardcode_into_libs=yes
18115    dynamic_linker="$host_os dld.so"
18116    shlibpath_var=LD_LIBRARY_PATH
18117    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18118    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18119    soname_spec='$libname$release$shared_ext$major'
18120    if test 32 = "$HPUX_IA64_MODE"; then
18121      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18122      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18123    else
18124      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18125      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18126    fi
18127    ;;
18128  hppa*64*)
18129    shrext_cmds='.sl'
18130    hardcode_into_libs=yes
18131    dynamic_linker="$host_os dld.sl"
18132    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18133    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18134    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18135    soname_spec='$libname$release$shared_ext$major'
18136    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18137    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18138    ;;
18139  *)
18140    shrext_cmds='.sl'
18141    dynamic_linker="$host_os dld.sl"
18142    shlibpath_var=SHLIB_PATH
18143    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18144    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18145    soname_spec='$libname$release$shared_ext$major'
18146    ;;
18147  esac
18148  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18149  postinstall_cmds='chmod 555 $lib'
18150  # or fails outright, so override atomically:
18151  install_override_mode=555
18152  ;;
18153
18154interix[3-9]*)
18155  version_type=linux # correct to gnu/linux during the next big refactor
18156  need_lib_prefix=no
18157  need_version=no
18158  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18159  soname_spec='$libname$release$shared_ext$major'
18160  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18161  shlibpath_var=LD_LIBRARY_PATH
18162  shlibpath_overrides_runpath=no
18163  hardcode_into_libs=yes
18164  ;;
18165
18166irix5* | irix6* | nonstopux*)
18167  case $host_os in
18168    nonstopux*) version_type=nonstopux ;;
18169    *)
18170	if test yes = "$lt_cv_prog_gnu_ld"; then
18171		version_type=linux # correct to gnu/linux during the next big refactor
18172	else
18173		version_type=irix
18174	fi ;;
18175  esac
18176  need_lib_prefix=no
18177  need_version=no
18178  soname_spec='$libname$release$shared_ext$major'
18179  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18180  case $host_os in
18181  irix5* | nonstopux*)
18182    libsuff= shlibsuff=
18183    ;;
18184  *)
18185    case $LD in # libtool.m4 will add one of these switches to LD
18186    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18187      libsuff= shlibsuff= libmagic=32-bit;;
18188    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18189      libsuff=32 shlibsuff=N32 libmagic=N32;;
18190    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18191      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18192    *) libsuff= shlibsuff= libmagic=never-match;;
18193    esac
18194    ;;
18195  esac
18196  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18197  shlibpath_overrides_runpath=no
18198  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18199  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18200  hardcode_into_libs=yes
18201  ;;
18202
18203# No shared lib support for Linux oldld, aout, or coff.
18204linux*oldld* | linux*aout* | linux*coff*)
18205  dynamic_linker=no
18206  ;;
18207
18208linux*android*)
18209  version_type=none # Android doesn't support versioned libraries.
18210  need_lib_prefix=no
18211  need_version=no
18212  library_names_spec='$libname$release$shared_ext'
18213  soname_spec='$libname$release$shared_ext'
18214  finish_cmds=
18215  shlibpath_var=LD_LIBRARY_PATH
18216  shlibpath_overrides_runpath=yes
18217
18218  # This implies no fast_install, which is unacceptable.
18219  # Some rework will be needed to allow for fast_install
18220  # before this can be enabled.
18221  hardcode_into_libs=yes
18222
18223  dynamic_linker='Android linker'
18224  # Don't embed -rpath directories since the linker doesn't support them.
18225  hardcode_libdir_flag_spec='-L$libdir'
18226  ;;
18227
18228# This must be glibc/ELF.
18229linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18230  version_type=linux # correct to gnu/linux during the next big refactor
18231  need_lib_prefix=no
18232  need_version=no
18233  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18234  soname_spec='$libname$release$shared_ext$major'
18235  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18236  shlibpath_var=LD_LIBRARY_PATH
18237  shlibpath_overrides_runpath=no
18238
18239  # Some binutils ld are patched to set DT_RUNPATH
18240  if test ${lt_cv_shlibpath_overrides_runpath+y}
18241then :
18242  printf %s "(cached) " >&6
18243else $as_nop
18244  lt_cv_shlibpath_overrides_runpath=no
18245    save_LDFLAGS=$LDFLAGS
18246    save_libdir=$libdir
18247    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18248	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250/* end confdefs.h.  */
18251
18252int
18253main (void)
18254{
18255
18256  ;
18257  return 0;
18258}
18259_ACEOF
18260if ac_fn_c_try_link "$LINENO"
18261then :
18262  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18263then :
18264  lt_cv_shlibpath_overrides_runpath=yes
18265fi
18266fi
18267rm -f core conftest.err conftest.$ac_objext conftest.beam \
18268    conftest$ac_exeext conftest.$ac_ext
18269    LDFLAGS=$save_LDFLAGS
18270    libdir=$save_libdir
18271
18272fi
18273
18274  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18275
18276  # This implies no fast_install, which is unacceptable.
18277  # Some rework will be needed to allow for fast_install
18278  # before this can be enabled.
18279  hardcode_into_libs=yes
18280
18281  # Ideally, we could use ldconfig to report *all* directores which are
18282  # searched for libraries, however this is still not possible.  Aside from not
18283  # being certain /sbin/ldconfig is available, command
18284  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18285  # even though it is searched at run-time.  Try to do the best guess by
18286  # appending ld.so.conf contents (and includes) to the search path.
18287  if test -f /etc/ld.so.conf; then
18288    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' ' '`
18289    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18290  fi
18291
18292  # We used to test for /lib/ld.so.1 and disable shared libraries on
18293  # powerpc, because MkLinux only supported shared libraries with the
18294  # GNU dynamic linker.  Since this was broken with cross compilers,
18295  # most powerpc-linux boxes support dynamic linking these days and
18296  # people can always --disable-shared, the test was removed, and we
18297  # assume the GNU/Linux dynamic linker is in use.
18298  dynamic_linker='GNU/Linux ld.so'
18299  ;;
18300
18301netbsd*)
18302  version_type=sunos
18303  need_lib_prefix=no
18304  need_version=no
18305  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18306    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18307    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18308    dynamic_linker='NetBSD (a.out) ld.so'
18309  else
18310    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18311    soname_spec='$libname$release$shared_ext$major'
18312    dynamic_linker='NetBSD ld.elf_so'
18313  fi
18314  shlibpath_var=LD_LIBRARY_PATH
18315  shlibpath_overrides_runpath=yes
18316  hardcode_into_libs=yes
18317  ;;
18318
18319newsos6)
18320  version_type=linux # correct to gnu/linux during the next big refactor
18321  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18322  shlibpath_var=LD_LIBRARY_PATH
18323  shlibpath_overrides_runpath=yes
18324  ;;
18325
18326*nto* | *qnx*)
18327  version_type=qnx
18328  need_lib_prefix=no
18329  need_version=no
18330  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18331  soname_spec='$libname$release$shared_ext$major'
18332  shlibpath_var=LD_LIBRARY_PATH
18333  shlibpath_overrides_runpath=no
18334  hardcode_into_libs=yes
18335  dynamic_linker='ldqnx.so'
18336  ;;
18337
18338openbsd* | bitrig*)
18339  version_type=sunos
18340  sys_lib_dlsearch_path_spec=/usr/lib
18341  need_lib_prefix=no
18342  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18343    need_version=no
18344  else
18345    need_version=yes
18346  fi
18347  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18348  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18349  shlibpath_var=LD_LIBRARY_PATH
18350  shlibpath_overrides_runpath=yes
18351  ;;
18352
18353os2*)
18354  libname_spec='$name'
18355  version_type=windows
18356  shrext_cmds=.dll
18357  need_version=no
18358  need_lib_prefix=no
18359  # OS/2 can only load a DLL with a base name of 8 characters or less.
18360  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18361    v=$($ECHO $release$versuffix | tr -d .-);
18362    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18363    $ECHO $n$v`$shared_ext'
18364  library_names_spec='${libname}_dll.$libext'
18365  dynamic_linker='OS/2 ld.exe'
18366  shlibpath_var=BEGINLIBPATH
18367  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18368  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18369  postinstall_cmds='base_file=`basename \$file`~
18370    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18371    dldir=$destdir/`dirname \$dlpath`~
18372    test -d \$dldir || mkdir -p \$dldir~
18373    $install_prog $dir/$dlname \$dldir/$dlname~
18374    chmod a+x \$dldir/$dlname~
18375    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18376      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18377    fi'
18378  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18379    dlpath=$dir/\$dldll~
18380    $RM \$dlpath'
18381  ;;
18382
18383osf3* | osf4* | osf5*)
18384  version_type=osf
18385  need_lib_prefix=no
18386  need_version=no
18387  soname_spec='$libname$release$shared_ext$major'
18388  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18389  shlibpath_var=LD_LIBRARY_PATH
18390  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18391  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18392  ;;
18393
18394rdos*)
18395  dynamic_linker=no
18396  ;;
18397
18398solaris*)
18399  version_type=linux # correct to gnu/linux during the next big refactor
18400  need_lib_prefix=no
18401  need_version=no
18402  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18403  soname_spec='$libname$release$shared_ext$major'
18404  shlibpath_var=LD_LIBRARY_PATH
18405  shlibpath_overrides_runpath=yes
18406  hardcode_into_libs=yes
18407  # ldd complains unless libraries are executable
18408  postinstall_cmds='chmod +x $lib'
18409  ;;
18410
18411sunos4*)
18412  version_type=sunos
18413  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18414  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18415  shlibpath_var=LD_LIBRARY_PATH
18416  shlibpath_overrides_runpath=yes
18417  if test yes = "$with_gnu_ld"; then
18418    need_lib_prefix=no
18419  fi
18420  need_version=yes
18421  ;;
18422
18423sysv4 | sysv4.3*)
18424  version_type=linux # correct to gnu/linux during the next big refactor
18425  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18426  soname_spec='$libname$release$shared_ext$major'
18427  shlibpath_var=LD_LIBRARY_PATH
18428  case $host_vendor in
18429    sni)
18430      shlibpath_overrides_runpath=no
18431      need_lib_prefix=no
18432      runpath_var=LD_RUN_PATH
18433      ;;
18434    siemens)
18435      need_lib_prefix=no
18436      ;;
18437    motorola)
18438      need_lib_prefix=no
18439      need_version=no
18440      shlibpath_overrides_runpath=no
18441      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18442      ;;
18443  esac
18444  ;;
18445
18446sysv4*MP*)
18447  if test -d /usr/nec; then
18448    version_type=linux # correct to gnu/linux during the next big refactor
18449    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18450    soname_spec='$libname$shared_ext.$major'
18451    shlibpath_var=LD_LIBRARY_PATH
18452  fi
18453  ;;
18454
18455sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18456  version_type=sco
18457  need_lib_prefix=no
18458  need_version=no
18459  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18460  soname_spec='$libname$release$shared_ext$major'
18461  shlibpath_var=LD_LIBRARY_PATH
18462  shlibpath_overrides_runpath=yes
18463  hardcode_into_libs=yes
18464  if test yes = "$with_gnu_ld"; then
18465    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18466  else
18467    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18468    case $host_os in
18469      sco3.2v5*)
18470        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18471	;;
18472    esac
18473  fi
18474  sys_lib_dlsearch_path_spec='/usr/lib'
18475  ;;
18476
18477tpf*)
18478  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18479  version_type=linux # correct to gnu/linux during the next big refactor
18480  need_lib_prefix=no
18481  need_version=no
18482  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18483  shlibpath_var=LD_LIBRARY_PATH
18484  shlibpath_overrides_runpath=no
18485  hardcode_into_libs=yes
18486  ;;
18487
18488uts4*)
18489  version_type=linux # correct to gnu/linux during the next big refactor
18490  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18491  soname_spec='$libname$release$shared_ext$major'
18492  shlibpath_var=LD_LIBRARY_PATH
18493  ;;
18494
18495*)
18496  dynamic_linker=no
18497  ;;
18498esac
18499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18500printf "%s\n" "$dynamic_linker" >&6; }
18501test no = "$dynamic_linker" && can_build_shared=no
18502
18503variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18504if test yes = "$GCC"; then
18505  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18506fi
18507
18508if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18509  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18510fi
18511
18512if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18513  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18514fi
18515
18516# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18517configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18518
18519# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18520func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18521
18522# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18523configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18622printf %s "checking how to hardcode library paths into programs... " >&6; }
18623hardcode_action=
18624if test -n "$hardcode_libdir_flag_spec" ||
18625   test -n "$runpath_var" ||
18626   test yes = "$hardcode_automatic"; then
18627
18628  # We can hardcode non-existent directories.
18629  if test no != "$hardcode_direct" &&
18630     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18631     # have to relink, otherwise we might link with an installed library
18632     # when we should be linking with a yet-to-be-installed one
18633     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18634     test no != "$hardcode_minus_L"; then
18635    # Linking always hardcodes the temporary library directory.
18636    hardcode_action=relink
18637  else
18638    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18639    hardcode_action=immediate
18640  fi
18641else
18642  # We cannot hardcode anything, or else we can only hardcode existing
18643  # directories.
18644  hardcode_action=unsupported
18645fi
18646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18647printf "%s\n" "$hardcode_action" >&6; }
18648
18649if test relink = "$hardcode_action" ||
18650   test yes = "$inherit_rpath"; then
18651  # Fast installation is not supported
18652  enable_fast_install=no
18653elif test yes = "$shlibpath_overrides_runpath" ||
18654     test no = "$enable_shared"; then
18655  # Fast installation is not necessary
18656  enable_fast_install=needless
18657fi
18658
18659
18660
18661
18662
18663
18664  if test yes != "$enable_dlopen"; then
18665  enable_dlopen=unknown
18666  enable_dlopen_self=unknown
18667  enable_dlopen_self_static=unknown
18668else
18669  lt_cv_dlopen=no
18670  lt_cv_dlopen_libs=
18671
18672  case $host_os in
18673  beos*)
18674    lt_cv_dlopen=load_add_on
18675    lt_cv_dlopen_libs=
18676    lt_cv_dlopen_self=yes
18677    ;;
18678
18679  mingw* | pw32* | cegcc*)
18680    lt_cv_dlopen=LoadLibrary
18681    lt_cv_dlopen_libs=
18682    ;;
18683
18684  cygwin*)
18685    lt_cv_dlopen=dlopen
18686    lt_cv_dlopen_libs=
18687    ;;
18688
18689  darwin*)
18690    # if libdl is installed we need to link against it
18691    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18692printf %s "checking for dlopen in -ldl... " >&6; }
18693if test ${ac_cv_lib_dl_dlopen+y}
18694then :
18695  printf %s "(cached) " >&6
18696else $as_nop
18697  ac_check_lib_save_LIBS=$LIBS
18698LIBS="-ldl  $LIBS"
18699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700/* end confdefs.h.  */
18701
18702/* Override any GCC internal prototype to avoid an error.
18703   Use char because int might match the return type of a GCC
18704   builtin and then its argument prototype would still apply.  */
18705char dlopen ();
18706int
18707main (void)
18708{
18709return dlopen ();
18710  ;
18711  return 0;
18712}
18713_ACEOF
18714if ac_fn_c_try_link "$LINENO"
18715then :
18716  ac_cv_lib_dl_dlopen=yes
18717else $as_nop
18718  ac_cv_lib_dl_dlopen=no
18719fi
18720rm -f core conftest.err conftest.$ac_objext conftest.beam \
18721    conftest$ac_exeext conftest.$ac_ext
18722LIBS=$ac_check_lib_save_LIBS
18723fi
18724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18725printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18726if test "x$ac_cv_lib_dl_dlopen" = xyes
18727then :
18728  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18729else $as_nop
18730
18731    lt_cv_dlopen=dyld
18732    lt_cv_dlopen_libs=
18733    lt_cv_dlopen_self=yes
18734
18735fi
18736
18737    ;;
18738
18739  tpf*)
18740    # Don't try to run any link tests for TPF.  We know it's impossible
18741    # because TPF is a cross-compiler, and we know how we open DSOs.
18742    lt_cv_dlopen=dlopen
18743    lt_cv_dlopen_libs=
18744    lt_cv_dlopen_self=no
18745    ;;
18746
18747  *)
18748    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18749if test "x$ac_cv_func_shl_load" = xyes
18750then :
18751  lt_cv_dlopen=shl_load
18752else $as_nop
18753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18754printf %s "checking for shl_load in -ldld... " >&6; }
18755if test ${ac_cv_lib_dld_shl_load+y}
18756then :
18757  printf %s "(cached) " >&6
18758else $as_nop
18759  ac_check_lib_save_LIBS=$LIBS
18760LIBS="-ldld  $LIBS"
18761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762/* end confdefs.h.  */
18763
18764/* Override any GCC internal prototype to avoid an error.
18765   Use char because int might match the return type of a GCC
18766   builtin and then its argument prototype would still apply.  */
18767char shl_load ();
18768int
18769main (void)
18770{
18771return shl_load ();
18772  ;
18773  return 0;
18774}
18775_ACEOF
18776if ac_fn_c_try_link "$LINENO"
18777then :
18778  ac_cv_lib_dld_shl_load=yes
18779else $as_nop
18780  ac_cv_lib_dld_shl_load=no
18781fi
18782rm -f core conftest.err conftest.$ac_objext conftest.beam \
18783    conftest$ac_exeext conftest.$ac_ext
18784LIBS=$ac_check_lib_save_LIBS
18785fi
18786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18787printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18788if test "x$ac_cv_lib_dld_shl_load" = xyes
18789then :
18790  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18791else $as_nop
18792  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18793if test "x$ac_cv_func_dlopen" = xyes
18794then :
18795  lt_cv_dlopen=dlopen
18796else $as_nop
18797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18798printf %s "checking for dlopen in -ldl... " >&6; }
18799if test ${ac_cv_lib_dl_dlopen+y}
18800then :
18801  printf %s "(cached) " >&6
18802else $as_nop
18803  ac_check_lib_save_LIBS=$LIBS
18804LIBS="-ldl  $LIBS"
18805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806/* end confdefs.h.  */
18807
18808/* Override any GCC internal prototype to avoid an error.
18809   Use char because int might match the return type of a GCC
18810   builtin and then its argument prototype would still apply.  */
18811char dlopen ();
18812int
18813main (void)
18814{
18815return dlopen ();
18816  ;
18817  return 0;
18818}
18819_ACEOF
18820if ac_fn_c_try_link "$LINENO"
18821then :
18822  ac_cv_lib_dl_dlopen=yes
18823else $as_nop
18824  ac_cv_lib_dl_dlopen=no
18825fi
18826rm -f core conftest.err conftest.$ac_objext conftest.beam \
18827    conftest$ac_exeext conftest.$ac_ext
18828LIBS=$ac_check_lib_save_LIBS
18829fi
18830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18831printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18832if test "x$ac_cv_lib_dl_dlopen" = xyes
18833then :
18834  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18835else $as_nop
18836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18837printf %s "checking for dlopen in -lsvld... " >&6; }
18838if test ${ac_cv_lib_svld_dlopen+y}
18839then :
18840  printf %s "(cached) " >&6
18841else $as_nop
18842  ac_check_lib_save_LIBS=$LIBS
18843LIBS="-lsvld  $LIBS"
18844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18845/* end confdefs.h.  */
18846
18847/* Override any GCC internal prototype to avoid an error.
18848   Use char because int might match the return type of a GCC
18849   builtin and then its argument prototype would still apply.  */
18850char dlopen ();
18851int
18852main (void)
18853{
18854return dlopen ();
18855  ;
18856  return 0;
18857}
18858_ACEOF
18859if ac_fn_c_try_link "$LINENO"
18860then :
18861  ac_cv_lib_svld_dlopen=yes
18862else $as_nop
18863  ac_cv_lib_svld_dlopen=no
18864fi
18865rm -f core conftest.err conftest.$ac_objext conftest.beam \
18866    conftest$ac_exeext conftest.$ac_ext
18867LIBS=$ac_check_lib_save_LIBS
18868fi
18869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18870printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18871if test "x$ac_cv_lib_svld_dlopen" = xyes
18872then :
18873  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18874else $as_nop
18875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18876printf %s "checking for dld_link in -ldld... " >&6; }
18877if test ${ac_cv_lib_dld_dld_link+y}
18878then :
18879  printf %s "(cached) " >&6
18880else $as_nop
18881  ac_check_lib_save_LIBS=$LIBS
18882LIBS="-ldld  $LIBS"
18883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884/* end confdefs.h.  */
18885
18886/* Override any GCC internal prototype to avoid an error.
18887   Use char because int might match the return type of a GCC
18888   builtin and then its argument prototype would still apply.  */
18889char dld_link ();
18890int
18891main (void)
18892{
18893return dld_link ();
18894  ;
18895  return 0;
18896}
18897_ACEOF
18898if ac_fn_c_try_link "$LINENO"
18899then :
18900  ac_cv_lib_dld_dld_link=yes
18901else $as_nop
18902  ac_cv_lib_dld_dld_link=no
18903fi
18904rm -f core conftest.err conftest.$ac_objext conftest.beam \
18905    conftest$ac_exeext conftest.$ac_ext
18906LIBS=$ac_check_lib_save_LIBS
18907fi
18908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18909printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18910if test "x$ac_cv_lib_dld_dld_link" = xyes
18911then :
18912  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18913fi
18914
18915
18916fi
18917
18918
18919fi
18920
18921
18922fi
18923
18924
18925fi
18926
18927
18928fi
18929
18930    ;;
18931  esac
18932
18933  if test no = "$lt_cv_dlopen"; then
18934    enable_dlopen=no
18935  else
18936    enable_dlopen=yes
18937  fi
18938
18939  case $lt_cv_dlopen in
18940  dlopen)
18941    save_CPPFLAGS=$CPPFLAGS
18942    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18943
18944    save_LDFLAGS=$LDFLAGS
18945    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18946
18947    save_LIBS=$LIBS
18948    LIBS="$lt_cv_dlopen_libs $LIBS"
18949
18950    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18951printf %s "checking whether a program can dlopen itself... " >&6; }
18952if test ${lt_cv_dlopen_self+y}
18953then :
18954  printf %s "(cached) " >&6
18955else $as_nop
18956  	  if test yes = "$cross_compiling"; then :
18957  lt_cv_dlopen_self=cross
18958else
18959  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18960  lt_status=$lt_dlunknown
18961  cat > conftest.$ac_ext <<_LT_EOF
18962#line $LINENO "configure"
18963#include "confdefs.h"
18964
18965#if HAVE_DLFCN_H
18966#include <dlfcn.h>
18967#endif
18968
18969#include <stdio.h>
18970
18971#ifdef RTLD_GLOBAL
18972#  define LT_DLGLOBAL		RTLD_GLOBAL
18973#else
18974#  ifdef DL_GLOBAL
18975#    define LT_DLGLOBAL		DL_GLOBAL
18976#  else
18977#    define LT_DLGLOBAL		0
18978#  endif
18979#endif
18980
18981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18982   find out it does not work in some platform. */
18983#ifndef LT_DLLAZY_OR_NOW
18984#  ifdef RTLD_LAZY
18985#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18986#  else
18987#    ifdef DL_LAZY
18988#      define LT_DLLAZY_OR_NOW		DL_LAZY
18989#    else
18990#      ifdef RTLD_NOW
18991#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18992#      else
18993#        ifdef DL_NOW
18994#          define LT_DLLAZY_OR_NOW	DL_NOW
18995#        else
18996#          define LT_DLLAZY_OR_NOW	0
18997#        endif
18998#      endif
18999#    endif
19000#  endif
19001#endif
19002
19003/* When -fvisibility=hidden is used, assume the code has been annotated
19004   correspondingly for the symbols needed.  */
19005#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19006int fnord () __attribute__((visibility("default")));
19007#endif
19008
19009int fnord () { return 42; }
19010int main ()
19011{
19012  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19013  int status = $lt_dlunknown;
19014
19015  if (self)
19016    {
19017      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19018      else
19019        {
19020	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19021          else puts (dlerror ());
19022	}
19023      /* dlclose (self); */
19024    }
19025  else
19026    puts (dlerror ());
19027
19028  return status;
19029}
19030_LT_EOF
19031  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19032  (eval $ac_link) 2>&5
19033  ac_status=$?
19034  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19035  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19036    (./conftest; exit; ) >&5 2>/dev/null
19037    lt_status=$?
19038    case x$lt_status in
19039      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19040      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19041      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19042    esac
19043  else :
19044    # compilation failed
19045    lt_cv_dlopen_self=no
19046  fi
19047fi
19048rm -fr conftest*
19049
19050
19051fi
19052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19053printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19054
19055    if test yes = "$lt_cv_dlopen_self"; then
19056      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19057      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19058printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19059if test ${lt_cv_dlopen_self_static+y}
19060then :
19061  printf %s "(cached) " >&6
19062else $as_nop
19063  	  if test yes = "$cross_compiling"; then :
19064  lt_cv_dlopen_self_static=cross
19065else
19066  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19067  lt_status=$lt_dlunknown
19068  cat > conftest.$ac_ext <<_LT_EOF
19069#line $LINENO "configure"
19070#include "confdefs.h"
19071
19072#if HAVE_DLFCN_H
19073#include <dlfcn.h>
19074#endif
19075
19076#include <stdio.h>
19077
19078#ifdef RTLD_GLOBAL
19079#  define LT_DLGLOBAL		RTLD_GLOBAL
19080#else
19081#  ifdef DL_GLOBAL
19082#    define LT_DLGLOBAL		DL_GLOBAL
19083#  else
19084#    define LT_DLGLOBAL		0
19085#  endif
19086#endif
19087
19088/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19089   find out it does not work in some platform. */
19090#ifndef LT_DLLAZY_OR_NOW
19091#  ifdef RTLD_LAZY
19092#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19093#  else
19094#    ifdef DL_LAZY
19095#      define LT_DLLAZY_OR_NOW		DL_LAZY
19096#    else
19097#      ifdef RTLD_NOW
19098#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19099#      else
19100#        ifdef DL_NOW
19101#          define LT_DLLAZY_OR_NOW	DL_NOW
19102#        else
19103#          define LT_DLLAZY_OR_NOW	0
19104#        endif
19105#      endif
19106#    endif
19107#  endif
19108#endif
19109
19110/* When -fvisibility=hidden is used, assume the code has been annotated
19111   correspondingly for the symbols needed.  */
19112#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19113int fnord () __attribute__((visibility("default")));
19114#endif
19115
19116int fnord () { return 42; }
19117int main ()
19118{
19119  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19120  int status = $lt_dlunknown;
19121
19122  if (self)
19123    {
19124      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19125      else
19126        {
19127	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19128          else puts (dlerror ());
19129	}
19130      /* dlclose (self); */
19131    }
19132  else
19133    puts (dlerror ());
19134
19135  return status;
19136}
19137_LT_EOF
19138  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19139  (eval $ac_link) 2>&5
19140  ac_status=$?
19141  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19142  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19143    (./conftest; exit; ) >&5 2>/dev/null
19144    lt_status=$?
19145    case x$lt_status in
19146      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19147      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19148      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19149    esac
19150  else :
19151    # compilation failed
19152    lt_cv_dlopen_self_static=no
19153  fi
19154fi
19155rm -fr conftest*
19156
19157
19158fi
19159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19160printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19161    fi
19162
19163    CPPFLAGS=$save_CPPFLAGS
19164    LDFLAGS=$save_LDFLAGS
19165    LIBS=$save_LIBS
19166    ;;
19167  esac
19168
19169  case $lt_cv_dlopen_self in
19170  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19171  *) enable_dlopen_self=unknown ;;
19172  esac
19173
19174  case $lt_cv_dlopen_self_static in
19175  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19176  *) enable_dlopen_self_static=unknown ;;
19177  esac
19178fi
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196striplib=
19197old_striplib=
19198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19199printf %s "checking whether stripping libraries is possible... " >&6; }
19200if test -z "$STRIP"; then
19201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202printf "%s\n" "no" >&6; }
19203else
19204  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19205    old_striplib="$STRIP --strip-debug"
19206    striplib="$STRIP --strip-unneeded"
19207    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19208printf "%s\n" "yes" >&6; }
19209  else
19210    case $host_os in
19211    darwin*)
19212      # FIXME - insert some real tests, host_os isn't really good enough
19213      striplib="$STRIP -x"
19214      old_striplib="$STRIP -S"
19215      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19216printf "%s\n" "yes" >&6; }
19217      ;;
19218    freebsd*)
19219      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19220        old_striplib="$STRIP --strip-debug"
19221        striplib="$STRIP --strip-unneeded"
19222        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19223printf "%s\n" "yes" >&6; }
19224      else
19225        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19226printf "%s\n" "no" >&6; }
19227      fi
19228      ;;
19229    *)
19230      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231printf "%s\n" "no" >&6; }
19232      ;;
19233    esac
19234  fi
19235fi
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248  # Report what library types will actually be built
19249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19250printf %s "checking if libtool supports shared libraries... " >&6; }
19251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19252printf "%s\n" "$can_build_shared" >&6; }
19253
19254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19255printf %s "checking whether to build shared libraries... " >&6; }
19256  test no = "$can_build_shared" && enable_shared=no
19257
19258  # On AIX, shared libraries and static libraries use the same namespace, and
19259  # are all built from PIC.
19260  case $host_os in
19261  aix3*)
19262    test yes = "$enable_shared" && enable_static=no
19263    if test -n "$RANLIB"; then
19264      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19265      postinstall_cmds='$RANLIB $lib'
19266    fi
19267    ;;
19268
19269  aix[4-9]*)
19270    if test ia64 != "$host_cpu"; then
19271      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19272      yes,aix,yes) ;;			# shared object as lib.so file only
19273      yes,svr4,*) ;;			# shared object as lib.so archive member only
19274      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19275      esac
19276    fi
19277    ;;
19278  esac
19279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19280printf "%s\n" "$enable_shared" >&6; }
19281
19282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19283printf %s "checking whether to build static libraries... " >&6; }
19284  # Make sure either enable_shared or enable_static is yes.
19285  test yes = "$enable_shared" || enable_static=yes
19286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19287printf "%s\n" "$enable_static" >&6; }
19288
19289
19290
19291
19292fi
19293ac_ext=c
19294ac_cpp='$CPP $CPPFLAGS'
19295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19297ac_compiler_gnu=$ac_cv_c_compiler_gnu
19298
19299CC=$lt_save_CC
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315        ac_config_commands="$ac_config_commands libtool"
19316
19317
19318
19319
19320# Only expand once:
19321
19322
19323
19324
19325
19326# Define a configure option for an alternate module directory
19327
19328# Check whether --with-xorg-module-dir was given.
19329if test ${with_xorg_module_dir+y}
19330then :
19331  withval=$with_xorg_module_dir;  moduledir="$withval"
19332else $as_nop
19333   moduledir="$libdir/xorg/modules"
19334fi
19335
19336
19337
19338# Store the list of server defined optional extensions in REQUIRED_MODULES
19339
19340
19341	SAVE_CFLAGS="$CFLAGS"
19342	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19343	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19344/* end confdefs.h.  */
19345
19346#include "xorg-server.h"
19347#if !defined DPMSExtension
19348#error DPMSExtension not defined
19349#endif
19350
19351int
19352main (void)
19353{
19354
19355  ;
19356  return 0;
19357}
19358_ACEOF
19359if ac_fn_c_try_compile "$LINENO"
19360then :
19361  _EXT_CHECK=yes
19362else $as_nop
19363  _EXT_CHECK=no
19364fi
19365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19366	CFLAGS="$SAVE_CFLAGS"
19367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19368printf %s "checking if DPMSExtension is defined... " >&6; }
19369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19370printf "%s\n" "$_EXT_CHECK" >&6; }
19371	if test "$_EXT_CHECK" != no; then
19372		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19373	fi
19374
19375
19376# Obtain compiler/linker options for the driver dependencies
19377
19378pkg_failed=no
19379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19380printf %s "checking for XORG... " >&6; }
19381
19382if test -n "$XORG_CFLAGS"; then
19383    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19384 elif test -n "$PKG_CONFIG"; then
19385    if test -n "$PKG_CONFIG" && \
19386    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19387  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19388  ac_status=$?
19389  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19390  test $ac_status = 0; }; then
19391  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19392		      test "x$?" != "x0" && pkg_failed=yes
19393else
19394  pkg_failed=yes
19395fi
19396 else
19397    pkg_failed=untried
19398fi
19399if test -n "$XORG_LIBS"; then
19400    pkg_cv_XORG_LIBS="$XORG_LIBS"
19401 elif test -n "$PKG_CONFIG"; then
19402    if test -n "$PKG_CONFIG" && \
19403    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19404  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19405  ac_status=$?
19406  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19407  test $ac_status = 0; }; then
19408  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19409		      test "x$?" != "x0" && pkg_failed=yes
19410else
19411  pkg_failed=yes
19412fi
19413 else
19414    pkg_failed=untried
19415fi
19416
19417
19418
19419if test $pkg_failed = yes; then
19420   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19421printf "%s\n" "no" >&6; }
19422
19423if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19424        _pkg_short_errors_supported=yes
19425else
19426        _pkg_short_errors_supported=no
19427fi
19428        if test $_pkg_short_errors_supported = yes; then
19429	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19430        else
19431	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19432        fi
19433	# Put the nasty error message in config.log where it belongs
19434	echo "$XORG_PKG_ERRORS" >&5
19435
19436	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19437
19438$XORG_PKG_ERRORS
19439
19440Consider adjusting the PKG_CONFIG_PATH environment variable if you
19441installed software in a non-standard prefix.
19442
19443Alternatively, you may set the environment variables XORG_CFLAGS
19444and XORG_LIBS to avoid the need to call pkg-config.
19445See the pkg-config man page for more details." "$LINENO" 5
19446elif test $pkg_failed = untried; then
19447     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19448printf "%s\n" "no" >&6; }
19449	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19450printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19451as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19452is in your PATH or set the PKG_CONFIG environment variable to the full
19453path to pkg-config.
19454
19455Alternatively, you may set the environment variables XORG_CFLAGS
19456and XORG_LIBS to avoid the need to call pkg-config.
19457See the pkg-config man page for more details.
19458
19459To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19460See \`config.log' for more details" "$LINENO" 5; }
19461else
19462	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19463	XORG_LIBS=$pkg_cv_XORG_LIBS
19464        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19465printf "%s\n" "yes" >&6; }
19466
19467fi
19468
19469# Checks for libraries.
19470SAVE_CPPFLAGS="$CPPFLAGS"
19471CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19472ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19473" "$ac_c_undeclared_builtin_options" "CFLAGS"
19474if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19475then :
19476  XSERVER_LIBPCIACCESS=yes
19477else $as_nop
19478  XSERVER_LIBPCIACCESS=no
19479fi
19480CPPFLAGS="$SAVE_CPPFLAGS"
19481
19482if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19483
19484pkg_failed=no
19485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19486printf %s "checking for PCIACCESS... " >&6; }
19487
19488if test -n "$PCIACCESS_CFLAGS"; then
19489    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19490 elif test -n "$PKG_CONFIG"; then
19491    if test -n "$PKG_CONFIG" && \
19492    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
19493  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
19494  ac_status=$?
19495  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19496  test $ac_status = 0; }; then
19497  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
19498		      test "x$?" != "x0" && pkg_failed=yes
19499else
19500  pkg_failed=yes
19501fi
19502 else
19503    pkg_failed=untried
19504fi
19505if test -n "$PCIACCESS_LIBS"; then
19506    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19507 elif test -n "$PKG_CONFIG"; then
19508    if test -n "$PKG_CONFIG" && \
19509    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
19510  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
19511  ac_status=$?
19512  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19513  test $ac_status = 0; }; then
19514  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
19515		      test "x$?" != "x0" && pkg_failed=yes
19516else
19517  pkg_failed=yes
19518fi
19519 else
19520    pkg_failed=untried
19521fi
19522
19523
19524
19525if test $pkg_failed = yes; then
19526   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527printf "%s\n" "no" >&6; }
19528
19529if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19530        _pkg_short_errors_supported=yes
19531else
19532        _pkg_short_errors_supported=no
19533fi
19534        if test $_pkg_short_errors_supported = yes; then
19535	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
19536        else
19537	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
19538        fi
19539	# Put the nasty error message in config.log where it belongs
19540	echo "$PCIACCESS_PKG_ERRORS" >&5
19541
19542	as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
19543
19544$PCIACCESS_PKG_ERRORS
19545
19546Consider adjusting the PKG_CONFIG_PATH environment variable if you
19547installed software in a non-standard prefix.
19548
19549Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19550and PCIACCESS_LIBS to avoid the need to call pkg-config.
19551See the pkg-config man page for more details." "$LINENO" 5
19552elif test $pkg_failed = untried; then
19553     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19554printf "%s\n" "no" >&6; }
19555	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19556printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19557as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19558is in your PATH or set the PKG_CONFIG environment variable to the full
19559path to pkg-config.
19560
19561Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19562and PCIACCESS_LIBS to avoid the need to call pkg-config.
19563See the pkg-config man page for more details.
19564
19565To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19566See \`config.log' for more details" "$LINENO" 5; }
19567else
19568	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19569	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19570        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19571printf "%s\n" "yes" >&6; }
19572
19573fi
19574fi
19575 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19576  XSERVER_LIBPCIACCESS_TRUE=
19577  XSERVER_LIBPCIACCESS_FALSE='#'
19578else
19579  XSERVER_LIBPCIACCESS_TRUE='#'
19580  XSERVER_LIBPCIACCESS_FALSE=
19581fi
19582
19583# Check whether --enable-xaa was given.
19584if test ${enable_xaa+y}
19585then :
19586  enableval=$enable_xaa; XAA="$enableval"
19587else $as_nop
19588  XAA=auto
19589fi
19590
19591if test "x$XAA" != xno; then
19592        save_CFLAGS=$CFLAGS
19593        save_CPPFLAGS=$CPPFLAGS
19594        CFLAGS=$XORG_CFLAGS
19595        CPPFLAGS="$XORG_CFLAGS"
19596               for ac_header in xaa.h
19597do :
19598  ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19599if test "x$ac_cv_header_xaa_h" = xyes
19600then :
19601  printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19602 XAA=yes
19603else $as_nop
19604  XAA=no
19605fi
19606
19607done
19608        CFLAGS=$save_CFLAGS
19609        CPPFLAGS=$save_CPPFLAGS
19610fi
19611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19612printf %s "checking whether to include XAA support... " >&6; }
19613 if test "x$XAA" = xyes; then
19614  XAA_TRUE=
19615  XAA_FALSE='#'
19616else
19617  XAA_TRUE='#'
19618  XAA_FALSE=
19619fi
19620
19621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19622printf "%s\n" "$XAA" >&6; }
19623
19624DRIVER_NAME=ark
19625
19626
19627ac_config_files="$ac_config_files Makefile src/Makefile"
19628
19629cat >confcache <<\_ACEOF
19630# This file is a shell script that caches the results of configure
19631# tests run on this system so they can be shared between configure
19632# scripts and configure runs, see configure's option --config-cache.
19633# It is not useful on other systems.  If it contains results you don't
19634# want to keep, you may remove or edit it.
19635#
19636# config.status only pays attention to the cache file if you give it
19637# the --recheck option to rerun configure.
19638#
19639# `ac_cv_env_foo' variables (set or unset) will be overridden when
19640# loading this file, other *unset* `ac_cv_foo' will be assigned the
19641# following values.
19642
19643_ACEOF
19644
19645# The following way of writing the cache mishandles newlines in values,
19646# but we know of no workaround that is simple, portable, and efficient.
19647# So, we kill variables containing newlines.
19648# Ultrix sh set writes to stderr and can't be redirected directly,
19649# and sets the high bit in the cache file unless we assign to the vars.
19650(
19651  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19652    eval ac_val=\$$ac_var
19653    case $ac_val in #(
19654    *${as_nl}*)
19655      case $ac_var in #(
19656      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19657printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19658      esac
19659      case $ac_var in #(
19660      _ | IFS | as_nl) ;; #(
19661      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19662      *) { eval $ac_var=; unset $ac_var;} ;;
19663      esac ;;
19664    esac
19665  done
19666
19667  (set) 2>&1 |
19668    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19669    *${as_nl}ac_space=\ *)
19670      # `set' does not quote correctly, so add quotes: double-quote
19671      # substitution turns \\\\ into \\, and sed turns \\ into \.
19672      sed -n \
19673	"s/'/'\\\\''/g;
19674	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19675      ;; #(
19676    *)
19677      # `set' quotes correctly as required by POSIX, so do not add quotes.
19678      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19679      ;;
19680    esac |
19681    sort
19682) |
19683  sed '
19684     /^ac_cv_env_/b end
19685     t clear
19686     :clear
19687     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19688     t end
19689     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19690     :end' >>confcache
19691if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19692  if test -w "$cache_file"; then
19693    if test "x$cache_file" != "x/dev/null"; then
19694      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19695printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19696      if test ! -f "$cache_file" || test -h "$cache_file"; then
19697	cat confcache >"$cache_file"
19698      else
19699        case $cache_file in #(
19700        */* | ?:*)
19701	  mv -f confcache "$cache_file"$$ &&
19702	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19703        *)
19704	  mv -f confcache "$cache_file" ;;
19705	esac
19706      fi
19707    fi
19708  else
19709    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19710printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19711  fi
19712fi
19713rm -f confcache
19714
19715test "x$prefix" = xNONE && prefix=$ac_default_prefix
19716# Let make expand exec_prefix.
19717test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19718
19719DEFS=-DHAVE_CONFIG_H
19720
19721ac_libobjs=
19722ac_ltlibobjs=
19723U=
19724for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19725  # 1. Remove the extension, and $U if already installed.
19726  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19727  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19728  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19729  #    will be set to the directory where LIBOBJS objects are built.
19730  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19731  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19732done
19733LIBOBJS=$ac_libobjs
19734
19735LTLIBOBJS=$ac_ltlibobjs
19736
19737
19738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19739printf %s "checking that generated files are newer than configure... " >&6; }
19740   if test -n "$am_sleep_pid"; then
19741     # Hide warnings about reused PIDs.
19742     wait $am_sleep_pid 2>/dev/null
19743   fi
19744   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19745printf "%s\n" "done" >&6; }
19746 if test -n "$EXEEXT"; then
19747  am__EXEEXT_TRUE=
19748  am__EXEEXT_FALSE='#'
19749else
19750  am__EXEEXT_TRUE='#'
19751  am__EXEEXT_FALSE=
19752fi
19753
19754if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19755  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19756Usually this means the macro was only invoked conditionally." "$LINENO" 5
19757fi
19758if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19759  as_fn_error $? "conditional \"AMDEP\" was never defined.
19760Usually this means the macro was only invoked conditionally." "$LINENO" 5
19761fi
19762if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19763  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19764Usually this means the macro was only invoked conditionally." "$LINENO" 5
19765fi
19766if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19767  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19768Usually this means the macro was only invoked conditionally." "$LINENO" 5
19769fi
19770if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19771  as_fn_error $? "conditional \"XAA\" was never defined.
19772Usually this means the macro was only invoked conditionally." "$LINENO" 5
19773fi
19774
19775: "${CONFIG_STATUS=./config.status}"
19776ac_write_fail=0
19777ac_clean_files_save=$ac_clean_files
19778ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19780printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19781as_write_fail=0
19782cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19783#! $SHELL
19784# Generated by $as_me.
19785# Run this file to recreate the current configuration.
19786# Compiler output produced by configure, useful for debugging
19787# configure, is in config.log if it exists.
19788
19789debug=false
19790ac_cs_recheck=false
19791ac_cs_silent=false
19792
19793SHELL=\${CONFIG_SHELL-$SHELL}
19794export SHELL
19795_ASEOF
19796cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19797## -------------------- ##
19798## M4sh Initialization. ##
19799## -------------------- ##
19800
19801# Be more Bourne compatible
19802DUALCASE=1; export DUALCASE # for MKS sh
19803as_nop=:
19804if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19805then :
19806  emulate sh
19807  NULLCMD=:
19808  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19809  # is contrary to our usage.  Disable this feature.
19810  alias -g '${1+"$@"}'='"$@"'
19811  setopt NO_GLOB_SUBST
19812else $as_nop
19813  case `(set -o) 2>/dev/null` in #(
19814  *posix*) :
19815    set -o posix ;; #(
19816  *) :
19817     ;;
19818esac
19819fi
19820
19821
19822
19823# Reset variables that may have inherited troublesome values from
19824# the environment.
19825
19826# IFS needs to be set, to space, tab, and newline, in precisely that order.
19827# (If _AS_PATH_WALK were called with IFS unset, it would have the
19828# side effect of setting IFS to empty, thus disabling word splitting.)
19829# Quoting is to prevent editors from complaining about space-tab.
19830as_nl='
19831'
19832export as_nl
19833IFS=" ""	$as_nl"
19834
19835PS1='$ '
19836PS2='> '
19837PS4='+ '
19838
19839# Ensure predictable behavior from utilities with locale-dependent output.
19840LC_ALL=C
19841export LC_ALL
19842LANGUAGE=C
19843export LANGUAGE
19844
19845# We cannot yet rely on "unset" to work, but we need these variables
19846# to be unset--not just set to an empty or harmless value--now, to
19847# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19848# also avoids known problems related to "unset" and subshell syntax
19849# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19850for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19851do eval test \${$as_var+y} \
19852  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19853done
19854
19855# Ensure that fds 0, 1, and 2 are open.
19856if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19857if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19858if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19859
19860# The user is always right.
19861if ${PATH_SEPARATOR+false} :; then
19862  PATH_SEPARATOR=:
19863  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19864    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19865      PATH_SEPARATOR=';'
19866  }
19867fi
19868
19869
19870# Find who we are.  Look in the path if we contain no directory separator.
19871as_myself=
19872case $0 in #((
19873  *[\\/]* ) as_myself=$0 ;;
19874  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19875for as_dir in $PATH
19876do
19877  IFS=$as_save_IFS
19878  case $as_dir in #(((
19879    '') as_dir=./ ;;
19880    */) ;;
19881    *) as_dir=$as_dir/ ;;
19882  esac
19883    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19884  done
19885IFS=$as_save_IFS
19886
19887     ;;
19888esac
19889# We did not find ourselves, most probably we were run as `sh COMMAND'
19890# in which case we are not to be found in the path.
19891if test "x$as_myself" = x; then
19892  as_myself=$0
19893fi
19894if test ! -f "$as_myself"; then
19895  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19896  exit 1
19897fi
19898
19899
19900
19901# as_fn_error STATUS ERROR [LINENO LOG_FD]
19902# ----------------------------------------
19903# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19904# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19905# script with STATUS, using 1 if that was 0.
19906as_fn_error ()
19907{
19908  as_status=$1; test $as_status -eq 0 && as_status=1
19909  if test "$4"; then
19910    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19911    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19912  fi
19913  printf "%s\n" "$as_me: error: $2" >&2
19914  as_fn_exit $as_status
19915} # as_fn_error
19916
19917
19918
19919# as_fn_set_status STATUS
19920# -----------------------
19921# Set $? to STATUS, without forking.
19922as_fn_set_status ()
19923{
19924  return $1
19925} # as_fn_set_status
19926
19927# as_fn_exit STATUS
19928# -----------------
19929# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19930as_fn_exit ()
19931{
19932  set +e
19933  as_fn_set_status $1
19934  exit $1
19935} # as_fn_exit
19936
19937# as_fn_unset VAR
19938# ---------------
19939# Portably unset VAR.
19940as_fn_unset ()
19941{
19942  { eval $1=; unset $1;}
19943}
19944as_unset=as_fn_unset
19945
19946# as_fn_append VAR VALUE
19947# ----------------------
19948# Append the text in VALUE to the end of the definition contained in VAR. Take
19949# advantage of any shell optimizations that allow amortized linear growth over
19950# repeated appends, instead of the typical quadratic growth present in naive
19951# implementations.
19952if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19953then :
19954  eval 'as_fn_append ()
19955  {
19956    eval $1+=\$2
19957  }'
19958else $as_nop
19959  as_fn_append ()
19960  {
19961    eval $1=\$$1\$2
19962  }
19963fi # as_fn_append
19964
19965# as_fn_arith ARG...
19966# ------------------
19967# Perform arithmetic evaluation on the ARGs, and store the result in the
19968# global $as_val. Take advantage of shells that can avoid forks. The arguments
19969# must be portable across $(()) and expr.
19970if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19971then :
19972  eval 'as_fn_arith ()
19973  {
19974    as_val=$(( $* ))
19975  }'
19976else $as_nop
19977  as_fn_arith ()
19978  {
19979    as_val=`expr "$@" || test $? -eq 1`
19980  }
19981fi # as_fn_arith
19982
19983
19984if expr a : '\(a\)' >/dev/null 2>&1 &&
19985   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19986  as_expr=expr
19987else
19988  as_expr=false
19989fi
19990
19991if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19992  as_basename=basename
19993else
19994  as_basename=false
19995fi
19996
19997if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19998  as_dirname=dirname
19999else
20000  as_dirname=false
20001fi
20002
20003as_me=`$as_basename -- "$0" ||
20004$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20005	 X"$0" : 'X\(//\)$' \| \
20006	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20007printf "%s\n" X/"$0" |
20008    sed '/^.*\/\([^/][^/]*\)\/*$/{
20009	    s//\1/
20010	    q
20011	  }
20012	  /^X\/\(\/\/\)$/{
20013	    s//\1/
20014	    q
20015	  }
20016	  /^X\/\(\/\).*/{
20017	    s//\1/
20018	    q
20019	  }
20020	  s/.*/./; q'`
20021
20022# Avoid depending upon Character Ranges.
20023as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20024as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20025as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20026as_cr_digits='0123456789'
20027as_cr_alnum=$as_cr_Letters$as_cr_digits
20028
20029
20030# Determine whether it's possible to make 'echo' print without a newline.
20031# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20032# for compatibility with existing Makefiles.
20033ECHO_C= ECHO_N= ECHO_T=
20034case `echo -n x` in #(((((
20035-n*)
20036  case `echo 'xy\c'` in
20037  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20038  xy)  ECHO_C='\c';;
20039  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20040       ECHO_T='	';;
20041  esac;;
20042*)
20043  ECHO_N='-n';;
20044esac
20045
20046# For backward compatibility with old third-party macros, we provide
20047# the shell variables $as_echo and $as_echo_n.  New code should use
20048# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20049as_echo='printf %s\n'
20050as_echo_n='printf %s'
20051
20052rm -f conf$$ conf$$.exe conf$$.file
20053if test -d conf$$.dir; then
20054  rm -f conf$$.dir/conf$$.file
20055else
20056  rm -f conf$$.dir
20057  mkdir conf$$.dir 2>/dev/null
20058fi
20059if (echo >conf$$.file) 2>/dev/null; then
20060  if ln -s conf$$.file conf$$ 2>/dev/null; then
20061    as_ln_s='ln -s'
20062    # ... but there are two gotchas:
20063    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20064    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20065    # In both cases, we have to default to `cp -pR'.
20066    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20067      as_ln_s='cp -pR'
20068  elif ln conf$$.file conf$$ 2>/dev/null; then
20069    as_ln_s=ln
20070  else
20071    as_ln_s='cp -pR'
20072  fi
20073else
20074  as_ln_s='cp -pR'
20075fi
20076rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20077rmdir conf$$.dir 2>/dev/null
20078
20079
20080# as_fn_mkdir_p
20081# -------------
20082# Create "$as_dir" as a directory, including parents if necessary.
20083as_fn_mkdir_p ()
20084{
20085
20086  case $as_dir in #(
20087  -*) as_dir=./$as_dir;;
20088  esac
20089  test -d "$as_dir" || eval $as_mkdir_p || {
20090    as_dirs=
20091    while :; do
20092      case $as_dir in #(
20093      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20094      *) as_qdir=$as_dir;;
20095      esac
20096      as_dirs="'$as_qdir' $as_dirs"
20097      as_dir=`$as_dirname -- "$as_dir" ||
20098$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20099	 X"$as_dir" : 'X\(//\)[^/]' \| \
20100	 X"$as_dir" : 'X\(//\)$' \| \
20101	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20102printf "%s\n" X"$as_dir" |
20103    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20104	    s//\1/
20105	    q
20106	  }
20107	  /^X\(\/\/\)[^/].*/{
20108	    s//\1/
20109	    q
20110	  }
20111	  /^X\(\/\/\)$/{
20112	    s//\1/
20113	    q
20114	  }
20115	  /^X\(\/\).*/{
20116	    s//\1/
20117	    q
20118	  }
20119	  s/.*/./; q'`
20120      test -d "$as_dir" && break
20121    done
20122    test -z "$as_dirs" || eval "mkdir $as_dirs"
20123  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20124
20125
20126} # as_fn_mkdir_p
20127if mkdir -p . 2>/dev/null; then
20128  as_mkdir_p='mkdir -p "$as_dir"'
20129else
20130  test -d ./-p && rmdir ./-p
20131  as_mkdir_p=false
20132fi
20133
20134
20135# as_fn_executable_p FILE
20136# -----------------------
20137# Test if FILE is an executable regular file.
20138as_fn_executable_p ()
20139{
20140  test -f "$1" && test -x "$1"
20141} # as_fn_executable_p
20142as_test_x='test -x'
20143as_executable_p=as_fn_executable_p
20144
20145# Sed expression to map a string onto a valid CPP name.
20146as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20147
20148# Sed expression to map a string onto a valid variable name.
20149as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20150
20151
20152exec 6>&1
20153## ----------------------------------- ##
20154## Main body of $CONFIG_STATUS script. ##
20155## ----------------------------------- ##
20156_ASEOF
20157test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20158
20159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20160# Save the log message, to keep $0 and so on meaningful, and to
20161# report actual input values of CONFIG_FILES etc. instead of their
20162# values after options handling.
20163ac_log="
20164This file was extended by xf86-video-ark $as_me 0.7.6, which was
20165generated by GNU Autoconf 2.71.  Invocation command line was
20166
20167  CONFIG_FILES    = $CONFIG_FILES
20168  CONFIG_HEADERS  = $CONFIG_HEADERS
20169  CONFIG_LINKS    = $CONFIG_LINKS
20170  CONFIG_COMMANDS = $CONFIG_COMMANDS
20171  $ $0 $@
20172
20173on `(hostname || uname -n) 2>/dev/null | sed 1q`
20174"
20175
20176_ACEOF
20177
20178case $ac_config_files in *"
20179"*) set x $ac_config_files; shift; ac_config_files=$*;;
20180esac
20181
20182case $ac_config_headers in *"
20183"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20184esac
20185
20186
20187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20188# Files that config.status was made for.
20189config_files="$ac_config_files"
20190config_headers="$ac_config_headers"
20191config_commands="$ac_config_commands"
20192
20193_ACEOF
20194
20195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20196ac_cs_usage="\
20197\`$as_me' instantiates files and other configuration actions
20198from templates according to the current configuration.  Unless the files
20199and actions are specified as TAGs, all are instantiated by default.
20200
20201Usage: $0 [OPTION]... [TAG]...
20202
20203  -h, --help       print this help, then exit
20204  -V, --version    print version number and configuration settings, then exit
20205      --config     print configuration, then exit
20206  -q, --quiet, --silent
20207                   do not print progress messages
20208  -d, --debug      don't remove temporary files
20209      --recheck    update $as_me by reconfiguring in the same conditions
20210      --file=FILE[:TEMPLATE]
20211                   instantiate the configuration file FILE
20212      --header=FILE[:TEMPLATE]
20213                   instantiate the configuration header FILE
20214
20215Configuration files:
20216$config_files
20217
20218Configuration headers:
20219$config_headers
20220
20221Configuration commands:
20222$config_commands
20223
20224Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ark/-/issues>."
20225
20226_ACEOF
20227ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20228ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20230ac_cs_config='$ac_cs_config_escaped'
20231ac_cs_version="\\
20232xf86-video-ark config.status 0.7.6
20233configured by $0, generated by GNU Autoconf 2.71,
20234  with options \\"\$ac_cs_config\\"
20235
20236Copyright (C) 2021 Free Software Foundation, Inc.
20237This config.status script is free software; the Free Software Foundation
20238gives unlimited permission to copy, distribute and modify it."
20239
20240ac_pwd='$ac_pwd'
20241srcdir='$srcdir'
20242INSTALL='$INSTALL'
20243MKDIR_P='$MKDIR_P'
20244AWK='$AWK'
20245test -n "\$AWK" || AWK=awk
20246_ACEOF
20247
20248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20249# The default lists apply if the user does not specify any file.
20250ac_need_defaults=:
20251while test $# != 0
20252do
20253  case $1 in
20254  --*=?*)
20255    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20256    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20257    ac_shift=:
20258    ;;
20259  --*=)
20260    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20261    ac_optarg=
20262    ac_shift=:
20263    ;;
20264  *)
20265    ac_option=$1
20266    ac_optarg=$2
20267    ac_shift=shift
20268    ;;
20269  esac
20270
20271  case $ac_option in
20272  # Handling of the options.
20273  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20274    ac_cs_recheck=: ;;
20275  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20276    printf "%s\n" "$ac_cs_version"; exit ;;
20277  --config | --confi | --conf | --con | --co | --c )
20278    printf "%s\n" "$ac_cs_config"; exit ;;
20279  --debug | --debu | --deb | --de | --d | -d )
20280    debug=: ;;
20281  --file | --fil | --fi | --f )
20282    $ac_shift
20283    case $ac_optarg in
20284    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20285    '') as_fn_error $? "missing file argument" ;;
20286    esac
20287    as_fn_append CONFIG_FILES " '$ac_optarg'"
20288    ac_need_defaults=false;;
20289  --header | --heade | --head | --hea )
20290    $ac_shift
20291    case $ac_optarg in
20292    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20293    esac
20294    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20295    ac_need_defaults=false;;
20296  --he | --h)
20297    # Conflict between --help and --header
20298    as_fn_error $? "ambiguous option: \`$1'
20299Try \`$0 --help' for more information.";;
20300  --help | --hel | -h )
20301    printf "%s\n" "$ac_cs_usage"; exit ;;
20302  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20303  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20304    ac_cs_silent=: ;;
20305
20306  # This is an error.
20307  -*) as_fn_error $? "unrecognized option: \`$1'
20308Try \`$0 --help' for more information." ;;
20309
20310  *) as_fn_append ac_config_targets " $1"
20311     ac_need_defaults=false ;;
20312
20313  esac
20314  shift
20315done
20316
20317ac_configure_extra_args=
20318
20319if $ac_cs_silent; then
20320  exec 6>/dev/null
20321  ac_configure_extra_args="$ac_configure_extra_args --silent"
20322fi
20323
20324_ACEOF
20325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20326if \$ac_cs_recheck; then
20327  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20328  shift
20329  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20330  CONFIG_SHELL='$SHELL'
20331  export CONFIG_SHELL
20332  exec "\$@"
20333fi
20334
20335_ACEOF
20336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20337exec 5>>config.log
20338{
20339  echo
20340  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20341## Running $as_me. ##
20342_ASBOX
20343  printf "%s\n" "$ac_log"
20344} >&5
20345
20346_ACEOF
20347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20348#
20349# INIT-COMMANDS
20350#
20351AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20352
20353
20354# The HP-UX ksh and POSIX shell print the target directory to stdout
20355# if CDPATH is set.
20356(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20357
20358sed_quote_subst='$sed_quote_subst'
20359double_quote_subst='$double_quote_subst'
20360delay_variable_subst='$delay_variable_subst'
20361enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20362macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20363macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20364enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20365pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20366enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20367shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20368SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20369ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20370PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20371host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20372host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20373host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20374build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20375build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20376build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20377SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20378Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20379GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20380EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20381FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20382LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20383NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20384LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20385max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20386ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20387exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20388lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20389lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20390lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20391lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20392lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20393reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20394reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20395FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20396OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20397deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20398file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20399file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20400want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20401DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20402sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20403AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20404lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20405AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20406archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20407STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20408RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20409old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20410old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20411old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20412lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20413CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20414CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20415compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20416GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20417lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20418lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20419lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20420lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20421lt_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"`'
20422lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20423nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20424lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20425lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20426objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20427MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20428lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20429lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20430lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20431lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20432lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20433need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20434MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20435DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20436NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20437LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20438OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20439OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20440libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20441shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20442extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20443archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20444enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20445export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20446whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20447compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20448old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20449old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20450archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20451archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20452module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20453module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20454with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20455allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20456no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20457hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20458hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20459hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20460hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20461hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20462hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20463hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20464inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20465link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20466always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20467export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20468exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20469include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20470prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20471postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20472file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20473variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20474need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20475need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20476version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20477runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20478shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20479shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20480libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20481library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20482soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20483install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20484postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20485postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20486finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20487finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20488hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20489sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20490configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20491configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20492hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20493enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20494enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20495enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20496old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20497striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20498
20499LTCC='$LTCC'
20500LTCFLAGS='$LTCFLAGS'
20501compiler='$compiler_DEFAULT'
20502
20503# A function that is used when there is no print builtin or printf.
20504func_fallback_echo ()
20505{
20506  eval 'cat <<_LTECHO_EOF
20507\$1
20508_LTECHO_EOF'
20509}
20510
20511# Quote evaled strings.
20512for var in SHELL \
20513ECHO \
20514PATH_SEPARATOR \
20515SED \
20516GREP \
20517EGREP \
20518FGREP \
20519LD \
20520NM \
20521LN_S \
20522lt_SP2NL \
20523lt_NL2SP \
20524reload_flag \
20525FILECMD \
20526OBJDUMP \
20527deplibs_check_method \
20528file_magic_cmd \
20529file_magic_glob \
20530want_nocaseglob \
20531DLLTOOL \
20532sharedlib_from_linklib_cmd \
20533AR \
20534archiver_list_spec \
20535STRIP \
20536RANLIB \
20537CC \
20538CFLAGS \
20539compiler \
20540lt_cv_sys_global_symbol_pipe \
20541lt_cv_sys_global_symbol_to_cdecl \
20542lt_cv_sys_global_symbol_to_import \
20543lt_cv_sys_global_symbol_to_c_name_address \
20544lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20545lt_cv_nm_interface \
20546nm_file_list_spec \
20547lt_cv_truncate_bin \
20548lt_prog_compiler_no_builtin_flag \
20549lt_prog_compiler_pic \
20550lt_prog_compiler_wl \
20551lt_prog_compiler_static \
20552lt_cv_prog_compiler_c_o \
20553need_locks \
20554MANIFEST_TOOL \
20555DSYMUTIL \
20556NMEDIT \
20557LIPO \
20558OTOOL \
20559OTOOL64 \
20560shrext_cmds \
20561export_dynamic_flag_spec \
20562whole_archive_flag_spec \
20563compiler_needs_object \
20564with_gnu_ld \
20565allow_undefined_flag \
20566no_undefined_flag \
20567hardcode_libdir_flag_spec \
20568hardcode_libdir_separator \
20569exclude_expsyms \
20570include_expsyms \
20571file_list_spec \
20572variables_saved_for_relink \
20573libname_spec \
20574library_names_spec \
20575soname_spec \
20576install_override_mode \
20577finish_eval \
20578old_striplib \
20579striplib; do
20580    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20581    *[\\\\\\\`\\"\\\$]*)
20582      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20583      ;;
20584    *)
20585      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20586      ;;
20587    esac
20588done
20589
20590# Double-quote double-evaled strings.
20591for var in reload_cmds \
20592old_postinstall_cmds \
20593old_postuninstall_cmds \
20594old_archive_cmds \
20595extract_expsyms_cmds \
20596old_archive_from_new_cmds \
20597old_archive_from_expsyms_cmds \
20598archive_cmds \
20599archive_expsym_cmds \
20600module_cmds \
20601module_expsym_cmds \
20602export_symbols_cmds \
20603prelink_cmds \
20604postlink_cmds \
20605postinstall_cmds \
20606postuninstall_cmds \
20607finish_cmds \
20608sys_lib_search_path_spec \
20609configure_time_dlsearch_path \
20610configure_time_lt_sys_library_path; do
20611    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20612    *[\\\\\\\`\\"\\\$]*)
20613      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20614      ;;
20615    *)
20616      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20617      ;;
20618    esac
20619done
20620
20621ac_aux_dir='$ac_aux_dir'
20622
20623# See if we are running on zsh, and set the options that allow our
20624# commands through without removal of \ escapes INIT.
20625if test -n "\${ZSH_VERSION+set}"; then
20626   setopt NO_GLOB_SUBST
20627fi
20628
20629
20630    PACKAGE='$PACKAGE'
20631    VERSION='$VERSION'
20632    RM='$RM'
20633    ofile='$ofile'
20634
20635
20636
20637
20638_ACEOF
20639
20640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20641
20642# Handling of arguments.
20643for ac_config_target in $ac_config_targets
20644do
20645  case $ac_config_target in
20646    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20647    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20648    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20649    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20650    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20651
20652  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20653  esac
20654done
20655
20656
20657# If the user did not use the arguments to specify the items to instantiate,
20658# then the envvar interface is used.  Set only those that are not.
20659# We use the long form for the default assignment because of an extremely
20660# bizarre bug on SunOS 4.1.3.
20661if $ac_need_defaults; then
20662  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20663  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20664  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20665fi
20666
20667# Have a temporary directory for convenience.  Make it in the build tree
20668# simply because there is no reason against having it here, and in addition,
20669# creating and moving files from /tmp can sometimes cause problems.
20670# Hook for its removal unless debugging.
20671# Note that there is a small window in which the directory will not be cleaned:
20672# after its creation but before its name has been assigned to `$tmp'.
20673$debug ||
20674{
20675  tmp= ac_tmp=
20676  trap 'exit_status=$?
20677  : "${ac_tmp:=$tmp}"
20678  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20679' 0
20680  trap 'as_fn_exit 1' 1 2 13 15
20681}
20682# Create a (secure) tmp directory for tmp files.
20683
20684{
20685  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20686  test -d "$tmp"
20687}  ||
20688{
20689  tmp=./conf$$-$RANDOM
20690  (umask 077 && mkdir "$tmp")
20691} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20692ac_tmp=$tmp
20693
20694# Set up the scripts for CONFIG_FILES section.
20695# No need to generate them if there are no CONFIG_FILES.
20696# This happens for instance with `./config.status config.h'.
20697if test -n "$CONFIG_FILES"; then
20698
20699
20700ac_cr=`echo X | tr X '\015'`
20701# On cygwin, bash can eat \r inside `` if the user requested igncr.
20702# But we know of no other shell where ac_cr would be empty at this
20703# point, so we can use a bashism as a fallback.
20704if test "x$ac_cr" = x; then
20705  eval ac_cr=\$\'\\r\'
20706fi
20707ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20708if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20709  ac_cs_awk_cr='\\r'
20710else
20711  ac_cs_awk_cr=$ac_cr
20712fi
20713
20714echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20715_ACEOF
20716
20717
20718{
20719  echo "cat >conf$$subs.awk <<_ACEOF" &&
20720  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20721  echo "_ACEOF"
20722} >conf$$subs.sh ||
20723  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20724ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20725ac_delim='%!_!# '
20726for ac_last_try in false false false false false :; do
20727  . ./conf$$subs.sh ||
20728    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20729
20730  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20731  if test $ac_delim_n = $ac_delim_num; then
20732    break
20733  elif $ac_last_try; then
20734    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20735  else
20736    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20737  fi
20738done
20739rm -f conf$$subs.sh
20740
20741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20742cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20743_ACEOF
20744sed -n '
20745h
20746s/^/S["/; s/!.*/"]=/
20747p
20748g
20749s/^[^!]*!//
20750:repl
20751t repl
20752s/'"$ac_delim"'$//
20753t delim
20754:nl
20755h
20756s/\(.\{148\}\)..*/\1/
20757t more1
20758s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20759p
20760n
20761b repl
20762:more1
20763s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20764p
20765g
20766s/.\{148\}//
20767t nl
20768:delim
20769h
20770s/\(.\{148\}\)..*/\1/
20771t more2
20772s/["\\]/\\&/g; s/^/"/; s/$/"/
20773p
20774b
20775:more2
20776s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20777p
20778g
20779s/.\{148\}//
20780t delim
20781' <conf$$subs.awk | sed '
20782/^[^""]/{
20783  N
20784  s/\n//
20785}
20786' >>$CONFIG_STATUS || ac_write_fail=1
20787rm -f conf$$subs.awk
20788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20789_ACAWK
20790cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20791  for (key in S) S_is_set[key] = 1
20792  FS = ""
20793
20794}
20795{
20796  line = $ 0
20797  nfields = split(line, field, "@")
20798  substed = 0
20799  len = length(field[1])
20800  for (i = 2; i < nfields; i++) {
20801    key = field[i]
20802    keylen = length(key)
20803    if (S_is_set[key]) {
20804      value = S[key]
20805      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20806      len += length(value) + length(field[++i])
20807      substed = 1
20808    } else
20809      len += 1 + keylen
20810  }
20811
20812  print line
20813}
20814
20815_ACAWK
20816_ACEOF
20817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20818if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20819  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20820else
20821  cat
20822fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20823  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20824_ACEOF
20825
20826# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20827# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20828# trailing colons and then remove the whole line if VPATH becomes empty
20829# (actually we leave an empty line to preserve line numbers).
20830if test "x$srcdir" = x.; then
20831  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20832h
20833s///
20834s/^/:/
20835s/[	 ]*$/:/
20836s/:\$(srcdir):/:/g
20837s/:\${srcdir}:/:/g
20838s/:@srcdir@:/:/g
20839s/^:*//
20840s/:*$//
20841x
20842s/\(=[	 ]*\).*/\1/
20843G
20844s/\n//
20845s/^[^=]*=[	 ]*$//
20846}'
20847fi
20848
20849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20850fi # test -n "$CONFIG_FILES"
20851
20852# Set up the scripts for CONFIG_HEADERS section.
20853# No need to generate them if there are no CONFIG_HEADERS.
20854# This happens for instance with `./config.status Makefile'.
20855if test -n "$CONFIG_HEADERS"; then
20856cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20857BEGIN {
20858_ACEOF
20859
20860# Transform confdefs.h into an awk script `defines.awk', embedded as
20861# here-document in config.status, that substitutes the proper values into
20862# config.h.in to produce config.h.
20863
20864# Create a delimiter string that does not exist in confdefs.h, to ease
20865# handling of long lines.
20866ac_delim='%!_!# '
20867for ac_last_try in false false :; do
20868  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20869  if test -z "$ac_tt"; then
20870    break
20871  elif $ac_last_try; then
20872    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20873  else
20874    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20875  fi
20876done
20877
20878# For the awk script, D is an array of macro values keyed by name,
20879# likewise P contains macro parameters if any.  Preserve backslash
20880# newline sequences.
20881
20882ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20883sed -n '
20884s/.\{148\}/&'"$ac_delim"'/g
20885t rset
20886:rset
20887s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20888t def
20889d
20890:def
20891s/\\$//
20892t bsnl
20893s/["\\]/\\&/g
20894s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20895D["\1"]=" \3"/p
20896s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20897d
20898:bsnl
20899s/["\\]/\\&/g
20900s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20901D["\1"]=" \3\\\\\\n"\\/p
20902t cont
20903s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20904t cont
20905d
20906:cont
20907n
20908s/.\{148\}/&'"$ac_delim"'/g
20909t clear
20910:clear
20911s/\\$//
20912t bsnlc
20913s/["\\]/\\&/g; s/^/"/; s/$/"/p
20914d
20915:bsnlc
20916s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20917b cont
20918' <confdefs.h | sed '
20919s/'"$ac_delim"'/"\\\
20920"/g' >>$CONFIG_STATUS || ac_write_fail=1
20921
20922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20923  for (key in D) D_is_set[key] = 1
20924  FS = ""
20925}
20926/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20927  line = \$ 0
20928  split(line, arg, " ")
20929  if (arg[1] == "#") {
20930    defundef = arg[2]
20931    mac1 = arg[3]
20932  } else {
20933    defundef = substr(arg[1], 2)
20934    mac1 = arg[2]
20935  }
20936  split(mac1, mac2, "(") #)
20937  macro = mac2[1]
20938  prefix = substr(line, 1, index(line, defundef) - 1)
20939  if (D_is_set[macro]) {
20940    # Preserve the white space surrounding the "#".
20941    print prefix "define", macro P[macro] D[macro]
20942    next
20943  } else {
20944    # Replace #undef with comments.  This is necessary, for example,
20945    # in the case of _POSIX_SOURCE, which is predefined and required
20946    # on some systems where configure will not decide to define it.
20947    if (defundef == "undef") {
20948      print "/*", prefix defundef, macro, "*/"
20949      next
20950    }
20951  }
20952}
20953{ print }
20954_ACAWK
20955_ACEOF
20956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20957  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20958fi # test -n "$CONFIG_HEADERS"
20959
20960
20961eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20962shift
20963for ac_tag
20964do
20965  case $ac_tag in
20966  :[FHLC]) ac_mode=$ac_tag; continue;;
20967  esac
20968  case $ac_mode$ac_tag in
20969  :[FHL]*:*);;
20970  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20971  :[FH]-) ac_tag=-:-;;
20972  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20973  esac
20974  ac_save_IFS=$IFS
20975  IFS=:
20976  set x $ac_tag
20977  IFS=$ac_save_IFS
20978  shift
20979  ac_file=$1
20980  shift
20981
20982  case $ac_mode in
20983  :L) ac_source=$1;;
20984  :[FH])
20985    ac_file_inputs=
20986    for ac_f
20987    do
20988      case $ac_f in
20989      -) ac_f="$ac_tmp/stdin";;
20990      *) # Look for the file first in the build tree, then in the source tree
20991	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20992	 # because $ac_f cannot contain `:'.
20993	 test -f "$ac_f" ||
20994	   case $ac_f in
20995	   [\\/$]*) false;;
20996	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20997	   esac ||
20998	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20999      esac
21000      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21001      as_fn_append ac_file_inputs " '$ac_f'"
21002    done
21003
21004    # Let's still pretend it is `configure' which instantiates (i.e., don't
21005    # use $as_me), people would be surprised to read:
21006    #    /* config.h.  Generated by config.status.  */
21007    configure_input='Generated from '`
21008	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21009	`' by configure.'
21010    if test x"$ac_file" != x-; then
21011      configure_input="$ac_file.  $configure_input"
21012      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21013printf "%s\n" "$as_me: creating $ac_file" >&6;}
21014    fi
21015    # Neutralize special characters interpreted by sed in replacement strings.
21016    case $configure_input in #(
21017    *\&* | *\|* | *\\* )
21018       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21019       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21020    *) ac_sed_conf_input=$configure_input;;
21021    esac
21022
21023    case $ac_tag in
21024    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21025      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21026    esac
21027    ;;
21028  esac
21029
21030  ac_dir=`$as_dirname -- "$ac_file" ||
21031$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21032	 X"$ac_file" : 'X\(//\)[^/]' \| \
21033	 X"$ac_file" : 'X\(//\)$' \| \
21034	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21035printf "%s\n" X"$ac_file" |
21036    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21037	    s//\1/
21038	    q
21039	  }
21040	  /^X\(\/\/\)[^/].*/{
21041	    s//\1/
21042	    q
21043	  }
21044	  /^X\(\/\/\)$/{
21045	    s//\1/
21046	    q
21047	  }
21048	  /^X\(\/\).*/{
21049	    s//\1/
21050	    q
21051	  }
21052	  s/.*/./; q'`
21053  as_dir="$ac_dir"; as_fn_mkdir_p
21054  ac_builddir=.
21055
21056case "$ac_dir" in
21057.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21058*)
21059  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21060  # A ".." for each directory in $ac_dir_suffix.
21061  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21062  case $ac_top_builddir_sub in
21063  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21064  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21065  esac ;;
21066esac
21067ac_abs_top_builddir=$ac_pwd
21068ac_abs_builddir=$ac_pwd$ac_dir_suffix
21069# for backward compatibility:
21070ac_top_builddir=$ac_top_build_prefix
21071
21072case $srcdir in
21073  .)  # We are building in place.
21074    ac_srcdir=.
21075    ac_top_srcdir=$ac_top_builddir_sub
21076    ac_abs_top_srcdir=$ac_pwd ;;
21077  [\\/]* | ?:[\\/]* )  # Absolute name.
21078    ac_srcdir=$srcdir$ac_dir_suffix;
21079    ac_top_srcdir=$srcdir
21080    ac_abs_top_srcdir=$srcdir ;;
21081  *) # Relative name.
21082    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21083    ac_top_srcdir=$ac_top_build_prefix$srcdir
21084    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21085esac
21086ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21087
21088
21089  case $ac_mode in
21090  :F)
21091  #
21092  # CONFIG_FILE
21093  #
21094
21095  case $INSTALL in
21096  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21097  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21098  esac
21099  ac_MKDIR_P=$MKDIR_P
21100  case $MKDIR_P in
21101  [\\/$]* | ?:[\\/]* ) ;;
21102  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21103  esac
21104_ACEOF
21105
21106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21107# If the template does not know about datarootdir, expand it.
21108# FIXME: This hack should be removed a few years after 2.60.
21109ac_datarootdir_hack=; ac_datarootdir_seen=
21110ac_sed_dataroot='
21111/datarootdir/ {
21112  p
21113  q
21114}
21115/@datadir@/p
21116/@docdir@/p
21117/@infodir@/p
21118/@localedir@/p
21119/@mandir@/p'
21120case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21121*datarootdir*) ac_datarootdir_seen=yes;;
21122*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21124printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21125_ACEOF
21126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21127  ac_datarootdir_hack='
21128  s&@datadir@&$datadir&g
21129  s&@docdir@&$docdir&g
21130  s&@infodir@&$infodir&g
21131  s&@localedir@&$localedir&g
21132  s&@mandir@&$mandir&g
21133  s&\\\${datarootdir}&$datarootdir&g' ;;
21134esac
21135_ACEOF
21136
21137# Neutralize VPATH when `$srcdir' = `.'.
21138# Shell code in configure.ac might set extrasub.
21139# FIXME: do we really want to maintain this feature?
21140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21141ac_sed_extra="$ac_vpsub
21142$extrasub
21143_ACEOF
21144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21145:t
21146/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21147s|@configure_input@|$ac_sed_conf_input|;t t
21148s&@top_builddir@&$ac_top_builddir_sub&;t t
21149s&@top_build_prefix@&$ac_top_build_prefix&;t t
21150s&@srcdir@&$ac_srcdir&;t t
21151s&@abs_srcdir@&$ac_abs_srcdir&;t t
21152s&@top_srcdir@&$ac_top_srcdir&;t t
21153s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21154s&@builddir@&$ac_builddir&;t t
21155s&@abs_builddir@&$ac_abs_builddir&;t t
21156s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21157s&@INSTALL@&$ac_INSTALL&;t t
21158s&@MKDIR_P@&$ac_MKDIR_P&;t t
21159$ac_datarootdir_hack
21160"
21161eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21162  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21163
21164test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21165  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21166  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21167      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21169which seems to be undefined.  Please make sure it is defined" >&5
21170printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21171which seems to be undefined.  Please make sure it is defined" >&2;}
21172
21173  rm -f "$ac_tmp/stdin"
21174  case $ac_file in
21175  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21176  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21177  esac \
21178  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21179 ;;
21180  :H)
21181  #
21182  # CONFIG_HEADER
21183  #
21184  if test x"$ac_file" != x-; then
21185    {
21186      printf "%s\n" "/* $configure_input  */" >&1 \
21187      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21188    } >"$ac_tmp/config.h" \
21189      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21190    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21191      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21192printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21193    else
21194      rm -f "$ac_file"
21195      mv "$ac_tmp/config.h" "$ac_file" \
21196	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21197    fi
21198  else
21199    printf "%s\n" "/* $configure_input  */" >&1 \
21200      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21201      || as_fn_error $? "could not create -" "$LINENO" 5
21202  fi
21203# Compute "$ac_file"'s index in $config_headers.
21204_am_arg="$ac_file"
21205_am_stamp_count=1
21206for _am_header in $config_headers :; do
21207  case $_am_header in
21208    $_am_arg | $_am_arg:* )
21209      break ;;
21210    * )
21211      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21212  esac
21213done
21214echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21215$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21216	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21217	 X"$_am_arg" : 'X\(//\)$' \| \
21218	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21219printf "%s\n" X"$_am_arg" |
21220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21221	    s//\1/
21222	    q
21223	  }
21224	  /^X\(\/\/\)[^/].*/{
21225	    s//\1/
21226	    q
21227	  }
21228	  /^X\(\/\/\)$/{
21229	    s//\1/
21230	    q
21231	  }
21232	  /^X\(\/\).*/{
21233	    s//\1/
21234	    q
21235	  }
21236	  s/.*/./; q'`/stamp-h$_am_stamp_count
21237 ;;
21238
21239  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21240printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21241 ;;
21242  esac
21243
21244
21245  case $ac_file$ac_mode in
21246    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21247  # Older Autoconf quotes --file arguments for eval, but not when files
21248  # are listed without --file.  Let's play safe and only enable the eval
21249  # if we detect the quoting.
21250  # TODO: see whether this extra hack can be removed once we start
21251  # requiring Autoconf 2.70 or later.
21252  case $CONFIG_FILES in #(
21253  *\'*) :
21254    eval set x "$CONFIG_FILES" ;; #(
21255  *) :
21256    set x $CONFIG_FILES ;; #(
21257  *) :
21258     ;;
21259esac
21260  shift
21261  # Used to flag and report bootstrapping failures.
21262  am_rc=0
21263  for am_mf
21264  do
21265    # Strip MF so we end up with the name of the file.
21266    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21267    # Check whether this is an Automake generated Makefile which includes
21268    # dependency-tracking related rules and includes.
21269    # Grep'ing the whole file directly is not great: AIX grep has a line
21270    # limit of 2048, but all sed's we know have understand at least 4000.
21271    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21272      || continue
21273    am_dirpart=`$as_dirname -- "$am_mf" ||
21274$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21275	 X"$am_mf" : 'X\(//\)[^/]' \| \
21276	 X"$am_mf" : 'X\(//\)$' \| \
21277	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21278printf "%s\n" X"$am_mf" |
21279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21280	    s//\1/
21281	    q
21282	  }
21283	  /^X\(\/\/\)[^/].*/{
21284	    s//\1/
21285	    q
21286	  }
21287	  /^X\(\/\/\)$/{
21288	    s//\1/
21289	    q
21290	  }
21291	  /^X\(\/\).*/{
21292	    s//\1/
21293	    q
21294	  }
21295	  s/.*/./; q'`
21296    am_filepart=`$as_basename -- "$am_mf" ||
21297$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21298	 X"$am_mf" : 'X\(//\)$' \| \
21299	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21300printf "%s\n" X/"$am_mf" |
21301    sed '/^.*\/\([^/][^/]*\)\/*$/{
21302	    s//\1/
21303	    q
21304	  }
21305	  /^X\/\(\/\/\)$/{
21306	    s//\1/
21307	    q
21308	  }
21309	  /^X\/\(\/\).*/{
21310	    s//\1/
21311	    q
21312	  }
21313	  s/.*/./; q'`
21314    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21315      && sed -e '/# am--include-marker/d' "$am_filepart" \
21316        | $MAKE -f - am--depfiles" >&5
21317   (cd "$am_dirpart" \
21318      && sed -e '/# am--include-marker/d' "$am_filepart" \
21319        | $MAKE -f - am--depfiles) >&5 2>&5
21320   ac_status=$?
21321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322   (exit $ac_status); } || am_rc=$?
21323  done
21324  if test $am_rc -ne 0; then
21325    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21326printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21327as_fn_error $? "Something went wrong bootstrapping makefile fragments
21328    for automatic dependency tracking.  If GNU make was not used, consider
21329    re-running the configure script with MAKE=\"gmake\" (or whatever is
21330    necessary).  You can also try re-running configure with the
21331    '--disable-dependency-tracking' option to at least be able to build
21332    the package (albeit without support for automatic dependency tracking).
21333See \`config.log' for more details" "$LINENO" 5; }
21334  fi
21335  { am_dirpart=; unset am_dirpart;}
21336  { am_filepart=; unset am_filepart;}
21337  { am_mf=; unset am_mf;}
21338  { am_rc=; unset am_rc;}
21339  rm -f conftest-deps.mk
21340}
21341 ;;
21342    "libtool":C)
21343
21344    # See if we are running on zsh, and set the options that allow our
21345    # commands through without removal of \ escapes.
21346    if test -n "${ZSH_VERSION+set}"; then
21347      setopt NO_GLOB_SUBST
21348    fi
21349
21350    cfgfile=${ofile}T
21351    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21352    $RM "$cfgfile"
21353
21354    cat <<_LT_EOF >> "$cfgfile"
21355#! $SHELL
21356# Generated automatically by $as_me ($PACKAGE) $VERSION
21357# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21358# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21359
21360# Provide generalized library-building support services.
21361# Written by Gordon Matzigkeit, 1996
21362
21363# Copyright (C) 2014 Free Software Foundation, Inc.
21364# This is free software; see the source for copying conditions.  There is NO
21365# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21366
21367# GNU Libtool is free software; you can redistribute it and/or modify
21368# it under the terms of the GNU General Public License as published by
21369# the Free Software Foundation; either version 2 of of the License, or
21370# (at your option) any later version.
21371#
21372# As a special exception to the GNU General Public License, if you
21373# distribute this file as part of a program or library that is built
21374# using GNU Libtool, you may include this file under the  same
21375# distribution terms that you use for the rest of that program.
21376#
21377# GNU Libtool is distributed in the hope that it will be useful, but
21378# WITHOUT ANY WARRANTY; without even the implied warranty of
21379# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21380# GNU General Public License for more details.
21381#
21382# You should have received a copy of the GNU General Public License
21383# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21384
21385
21386# The names of the tagged configurations supported by this script.
21387available_tags=''
21388
21389# Configured defaults for sys_lib_dlsearch_path munging.
21390: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21391
21392# ### BEGIN LIBTOOL CONFIG
21393
21394# Whether or not to build static libraries.
21395build_old_libs=$enable_static
21396
21397# Which release of libtool.m4 was used?
21398macro_version=$macro_version
21399macro_revision=$macro_revision
21400
21401# Whether or not to build shared libraries.
21402build_libtool_libs=$enable_shared
21403
21404# What type of objects to build.
21405pic_mode=$pic_mode
21406
21407# Whether or not to optimize for fast installation.
21408fast_install=$enable_fast_install
21409
21410# Shared archive member basename,for filename based shared library versioning on AIX.
21411shared_archive_member_spec=$shared_archive_member_spec
21412
21413# Shell to use when invoking shell scripts.
21414SHELL=$lt_SHELL
21415
21416# An echo program that protects backslashes.
21417ECHO=$lt_ECHO
21418
21419# The PATH separator for the build system.
21420PATH_SEPARATOR=$lt_PATH_SEPARATOR
21421
21422# The host system.
21423host_alias=$host_alias
21424host=$host
21425host_os=$host_os
21426
21427# The build system.
21428build_alias=$build_alias
21429build=$build
21430build_os=$build_os
21431
21432# A sed program that does not truncate output.
21433SED=$lt_SED
21434
21435# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21436Xsed="\$SED -e 1s/^X//"
21437
21438# A grep program that handles long lines.
21439GREP=$lt_GREP
21440
21441# An ERE matcher.
21442EGREP=$lt_EGREP
21443
21444# A literal string matcher.
21445FGREP=$lt_FGREP
21446
21447# A BSD- or MS-compatible name lister.
21448NM=$lt_NM
21449
21450# Whether we need soft or hard links.
21451LN_S=$lt_LN_S
21452
21453# What is the maximum length of a command?
21454max_cmd_len=$max_cmd_len
21455
21456# Object file suffix (normally "o").
21457objext=$ac_objext
21458
21459# Executable file suffix (normally "").
21460exeext=$exeext
21461
21462# whether the shell understands "unset".
21463lt_unset=$lt_unset
21464
21465# turn spaces into newlines.
21466SP2NL=$lt_lt_SP2NL
21467
21468# turn newlines into spaces.
21469NL2SP=$lt_lt_NL2SP
21470
21471# convert \$build file names to \$host format.
21472to_host_file_cmd=$lt_cv_to_host_file_cmd
21473
21474# convert \$build files to toolchain format.
21475to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21476
21477# A file(cmd) program that detects file types.
21478FILECMD=$lt_FILECMD
21479
21480# An object symbol dumper.
21481OBJDUMP=$lt_OBJDUMP
21482
21483# Method to check whether dependent libraries are shared objects.
21484deplibs_check_method=$lt_deplibs_check_method
21485
21486# Command to use when deplibs_check_method = "file_magic".
21487file_magic_cmd=$lt_file_magic_cmd
21488
21489# How to find potential files when deplibs_check_method = "file_magic".
21490file_magic_glob=$lt_file_magic_glob
21491
21492# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21493want_nocaseglob=$lt_want_nocaseglob
21494
21495# DLL creation program.
21496DLLTOOL=$lt_DLLTOOL
21497
21498# Command to associate shared and link libraries.
21499sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21500
21501# The archiver.
21502AR=$lt_AR
21503
21504# Flags to create an archive (by configure).
21505lt_ar_flags=$lt_ar_flags
21506
21507# Flags to create an archive.
21508AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21509
21510# How to feed a file listing to the archiver.
21511archiver_list_spec=$lt_archiver_list_spec
21512
21513# A symbol stripping program.
21514STRIP=$lt_STRIP
21515
21516# Commands used to install an old-style archive.
21517RANLIB=$lt_RANLIB
21518old_postinstall_cmds=$lt_old_postinstall_cmds
21519old_postuninstall_cmds=$lt_old_postuninstall_cmds
21520
21521# Whether to use a lock for old archive extraction.
21522lock_old_archive_extraction=$lock_old_archive_extraction
21523
21524# A C compiler.
21525LTCC=$lt_CC
21526
21527# LTCC compiler flags.
21528LTCFLAGS=$lt_CFLAGS
21529
21530# Take the output of nm and produce a listing of raw symbols and C names.
21531global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21532
21533# Transform the output of nm in a proper C declaration.
21534global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21535
21536# Transform the output of nm into a list of symbols to manually relocate.
21537global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21538
21539# Transform the output of nm in a C name address pair.
21540global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21541
21542# Transform the output of nm in a C name address pair when lib prefix is needed.
21543global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21544
21545# The name lister interface.
21546nm_interface=$lt_lt_cv_nm_interface
21547
21548# Specify filename containing input files for \$NM.
21549nm_file_list_spec=$lt_nm_file_list_spec
21550
21551# The root where to search for dependent libraries,and where our libraries should be installed.
21552lt_sysroot=$lt_sysroot
21553
21554# Command to truncate a binary pipe.
21555lt_truncate_bin=$lt_lt_cv_truncate_bin
21556
21557# The name of the directory that contains temporary libtool files.
21558objdir=$objdir
21559
21560# Used to examine libraries when file_magic_cmd begins with "file".
21561MAGIC_CMD=$MAGIC_CMD
21562
21563# Must we lock files when doing compilation?
21564need_locks=$lt_need_locks
21565
21566# Manifest tool.
21567MANIFEST_TOOL=$lt_MANIFEST_TOOL
21568
21569# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21570DSYMUTIL=$lt_DSYMUTIL
21571
21572# Tool to change global to local symbols on Mac OS X.
21573NMEDIT=$lt_NMEDIT
21574
21575# Tool to manipulate fat objects and archives on Mac OS X.
21576LIPO=$lt_LIPO
21577
21578# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21579OTOOL=$lt_OTOOL
21580
21581# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21582OTOOL64=$lt_OTOOL64
21583
21584# Old archive suffix (normally "a").
21585libext=$libext
21586
21587# Shared library suffix (normally ".so").
21588shrext_cmds=$lt_shrext_cmds
21589
21590# The commands to extract the exported symbol list from a shared archive.
21591extract_expsyms_cmds=$lt_extract_expsyms_cmds
21592
21593# Variables whose values should be saved in libtool wrapper scripts and
21594# restored at link time.
21595variables_saved_for_relink=$lt_variables_saved_for_relink
21596
21597# Do we need the "lib" prefix for modules?
21598need_lib_prefix=$need_lib_prefix
21599
21600# Do we need a version for libraries?
21601need_version=$need_version
21602
21603# Library versioning type.
21604version_type=$version_type
21605
21606# Shared library runtime path variable.
21607runpath_var=$runpath_var
21608
21609# Shared library path variable.
21610shlibpath_var=$shlibpath_var
21611
21612# Is shlibpath searched before the hard-coded library search path?
21613shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21614
21615# Format of library name prefix.
21616libname_spec=$lt_libname_spec
21617
21618# List of archive names.  First name is the real one, the rest are links.
21619# The last name is the one that the linker finds with -lNAME
21620library_names_spec=$lt_library_names_spec
21621
21622# The coded name of the library, if different from the real name.
21623soname_spec=$lt_soname_spec
21624
21625# Permission mode override for installation of shared libraries.
21626install_override_mode=$lt_install_override_mode
21627
21628# Command to use after installation of a shared archive.
21629postinstall_cmds=$lt_postinstall_cmds
21630
21631# Command to use after uninstallation of a shared archive.
21632postuninstall_cmds=$lt_postuninstall_cmds
21633
21634# Commands used to finish a libtool library installation in a directory.
21635finish_cmds=$lt_finish_cmds
21636
21637# As "finish_cmds", except a single script fragment to be evaled but
21638# not shown.
21639finish_eval=$lt_finish_eval
21640
21641# Whether we should hardcode library paths into libraries.
21642hardcode_into_libs=$hardcode_into_libs
21643
21644# Compile-time system search path for libraries.
21645sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21646
21647# Detected run-time system search path for libraries.
21648sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21649
21650# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21651configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21652
21653# Whether dlopen is supported.
21654dlopen_support=$enable_dlopen
21655
21656# Whether dlopen of programs is supported.
21657dlopen_self=$enable_dlopen_self
21658
21659# Whether dlopen of statically linked programs is supported.
21660dlopen_self_static=$enable_dlopen_self_static
21661
21662# Commands to strip libraries.
21663old_striplib=$lt_old_striplib
21664striplib=$lt_striplib
21665
21666
21667# The linker used to build libraries.
21668LD=$lt_LD
21669
21670# How to create reloadable object files.
21671reload_flag=$lt_reload_flag
21672reload_cmds=$lt_reload_cmds
21673
21674# Commands used to build an old-style archive.
21675old_archive_cmds=$lt_old_archive_cmds
21676
21677# A language specific compiler.
21678CC=$lt_compiler
21679
21680# Is the compiler the GNU compiler?
21681with_gcc=$GCC
21682
21683# Compiler flag to turn off builtin functions.
21684no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21685
21686# Additional compiler flags for building library objects.
21687pic_flag=$lt_lt_prog_compiler_pic
21688
21689# How to pass a linker flag through the compiler.
21690wl=$lt_lt_prog_compiler_wl
21691
21692# Compiler flag to prevent dynamic linking.
21693link_static_flag=$lt_lt_prog_compiler_static
21694
21695# Does compiler simultaneously support -c and -o options?
21696compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21697
21698# Whether or not to add -lc for building shared libraries.
21699build_libtool_need_lc=$archive_cmds_need_lc
21700
21701# Whether or not to disallow shared libs when runtime libs are static.
21702allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21703
21704# Compiler flag to allow reflexive dlopens.
21705export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21706
21707# Compiler flag to generate shared objects directly from archives.
21708whole_archive_flag_spec=$lt_whole_archive_flag_spec
21709
21710# Whether the compiler copes with passing no objects directly.
21711compiler_needs_object=$lt_compiler_needs_object
21712
21713# Create an old-style archive from a shared archive.
21714old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21715
21716# Create a temporary old-style archive to link instead of a shared archive.
21717old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21718
21719# Commands used to build a shared archive.
21720archive_cmds=$lt_archive_cmds
21721archive_expsym_cmds=$lt_archive_expsym_cmds
21722
21723# Commands used to build a loadable module if different from building
21724# a shared archive.
21725module_cmds=$lt_module_cmds
21726module_expsym_cmds=$lt_module_expsym_cmds
21727
21728# Whether we are building with GNU ld or not.
21729with_gnu_ld=$lt_with_gnu_ld
21730
21731# Flag that allows shared libraries with undefined symbols to be built.
21732allow_undefined_flag=$lt_allow_undefined_flag
21733
21734# Flag that enforces no undefined symbols.
21735no_undefined_flag=$lt_no_undefined_flag
21736
21737# Flag to hardcode \$libdir into a binary during linking.
21738# This must work even if \$libdir does not exist
21739hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21740
21741# Whether we need a single "-rpath" flag with a separated argument.
21742hardcode_libdir_separator=$lt_hardcode_libdir_separator
21743
21744# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21745# DIR into the resulting binary.
21746hardcode_direct=$hardcode_direct
21747
21748# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21749# DIR into the resulting binary and the resulting library dependency is
21750# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21751# library is relocated.
21752hardcode_direct_absolute=$hardcode_direct_absolute
21753
21754# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21755# into the resulting binary.
21756hardcode_minus_L=$hardcode_minus_L
21757
21758# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21759# into the resulting binary.
21760hardcode_shlibpath_var=$hardcode_shlibpath_var
21761
21762# Set to "yes" if building a shared library automatically hardcodes DIR
21763# into the library and all subsequent libraries and executables linked
21764# against it.
21765hardcode_automatic=$hardcode_automatic
21766
21767# Set to yes if linker adds runtime paths of dependent libraries
21768# to runtime path list.
21769inherit_rpath=$inherit_rpath
21770
21771# Whether libtool must link a program against all its dependency libraries.
21772link_all_deplibs=$link_all_deplibs
21773
21774# Set to "yes" if exported symbols are required.
21775always_export_symbols=$always_export_symbols
21776
21777# The commands to list exported symbols.
21778export_symbols_cmds=$lt_export_symbols_cmds
21779
21780# Symbols that should not be listed in the preloaded symbols.
21781exclude_expsyms=$lt_exclude_expsyms
21782
21783# Symbols that must always be exported.
21784include_expsyms=$lt_include_expsyms
21785
21786# Commands necessary for linking programs (against libraries) with templates.
21787prelink_cmds=$lt_prelink_cmds
21788
21789# Commands necessary for finishing linking programs.
21790postlink_cmds=$lt_postlink_cmds
21791
21792# Specify filename containing input files.
21793file_list_spec=$lt_file_list_spec
21794
21795# How to hardcode a shared library path into an executable.
21796hardcode_action=$hardcode_action
21797
21798# ### END LIBTOOL CONFIG
21799
21800_LT_EOF
21801
21802    cat <<'_LT_EOF' >> "$cfgfile"
21803
21804# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21805
21806# func_munge_path_list VARIABLE PATH
21807# -----------------------------------
21808# VARIABLE is name of variable containing _space_ separated list of
21809# directories to be munged by the contents of PATH, which is string
21810# having a format:
21811# "DIR[:DIR]:"
21812#       string "DIR[ DIR]" will be prepended to VARIABLE
21813# ":DIR[:DIR]"
21814#       string "DIR[ DIR]" will be appended to VARIABLE
21815# "DIRP[:DIRP]::[DIRA:]DIRA"
21816#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21817#       "DIRA[ DIRA]" will be appended to VARIABLE
21818# "DIR[:DIR]"
21819#       VARIABLE will be replaced by "DIR[ DIR]"
21820func_munge_path_list ()
21821{
21822    case x$2 in
21823    x)
21824        ;;
21825    *:)
21826        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21827        ;;
21828    x:*)
21829        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21830        ;;
21831    *::*)
21832        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21833        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21834        ;;
21835    *)
21836        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21837        ;;
21838    esac
21839}
21840
21841
21842# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21843func_cc_basename ()
21844{
21845    for cc_temp in $*""; do
21846      case $cc_temp in
21847        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21848        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21849        \-*) ;;
21850        *) break;;
21851      esac
21852    done
21853    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21854}
21855
21856
21857# ### END FUNCTIONS SHARED WITH CONFIGURE
21858
21859_LT_EOF
21860
21861  case $host_os in
21862  aix3*)
21863    cat <<\_LT_EOF >> "$cfgfile"
21864# AIX sometimes has problems with the GCC collect2 program.  For some
21865# reason, if we set the COLLECT_NAMES environment variable, the problems
21866# vanish in a puff of smoke.
21867if test set != "${COLLECT_NAMES+set}"; then
21868  COLLECT_NAMES=
21869  export COLLECT_NAMES
21870fi
21871_LT_EOF
21872    ;;
21873  esac
21874
21875
21876
21877ltmain=$ac_aux_dir/ltmain.sh
21878
21879
21880  # We use sed instead of cat because bash on DJGPP gets confused if
21881  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21882  # text mode, it properly converts lines to CR/LF.  This bash problem
21883  # is reportedly fixed, but why not run on old versions too?
21884  $SED '$q' "$ltmain" >> "$cfgfile" \
21885     || (rm -f "$cfgfile"; exit 1)
21886
21887   mv -f "$cfgfile" "$ofile" ||
21888    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21889  chmod +x "$ofile"
21890
21891 ;;
21892
21893  esac
21894done # for ac_tag
21895
21896
21897as_fn_exit 0
21898_ACEOF
21899ac_clean_files=$ac_clean_files_save
21900
21901test $ac_write_fail = 0 ||
21902  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21903
21904
21905# configure is writing to config.log, and then calls config.status.
21906# config.status does its own redirection, appending to config.log.
21907# Unfortunately, on DOS this fails, as config.log is still kept open
21908# by configure, so config.status won't be able to write to it; its
21909# output is simply discarded.  So we exec the FD to /dev/null,
21910# effectively closing config.log, so it can be properly (re)opened and
21911# appended to by config.status.  When coming back to configure, we
21912# need to make the FD available again.
21913if test "$no_create" != yes; then
21914  ac_cs_success=:
21915  ac_config_status_args=
21916  test "$silent" = yes &&
21917    ac_config_status_args="$ac_config_status_args --quiet"
21918  exec 5>/dev/null
21919  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21920  exec 5>>config.log
21921  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21922  # would make configure fail if this is the last instruction.
21923  $ac_cs_success || as_fn_exit 1
21924fi
21925if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21927printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21928fi
21929
21930
21931