configure revision 14210e8e
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-glint 1.2.9.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-glint'
593PACKAGE_TARNAME='xf86-video-glint'
594PACKAGE_VERSION='1.2.9'
595PACKAGE_STRING='xf86-video-glint 1.2.9'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641moduledir
642XAA_FALSE
643XAA_TRUE
644XSERVER_LIBPCIACCESS_FALSE
645XSERVER_LIBPCIACCESS_TRUE
646PCIACCESS_LIBS
647PCIACCESS_CFLAGS
648HAVE_XEXTPROTO_71_FALSE
649HAVE_XEXTPROTO_71_TRUE
650XEXT_LIBS
651XEXT_CFLAGS
652XORG_LIBS
653XORG_CFLAGS
654LT_SYS_LIBRARY_PATH
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660MANIFEST_TOOL
661RANLIB
662ac_ct_AR
663AR
664DLLTOOL
665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672LIBTOOL
673MAN_SUBSTS
674XORG_MAN_PAGE
675ADMIN_MAN_DIR
676DRIVER_MAN_DIR
677MISC_MAN_DIR
678FILE_MAN_DIR
679LIB_MAN_DIR
680APP_MAN_DIR
681ADMIN_MAN_SUFFIX
682DRIVER_MAN_SUFFIX
683MISC_MAN_SUFFIX
684FILE_MAN_SUFFIX
685LIB_MAN_SUFFIX
686APP_MAN_SUFFIX
687SED
688host_os
689host_vendor
690host_cpu
691host
692build_os
693build_vendor
694build_cpu
695build
696INSTALL_CMD
697PKG_CONFIG_LIBDIR
698PKG_CONFIG_PATH
699PKG_CONFIG
700CHANGELOG_CMD
701STRICT_CFLAGS
702CWARNFLAGS
703BASE_CFLAGS
704EGREP
705GREP
706CPP
707am__fastdepCC_FALSE
708am__fastdepCC_TRUE
709CCDEPMODE
710am__nodep
711AMDEPBACKSLASH
712AMDEP_FALSE
713AMDEP_TRUE
714am__quote
715am__include
716DEPDIR
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724MAINT
725MAINTAINER_MODE_FALSE
726MAINTAINER_MODE_TRUE
727AM_BACKSLASH
728AM_DEFAULT_VERBOSITY
729AM_DEFAULT_V
730AM_V
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
792ac_subst_files=''
793ac_user_opts='
794enable_option_checking
795enable_silent_rules
796enable_maintainer_mode
797enable_dependency_tracking
798enable_selective_werror
799enable_strict_compilation
800enable_static
801enable_shared
802with_pic
803enable_fast_install
804with_aix_soname
805with_gnu_ld
806with_sysroot
807enable_libtool_lock
808with_xorg_module_dir
809enable_xaa
810'
811      ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
817LIBS
818CPPFLAGS
819CPP
820PKG_CONFIG
821PKG_CONFIG_PATH
822PKG_CONFIG_LIBDIR
823LT_SYS_LIBRARY_PATH
824XORG_CFLAGS
825XORG_LIBS
826XEXT_CFLAGS
827XEXT_LIBS
828PCIACCESS_CFLAGS
829PCIACCESS_LIBS'
830
831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835ac_unrecognized_opts=
836ac_unrecognized_sep=
837# The variables have the same names as the options, with
838# dashes changed to underlines.
839cache_file=/dev/null
840exec_prefix=NONE
841no_create=
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
850verbose=
851x_includes=NONE
852x_libraries=NONE
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
859# (The list follows the same order as the GNU Coding Standards.)
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
879
880ac_prev=
881ac_dashdash=
882for ac_option
883do
884  # If the previous option needs an argument, assign it.
885  if test -n "$ac_prev"; then
886    eval $ac_prev=\$ac_option
887    ac_prev=
888    continue
889  fi
890
891  case $ac_option in
892  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893  *=)   ac_optarg= ;;
894  *)    ac_optarg=yes ;;
895  esac
896
897  # Accept the important Cygnus configure options, so we can diagnose typos.
898
899  case $ac_dashdash$ac_option in
900  --)
901    ac_dashdash=yes ;;
902
903  -bindir | --bindir | --bindi | --bind | --bin | --bi)
904    ac_prev=bindir ;;
905  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906    bindir=$ac_optarg ;;
907
908  -build | --build | --buil | --bui | --bu)
909    ac_prev=build_alias ;;
910  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911    build_alias=$ac_optarg ;;
912
913  -cache-file | --cache-file | --cache-fil | --cache-fi \
914  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915    ac_prev=cache_file ;;
916  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918    cache_file=$ac_optarg ;;
919
920  --config-cache | -C)
921    cache_file=config.cache ;;
922
923  -datadir | --datadir | --datadi | --datad)
924    ac_prev=datadir ;;
925  -datadir=* | --datadir=* | --datadi=* | --datad=*)
926    datadir=$ac_optarg ;;
927
928  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929  | --dataroo | --dataro | --datar)
930    ac_prev=datarootdir ;;
931  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933    datarootdir=$ac_optarg ;;
934
935  -disable-* | --disable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: $ac_useropt"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=no ;;
950
951  -docdir | --docdir | --docdi | --doc | --do)
952    ac_prev=docdir ;;
953  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954    docdir=$ac_optarg ;;
955
956  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957    ac_prev=dvidir ;;
958  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959    dvidir=$ac_optarg ;;
960
961  -enable-* | --enable-*)
962    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963    # Reject names that are not valid shell variable names.
964    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965      as_fn_error $? "invalid feature name: $ac_useropt"
966    ac_useropt_orig=$ac_useropt
967    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968    case $ac_user_opts in
969      *"
970"enable_$ac_useropt"
971"*) ;;
972      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973	 ac_unrecognized_sep=', ';;
974    esac
975    eval enable_$ac_useropt=\$ac_optarg ;;
976
977  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979  | --exec | --exe | --ex)
980    ac_prev=exec_prefix ;;
981  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983  | --exec=* | --exe=* | --ex=*)
984    exec_prefix=$ac_optarg ;;
985
986  -gas | --gas | --ga | --g)
987    # Obsolete; use --with-gas.
988    with_gas=yes ;;
989
990  -help | --help | --hel | --he | -h)
991    ac_init_help=long ;;
992  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993    ac_init_help=recursive ;;
994  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995    ac_init_help=short ;;
996
997  -host | --host | --hos | --ho)
998    ac_prev=host_alias ;;
999  -host=* | --host=* | --hos=* | --ho=*)
1000    host_alias=$ac_optarg ;;
1001
1002  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003    ac_prev=htmldir ;;
1004  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005  | --ht=*)
1006    htmldir=$ac_optarg ;;
1007
1008  -includedir | --includedir | --includedi | --included | --include \
1009  | --includ | --inclu | --incl | --inc)
1010    ac_prev=includedir ;;
1011  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012  | --includ=* | --inclu=* | --incl=* | --inc=*)
1013    includedir=$ac_optarg ;;
1014
1015  -infodir | --infodir | --infodi | --infod | --info | --inf)
1016    ac_prev=infodir ;;
1017  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018    infodir=$ac_optarg ;;
1019
1020  -libdir | --libdir | --libdi | --libd)
1021    ac_prev=libdir ;;
1022  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023    libdir=$ac_optarg ;;
1024
1025  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026  | --libexe | --libex | --libe)
1027    ac_prev=libexecdir ;;
1028  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029  | --libexe=* | --libex=* | --libe=*)
1030    libexecdir=$ac_optarg ;;
1031
1032  -localedir | --localedir | --localedi | --localed | --locale)
1033    ac_prev=localedir ;;
1034  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035    localedir=$ac_optarg ;;
1036
1037  -localstatedir | --localstatedir | --localstatedi | --localstated \
1038  | --localstate | --localstat | --localsta | --localst | --locals)
1039    ac_prev=localstatedir ;;
1040  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042    localstatedir=$ac_optarg ;;
1043
1044  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045    ac_prev=mandir ;;
1046  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047    mandir=$ac_optarg ;;
1048
1049  -nfp | --nfp | --nf)
1050    # Obsolete; use --without-fp.
1051    with_fp=no ;;
1052
1053  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054  | --no-cr | --no-c | -n)
1055    no_create=yes ;;
1056
1057  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059    no_recursion=yes ;;
1060
1061  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063  | --oldin | --oldi | --old | --ol | --o)
1064    ac_prev=oldincludedir ;;
1065  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068    oldincludedir=$ac_optarg ;;
1069
1070  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071    ac_prev=prefix ;;
1072  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073    prefix=$ac_optarg ;;
1074
1075  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076  | --program-pre | --program-pr | --program-p)
1077    ac_prev=program_prefix ;;
1078  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080    program_prefix=$ac_optarg ;;
1081
1082  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083  | --program-suf | --program-su | --program-s)
1084    ac_prev=program_suffix ;;
1085  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087    program_suffix=$ac_optarg ;;
1088
1089  -program-transform-name | --program-transform-name \
1090  | --program-transform-nam | --program-transform-na \
1091  | --program-transform-n | --program-transform- \
1092  | --program-transform | --program-transfor \
1093  | --program-transfo | --program-transf \
1094  | --program-trans | --program-tran \
1095  | --progr-tra | --program-tr | --program-t)
1096    ac_prev=program_transform_name ;;
1097  -program-transform-name=* | --program-transform-name=* \
1098  | --program-transform-nam=* | --program-transform-na=* \
1099  | --program-transform-n=* | --program-transform-=* \
1100  | --program-transform=* | --program-transfor=* \
1101  | --program-transfo=* | --program-transf=* \
1102  | --program-trans=* | --program-tran=* \
1103  | --progr-tra=* | --program-tr=* | --program-t=*)
1104    program_transform_name=$ac_optarg ;;
1105
1106  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107    ac_prev=pdfdir ;;
1108  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109    pdfdir=$ac_optarg ;;
1110
1111  -psdir | --psdir | --psdi | --psd | --ps)
1112    ac_prev=psdir ;;
1113  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114    psdir=$ac_optarg ;;
1115
1116  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117  | -silent | --silent | --silen | --sile | --sil)
1118    silent=yes ;;
1119
1120  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121    ac_prev=sbindir ;;
1122  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123  | --sbi=* | --sb=*)
1124    sbindir=$ac_optarg ;;
1125
1126  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128  | --sharedst | --shareds | --shared | --share | --shar \
1129  | --sha | --sh)
1130    ac_prev=sharedstatedir ;;
1131  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134  | --sha=* | --sh=*)
1135    sharedstatedir=$ac_optarg ;;
1136
1137  -site | --site | --sit)
1138    ac_prev=site ;;
1139  -site=* | --site=* | --sit=*)
1140    site=$ac_optarg ;;
1141
1142  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143    ac_prev=srcdir ;;
1144  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145    srcdir=$ac_optarg ;;
1146
1147  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148  | --syscon | --sysco | --sysc | --sys | --sy)
1149    ac_prev=sysconfdir ;;
1150  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152    sysconfdir=$ac_optarg ;;
1153
1154  -target | --target | --targe | --targ | --tar | --ta | --t)
1155    ac_prev=target_alias ;;
1156  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157    target_alias=$ac_optarg ;;
1158
1159  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160    verbose=yes ;;
1161
1162  -version | --version | --versio | --versi | --vers | -V)
1163    ac_init_version=: ;;
1164
1165  -with-* | --with-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=\$ac_optarg ;;
1180
1181  -without-* | --without-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid package name: $ac_useropt"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"with_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval with_$ac_useropt=no ;;
1196
1197  --x)
1198    # Obsolete; use --with-x.
1199    with_x=yes ;;
1200
1201  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202  | --x-incl | --x-inc | --x-in | --x-i)
1203    ac_prev=x_includes ;;
1204  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206    x_includes=$ac_optarg ;;
1207
1208  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210    ac_prev=x_libraries ;;
1211  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213    x_libraries=$ac_optarg ;;
1214
1215  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information"
1217    ;;
1218
1219  *=*)
1220    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221    # Reject names that are not valid shell variable names.
1222    case $ac_envvar in #(
1223      '' | [0-9]* | *[!_$as_cr_alnum]* )
1224      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225    esac
1226    eval $ac_envvar=\$ac_optarg
1227    export $ac_envvar ;;
1228
1229  *)
1230    # FIXME: should be removed in autoconf 3.0.
1231    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235    ;;
1236
1237  esac
1238done
1239
1240if test -n "$ac_prev"; then
1241  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242  as_fn_error $? "missing argument to $ac_option"
1243fi
1244
1245if test -n "$ac_unrecognized_opts"; then
1246  case $enable_option_checking in
1247    no) ;;
1248    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250  esac
1251fi
1252
1253# Check all directory arguments for consistency.
1254for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255		datadir sysconfdir sharedstatedir localstatedir includedir \
1256		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257		libdir localedir mandir
1258do
1259  eval ac_val=\$$ac_var
1260  # Remove trailing slashes.
1261  case $ac_val in
1262    */ )
1263      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264      eval $ac_var=\$ac_val;;
1265  esac
1266  # Be sure to have absolute directory names.
1267  case $ac_val in
1268    [\\/$]* | ?:[\\/]* )  continue;;
1269    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270  esac
1271  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272done
1273
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
1280
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283  if test "x$build_alias" = x; then
1284    cross_compiling=maybe
1285  elif test "x$build_alias" != "x$host_alias"; then
1286    cross_compiling=yes
1287  fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
1294
1295
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299  as_fn_error $? "working directory cannot be determined"
1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301  as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306  ac_srcdir_defaulted=yes
1307  # Try the directory containing this script, then the parent directory.
1308  ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310	 X"$as_myself" : 'X\(//\)[^/]' \| \
1311	 X"$as_myself" : 'X\(//\)$' \| \
1312	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)[^/].*/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)$/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\).*/{
1327	    s//\1/
1328	    q
1329	  }
1330	  s/.*/./; q'`
1331  srcdir=$ac_confdir
1332  if test ! -r "$srcdir/$ac_unique_file"; then
1333    srcdir=..
1334  fi
1335else
1336  ac_srcdir_defaulted=no
1337fi
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
1344	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345	pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348  srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
1356for ac_var in $ac_precious_vars; do
1357  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_env_${ac_var}_value=\$${ac_var}
1359  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361done
1362
1363#
1364# Report the --help message.
1365#
1366if test "$ac_init_help" = "long"; then
1367  # Omit some internal or obsolete options to make the list less imposing.
1368  # This message is too long to be a string in the A/UX 3.1 sh.
1369  cat <<_ACEOF
1370\`configure' configures xf86-video-glint 1.2.9 to adapt to many kinds of systems.
1371
1372Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375VAR=VALUE.  See below for descriptions of some of the useful variables.
1376
1377Defaults for the options are specified in brackets.
1378
1379Configuration:
1380  -h, --help              display this help and exit
1381      --help=short        display options specific to this package
1382      --help=recursive    display the short help of all the included packages
1383  -V, --version           display version information and exit
1384  -q, --quiet, --silent   do not print \`checking ...' messages
1385      --cache-file=FILE   cache test results in FILE [disabled]
1386  -C, --config-cache      alias for \`--cache-file=config.cache'
1387  -n, --no-create         do not create output files
1388      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1389
1390Installation directories:
1391  --prefix=PREFIX         install architecture-independent files in PREFIX
1392                          [$ac_default_prefix]
1393  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1394                          [PREFIX]
1395
1396By default, \`make install' will install all the files in
1397\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1398an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399for instance \`--prefix=\$HOME'.
1400
1401For better control, use the options below.
1402
1403Fine tuning of the installation directories:
1404  --bindir=DIR            user executables [EPREFIX/bin]
1405  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1406  --libexecdir=DIR        program executables [EPREFIX/libexec]
1407  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1408  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1409  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1410  --libdir=DIR            object code libraries [EPREFIX/lib]
1411  --includedir=DIR        C header files [PREFIX/include]
1412  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1413  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1414  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1415  --infodir=DIR           info documentation [DATAROOTDIR/info]
1416  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1417  --mandir=DIR            man documentation [DATAROOTDIR/man]
1418  --docdir=DIR            documentation root
1419                          [DATAROOTDIR/doc/xf86-video-glint]
1420  --htmldir=DIR           html documentation [DOCDIR]
1421  --dvidir=DIR            dvi documentation [DOCDIR]
1422  --pdfdir=DIR            pdf documentation [DOCDIR]
1423  --psdir=DIR             ps documentation [DOCDIR]
1424_ACEOF
1425
1426  cat <<\_ACEOF
1427
1428Program names:
1429  --program-prefix=PREFIX            prepend PREFIX to installed program names
1430  --program-suffix=SUFFIX            append SUFFIX to installed program names
1431  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1432
1433System types:
1434  --build=BUILD     configure for building on BUILD [guessed]
1435  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1436_ACEOF
1437fi
1438
1439if test -n "$ac_init_help"; then
1440  case $ac_init_help in
1441     short | recursive ) echo "Configuration of xf86-video-glint 1.2.9:";;
1442   esac
1443  cat <<\_ACEOF
1444
1445Optional Features:
1446  --disable-option-checking  ignore unrecognized --enable/--with options
1447  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449  --enable-silent-rules   less verbose build output (undo: "make V=1")
1450  --disable-silent-rules  verbose build output (undo: "make V=0")
1451  --enable-maintainer-mode
1452                          enable make rules and dependencies not useful (and
1453                          sometimes confusing) to the casual installer
1454  --enable-dependency-tracking
1455                          do not reject slow dependency extractors
1456  --disable-dependency-tracking
1457                          speeds up one-time build
1458  --disable-selective-werror
1459                          Turn off selective compiler errors. (default:
1460                          enabled)
1461  --enable-strict-compilation
1462                          Enable all warnings from compiler and make them
1463                          errors (default: disabled)
1464  --enable-static[=PKGS]  build static libraries [default=no]
1465  --enable-shared[=PKGS]  build shared libraries [default=yes]
1466  --enable-fast-install[=PKGS]
1467                          optimize for fast installation [default=yes]
1468  --disable-libtool-lock  avoid locking (might break parallel builds)
1469  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1470                          [default=auto]
1471
1472Optional Packages:
1473  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1476                          both]
1477  --with-aix-soname=aix|svr4|both
1478                          shared library versioning (aka "SONAME") variant to
1479                          provide on AIX, [default=aix].
1480  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1481  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1482                          compiler's sysroot if not specified).
1483  --with-xorg-module-dir=DIR
1484                          Default xorg module directory
1485                          [[default=$libdir/xorg/modules]]
1486
1487Some influential environment variables:
1488  CC          C compiler command
1489  CFLAGS      C compiler flags
1490  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491              nonstandard directory <lib dir>
1492  LIBS        libraries to pass to the linker, e.g. -l<library>
1493  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494              you have headers in a nonstandard directory <include dir>
1495  CPP         C preprocessor
1496  PKG_CONFIG  path to pkg-config utility
1497  PKG_CONFIG_PATH
1498              directories to add to pkg-config's search path
1499  PKG_CONFIG_LIBDIR
1500              path overriding pkg-config's built-in search path
1501  LT_SYS_LIBRARY_PATH
1502              User-defined run-time library search path.
1503  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1504  XORG_LIBS   linker flags for XORG, overriding pkg-config
1505  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1506  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1507  PCIACCESS_CFLAGS
1508              C compiler flags for PCIACCESS, overriding pkg-config
1509  PCIACCESS_LIBS
1510              linker flags for PCIACCESS, overriding pkg-config
1511
1512Use these variables to override the choices made by `configure' or to help
1513it to find libraries and programs with nonstandard names/locations.
1514
1515Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint>.
1516_ACEOF
1517ac_status=$?
1518fi
1519
1520if test "$ac_init_help" = "recursive"; then
1521  # If there are subdirs, report their specific --help.
1522  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523    test -d "$ac_dir" ||
1524      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525      continue
1526    ac_builddir=.
1527
1528case "$ac_dir" in
1529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530*)
1531  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532  # A ".." for each directory in $ac_dir_suffix.
1533  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534  case $ac_top_builddir_sub in
1535  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537  esac ;;
1538esac
1539ac_abs_top_builddir=$ac_pwd
1540ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541# for backward compatibility:
1542ac_top_builddir=$ac_top_build_prefix
1543
1544case $srcdir in
1545  .)  # We are building in place.
1546    ac_srcdir=.
1547    ac_top_srcdir=$ac_top_builddir_sub
1548    ac_abs_top_srcdir=$ac_pwd ;;
1549  [\\/]* | ?:[\\/]* )  # Absolute name.
1550    ac_srcdir=$srcdir$ac_dir_suffix;
1551    ac_top_srcdir=$srcdir
1552    ac_abs_top_srcdir=$srcdir ;;
1553  *) # Relative name.
1554    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555    ac_top_srcdir=$ac_top_build_prefix$srcdir
1556    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557esac
1558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560    cd "$ac_dir" || { ac_status=$?; continue; }
1561    # Check for guested configure.
1562    if test -f "$ac_srcdir/configure.gnu"; then
1563      echo &&
1564      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565    elif test -f "$ac_srcdir/configure"; then
1566      echo &&
1567      $SHELL "$ac_srcdir/configure" --help=recursive
1568    else
1569      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570    fi || ac_status=$?
1571    cd "$ac_pwd" || { ac_status=$?; break; }
1572  done
1573fi
1574
1575test -n "$ac_init_help" && exit $ac_status
1576if $ac_init_version; then
1577  cat <<\_ACEOF
1578xf86-video-glint configure 1.2.9
1579generated by GNU Autoconf 2.69
1580
1581Copyright (C) 2012 Free Software Foundation, Inc.
1582This configure script is free software; the Free Software Foundation
1583gives unlimited permission to copy, distribute and modify it.
1584_ACEOF
1585  exit
1586fi
1587
1588## ------------------------ ##
1589## Autoconf initialization. ##
1590## ------------------------ ##
1591
1592# ac_fn_c_try_compile LINENO
1593# --------------------------
1594# Try to compile conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_compile ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  rm -f conftest.$ac_objext
1599  if { { ac_try="$ac_compile"
1600case "(($ac_try" in
1601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602  *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606  (eval "$ac_compile") 2>conftest.err
1607  ac_status=$?
1608  if test -s conftest.err; then
1609    grep -v '^ *+' conftest.err >conftest.er1
1610    cat conftest.er1 >&5
1611    mv -f conftest.er1 conftest.err
1612  fi
1613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614  test $ac_status = 0; } && {
1615	 test -z "$ac_c_werror_flag" ||
1616	 test ! -s conftest.err
1617       } && test -s conftest.$ac_objext; then :
1618  ac_retval=0
1619else
1620  $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623	ac_retval=1
1624fi
1625  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626  as_fn_set_status $ac_retval
1627
1628} # ac_fn_c_try_compile
1629
1630# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1631# ---------------------------------------------
1632# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1633# accordingly.
1634ac_fn_c_check_decl ()
1635{
1636  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637  as_decl_name=`echo $2|sed 's/ *(.*//'`
1638  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1640$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1641if eval \${$3+:} false; then :
1642  $as_echo_n "(cached) " >&6
1643else
1644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645/* end confdefs.h.  */
1646$4
1647int
1648main ()
1649{
1650#ifndef $as_decl_name
1651#ifdef __cplusplus
1652  (void) $as_decl_use;
1653#else
1654  (void) $as_decl_name;
1655#endif
1656#endif
1657
1658  ;
1659  return 0;
1660}
1661_ACEOF
1662if ac_fn_c_try_compile "$LINENO"; then :
1663  eval "$3=yes"
1664else
1665  eval "$3=no"
1666fi
1667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668fi
1669eval ac_res=\$$3
1670	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671$as_echo "$ac_res" >&6; }
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674} # ac_fn_c_check_decl
1675
1676# ac_fn_c_try_cpp LINENO
1677# ----------------------
1678# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_cpp ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  if { { ac_try="$ac_cpp conftest.$ac_ext"
1683case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690  ac_status=$?
1691  if test -s conftest.err; then
1692    grep -v '^ *+' conftest.err >conftest.er1
1693    cat conftest.er1 >&5
1694    mv -f conftest.er1 conftest.err
1695  fi
1696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697  test $ac_status = 0; } > conftest.i && {
1698	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699	 test ! -s conftest.err
1700       }; then :
1701  ac_retval=0
1702else
1703  $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706    ac_retval=1
1707fi
1708  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709  as_fn_set_status $ac_retval
1710
1711} # ac_fn_c_try_cpp
1712
1713# ac_fn_c_try_run LINENO
1714# ----------------------
1715# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716# that executables *can* be run.
1717ac_fn_c_try_run ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  if { { ac_try="$ac_link"
1721case "(($ac_try" in
1722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723  *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727  (eval "$ac_link") 2>&5
1728  ac_status=$?
1729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731  { { case "(($ac_try" in
1732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733  *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737  (eval "$ac_try") 2>&5
1738  ac_status=$?
1739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740  test $ac_status = 0; }; }; then :
1741  ac_retval=0
1742else
1743  $as_echo "$as_me: program exited with status $ac_status" >&5
1744       $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747       ac_retval=$ac_status
1748fi
1749  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751  as_fn_set_status $ac_retval
1752
1753} # ac_fn_c_try_run
1754
1755# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756# -------------------------------------------------------
1757# Tests whether HEADER exists and can be compiled using the include files in
1758# INCLUDES, setting the cache variable VAR accordingly.
1759ac_fn_c_check_header_compile ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if eval \${$3+:} false; then :
1765  $as_echo_n "(cached) " >&6
1766else
1767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769$4
1770#include <$2>
1771_ACEOF
1772if ac_fn_c_try_compile "$LINENO"; then :
1773  eval "$3=yes"
1774else
1775  eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778fi
1779eval ac_res=\$$3
1780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784} # ac_fn_c_check_header_compile
1785
1786# ac_fn_c_try_link LINENO
1787# -----------------------
1788# Try to link conftest.$ac_ext, and return whether this succeeded.
1789ac_fn_c_try_link ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  rm -f conftest.$ac_objext conftest$ac_exeext
1793  if { { ac_try="$ac_link"
1794case "(($ac_try" in
1795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796  *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800  (eval "$ac_link") 2>conftest.err
1801  ac_status=$?
1802  if test -s conftest.err; then
1803    grep -v '^ *+' conftest.err >conftest.er1
1804    cat conftest.er1 >&5
1805    mv -f conftest.er1 conftest.err
1806  fi
1807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808  test $ac_status = 0; } && {
1809	 test -z "$ac_c_werror_flag" ||
1810	 test ! -s conftest.err
1811       } && test -s conftest$ac_exeext && {
1812	 test "$cross_compiling" = yes ||
1813	 test -x conftest$ac_exeext
1814       }; then :
1815  ac_retval=0
1816else
1817  $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820	ac_retval=1
1821fi
1822  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824  # interfere with the next link command; also delete a directory that is
1825  # left behind by Apple's compiler.  We do this before executing the actions.
1826  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828  as_fn_set_status $ac_retval
1829
1830} # ac_fn_c_try_link
1831
1832# ac_fn_c_check_func LINENO FUNC VAR
1833# ----------------------------------
1834# Tests whether FUNC exists, setting the cache variable VAR accordingly
1835ac_fn_c_check_func ()
1836{
1837  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839$as_echo_n "checking for $2... " >&6; }
1840if eval \${$3+:} false; then :
1841  $as_echo_n "(cached) " >&6
1842else
1843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h.  */
1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1847#define $2 innocuous_$2
1848
1849/* System header to define __stub macros and hopefully few prototypes,
1850    which can conflict with char $2 (); below.
1851    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852    <limits.h> exists even on freestanding compilers.  */
1853
1854#ifdef __STDC__
1855# include <limits.h>
1856#else
1857# include <assert.h>
1858#endif
1859
1860#undef $2
1861
1862/* Override any GCC internal prototype to avoid an error.
1863   Use char because int might match the return type of a GCC
1864   builtin and then its argument prototype would still apply.  */
1865#ifdef __cplusplus
1866extern "C"
1867#endif
1868char $2 ();
1869/* The GNU C library defines this for functions which it implements
1870    to always fail with ENOSYS.  Some functions are actually named
1871    something starting with __ and the normal name is an alias.  */
1872#if defined __stub_$2 || defined __stub___$2
1873choke me
1874#endif
1875
1876int
1877main ()
1878{
1879return $2 ();
1880  ;
1881  return 0;
1882}
1883_ACEOF
1884if ac_fn_c_try_link "$LINENO"; then :
1885  eval "$3=yes"
1886else
1887  eval "$3=no"
1888fi
1889rm -f core conftest.err conftest.$ac_objext \
1890    conftest$ac_exeext conftest.$ac_ext
1891fi
1892eval ac_res=\$$3
1893	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894$as_echo "$ac_res" >&6; }
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897} # ac_fn_c_check_func
1898
1899# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1900# -------------------------------------------------------
1901# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1902# the include files in INCLUDES and setting the cache variable VAR
1903# accordingly.
1904ac_fn_c_check_header_mongrel ()
1905{
1906  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907  if eval \${$3+:} false; then :
1908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909$as_echo_n "checking for $2... " >&6; }
1910if eval \${$3+:} false; then :
1911  $as_echo_n "(cached) " >&6
1912fi
1913eval ac_res=\$$3
1914	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916else
1917  # Is the header compilable?
1918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1919$as_echo_n "checking $2 usability... " >&6; }
1920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922$4
1923#include <$2>
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926  ac_header_compiler=yes
1927else
1928  ac_header_compiler=no
1929fi
1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1932$as_echo "$ac_header_compiler" >&6; }
1933
1934# Is the header present?
1935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1936$as_echo_n "checking $2 presence... " >&6; }
1937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939#include <$2>
1940_ACEOF
1941if ac_fn_c_try_cpp "$LINENO"; then :
1942  ac_header_preproc=yes
1943else
1944  ac_header_preproc=no
1945fi
1946rm -f conftest.err conftest.i conftest.$ac_ext
1947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1948$as_echo "$ac_header_preproc" >&6; }
1949
1950# So?  What about this header?
1951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1952  yes:no: )
1953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1954$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957    ;;
1958  no:yes:* )
1959    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1960$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1962$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1963    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1964$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1965    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1966$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1967    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969( $as_echo "## --------------------------------------------------------------------------------------------- ##
1970## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint ##
1971## --------------------------------------------------------------------------------------------- ##"
1972     ) | sed "s/^/$as_me: WARNING:     /" >&2
1973    ;;
1974esac
1975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976$as_echo_n "checking for $2... " >&6; }
1977if eval \${$3+:} false; then :
1978  $as_echo_n "(cached) " >&6
1979else
1980  eval "$3=\$ac_header_compiler"
1981fi
1982eval ac_res=\$$3
1983	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985fi
1986  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988} # ac_fn_c_check_header_mongrel
1989cat >config.log <<_ACEOF
1990This file contains any messages produced by compilers while
1991running configure, to aid debugging if configure makes a mistake.
1992
1993It was created by xf86-video-glint $as_me 1.2.9, which was
1994generated by GNU Autoconf 2.69.  Invocation command line was
1995
1996  $ $0 $@
1997
1998_ACEOF
1999exec 5>>config.log
2000{
2001cat <<_ASUNAME
2002## --------- ##
2003## Platform. ##
2004## --------- ##
2005
2006hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2007uname -m = `(uname -m) 2>/dev/null || echo unknown`
2008uname -r = `(uname -r) 2>/dev/null || echo unknown`
2009uname -s = `(uname -s) 2>/dev/null || echo unknown`
2010uname -v = `(uname -v) 2>/dev/null || echo unknown`
2011
2012/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2013/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2014
2015/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2016/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2017/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2018/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2019/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2020/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2021/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2022
2023_ASUNAME
2024
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028  IFS=$as_save_IFS
2029  test -z "$as_dir" && as_dir=.
2030    $as_echo "PATH: $as_dir"
2031  done
2032IFS=$as_save_IFS
2033
2034} >&5
2035
2036cat >&5 <<_ACEOF
2037
2038
2039## ----------- ##
2040## Core tests. ##
2041## ----------- ##
2042
2043_ACEOF
2044
2045
2046# Keep a trace of the command line.
2047# Strip out --no-create and --no-recursion so they do not pile up.
2048# Strip out --silent because we don't want to record it for future runs.
2049# Also quote any args containing shell meta-characters.
2050# Make two passes to allow for proper duplicate-argument suppression.
2051ac_configure_args=
2052ac_configure_args0=
2053ac_configure_args1=
2054ac_must_keep_next=false
2055for ac_pass in 1 2
2056do
2057  for ac_arg
2058  do
2059    case $ac_arg in
2060    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2061    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2062    | -silent | --silent | --silen | --sile | --sil)
2063      continue ;;
2064    *\'*)
2065      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2066    esac
2067    case $ac_pass in
2068    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2069    2)
2070      as_fn_append ac_configure_args1 " '$ac_arg'"
2071      if test $ac_must_keep_next = true; then
2072	ac_must_keep_next=false # Got value, back to normal.
2073      else
2074	case $ac_arg in
2075	  *=* | --config-cache | -C | -disable-* | --disable-* \
2076	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2077	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2078	  | -with-* | --with-* | -without-* | --without-* | --x)
2079	    case "$ac_configure_args0 " in
2080	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2081	    esac
2082	    ;;
2083	  -* ) ac_must_keep_next=true ;;
2084	esac
2085      fi
2086      as_fn_append ac_configure_args " '$ac_arg'"
2087      ;;
2088    esac
2089  done
2090done
2091{ ac_configure_args0=; unset ac_configure_args0;}
2092{ ac_configure_args1=; unset ac_configure_args1;}
2093
2094# When interrupted or exit'd, cleanup temporary files, and complete
2095# config.log.  We remove comments because anyway the quotes in there
2096# would cause problems or look ugly.
2097# WARNING: Use '\'' to represent an apostrophe within the trap.
2098# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2099trap 'exit_status=$?
2100  # Save into config.log some information that might help in debugging.
2101  {
2102    echo
2103
2104    $as_echo "## ---------------- ##
2105## Cache variables. ##
2106## ---------------- ##"
2107    echo
2108    # The following way of writing the cache mishandles newlines in values,
2109(
2110  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2111    eval ac_val=\$$ac_var
2112    case $ac_val in #(
2113    *${as_nl}*)
2114      case $ac_var in #(
2115      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2116$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2117      esac
2118      case $ac_var in #(
2119      _ | IFS | as_nl) ;; #(
2120      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2121      *) { eval $ac_var=; unset $ac_var;} ;;
2122      esac ;;
2123    esac
2124  done
2125  (set) 2>&1 |
2126    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2127    *${as_nl}ac_space=\ *)
2128      sed -n \
2129	"s/'\''/'\''\\\\'\'''\''/g;
2130	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2131      ;; #(
2132    *)
2133      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2134      ;;
2135    esac |
2136    sort
2137)
2138    echo
2139
2140    $as_echo "## ----------------- ##
2141## Output variables. ##
2142## ----------------- ##"
2143    echo
2144    for ac_var in $ac_subst_vars
2145    do
2146      eval ac_val=\$$ac_var
2147      case $ac_val in
2148      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149      esac
2150      $as_echo "$ac_var='\''$ac_val'\''"
2151    done | sort
2152    echo
2153
2154    if test -n "$ac_subst_files"; then
2155      $as_echo "## ------------------- ##
2156## File substitutions. ##
2157## ------------------- ##"
2158      echo
2159      for ac_var in $ac_subst_files
2160      do
2161	eval ac_val=\$$ac_var
2162	case $ac_val in
2163	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164	esac
2165	$as_echo "$ac_var='\''$ac_val'\''"
2166      done | sort
2167      echo
2168    fi
2169
2170    if test -s confdefs.h; then
2171      $as_echo "## ----------- ##
2172## confdefs.h. ##
2173## ----------- ##"
2174      echo
2175      cat confdefs.h
2176      echo
2177    fi
2178    test "$ac_signal" != 0 &&
2179      $as_echo "$as_me: caught signal $ac_signal"
2180    $as_echo "$as_me: exit $exit_status"
2181  } >&5
2182  rm -f core *.core core.conftest.* &&
2183    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2184    exit $exit_status
2185' 0
2186for ac_signal in 1 2 13 15; do
2187  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2188done
2189ac_signal=0
2190
2191# confdefs.h avoids OS command line length limits that DEFS can exceed.
2192rm -f -r conftest* confdefs.h
2193
2194$as_echo "/* confdefs.h */" > confdefs.h
2195
2196# Predefined preprocessor variables.
2197
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_NAME "$PACKAGE_NAME"
2200_ACEOF
2201
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2204_ACEOF
2205
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_VERSION "$PACKAGE_VERSION"
2208_ACEOF
2209
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_STRING "$PACKAGE_STRING"
2212_ACEOF
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2216_ACEOF
2217
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_URL "$PACKAGE_URL"
2220_ACEOF
2221
2222
2223# Let the site file select an alternate cache file if it wants to.
2224# Prefer an explicitly selected file to automatically selected ones.
2225ac_site_file1=NONE
2226ac_site_file2=NONE
2227if test -n "$CONFIG_SITE"; then
2228  # We do not want a PATH search for config.site.
2229  case $CONFIG_SITE in #((
2230    -*)  ac_site_file1=./$CONFIG_SITE;;
2231    */*) ac_site_file1=$CONFIG_SITE;;
2232    *)   ac_site_file1=./$CONFIG_SITE;;
2233  esac
2234elif test "x$prefix" != xNONE; then
2235  ac_site_file1=$prefix/share/config.site
2236  ac_site_file2=$prefix/etc/config.site
2237else
2238  ac_site_file1=$ac_default_prefix/share/config.site
2239  ac_site_file2=$ac_default_prefix/etc/config.site
2240fi
2241for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2242do
2243  test "x$ac_site_file" = xNONE && continue
2244  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2245    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2246$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2247    sed 's/^/| /' "$ac_site_file" >&5
2248    . "$ac_site_file" \
2249      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251as_fn_error $? "failed to load site script $ac_site_file
2252See \`config.log' for more details" "$LINENO" 5; }
2253  fi
2254done
2255
2256if test -r "$cache_file"; then
2257  # Some versions of bash will fail to source /dev/null (special files
2258  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2259  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2260    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2261$as_echo "$as_me: loading cache $cache_file" >&6;}
2262    case $cache_file in
2263      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2264      *)                      . "./$cache_file";;
2265    esac
2266  fi
2267else
2268  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2269$as_echo "$as_me: creating cache $cache_file" >&6;}
2270  >$cache_file
2271fi
2272
2273# Check that the precious variables saved in the cache have kept the same
2274# value.
2275ac_cache_corrupted=false
2276for ac_var in $ac_precious_vars; do
2277  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2278  eval ac_new_set=\$ac_env_${ac_var}_set
2279  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2280  eval ac_new_val=\$ac_env_${ac_var}_value
2281  case $ac_old_set,$ac_new_set in
2282    set,)
2283      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2284$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2285      ac_cache_corrupted=: ;;
2286    ,set)
2287      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2288$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2289      ac_cache_corrupted=: ;;
2290    ,);;
2291    *)
2292      if test "x$ac_old_val" != "x$ac_new_val"; then
2293	# differences in whitespace do not lead to failure.
2294	ac_old_val_w=`echo x $ac_old_val`
2295	ac_new_val_w=`echo x $ac_new_val`
2296	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2297	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2298$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2299	  ac_cache_corrupted=:
2300	else
2301	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2302$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2303	  eval $ac_var=\$ac_old_val
2304	fi
2305	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2306$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2307	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2308$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2309      fi;;
2310  esac
2311  # Pass precious variables to config.status.
2312  if test "$ac_new_set" = set; then
2313    case $ac_new_val in
2314    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2315    *) ac_arg=$ac_var=$ac_new_val ;;
2316    esac
2317    case " $ac_configure_args " in
2318      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2319      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2320    esac
2321  fi
2322done
2323if $ac_cache_corrupted; then
2324  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2327$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2328  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2329fi
2330## -------------------- ##
2331## Main body of script. ##
2332## -------------------- ##
2333
2334ac_ext=c
2335ac_cpp='$CPP $CPPFLAGS'
2336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
2340
2341
2342ac_config_headers="$ac_config_headers config.h"
2343
2344ac_aux_dir=
2345for ac_dir in . "$srcdir"/.; do
2346  if test -f "$ac_dir/install-sh"; then
2347    ac_aux_dir=$ac_dir
2348    ac_install_sh="$ac_aux_dir/install-sh -c"
2349    break
2350  elif test -f "$ac_dir/install.sh"; then
2351    ac_aux_dir=$ac_dir
2352    ac_install_sh="$ac_aux_dir/install.sh -c"
2353    break
2354  elif test -f "$ac_dir/shtool"; then
2355    ac_aux_dir=$ac_dir
2356    ac_install_sh="$ac_aux_dir/shtool install -c"
2357    break
2358  fi
2359done
2360if test -z "$ac_aux_dir"; then
2361  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2362fi
2363
2364# These three variables are undocumented and unsupported,
2365# and are intended to be withdrawn in a future Autoconf release.
2366# They can cause serious problems if a builder's source tree is in a directory
2367# whose full name contains unusual characters.
2368ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2369ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2370ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2371
2372
2373
2374# Initialize Automake
2375am__api_version='1.15'
2376
2377# Find a good install program.  We prefer a C program (faster),
2378# so one script is as good as another.  But avoid the broken or
2379# incompatible versions:
2380# SysV /etc/install, /usr/sbin/install
2381# SunOS /usr/etc/install
2382# IRIX /sbin/install
2383# AIX /bin/install
2384# AmigaOS /C/install, which installs bootblocks on floppy discs
2385# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2388# OS/2's system install, which has a completely different semantic
2389# ./install, which can be erroneously created by make from ./install.sh.
2390# Reject install programs that cannot install multiple files.
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392$as_echo_n "checking for a BSD-compatible install... " >&6; }
2393if test -z "$INSTALL"; then
2394if ${ac_cv_path_install+:} false; then :
2395  $as_echo_n "(cached) " >&6
2396else
2397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400  IFS=$as_save_IFS
2401  test -z "$as_dir" && as_dir=.
2402    # Account for people who put trailing slashes in PATH elements.
2403case $as_dir/ in #((
2404  ./ | .// | /[cC]/* | \
2405  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407  /usr/ucb/* ) ;;
2408  *)
2409    # OSF1 and SCO ODT 3.0 have their own names for install.
2410    # Don't use installbsd from OSF since it installs stuff as root
2411    # by default.
2412    for ac_prog in ginstall scoinst install; do
2413      for ac_exec_ext in '' $ac_executable_extensions; do
2414	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2415	  if test $ac_prog = install &&
2416	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417	    # AIX install.  It has an incompatible calling convention.
2418	    :
2419	  elif test $ac_prog = install &&
2420	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421	    # program-specific install script used by HP pwplus--don't use.
2422	    :
2423	  else
2424	    rm -rf conftest.one conftest.two conftest.dir
2425	    echo one > conftest.one
2426	    echo two > conftest.two
2427	    mkdir conftest.dir
2428	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429	      test -s conftest.one && test -s conftest.two &&
2430	      test -s conftest.dir/conftest.one &&
2431	      test -s conftest.dir/conftest.two
2432	    then
2433	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434	      break 3
2435	    fi
2436	  fi
2437	fi
2438      done
2439    done
2440    ;;
2441esac
2442
2443  done
2444IFS=$as_save_IFS
2445
2446rm -rf conftest.one conftest.two conftest.dir
2447
2448fi
2449  if test "${ac_cv_path_install+set}" = set; then
2450    INSTALL=$ac_cv_path_install
2451  else
2452    # As a last resort, use the slow shell script.  Don't cache a
2453    # value for INSTALL within a source directory, because that will
2454    # break other packages using the cache if that directory is
2455    # removed, or if the value is a relative name.
2456    INSTALL=$ac_install_sh
2457  fi
2458fi
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460$as_echo "$INSTALL" >&6; }
2461
2462# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463# It thinks the first close brace ends the variable substitution.
2464test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465
2466test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467
2468test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2471$as_echo_n "checking whether build environment is sane... " >&6; }
2472# Reject unsafe characters in $srcdir or the absolute working directory
2473# name.  Accept space and tab only in the latter.
2474am_lf='
2475'
2476case `pwd` in
2477  *[\\\"\#\$\&\'\`$am_lf]*)
2478    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2479esac
2480case $srcdir in
2481  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2482    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2483esac
2484
2485# Do 'set' in a subshell so we don't clobber the current shell's
2486# arguments.  Must try -L first in case configure is actually a
2487# symlink; some systems play weird games with the mod time of symlinks
2488# (eg FreeBSD returns the mod time of the symlink's containing
2489# directory).
2490if (
2491   am_has_slept=no
2492   for am_try in 1 2; do
2493     echo "timestamp, slept: $am_has_slept" > conftest.file
2494     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2495     if test "$*" = "X"; then
2496	# -L didn't work.
2497	set X `ls -t "$srcdir/configure" conftest.file`
2498     fi
2499     if test "$*" != "X $srcdir/configure conftest.file" \
2500	&& test "$*" != "X conftest.file $srcdir/configure"; then
2501
2502	# If neither matched, then we have a broken ls.  This can happen
2503	# if, for instance, CONFIG_SHELL is bash and it inherits a
2504	# broken ls alias from the environment.  This has actually
2505	# happened.  Such a system could not be considered "sane".
2506	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2507  alias in your environment" "$LINENO" 5
2508     fi
2509     if test "$2" = conftest.file || test $am_try -eq 2; then
2510       break
2511     fi
2512     # Just in case.
2513     sleep 1
2514     am_has_slept=yes
2515   done
2516   test "$2" = conftest.file
2517   )
2518then
2519   # Ok.
2520   :
2521else
2522   as_fn_error $? "newly created file is older than distributed files!
2523Check your system clock" "$LINENO" 5
2524fi
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2526$as_echo "yes" >&6; }
2527# If we didn't sleep, we still need to ensure time stamps of config.status and
2528# generated files are strictly newer.
2529am_sleep_pid=
2530if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2531  ( sleep 1 ) &
2532  am_sleep_pid=$!
2533fi
2534
2535rm -f conftest.file
2536
2537test "$program_prefix" != NONE &&
2538  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2539# Use a double $ so make ignores it.
2540test "$program_suffix" != NONE &&
2541  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2542# Double any \ or $.
2543# By default was `s,x,x', remove it if useless.
2544ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2545program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2546
2547# Expand $ac_aux_dir to an absolute path.
2548am_aux_dir=`cd "$ac_aux_dir" && pwd`
2549
2550if test x"${MISSING+set}" != xset; then
2551  case $am_aux_dir in
2552  *\ * | *\	*)
2553    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2554  *)
2555    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2556  esac
2557fi
2558# Use eval to expand $SHELL
2559if eval "$MISSING --is-lightweight"; then
2560  am_missing_run="$MISSING "
2561else
2562  am_missing_run=
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2564$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2565fi
2566
2567if test x"${install_sh+set}" != xset; then
2568  case $am_aux_dir in
2569  *\ * | *\	*)
2570    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2571  *)
2572    install_sh="\${SHELL} $am_aux_dir/install-sh"
2573  esac
2574fi
2575
2576# Installed binaries are usually stripped using 'strip' when the user
2577# run "make install-strip".  However 'strip' might not be the right
2578# tool to use in cross-compilation environments, therefore Automake
2579# will honor the 'STRIP' environment variable to overrule this program.
2580if test "$cross_compiling" != no; then
2581  if test -n "$ac_tool_prefix"; then
2582  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2583set dummy ${ac_tool_prefix}strip; ac_word=$2
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585$as_echo_n "checking for $ac_word... " >&6; }
2586if ${ac_cv_prog_STRIP+:} false; then :
2587  $as_echo_n "(cached) " >&6
2588else
2589  if test -n "$STRIP"; then
2590  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595  IFS=$as_save_IFS
2596  test -z "$as_dir" && as_dir=.
2597    for ac_exec_ext in '' $ac_executable_extensions; do
2598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601    break 2
2602  fi
2603done
2604  done
2605IFS=$as_save_IFS
2606
2607fi
2608fi
2609STRIP=$ac_cv_prog_STRIP
2610if test -n "$STRIP"; then
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2612$as_echo "$STRIP" >&6; }
2613else
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615$as_echo "no" >&6; }
2616fi
2617
2618
2619fi
2620if test -z "$ac_cv_prog_STRIP"; then
2621  ac_ct_STRIP=$STRIP
2622  # Extract the first word of "strip", so it can be a program name with args.
2623set dummy strip; ac_word=$2
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625$as_echo_n "checking for $ac_word... " >&6; }
2626if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2627  $as_echo_n "(cached) " >&6
2628else
2629  if test -n "$ac_ct_STRIP"; then
2630  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635  IFS=$as_save_IFS
2636  test -z "$as_dir" && as_dir=.
2637    for ac_exec_ext in '' $ac_executable_extensions; do
2638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639    ac_cv_prog_ac_ct_STRIP="strip"
2640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641    break 2
2642  fi
2643done
2644  done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2650if test -n "$ac_ct_STRIP"; then
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2652$as_echo "$ac_ct_STRIP" >&6; }
2653else
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658  if test "x$ac_ct_STRIP" = x; then
2659    STRIP=":"
2660  else
2661    case $cross_compiling:$ac_tool_warned in
2662yes:)
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2665ac_tool_warned=yes ;;
2666esac
2667    STRIP=$ac_ct_STRIP
2668  fi
2669else
2670  STRIP="$ac_cv_prog_STRIP"
2671fi
2672
2673fi
2674INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2675
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2677$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2678if test -z "$MKDIR_P"; then
2679  if ${ac_cv_path_mkdir+:} false; then :
2680  $as_echo_n "(cached) " >&6
2681else
2682  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2684do
2685  IFS=$as_save_IFS
2686  test -z "$as_dir" && as_dir=.
2687    for ac_prog in mkdir gmkdir; do
2688	 for ac_exec_ext in '' $ac_executable_extensions; do
2689	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2690	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2691	     'mkdir (GNU coreutils) '* | \
2692	     'mkdir (coreutils) '* | \
2693	     'mkdir (fileutils) '4.1*)
2694	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2695	       break 3;;
2696	   esac
2697	 done
2698       done
2699  done
2700IFS=$as_save_IFS
2701
2702fi
2703
2704  test -d ./--version && rmdir ./--version
2705  if test "${ac_cv_path_mkdir+set}" = set; then
2706    MKDIR_P="$ac_cv_path_mkdir -p"
2707  else
2708    # As a last resort, use the slow shell script.  Don't cache a
2709    # value for MKDIR_P within a source directory, because that will
2710    # break other packages using the cache if that directory is
2711    # removed, or if the value is a relative name.
2712    MKDIR_P="$ac_install_sh -d"
2713  fi
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2716$as_echo "$MKDIR_P" >&6; }
2717
2718for ac_prog in gawk mawk nawk awk
2719do
2720  # Extract the first word of "$ac_prog", so it can be a program name with args.
2721set dummy $ac_prog; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
2724if ${ac_cv_prog_AWK+:} false; then :
2725  $as_echo_n "(cached) " >&6
2726else
2727  if test -n "$AWK"; then
2728  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733  IFS=$as_save_IFS
2734  test -z "$as_dir" && as_dir=.
2735    for ac_exec_ext in '' $ac_executable_extensions; do
2736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737    ac_cv_prog_AWK="$ac_prog"
2738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739    break 2
2740  fi
2741done
2742  done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747AWK=$ac_cv_prog_AWK
2748if test -n "$AWK"; then
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2750$as_echo "$AWK" >&6; }
2751else
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756
2757  test -n "$AWK" && break
2758done
2759
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2761$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2762set x ${MAKE-make}
2763ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2764if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2765  $as_echo_n "(cached) " >&6
2766else
2767  cat >conftest.make <<\_ACEOF
2768SHELL = /bin/sh
2769all:
2770	@echo '@@@%%%=$(MAKE)=@@@%%%'
2771_ACEOF
2772# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2773case `${MAKE-make} -f conftest.make 2>/dev/null` in
2774  *@@@%%%=?*=@@@%%%*)
2775    eval ac_cv_prog_make_${ac_make}_set=yes;;
2776  *)
2777    eval ac_cv_prog_make_${ac_make}_set=no;;
2778esac
2779rm -f conftest.make
2780fi
2781if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2783$as_echo "yes" >&6; }
2784  SET_MAKE=
2785else
2786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787$as_echo "no" >&6; }
2788  SET_MAKE="MAKE=${MAKE-make}"
2789fi
2790
2791rm -rf .tst 2>/dev/null
2792mkdir .tst 2>/dev/null
2793if test -d .tst; then
2794  am__leading_dot=.
2795else
2796  am__leading_dot=_
2797fi
2798rmdir .tst 2>/dev/null
2799
2800# Check whether --enable-silent-rules was given.
2801if test "${enable_silent_rules+set}" = set; then :
2802  enableval=$enable_silent_rules;
2803fi
2804
2805case $enable_silent_rules in # (((
2806  yes) AM_DEFAULT_VERBOSITY=0;;
2807   no) AM_DEFAULT_VERBOSITY=1;;
2808    *) AM_DEFAULT_VERBOSITY=1;;
2809esac
2810am_make=${MAKE-make}
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2812$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2813if ${am_cv_make_support_nested_variables+:} false; then :
2814  $as_echo_n "(cached) " >&6
2815else
2816  if $as_echo 'TRUE=$(BAR$(V))
2817BAR0=false
2818BAR1=true
2819V=1
2820am__doit:
2821	@$(TRUE)
2822.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2823  am_cv_make_support_nested_variables=yes
2824else
2825  am_cv_make_support_nested_variables=no
2826fi
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2829$as_echo "$am_cv_make_support_nested_variables" >&6; }
2830if test $am_cv_make_support_nested_variables = yes; then
2831    AM_V='$(V)'
2832  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2833else
2834  AM_V=$AM_DEFAULT_VERBOSITY
2835  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2836fi
2837AM_BACKSLASH='\'
2838
2839if test "`cd $srcdir && pwd`" != "`pwd`"; then
2840  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2841  # is not polluted with repeated "-I."
2842  am__isrc=' -I$(srcdir)'
2843  # test to see if srcdir already configured
2844  if test -f $srcdir/config.status; then
2845    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2846  fi
2847fi
2848
2849# test whether we have cygpath
2850if test -z "$CYGPATH_W"; then
2851  if (cygpath --version) >/dev/null 2>/dev/null; then
2852    CYGPATH_W='cygpath -w'
2853  else
2854    CYGPATH_W=echo
2855  fi
2856fi
2857
2858
2859# Define the identity of the package.
2860 PACKAGE='xf86-video-glint'
2861 VERSION='1.2.9'
2862
2863
2864cat >>confdefs.h <<_ACEOF
2865#define PACKAGE "$PACKAGE"
2866_ACEOF
2867
2868
2869cat >>confdefs.h <<_ACEOF
2870#define VERSION "$VERSION"
2871_ACEOF
2872
2873# Some tools Automake needs.
2874
2875ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2876
2877
2878AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2879
2880
2881AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2882
2883
2884AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2885
2886
2887MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2888
2889# For better backward compatibility.  To be removed once Automake 1.9.x
2890# dies out for good.  For more background, see:
2891# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2892# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2893mkdir_p='$(MKDIR_P)'
2894
2895# We need awk for the "check" target (and possibly the TAP driver).  The
2896# system "awk" is bad on some platforms.
2897# Always define AMTAR for backward compatibility.  Yes, it's still used
2898# in the wild :-(  We should find a proper way to deprecate it ...
2899AMTAR='$${TAR-tar}'
2900
2901
2902# We'll loop over all known methods to create a tar archive until one works.
2903_am_tools='gnutar  pax cpio none'
2904
2905am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2906
2907
2908
2909
2910
2911
2912# POSIX will say in a future version that running "rm -f" with no argument
2913# is OK; and we want to be able to make that assumption in our Makefile
2914# recipes.  So use an aggressive probe to check that the usage we want is
2915# actually supported "in the wild" to an acceptable degree.
2916# See automake bug#10828.
2917# To make any issue more visible, cause the running configure to be aborted
2918# by default if the 'rm' program in use doesn't match our expectations; the
2919# user can still override this though.
2920if rm -f && rm -fr && rm -rf; then : OK; else
2921  cat >&2 <<'END'
2922Oops!
2923
2924Your 'rm' program seems unable to run without file operands specified
2925on the command line, even when the '-f' option is present.  This is contrary
2926to the behaviour of most rm programs out there, and not conforming with
2927the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2928
2929Please tell bug-automake@gnu.org about your system, including the value
2930of your $PATH and any error possibly output before this message.  This
2931can help us improve future automake versions.
2932
2933END
2934  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2935    echo 'Configuration will proceed anyway, since you have set the' >&2
2936    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2937    echo >&2
2938  else
2939    cat >&2 <<'END'
2940Aborting the configuration process, to ensure you take notice of the issue.
2941
2942You can download and install GNU coreutils to get an 'rm' implementation
2943that behaves properly: <http://www.gnu.org/software/coreutils/>.
2944
2945If you want to complete the configuration process using your problematic
2946'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2947to "yes", and re-run configure.
2948
2949END
2950    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2951  fi
2952fi
2953
2954
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2956$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2957    # Check whether --enable-maintainer-mode was given.
2958if test "${enable_maintainer_mode+set}" = set; then :
2959  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2960else
2961  USE_MAINTAINER_MODE=no
2962fi
2963
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2965$as_echo "$USE_MAINTAINER_MODE" >&6; }
2966   if test $USE_MAINTAINER_MODE = yes; then
2967  MAINTAINER_MODE_TRUE=
2968  MAINTAINER_MODE_FALSE='#'
2969else
2970  MAINTAINER_MODE_TRUE='#'
2971  MAINTAINER_MODE_FALSE=
2972fi
2973
2974  MAINT=$MAINTAINER_MODE_TRUE
2975
2976
2977
2978# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990DEPDIR="${am__leading_dot}deps"
2991
2992ac_config_commands="$ac_config_commands depfiles"
2993
2994
2995am_make=${MAKE-make}
2996cat > confinc << 'END'
2997am__doit:
2998	@echo this is the am__doit target
2999.PHONY: am__doit
3000END
3001# If we don't find an include directive, just comment out the code.
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3003$as_echo_n "checking for style of include used by $am_make... " >&6; }
3004am__include="#"
3005am__quote=
3006_am_result=none
3007# First try GNU make style include.
3008echo "include confinc" > confmf
3009# Ignore all kinds of additional output from 'make'.
3010case `$am_make -s -f confmf 2> /dev/null` in #(
3011*the\ am__doit\ target*)
3012  am__include=include
3013  am__quote=
3014  _am_result=GNU
3015  ;;
3016esac
3017# Now try BSD make style include.
3018if test "$am__include" = "#"; then
3019   echo '.include "confinc"' > confmf
3020   case `$am_make -s -f confmf 2> /dev/null` in #(
3021   *the\ am__doit\ target*)
3022     am__include=.include
3023     am__quote="\""
3024     _am_result=BSD
3025     ;;
3026   esac
3027fi
3028
3029
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3031$as_echo "$_am_result" >&6; }
3032rm -f confinc confmf
3033
3034# Check whether --enable-dependency-tracking was given.
3035if test "${enable_dependency_tracking+set}" = set; then :
3036  enableval=$enable_dependency_tracking;
3037fi
3038
3039if test "x$enable_dependency_tracking" != xno; then
3040  am_depcomp="$ac_aux_dir/depcomp"
3041  AMDEPBACKSLASH='\'
3042  am__nodep='_no'
3043fi
3044 if test "x$enable_dependency_tracking" != xno; then
3045  AMDEP_TRUE=
3046  AMDEP_FALSE='#'
3047else
3048  AMDEP_TRUE='#'
3049  AMDEP_FALSE=
3050fi
3051
3052
3053ac_ext=c
3054ac_cpp='$CPP $CPPFLAGS'
3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058if test -n "$ac_tool_prefix"; then
3059  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3060set dummy ${ac_tool_prefix}gcc; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if ${ac_cv_prog_CC+:} false; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  if test -n "$CC"; then
3067  ac_cv_prog_CC="$CC" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072  IFS=$as_save_IFS
3073  test -z "$as_dir" && as_dir=.
3074    for ac_exec_ext in '' $ac_executable_extensions; do
3075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078    break 2
3079  fi
3080done
3081  done
3082IFS=$as_save_IFS
3083
3084fi
3085fi
3086CC=$ac_cv_prog_CC
3087if test -n "$CC"; then
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089$as_echo "$CC" >&6; }
3090else
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095
3096fi
3097if test -z "$ac_cv_prog_CC"; then
3098  ac_ct_CC=$CC
3099  # Extract the first word of "gcc", so it can be a program name with args.
3100set dummy gcc; ac_word=$2
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102$as_echo_n "checking for $ac_word... " >&6; }
3103if ${ac_cv_prog_ac_ct_CC+:} false; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  if test -n "$ac_ct_CC"; then
3107  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112  IFS=$as_save_IFS
3113  test -z "$as_dir" && as_dir=.
3114    for ac_exec_ext in '' $ac_executable_extensions; do
3115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116    ac_cv_prog_ac_ct_CC="gcc"
3117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118    break 2
3119  fi
3120done
3121  done
3122IFS=$as_save_IFS
3123
3124fi
3125fi
3126ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127if test -n "$ac_ct_CC"; then
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3129$as_echo "$ac_ct_CC" >&6; }
3130else
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132$as_echo "no" >&6; }
3133fi
3134
3135  if test "x$ac_ct_CC" = x; then
3136    CC=""
3137  else
3138    case $cross_compiling:$ac_tool_warned in
3139yes:)
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142ac_tool_warned=yes ;;
3143esac
3144    CC=$ac_ct_CC
3145  fi
3146else
3147  CC="$ac_cv_prog_CC"
3148fi
3149
3150if test -z "$CC"; then
3151          if test -n "$ac_tool_prefix"; then
3152    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3153set dummy ${ac_tool_prefix}cc; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if ${ac_cv_prog_CC+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$CC"; then
3160  ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    for ac_exec_ext in '' $ac_executable_extensions; do
3168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169    ac_cv_prog_CC="${ac_tool_prefix}cc"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179CC=$ac_cv_prog_CC
3180if test -n "$CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182$as_echo "$CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189  fi
3190fi
3191if test -z "$CC"; then
3192  # Extract the first word of "cc", so it can be a program name with args.
3193set dummy cc; ac_word=$2
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195$as_echo_n "checking for $ac_word... " >&6; }
3196if ${ac_cv_prog_CC+:} false; then :
3197  $as_echo_n "(cached) " >&6
3198else
3199  if test -n "$CC"; then
3200  ac_cv_prog_CC="$CC" # Let the user override the test.
3201else
3202  ac_prog_rejected=no
3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH
3205do
3206  IFS=$as_save_IFS
3207  test -z "$as_dir" && as_dir=.
3208    for ac_exec_ext in '' $ac_executable_extensions; do
3209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3211       ac_prog_rejected=yes
3212       continue
3213     fi
3214    ac_cv_prog_CC="cc"
3215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216    break 2
3217  fi
3218done
3219  done
3220IFS=$as_save_IFS
3221
3222if test $ac_prog_rejected = yes; then
3223  # We found a bogon in the path, so make sure we never use it.
3224  set dummy $ac_cv_prog_CC
3225  shift
3226  if test $# != 0; then
3227    # We chose a different compiler from the bogus one.
3228    # However, it has the same basename, so the bogon will be chosen
3229    # first if we set CC to just the basename; use the full file name.
3230    shift
3231    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3232  fi
3233fi
3234fi
3235fi
3236CC=$ac_cv_prog_CC
3237if test -n "$CC"; then
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239$as_echo "$CC" >&6; }
3240else
3241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243fi
3244
3245
3246fi
3247if test -z "$CC"; then
3248  if test -n "$ac_tool_prefix"; then
3249  for ac_prog in cl.exe
3250  do
3251    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254$as_echo_n "checking for $ac_word... " >&6; }
3255if ${ac_cv_prog_CC+:} false; then :
3256  $as_echo_n "(cached) " >&6
3257else
3258  if test -n "$CC"; then
3259  ac_cv_prog_CC="$CC" # Let the user override the test.
3260else
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264  IFS=$as_save_IFS
3265  test -z "$as_dir" && as_dir=.
3266    for ac_exec_ext in '' $ac_executable_extensions; do
3267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270    break 2
3271  fi
3272done
3273  done
3274IFS=$as_save_IFS
3275
3276fi
3277fi
3278CC=$ac_cv_prog_CC
3279if test -n "$CC"; then
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281$as_echo "$CC" >&6; }
3282else
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284$as_echo "no" >&6; }
3285fi
3286
3287
3288    test -n "$CC" && break
3289  done
3290fi
3291if test -z "$CC"; then
3292  ac_ct_CC=$CC
3293  for ac_prog in cl.exe
3294do
3295  # Extract the first word of "$ac_prog", so it can be a program name with args.
3296set dummy $ac_prog; ac_word=$2
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298$as_echo_n "checking for $ac_word... " >&6; }
3299if ${ac_cv_prog_ac_ct_CC+:} false; then :
3300  $as_echo_n "(cached) " >&6
3301else
3302  if test -n "$ac_ct_CC"; then
3303  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3304else
3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH
3307do
3308  IFS=$as_save_IFS
3309  test -z "$as_dir" && as_dir=.
3310    for ac_exec_ext in '' $ac_executable_extensions; do
3311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312    ac_cv_prog_ac_ct_CC="$ac_prog"
3313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314    break 2
3315  fi
3316done
3317  done
3318IFS=$as_save_IFS
3319
3320fi
3321fi
3322ac_ct_CC=$ac_cv_prog_ac_ct_CC
3323if test -n "$ac_ct_CC"; then
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3325$as_echo "$ac_ct_CC" >&6; }
3326else
3327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328$as_echo "no" >&6; }
3329fi
3330
3331
3332  test -n "$ac_ct_CC" && break
3333done
3334
3335  if test "x$ac_ct_CC" = x; then
3336    CC=""
3337  else
3338    case $cross_compiling:$ac_tool_warned in
3339yes:)
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342ac_tool_warned=yes ;;
3343esac
3344    CC=$ac_ct_CC
3345  fi
3346fi
3347
3348fi
3349
3350
3351test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353as_fn_error $? "no acceptable C compiler found in \$PATH
3354See \`config.log' for more details" "$LINENO" 5; }
3355
3356# Provide some information about the compiler.
3357$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3358set X $ac_compile
3359ac_compiler=$2
3360for ac_option in --version -v -V -qversion; do
3361  { { ac_try="$ac_compiler $ac_option >&5"
3362case "(($ac_try" in
3363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364  *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3369  ac_status=$?
3370  if test -s conftest.err; then
3371    sed '10a\
3372... rest of stderr output deleted ...
3373         10q' conftest.err >conftest.er1
3374    cat conftest.er1 >&5
3375  fi
3376  rm -f conftest.er1 conftest.err
3377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378  test $ac_status = 0; }
3379done
3380
3381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h.  */
3383
3384int
3385main ()
3386{
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392ac_clean_files_save=$ac_clean_files
3393ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3394# Try to create an executable without -o first, disregard a.out.
3395# It will help us diagnose broken compilers, and finding out an intuition
3396# of exeext.
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3398$as_echo_n "checking whether the C compiler works... " >&6; }
3399ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3400
3401# The possible output files:
3402ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3403
3404ac_rmfiles=
3405for ac_file in $ac_files
3406do
3407  case $ac_file in
3408    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3409    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3410  esac
3411done
3412rm -f $ac_rmfiles
3413
3414if { { ac_try="$ac_link_default"
3415case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420$as_echo "$ac_try_echo"; } >&5
3421  (eval "$ac_link_default") 2>&5
3422  ac_status=$?
3423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424  test $ac_status = 0; }; then :
3425  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3426# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3427# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3428# so that the user can short-circuit this test for compilers unknown to
3429# Autoconf.
3430for ac_file in $ac_files ''
3431do
3432  test -f "$ac_file" || continue
3433  case $ac_file in
3434    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3435	;;
3436    [ab].out )
3437	# We found the default executable, but exeext='' is most
3438	# certainly right.
3439	break;;
3440    *.* )
3441	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3442	then :; else
3443	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444	fi
3445	# We set ac_cv_exeext here because the later test for it is not
3446	# safe: cross compilers may not add the suffix if given an `-o'
3447	# argument, so we may need to know it at that point already.
3448	# Even if this section looks crufty: it has the advantage of
3449	# actually working.
3450	break;;
3451    * )
3452	break;;
3453  esac
3454done
3455test "$ac_cv_exeext" = no && ac_cv_exeext=
3456
3457else
3458  ac_file=''
3459fi
3460if test -z "$ac_file"; then :
3461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3463$as_echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468as_fn_error 77 "C compiler cannot create executables
3469See \`config.log' for more details" "$LINENO" 5; }
3470else
3471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3472$as_echo "yes" >&6; }
3473fi
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3475$as_echo_n "checking for C compiler default output file name... " >&6; }
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3477$as_echo "$ac_file" >&6; }
3478ac_exeext=$ac_cv_exeext
3479
3480rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3481ac_clean_files=$ac_clean_files_save
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3483$as_echo_n "checking for suffix of executables... " >&6; }
3484if { { ac_try="$ac_link"
3485case "(($ac_try" in
3486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487  *) ac_try_echo=$ac_try;;
3488esac
3489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490$as_echo "$ac_try_echo"; } >&5
3491  (eval "$ac_link") 2>&5
3492  ac_status=$?
3493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494  test $ac_status = 0; }; then :
3495  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3496# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3497# work properly (i.e., refer to `conftest.exe'), while it won't with
3498# `rm'.
3499for ac_file in conftest.exe conftest conftest.*; do
3500  test -f "$ac_file" || continue
3501  case $ac_file in
3502    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3503    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3504	  break;;
3505    * ) break;;
3506  esac
3507done
3508else
3509  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3512See \`config.log' for more details" "$LINENO" 5; }
3513fi
3514rm -f conftest conftest$ac_cv_exeext
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3516$as_echo "$ac_cv_exeext" >&6; }
3517
3518rm -f conftest.$ac_ext
3519EXEEXT=$ac_cv_exeext
3520ac_exeext=$EXEEXT
3521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h.  */
3523#include <stdio.h>
3524int
3525main ()
3526{
3527FILE *f = fopen ("conftest.out", "w");
3528 return ferror (f) || fclose (f) != 0;
3529
3530  ;
3531  return 0;
3532}
3533_ACEOF
3534ac_clean_files="$ac_clean_files conftest.out"
3535# Check that the compiler produces executables we can run.  If not, either
3536# the compiler is broken, or we cross compile.
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3538$as_echo_n "checking whether we are cross compiling... " >&6; }
3539if test "$cross_compiling" != yes; then
3540  { { ac_try="$ac_link"
3541case "(($ac_try" in
3542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543  *) ac_try_echo=$ac_try;;
3544esac
3545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546$as_echo "$ac_try_echo"; } >&5
3547  (eval "$ac_link") 2>&5
3548  ac_status=$?
3549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550  test $ac_status = 0; }
3551  if { ac_try='./conftest$ac_cv_exeext'
3552  { { case "(($ac_try" in
3553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554  *) ac_try_echo=$ac_try;;
3555esac
3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557$as_echo "$ac_try_echo"; } >&5
3558  (eval "$ac_try") 2>&5
3559  ac_status=$?
3560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561  test $ac_status = 0; }; }; then
3562    cross_compiling=no
3563  else
3564    if test "$cross_compiling" = maybe; then
3565	cross_compiling=yes
3566    else
3567	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569as_fn_error $? "cannot run C compiled programs.
3570If you meant to cross compile, use \`--host'.
3571See \`config.log' for more details" "$LINENO" 5; }
3572    fi
3573  fi
3574fi
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3576$as_echo "$cross_compiling" >&6; }
3577
3578rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3579ac_clean_files=$ac_clean_files_save
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3581$as_echo_n "checking for suffix of object files... " >&6; }
3582if ${ac_cv_objext+:} false; then :
3583  $as_echo_n "(cached) " >&6
3584else
3585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h.  */
3587
3588int
3589main ()
3590{
3591
3592  ;
3593  return 0;
3594}
3595_ACEOF
3596rm -f conftest.o conftest.obj
3597if { { ac_try="$ac_compile"
3598case "(($ac_try" in
3599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600  *) ac_try_echo=$ac_try;;
3601esac
3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603$as_echo "$ac_try_echo"; } >&5
3604  (eval "$ac_compile") 2>&5
3605  ac_status=$?
3606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607  test $ac_status = 0; }; then :
3608  for ac_file in conftest.o conftest.obj conftest.*; do
3609  test -f "$ac_file" || continue;
3610  case $ac_file in
3611    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3612    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3613       break;;
3614  esac
3615done
3616else
3617  $as_echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622as_fn_error $? "cannot compute suffix of object files: cannot compile
3623See \`config.log' for more details" "$LINENO" 5; }
3624fi
3625rm -f conftest.$ac_cv_objext conftest.$ac_ext
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3628$as_echo "$ac_cv_objext" >&6; }
3629OBJEXT=$ac_cv_objext
3630ac_objext=$OBJEXT
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3632$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3633if ${ac_cv_c_compiler_gnu+:} false; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637/* end confdefs.h.  */
3638
3639int
3640main ()
3641{
3642#ifndef __GNUC__
3643       choke me
3644#endif
3645
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650if ac_fn_c_try_compile "$LINENO"; then :
3651  ac_compiler_gnu=yes
3652else
3653  ac_compiler_gnu=no
3654fi
3655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656ac_cv_c_compiler_gnu=$ac_compiler_gnu
3657
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3660$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3661if test $ac_compiler_gnu = yes; then
3662  GCC=yes
3663else
3664  GCC=
3665fi
3666ac_test_CFLAGS=${CFLAGS+set}
3667ac_save_CFLAGS=$CFLAGS
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3669$as_echo_n "checking whether $CC accepts -g... " >&6; }
3670if ${ac_cv_prog_cc_g+:} false; then :
3671  $as_echo_n "(cached) " >&6
3672else
3673  ac_save_c_werror_flag=$ac_c_werror_flag
3674   ac_c_werror_flag=yes
3675   ac_cv_prog_cc_g=no
3676   CFLAGS="-g"
3677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h.  */
3679
3680int
3681main ()
3682{
3683
3684  ;
3685  return 0;
3686}
3687_ACEOF
3688if ac_fn_c_try_compile "$LINENO"; then :
3689  ac_cv_prog_cc_g=yes
3690else
3691  CFLAGS=""
3692      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693/* end confdefs.h.  */
3694
3695int
3696main ()
3697{
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703if ac_fn_c_try_compile "$LINENO"; then :
3704
3705else
3706  ac_c_werror_flag=$ac_save_c_werror_flag
3707	 CFLAGS="-g"
3708	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h.  */
3710
3711int
3712main ()
3713{
3714
3715  ;
3716  return 0;
3717}
3718_ACEOF
3719if ac_fn_c_try_compile "$LINENO"; then :
3720  ac_cv_prog_cc_g=yes
3721fi
3722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723fi
3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725fi
3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727   ac_c_werror_flag=$ac_save_c_werror_flag
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3730$as_echo "$ac_cv_prog_cc_g" >&6; }
3731if test "$ac_test_CFLAGS" = set; then
3732  CFLAGS=$ac_save_CFLAGS
3733elif test $ac_cv_prog_cc_g = yes; then
3734  if test "$GCC" = yes; then
3735    CFLAGS="-g -O2"
3736  else
3737    CFLAGS="-g"
3738  fi
3739else
3740  if test "$GCC" = yes; then
3741    CFLAGS="-O2"
3742  else
3743    CFLAGS=
3744  fi
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3747$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3748if ${ac_cv_prog_cc_c89+:} false; then :
3749  $as_echo_n "(cached) " >&6
3750else
3751  ac_cv_prog_cc_c89=no
3752ac_save_CC=$CC
3753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h.  */
3755#include <stdarg.h>
3756#include <stdio.h>
3757struct stat;
3758/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3759struct buf { int x; };
3760FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761static char *e (p, i)
3762     char **p;
3763     int i;
3764{
3765  return p[i];
3766}
3767static char *f (char * (*g) (char **, int), char **p, ...)
3768{
3769  char *s;
3770  va_list v;
3771  va_start (v,p);
3772  s = g (p, va_arg (v,int));
3773  va_end (v);
3774  return s;
3775}
3776
3777/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3778   function prototypes and stuff, but not '\xHH' hex character constants.
3779   These don't provoke an error unfortunately, instead are silently treated
3780   as 'x'.  The following induces an error, until -std is added to get
3781   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3782   array size at least.  It's necessary to write '\x00'==0 to get something
3783   that's true only with -std.  */
3784int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3785
3786/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787   inside strings and character constants.  */
3788#define FOO(x) 'x'
3789int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3790
3791int test (int i, double x);
3792struct s1 {int (*f) (int a);};
3793struct s2 {int (*f) (double a);};
3794int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3795int argc;
3796char **argv;
3797int
3798main ()
3799{
3800return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3807do
3808  CC="$ac_save_CC $ac_arg"
3809  if ac_fn_c_try_compile "$LINENO"; then :
3810  ac_cv_prog_cc_c89=$ac_arg
3811fi
3812rm -f core conftest.err conftest.$ac_objext
3813  test "x$ac_cv_prog_cc_c89" != "xno" && break
3814done
3815rm -f conftest.$ac_ext
3816CC=$ac_save_CC
3817
3818fi
3819# AC_CACHE_VAL
3820case "x$ac_cv_prog_cc_c89" in
3821  x)
3822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3823$as_echo "none needed" >&6; } ;;
3824  xno)
3825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3826$as_echo "unsupported" >&6; } ;;
3827  *)
3828    CC="$CC $ac_cv_prog_cc_c89"
3829    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3830$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3831esac
3832if test "x$ac_cv_prog_cc_c89" != xno; then :
3833
3834fi
3835
3836ac_ext=c
3837ac_cpp='$CPP $CPPFLAGS'
3838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841
3842ac_ext=c
3843ac_cpp='$CPP $CPPFLAGS'
3844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3848$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3849if ${am_cv_prog_cc_c_o+:} false; then :
3850  $as_echo_n "(cached) " >&6
3851else
3852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h.  */
3854
3855int
3856main ()
3857{
3858
3859  ;
3860  return 0;
3861}
3862_ACEOF
3863  # Make sure it works both with $CC and with simple cc.
3864  # Following AC_PROG_CC_C_O, we do the test twice because some
3865  # compilers refuse to overwrite an existing .o file with -o,
3866  # though they will create one.
3867  am_cv_prog_cc_c_o=yes
3868  for am_i in 1 2; do
3869    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3870   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); } \
3874         && test -f conftest2.$ac_objext; then
3875      : OK
3876    else
3877      am_cv_prog_cc_c_o=no
3878      break
3879    fi
3880  done
3881  rm -f core conftest*
3882  unset am_i
3883fi
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3885$as_echo "$am_cv_prog_cc_c_o" >&6; }
3886if test "$am_cv_prog_cc_c_o" != yes; then
3887   # Losing compiler, so override with the script.
3888   # FIXME: It is wrong to rewrite CC.
3889   # But if we don't then we get into trouble of one sort or another.
3890   # A longer-term fix would be to have automake use am__CC in this case,
3891   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3892   CC="$am_aux_dir/compile $CC"
3893fi
3894ac_ext=c
3895ac_cpp='$CPP $CPPFLAGS'
3896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899
3900
3901depcc="$CC"   am_compiler_list=
3902
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3904$as_echo_n "checking dependency style of $depcc... " >&6; }
3905if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3909  # We make a subdir and do the tests there.  Otherwise we can end up
3910  # making bogus files that we don't know about and never remove.  For
3911  # instance it was reported that on HP-UX the gcc test will end up
3912  # making a dummy file named 'D' -- because '-MD' means "put the output
3913  # in D".
3914  rm -rf conftest.dir
3915  mkdir conftest.dir
3916  # Copy depcomp to subdir because otherwise we won't find it if we're
3917  # using a relative directory.
3918  cp "$am_depcomp" conftest.dir
3919  cd conftest.dir
3920  # We will build objects and dependencies in a subdirectory because
3921  # it helps to detect inapplicable dependency modes.  For instance
3922  # both Tru64's cc and ICC support -MD to output dependencies as a
3923  # side effect of compilation, but ICC will put the dependencies in
3924  # the current directory while Tru64 will put them in the object
3925  # directory.
3926  mkdir sub
3927
3928  am_cv_CC_dependencies_compiler_type=none
3929  if test "$am_compiler_list" = ""; then
3930     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3931  fi
3932  am__universal=false
3933  case " $depcc " in #(
3934     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3935     esac
3936
3937  for depmode in $am_compiler_list; do
3938    # Setup a source with many dependencies, because some compilers
3939    # like to wrap large dependency lists on column 80 (with \), and
3940    # we should not choose a depcomp mode which is confused by this.
3941    #
3942    # We need to recreate these files for each test, as the compiler may
3943    # overwrite some of them when testing with obscure command lines.
3944    # This happens at least with the AIX C compiler.
3945    : > sub/conftest.c
3946    for i in 1 2 3 4 5 6; do
3947      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3948      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3949      # Solaris 10 /bin/sh.
3950      echo '/* dummy */' > sub/conftst$i.h
3951    done
3952    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3953
3954    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3955    # mode.  It turns out that the SunPro C++ compiler does not properly
3956    # handle '-M -o', and we need to detect this.  Also, some Intel
3957    # versions had trouble with output in subdirs.
3958    am__obj=sub/conftest.${OBJEXT-o}
3959    am__minus_obj="-o $am__obj"
3960    case $depmode in
3961    gcc)
3962      # This depmode causes a compiler race in universal mode.
3963      test "$am__universal" = false || continue
3964      ;;
3965    nosideeffect)
3966      # After this tag, mechanisms are not by side-effect, so they'll
3967      # only be used when explicitly requested.
3968      if test "x$enable_dependency_tracking" = xyes; then
3969	continue
3970      else
3971	break
3972      fi
3973      ;;
3974    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3975      # This compiler won't grok '-c -o', but also, the minuso test has
3976      # not run yet.  These depmodes are late enough in the game, and
3977      # so weak that their functioning should not be impacted.
3978      am__obj=conftest.${OBJEXT-o}
3979      am__minus_obj=
3980      ;;
3981    none) break ;;
3982    esac
3983    if depmode=$depmode \
3984       source=sub/conftest.c object=$am__obj \
3985       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3986       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3987         >/dev/null 2>conftest.err &&
3988       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3989       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3990       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3991       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3992      # icc doesn't choke on unknown options, it will just issue warnings
3993      # or remarks (even with -Werror).  So we grep stderr for any message
3994      # that says an option was ignored or not supported.
3995      # When given -MP, icc 7.0 and 7.1 complain thusly:
3996      #   icc: Command line warning: ignoring option '-M'; no argument required
3997      # The diagnosis changed in icc 8.0:
3998      #   icc: Command line remark: option '-MP' not supported
3999      if (grep 'ignoring option' conftest.err ||
4000          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4001        am_cv_CC_dependencies_compiler_type=$depmode
4002        break
4003      fi
4004    fi
4005  done
4006
4007  cd ..
4008  rm -rf conftest.dir
4009else
4010  am_cv_CC_dependencies_compiler_type=none
4011fi
4012
4013fi
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4015$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4016CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4017
4018 if
4019  test "x$enable_dependency_tracking" != xno \
4020  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4021  am__fastdepCC_TRUE=
4022  am__fastdepCC_FALSE='#'
4023else
4024  am__fastdepCC_TRUE='#'
4025  am__fastdepCC_FALSE=
4026fi
4027
4028
4029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4030$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4031if ${ac_cv_prog_cc_c99+:} false; then :
4032  $as_echo_n "(cached) " >&6
4033else
4034  ac_cv_prog_cc_c99=no
4035ac_save_CC=$CC
4036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h.  */
4038#include <stdarg.h>
4039#include <stdbool.h>
4040#include <stdlib.h>
4041#include <wchar.h>
4042#include <stdio.h>
4043
4044// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4045#define debug(...) fprintf (stderr, __VA_ARGS__)
4046#define showlist(...) puts (#__VA_ARGS__)
4047#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4048static void
4049test_varargs_macros (void)
4050{
4051  int x = 1234;
4052  int y = 5678;
4053  debug ("Flag");
4054  debug ("X = %d\n", x);
4055  showlist (The first, second, and third items.);
4056  report (x>y, "x is %d but y is %d", x, y);
4057}
4058
4059// Check long long types.
4060#define BIG64 18446744073709551615ull
4061#define BIG32 4294967295ul
4062#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4063#if !BIG_OK
4064  your preprocessor is broken;
4065#endif
4066#if BIG_OK
4067#else
4068  your preprocessor is broken;
4069#endif
4070static long long int bignum = -9223372036854775807LL;
4071static unsigned long long int ubignum = BIG64;
4072
4073struct incomplete_array
4074{
4075  int datasize;
4076  double data[];
4077};
4078
4079struct named_init {
4080  int number;
4081  const wchar_t *name;
4082  double average;
4083};
4084
4085typedef const char *ccp;
4086
4087static inline int
4088test_restrict (ccp restrict text)
4089{
4090  // See if C++-style comments work.
4091  // Iterate through items via the restricted pointer.
4092  // Also check for declarations in for loops.
4093  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4094    continue;
4095  return 0;
4096}
4097
4098// Check varargs and va_copy.
4099static void
4100test_varargs (const char *format, ...)
4101{
4102  va_list args;
4103  va_start (args, format);
4104  va_list args_copy;
4105  va_copy (args_copy, args);
4106
4107  const char *str;
4108  int number;
4109  float fnumber;
4110
4111  while (*format)
4112    {
4113      switch (*format++)
4114	{
4115	case 's': // string
4116	  str = va_arg (args_copy, const char *);
4117	  break;
4118	case 'd': // int
4119	  number = va_arg (args_copy, int);
4120	  break;
4121	case 'f': // float
4122	  fnumber = va_arg (args_copy, double);
4123	  break;
4124	default:
4125	  break;
4126	}
4127    }
4128  va_end (args_copy);
4129  va_end (args);
4130}
4131
4132int
4133main ()
4134{
4135
4136  // Check bool.
4137  _Bool success = false;
4138
4139  // Check restrict.
4140  if (test_restrict ("String literal") == 0)
4141    success = true;
4142  char *restrict newvar = "Another string";
4143
4144  // Check varargs.
4145  test_varargs ("s, d' f .", "string", 65, 34.234);
4146  test_varargs_macros ();
4147
4148  // Check flexible array members.
4149  struct incomplete_array *ia =
4150    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4151  ia->datasize = 10;
4152  for (int i = 0; i < ia->datasize; ++i)
4153    ia->data[i] = i * 1.234;
4154
4155  // Check named initializers.
4156  struct named_init ni = {
4157    .number = 34,
4158    .name = L"Test wide string",
4159    .average = 543.34343,
4160  };
4161
4162  ni.number = 58;
4163
4164  int dynamic_array[ni.number];
4165  dynamic_array[ni.number - 1] = 543;
4166
4167  // work around unused variable warnings
4168  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4169	  || dynamic_array[ni.number - 1] != 543);
4170
4171  ;
4172  return 0;
4173}
4174_ACEOF
4175for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4176do
4177  CC="$ac_save_CC $ac_arg"
4178  if ac_fn_c_try_compile "$LINENO"; then :
4179  ac_cv_prog_cc_c99=$ac_arg
4180fi
4181rm -f core conftest.err conftest.$ac_objext
4182  test "x$ac_cv_prog_cc_c99" != "xno" && break
4183done
4184rm -f conftest.$ac_ext
4185CC=$ac_save_CC
4186
4187fi
4188# AC_CACHE_VAL
4189case "x$ac_cv_prog_cc_c99" in
4190  x)
4191    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192$as_echo "none needed" >&6; } ;;
4193  xno)
4194    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195$as_echo "unsupported" >&6; } ;;
4196  *)
4197    CC="$CC $ac_cv_prog_cc_c99"
4198    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4199$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4200esac
4201if test "x$ac_cv_prog_cc_c99" != xno; then :
4202
4203fi
4204
4205
4206
4207ac_ext=c
4208ac_cpp='$CPP $CPPFLAGS'
4209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4213$as_echo_n "checking how to run the C preprocessor... " >&6; }
4214# On Suns, sometimes $CPP names a directory.
4215if test -n "$CPP" && test -d "$CPP"; then
4216  CPP=
4217fi
4218if test -z "$CPP"; then
4219  if ${ac_cv_prog_CPP+:} false; then :
4220  $as_echo_n "(cached) " >&6
4221else
4222      # Double quotes because CPP needs to be expanded
4223    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4224    do
4225      ac_preproc_ok=false
4226for ac_c_preproc_warn_flag in '' yes
4227do
4228  # Use a header file that comes with gcc, so configuring glibc
4229  # with a fresh cross-compiler works.
4230  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4231  # <limits.h> exists even on freestanding compilers.
4232  # On the NeXT, cc -E runs the code through the compiler's parser,
4233  # not just through cpp. "Syntax error" is here to catch this case.
4234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h.  */
4236#ifdef __STDC__
4237# include <limits.h>
4238#else
4239# include <assert.h>
4240#endif
4241		     Syntax error
4242_ACEOF
4243if ac_fn_c_try_cpp "$LINENO"; then :
4244
4245else
4246  # Broken: fails on valid input.
4247continue
4248fi
4249rm -f conftest.err conftest.i conftest.$ac_ext
4250
4251  # OK, works on sane cases.  Now check whether nonexistent headers
4252  # can be detected and how.
4253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254/* end confdefs.h.  */
4255#include <ac_nonexistent.h>
4256_ACEOF
4257if ac_fn_c_try_cpp "$LINENO"; then :
4258  # Broken: success on invalid input.
4259continue
4260else
4261  # Passes both tests.
4262ac_preproc_ok=:
4263break
4264fi
4265rm -f conftest.err conftest.i conftest.$ac_ext
4266
4267done
4268# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269rm -f conftest.i conftest.err conftest.$ac_ext
4270if $ac_preproc_ok; then :
4271  break
4272fi
4273
4274    done
4275    ac_cv_prog_CPP=$CPP
4276
4277fi
4278  CPP=$ac_cv_prog_CPP
4279else
4280  ac_cv_prog_CPP=$CPP
4281fi
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4283$as_echo "$CPP" >&6; }
4284ac_preproc_ok=false
4285for ac_c_preproc_warn_flag in '' yes
4286do
4287  # Use a header file that comes with gcc, so configuring glibc
4288  # with a fresh cross-compiler works.
4289  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4290  # <limits.h> exists even on freestanding compilers.
4291  # On the NeXT, cc -E runs the code through the compiler's parser,
4292  # not just through cpp. "Syntax error" is here to catch this case.
4293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h.  */
4295#ifdef __STDC__
4296# include <limits.h>
4297#else
4298# include <assert.h>
4299#endif
4300		     Syntax error
4301_ACEOF
4302if ac_fn_c_try_cpp "$LINENO"; then :
4303
4304else
4305  # Broken: fails on valid input.
4306continue
4307fi
4308rm -f conftest.err conftest.i conftest.$ac_ext
4309
4310  # OK, works on sane cases.  Now check whether nonexistent headers
4311  # can be detected and how.
4312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313/* end confdefs.h.  */
4314#include <ac_nonexistent.h>
4315_ACEOF
4316if ac_fn_c_try_cpp "$LINENO"; then :
4317  # Broken: success on invalid input.
4318continue
4319else
4320  # Passes both tests.
4321ac_preproc_ok=:
4322break
4323fi
4324rm -f conftest.err conftest.i conftest.$ac_ext
4325
4326done
4327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328rm -f conftest.i conftest.err conftest.$ac_ext
4329if $ac_preproc_ok; then :
4330
4331else
4332  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4335See \`config.log' for more details" "$LINENO" 5; }
4336fi
4337
4338ac_ext=c
4339ac_cpp='$CPP $CPPFLAGS'
4340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4346$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4347if ${ac_cv_path_GREP+:} false; then :
4348  $as_echo_n "(cached) " >&6
4349else
4350  if test -z "$GREP"; then
4351  ac_path_GREP_found=false
4352  # Loop through the user's path and test for each of PROGNAME-LIST
4353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355do
4356  IFS=$as_save_IFS
4357  test -z "$as_dir" && as_dir=.
4358    for ac_prog in grep ggrep; do
4359    for ac_exec_ext in '' $ac_executable_extensions; do
4360      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4361      as_fn_executable_p "$ac_path_GREP" || continue
4362# Check for GNU ac_path_GREP and select it if it is found.
4363  # Check for GNU $ac_path_GREP
4364case `"$ac_path_GREP" --version 2>&1` in
4365*GNU*)
4366  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4367*)
4368  ac_count=0
4369  $as_echo_n 0123456789 >"conftest.in"
4370  while :
4371  do
4372    cat "conftest.in" "conftest.in" >"conftest.tmp"
4373    mv "conftest.tmp" "conftest.in"
4374    cp "conftest.in" "conftest.nl"
4375    $as_echo 'GREP' >> "conftest.nl"
4376    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4377    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4378    as_fn_arith $ac_count + 1 && ac_count=$as_val
4379    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4380      # Best one so far, save it but keep looking for a better one
4381      ac_cv_path_GREP="$ac_path_GREP"
4382      ac_path_GREP_max=$ac_count
4383    fi
4384    # 10*(2^10) chars as input seems more than enough
4385    test $ac_count -gt 10 && break
4386  done
4387  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388esac
4389
4390      $ac_path_GREP_found && break 3
4391    done
4392  done
4393  done
4394IFS=$as_save_IFS
4395  if test -z "$ac_cv_path_GREP"; then
4396    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397  fi
4398else
4399  ac_cv_path_GREP=$GREP
4400fi
4401
4402fi
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4404$as_echo "$ac_cv_path_GREP" >&6; }
4405 GREP="$ac_cv_path_GREP"
4406
4407
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4409$as_echo_n "checking for egrep... " >&6; }
4410if ${ac_cv_path_EGREP+:} false; then :
4411  $as_echo_n "(cached) " >&6
4412else
4413  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4414   then ac_cv_path_EGREP="$GREP -E"
4415   else
4416     if test -z "$EGREP"; then
4417  ac_path_EGREP_found=false
4418  # Loop through the user's path and test for each of PROGNAME-LIST
4419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421do
4422  IFS=$as_save_IFS
4423  test -z "$as_dir" && as_dir=.
4424    for ac_prog in egrep; do
4425    for ac_exec_ext in '' $ac_executable_extensions; do
4426      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4427      as_fn_executable_p "$ac_path_EGREP" || continue
4428# Check for GNU ac_path_EGREP and select it if it is found.
4429  # Check for GNU $ac_path_EGREP
4430case `"$ac_path_EGREP" --version 2>&1` in
4431*GNU*)
4432  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4433*)
4434  ac_count=0
4435  $as_echo_n 0123456789 >"conftest.in"
4436  while :
4437  do
4438    cat "conftest.in" "conftest.in" >"conftest.tmp"
4439    mv "conftest.tmp" "conftest.in"
4440    cp "conftest.in" "conftest.nl"
4441    $as_echo 'EGREP' >> "conftest.nl"
4442    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444    as_fn_arith $ac_count + 1 && ac_count=$as_val
4445    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4446      # Best one so far, save it but keep looking for a better one
4447      ac_cv_path_EGREP="$ac_path_EGREP"
4448      ac_path_EGREP_max=$ac_count
4449    fi
4450    # 10*(2^10) chars as input seems more than enough
4451    test $ac_count -gt 10 && break
4452  done
4453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454esac
4455
4456      $ac_path_EGREP_found && break 3
4457    done
4458  done
4459  done
4460IFS=$as_save_IFS
4461  if test -z "$ac_cv_path_EGREP"; then
4462    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4463  fi
4464else
4465  ac_cv_path_EGREP=$EGREP
4466fi
4467
4468   fi
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4471$as_echo "$ac_cv_path_EGREP" >&6; }
4472 EGREP="$ac_cv_path_EGREP"
4473
4474
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4476$as_echo_n "checking for ANSI C header files... " >&6; }
4477if ${ac_cv_header_stdc+:} false; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481/* end confdefs.h.  */
4482#include <stdlib.h>
4483#include <stdarg.h>
4484#include <string.h>
4485#include <float.h>
4486
4487int
4488main ()
4489{
4490
4491  ;
4492  return 0;
4493}
4494_ACEOF
4495if ac_fn_c_try_compile "$LINENO"; then :
4496  ac_cv_header_stdc=yes
4497else
4498  ac_cv_header_stdc=no
4499fi
4500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501
4502if test $ac_cv_header_stdc = yes; then
4503  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h.  */
4506#include <string.h>
4507
4508_ACEOF
4509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510  $EGREP "memchr" >/dev/null 2>&1; then :
4511
4512else
4513  ac_cv_header_stdc=no
4514fi
4515rm -f conftest*
4516
4517fi
4518
4519if test $ac_cv_header_stdc = yes; then
4520  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522/* end confdefs.h.  */
4523#include <stdlib.h>
4524
4525_ACEOF
4526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4527  $EGREP "free" >/dev/null 2>&1; then :
4528
4529else
4530  ac_cv_header_stdc=no
4531fi
4532rm -f conftest*
4533
4534fi
4535
4536if test $ac_cv_header_stdc = yes; then
4537  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4538  if test "$cross_compiling" = yes; then :
4539  :
4540else
4541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542/* end confdefs.h.  */
4543#include <ctype.h>
4544#include <stdlib.h>
4545#if ((' ' & 0x0FF) == 0x020)
4546# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4547# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4548#else
4549# define ISLOWER(c) \
4550		   (('a' <= (c) && (c) <= 'i') \
4551		     || ('j' <= (c) && (c) <= 'r') \
4552		     || ('s' <= (c) && (c) <= 'z'))
4553# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4554#endif
4555
4556#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557int
4558main ()
4559{
4560  int i;
4561  for (i = 0; i < 256; i++)
4562    if (XOR (islower (i), ISLOWER (i))
4563	|| toupper (i) != TOUPPER (i))
4564      return 2;
4565  return 0;
4566}
4567_ACEOF
4568if ac_fn_c_try_run "$LINENO"; then :
4569
4570else
4571  ac_cv_header_stdc=no
4572fi
4573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4574  conftest.$ac_objext conftest.beam conftest.$ac_ext
4575fi
4576
4577fi
4578fi
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4580$as_echo "$ac_cv_header_stdc" >&6; }
4581if test $ac_cv_header_stdc = yes; then
4582
4583$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4584
4585fi
4586
4587# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4588for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4589		  inttypes.h stdint.h unistd.h
4590do :
4591  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4592ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4593"
4594if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4595  cat >>confdefs.h <<_ACEOF
4596#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597_ACEOF
4598
4599fi
4600
4601done
4602
4603
4604
4605
4606
4607
4608ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4609if test "x$ac_cv_have_decl___clang__" = xyes; then :
4610  CLANGCC="yes"
4611else
4612  CLANGCC="no"
4613fi
4614
4615ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4616if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4617  INTELCC="yes"
4618else
4619  INTELCC="no"
4620fi
4621
4622ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4623if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4624  SUNCC="yes"
4625else
4626  SUNCC="no"
4627fi
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4638	if test -n "$ac_tool_prefix"; then
4639  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4640set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642$as_echo_n "checking for $ac_word... " >&6; }
4643if ${ac_cv_path_PKG_CONFIG+:} false; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  case $PKG_CONFIG in
4647  [\\/]* | ?:[\\/]*)
4648  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4649  ;;
4650  *)
4651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656    for ac_exec_ext in '' $ac_executable_extensions; do
4657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660    break 2
4661  fi
4662done
4663  done
4664IFS=$as_save_IFS
4665
4666  ;;
4667esac
4668fi
4669PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4670if test -n "$PKG_CONFIG"; then
4671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4672$as_echo "$PKG_CONFIG" >&6; }
4673else
4674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675$as_echo "no" >&6; }
4676fi
4677
4678
4679fi
4680if test -z "$ac_cv_path_PKG_CONFIG"; then
4681  ac_pt_PKG_CONFIG=$PKG_CONFIG
4682  # Extract the first word of "pkg-config", so it can be a program name with args.
4683set dummy pkg-config; ac_word=$2
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685$as_echo_n "checking for $ac_word... " >&6; }
4686if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  case $ac_pt_PKG_CONFIG in
4690  [\\/]* | ?:[\\/]*)
4691  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4692  ;;
4693  *)
4694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699    for ac_exec_ext in '' $ac_executable_extensions; do
4700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703    break 2
4704  fi
4705done
4706  done
4707IFS=$as_save_IFS
4708
4709  ;;
4710esac
4711fi
4712ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4713if test -n "$ac_pt_PKG_CONFIG"; then
4714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4715$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4716else
4717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718$as_echo "no" >&6; }
4719fi
4720
4721  if test "x$ac_pt_PKG_CONFIG" = x; then
4722    PKG_CONFIG=""
4723  else
4724    case $cross_compiling:$ac_tool_warned in
4725yes:)
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728ac_tool_warned=yes ;;
4729esac
4730    PKG_CONFIG=$ac_pt_PKG_CONFIG
4731  fi
4732else
4733  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4734fi
4735
4736fi
4737if test -n "$PKG_CONFIG"; then
4738	_pkg_min_version=0.9.0
4739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4740$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4741	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4743$as_echo "yes" >&6; }
4744	else
4745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746$as_echo "no" >&6; }
4747		PKG_CONFIG=""
4748	fi
4749fi
4750# Make sure we can run config.sub.
4751$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4752  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4755$as_echo_n "checking build system type... " >&6; }
4756if ${ac_cv_build+:} false; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759  ac_build_alias=$build_alias
4760test "x$ac_build_alias" = x &&
4761  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4762test "x$ac_build_alias" = x &&
4763  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4764ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4765  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4766
4767fi
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4769$as_echo "$ac_cv_build" >&6; }
4770case $ac_cv_build in
4771*-*-*) ;;
4772*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4773esac
4774build=$ac_cv_build
4775ac_save_IFS=$IFS; IFS='-'
4776set x $ac_cv_build
4777shift
4778build_cpu=$1
4779build_vendor=$2
4780shift; shift
4781# Remember, the first character of IFS is used to create $*,
4782# except with old shells:
4783build_os=$*
4784IFS=$ac_save_IFS
4785case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4786
4787
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4789$as_echo_n "checking host system type... " >&6; }
4790if ${ac_cv_host+:} false; then :
4791  $as_echo_n "(cached) " >&6
4792else
4793  if test "x$host_alias" = x; then
4794  ac_cv_host=$ac_cv_build
4795else
4796  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4797    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4798fi
4799
4800fi
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4802$as_echo "$ac_cv_host" >&6; }
4803case $ac_cv_host in
4804*-*-*) ;;
4805*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4806esac
4807host=$ac_cv_host
4808ac_save_IFS=$IFS; IFS='-'
4809set x $ac_cv_host
4810shift
4811host_cpu=$1
4812host_vendor=$2
4813shift; shift
4814# Remember, the first character of IFS is used to create $*,
4815# except with old shells:
4816host_os=$*
4817IFS=$ac_save_IFS
4818case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4819
4820
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4822$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4823if ${ac_cv_path_SED+:} false; then :
4824  $as_echo_n "(cached) " >&6
4825else
4826            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4827     for ac_i in 1 2 3 4 5 6 7; do
4828       ac_script="$ac_script$as_nl$ac_script"
4829     done
4830     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4831     { ac_script=; unset ac_script;}
4832     if test -z "$SED"; then
4833  ac_path_SED_found=false
4834  # Loop through the user's path and test for each of PROGNAME-LIST
4835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840    for ac_prog in sed gsed; do
4841    for ac_exec_ext in '' $ac_executable_extensions; do
4842      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4843      as_fn_executable_p "$ac_path_SED" || continue
4844# Check for GNU ac_path_SED and select it if it is found.
4845  # Check for GNU $ac_path_SED
4846case `"$ac_path_SED" --version 2>&1` in
4847*GNU*)
4848  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4849*)
4850  ac_count=0
4851  $as_echo_n 0123456789 >"conftest.in"
4852  while :
4853  do
4854    cat "conftest.in" "conftest.in" >"conftest.tmp"
4855    mv "conftest.tmp" "conftest.in"
4856    cp "conftest.in" "conftest.nl"
4857    $as_echo '' >> "conftest.nl"
4858    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4859    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4860    as_fn_arith $ac_count + 1 && ac_count=$as_val
4861    if test $ac_count -gt ${ac_path_SED_max-0}; then
4862      # Best one so far, save it but keep looking for a better one
4863      ac_cv_path_SED="$ac_path_SED"
4864      ac_path_SED_max=$ac_count
4865    fi
4866    # 10*(2^10) chars as input seems more than enough
4867    test $ac_count -gt 10 && break
4868  done
4869  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4870esac
4871
4872      $ac_path_SED_found && break 3
4873    done
4874  done
4875  done
4876IFS=$as_save_IFS
4877  if test -z "$ac_cv_path_SED"; then
4878    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4879  fi
4880else
4881  ac_cv_path_SED=$SED
4882fi
4883
4884fi
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4886$as_echo "$ac_cv_path_SED" >&6; }
4887 SED="$ac_cv_path_SED"
4888  rm -f conftest.sed
4889
4890
4891
4892
4893
4894
4895# Check whether --enable-selective-werror was given.
4896if test "${enable_selective_werror+set}" = set; then :
4897  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4898else
4899  SELECTIVE_WERROR=yes
4900fi
4901
4902
4903
4904
4905
4906# -v is too short to test reliably with XORG_TESTSET_CFLAG
4907if test "x$SUNCC" = "xyes"; then
4908    BASE_CFLAGS="-v"
4909else
4910    BASE_CFLAGS=""
4911fi
4912
4913# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927xorg_testset_save_CFLAGS="$CFLAGS"
4928
4929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4932$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4933if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937/* end confdefs.h.  */
4938int i;
4939_ACEOF
4940if ac_fn_c_try_compile "$LINENO"; then :
4941  xorg_cv_cc_flag_unknown_warning_option=yes
4942else
4943  xorg_cv_cc_flag_unknown_warning_option=no
4944fi
4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946fi
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4948$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4950	CFLAGS="$xorg_testset_save_CFLAGS"
4951fi
4952
4953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956	fi
4957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4959$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4960if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964/* end confdefs.h.  */
4965int i;
4966_ACEOF
4967if ac_fn_c_try_compile "$LINENO"; then :
4968  xorg_cv_cc_flag_unused_command_line_argument=yes
4969else
4970  xorg_cv_cc_flag_unused_command_line_argument=no
4971fi
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973fi
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4975$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4976	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4977	CFLAGS="$xorg_testset_save_CFLAGS"
4978fi
4979
4980found="no"
4981
4982	if test $found = "no" ; then
4983		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4984			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985		fi
4986
4987		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4988			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4989		fi
4990
4991		CFLAGS="$CFLAGS -Wall"
4992
4993		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4994$as_echo_n "checking if $CC supports -Wall... " >&6; }
4995		cacheid=xorg_cv_cc_flag__Wall
4996		if eval \${$cacheid+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h.  */
5001int i;
5002int
5003main ()
5004{
5005
5006  ;
5007  return 0;
5008}
5009_ACEOF
5010if ac_fn_c_try_link "$LINENO"; then :
5011  eval $cacheid=yes
5012else
5013  eval $cacheid=no
5014fi
5015rm -f core conftest.err conftest.$ac_objext \
5016    conftest$ac_exeext conftest.$ac_ext
5017fi
5018
5019
5020		CFLAGS="$xorg_testset_save_CFLAGS"
5021
5022		eval supported=\$$cacheid
5023		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5024$as_echo "$supported" >&6; }
5025		if test "$supported" = "yes" ; then
5026			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5027			found="yes"
5028		fi
5029	fi
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045xorg_testset_save_CFLAGS="$CFLAGS"
5046
5047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055/* end confdefs.h.  */
5056int i;
5057_ACEOF
5058if ac_fn_c_try_compile "$LINENO"; then :
5059  xorg_cv_cc_flag_unknown_warning_option=yes
5060else
5061  xorg_cv_cc_flag_unknown_warning_option=no
5062fi
5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064fi
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5068	CFLAGS="$xorg_testset_save_CFLAGS"
5069fi
5070
5071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074	fi
5075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h.  */
5083int i;
5084_ACEOF
5085if ac_fn_c_try_compile "$LINENO"; then :
5086  xorg_cv_cc_flag_unused_command_line_argument=yes
5087else
5088  xorg_cv_cc_flag_unused_command_line_argument=no
5089fi
5090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091fi
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5095	CFLAGS="$xorg_testset_save_CFLAGS"
5096fi
5097
5098found="no"
5099
5100	if test $found = "no" ; then
5101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103		fi
5104
5105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5107		fi
5108
5109		CFLAGS="$CFLAGS -Wpointer-arith"
5110
5111		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5112$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5113		cacheid=xorg_cv_cc_flag__Wpointer_arith
5114		if eval \${$cacheid+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h.  */
5119int i;
5120int
5121main ()
5122{
5123
5124  ;
5125  return 0;
5126}
5127_ACEOF
5128if ac_fn_c_try_link "$LINENO"; then :
5129  eval $cacheid=yes
5130else
5131  eval $cacheid=no
5132fi
5133rm -f core conftest.err conftest.$ac_objext \
5134    conftest$ac_exeext conftest.$ac_ext
5135fi
5136
5137
5138		CFLAGS="$xorg_testset_save_CFLAGS"
5139
5140		eval supported=\$$cacheid
5141		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5142$as_echo "$supported" >&6; }
5143		if test "$supported" = "yes" ; then
5144			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5145			found="yes"
5146		fi
5147	fi
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163xorg_testset_save_CFLAGS="$CFLAGS"
5164
5165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h.  */
5174int i;
5175_ACEOF
5176if ac_fn_c_try_compile "$LINENO"; then :
5177  xorg_cv_cc_flag_unknown_warning_option=yes
5178else
5179  xorg_cv_cc_flag_unknown_warning_option=no
5180fi
5181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5186	CFLAGS="$xorg_testset_save_CFLAGS"
5187fi
5188
5189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192	fi
5193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h.  */
5201int i;
5202_ACEOF
5203if ac_fn_c_try_compile "$LINENO"; then :
5204  xorg_cv_cc_flag_unused_command_line_argument=yes
5205else
5206  xorg_cv_cc_flag_unused_command_line_argument=no
5207fi
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5213	CFLAGS="$xorg_testset_save_CFLAGS"
5214fi
5215
5216found="no"
5217
5218	if test $found = "no" ; then
5219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221		fi
5222
5223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5225		fi
5226
5227		CFLAGS="$CFLAGS -Wmissing-declarations"
5228
5229		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5230$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5231		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5232		if eval \${$cacheid+:} false; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236/* end confdefs.h.  */
5237int i;
5238int
5239main ()
5240{
5241
5242  ;
5243  return 0;
5244}
5245_ACEOF
5246if ac_fn_c_try_link "$LINENO"; then :
5247  eval $cacheid=yes
5248else
5249  eval $cacheid=no
5250fi
5251rm -f core conftest.err conftest.$ac_objext \
5252    conftest$ac_exeext conftest.$ac_ext
5253fi
5254
5255
5256		CFLAGS="$xorg_testset_save_CFLAGS"
5257
5258		eval supported=\$$cacheid
5259		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5260$as_echo "$supported" >&6; }
5261		if test "$supported" = "yes" ; then
5262			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5263			found="yes"
5264		fi
5265	fi
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281xorg_testset_save_CFLAGS="$CFLAGS"
5282
5283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5284	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5288  $as_echo_n "(cached) " >&6
5289else
5290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h.  */
5292int i;
5293_ACEOF
5294if ac_fn_c_try_compile "$LINENO"; then :
5295  xorg_cv_cc_flag_unknown_warning_option=yes
5296else
5297  xorg_cv_cc_flag_unknown_warning_option=no
5298fi
5299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300fi
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5303	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5304	CFLAGS="$xorg_testset_save_CFLAGS"
5305fi
5306
5307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5308	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5309		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310	fi
5311	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h.  */
5319int i;
5320_ACEOF
5321if ac_fn_c_try_compile "$LINENO"; then :
5322  xorg_cv_cc_flag_unused_command_line_argument=yes
5323else
5324  xorg_cv_cc_flag_unused_command_line_argument=no
5325fi
5326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327fi
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5330	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5331	CFLAGS="$xorg_testset_save_CFLAGS"
5332fi
5333
5334found="no"
5335
5336	if test $found = "no" ; then
5337		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5338			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339		fi
5340
5341		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5342			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5343		fi
5344
5345		CFLAGS="$CFLAGS -Wformat=2"
5346
5347		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5348$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5349		cacheid=xorg_cv_cc_flag__Wformat_2
5350		if eval \${$cacheid+:} false; then :
5351  $as_echo_n "(cached) " >&6
5352else
5353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354/* end confdefs.h.  */
5355int i;
5356int
5357main ()
5358{
5359
5360  ;
5361  return 0;
5362}
5363_ACEOF
5364if ac_fn_c_try_link "$LINENO"; then :
5365  eval $cacheid=yes
5366else
5367  eval $cacheid=no
5368fi
5369rm -f core conftest.err conftest.$ac_objext \
5370    conftest$ac_exeext conftest.$ac_ext
5371fi
5372
5373
5374		CFLAGS="$xorg_testset_save_CFLAGS"
5375
5376		eval supported=\$$cacheid
5377		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5378$as_echo "$supported" >&6; }
5379		if test "$supported" = "yes" ; then
5380			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5381			found="yes"
5382		fi
5383	fi
5384
5385	if test $found = "no" ; then
5386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388		fi
5389
5390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392		fi
5393
5394		CFLAGS="$CFLAGS -Wformat"
5395
5396		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5397$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5398		cacheid=xorg_cv_cc_flag__Wformat
5399		if eval \${$cacheid+:} false; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h.  */
5404int i;
5405int
5406main ()
5407{
5408
5409  ;
5410  return 0;
5411}
5412_ACEOF
5413if ac_fn_c_try_link "$LINENO"; then :
5414  eval $cacheid=yes
5415else
5416  eval $cacheid=no
5417fi
5418rm -f core conftest.err conftest.$ac_objext \
5419    conftest$ac_exeext conftest.$ac_ext
5420fi
5421
5422
5423		CFLAGS="$xorg_testset_save_CFLAGS"
5424
5425		eval supported=\$$cacheid
5426		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5427$as_echo "$supported" >&6; }
5428		if test "$supported" = "yes" ; then
5429			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5430			found="yes"
5431		fi
5432	fi
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450xorg_testset_save_CFLAGS="$CFLAGS"
5451
5452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5457  $as_echo_n "(cached) " >&6
5458else
5459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h.  */
5461int i;
5462_ACEOF
5463if ac_fn_c_try_compile "$LINENO"; then :
5464  xorg_cv_cc_flag_unknown_warning_option=yes
5465else
5466  xorg_cv_cc_flag_unknown_warning_option=no
5467fi
5468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5473	CFLAGS="$xorg_testset_save_CFLAGS"
5474fi
5475
5476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479	fi
5480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h.  */
5488int i;
5489_ACEOF
5490if ac_fn_c_try_compile "$LINENO"; then :
5491  xorg_cv_cc_flag_unused_command_line_argument=yes
5492else
5493  xorg_cv_cc_flag_unused_command_line_argument=no
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496fi
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5500	CFLAGS="$xorg_testset_save_CFLAGS"
5501fi
5502
5503found="no"
5504
5505	if test $found = "no" ; then
5506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508		fi
5509
5510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5512		fi
5513
5514		CFLAGS="$CFLAGS -Wstrict-prototypes"
5515
5516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5517$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5518		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5519		if eval \${$cacheid+:} false; then :
5520  $as_echo_n "(cached) " >&6
5521else
5522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h.  */
5524int i;
5525int
5526main ()
5527{
5528
5529  ;
5530  return 0;
5531}
5532_ACEOF
5533if ac_fn_c_try_link "$LINENO"; then :
5534  eval $cacheid=yes
5535else
5536  eval $cacheid=no
5537fi
5538rm -f core conftest.err conftest.$ac_objext \
5539    conftest$ac_exeext conftest.$ac_ext
5540fi
5541
5542
5543		CFLAGS="$xorg_testset_save_CFLAGS"
5544
5545		eval supported=\$$cacheid
5546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5547$as_echo "$supported" >&6; }
5548		if test "$supported" = "yes" ; then
5549			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5550			found="yes"
5551		fi
5552	fi
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568xorg_testset_save_CFLAGS="$CFLAGS"
5569
5570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579int i;
5580_ACEOF
5581if ac_fn_c_try_compile "$LINENO"; then :
5582  xorg_cv_cc_flag_unknown_warning_option=yes
5583else
5584  xorg_cv_cc_flag_unknown_warning_option=no
5585fi
5586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5591	CFLAGS="$xorg_testset_save_CFLAGS"
5592fi
5593
5594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597	fi
5598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5602  $as_echo_n "(cached) " >&6
5603else
5604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h.  */
5606int i;
5607_ACEOF
5608if ac_fn_c_try_compile "$LINENO"; then :
5609  xorg_cv_cc_flag_unused_command_line_argument=yes
5610else
5611  xorg_cv_cc_flag_unused_command_line_argument=no
5612fi
5613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5618	CFLAGS="$xorg_testset_save_CFLAGS"
5619fi
5620
5621found="no"
5622
5623	if test $found = "no" ; then
5624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626		fi
5627
5628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630		fi
5631
5632		CFLAGS="$CFLAGS -Wmissing-prototypes"
5633
5634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5635$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5636		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5637		if eval \${$cacheid+:} false; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h.  */
5642int i;
5643int
5644main ()
5645{
5646
5647  ;
5648  return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_link "$LINENO"; then :
5652  eval $cacheid=yes
5653else
5654  eval $cacheid=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext \
5657    conftest$ac_exeext conftest.$ac_ext
5658fi
5659
5660
5661		CFLAGS="$xorg_testset_save_CFLAGS"
5662
5663		eval supported=\$$cacheid
5664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5665$as_echo "$supported" >&6; }
5666		if test "$supported" = "yes" ; then
5667			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5668			found="yes"
5669		fi
5670	fi
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686xorg_testset_save_CFLAGS="$CFLAGS"
5687
5688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h.  */
5697int i;
5698_ACEOF
5699if ac_fn_c_try_compile "$LINENO"; then :
5700  xorg_cv_cc_flag_unknown_warning_option=yes
5701else
5702  xorg_cv_cc_flag_unknown_warning_option=no
5703fi
5704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705fi
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5709	CFLAGS="$xorg_testset_save_CFLAGS"
5710fi
5711
5712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715	fi
5716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h.  */
5724int i;
5725_ACEOF
5726if ac_fn_c_try_compile "$LINENO"; then :
5727  xorg_cv_cc_flag_unused_command_line_argument=yes
5728else
5729  xorg_cv_cc_flag_unused_command_line_argument=no
5730fi
5731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732fi
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5736	CFLAGS="$xorg_testset_save_CFLAGS"
5737fi
5738
5739found="no"
5740
5741	if test $found = "no" ; then
5742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744		fi
5745
5746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5748		fi
5749
5750		CFLAGS="$CFLAGS -Wnested-externs"
5751
5752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5753$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5754		cacheid=xorg_cv_cc_flag__Wnested_externs
5755		if eval \${$cacheid+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760int i;
5761int
5762main ()
5763{
5764
5765  ;
5766  return 0;
5767}
5768_ACEOF
5769if ac_fn_c_try_link "$LINENO"; then :
5770  eval $cacheid=yes
5771else
5772  eval $cacheid=no
5773fi
5774rm -f core conftest.err conftest.$ac_objext \
5775    conftest$ac_exeext conftest.$ac_ext
5776fi
5777
5778
5779		CFLAGS="$xorg_testset_save_CFLAGS"
5780
5781		eval supported=\$$cacheid
5782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5783$as_echo "$supported" >&6; }
5784		if test "$supported" = "yes" ; then
5785			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5786			found="yes"
5787		fi
5788	fi
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804xorg_testset_save_CFLAGS="$CFLAGS"
5805
5806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815int i;
5816_ACEOF
5817if ac_fn_c_try_compile "$LINENO"; then :
5818  xorg_cv_cc_flag_unknown_warning_option=yes
5819else
5820  xorg_cv_cc_flag_unknown_warning_option=no
5821fi
5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823fi
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5827	CFLAGS="$xorg_testset_save_CFLAGS"
5828fi
5829
5830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833	fi
5834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5838  $as_echo_n "(cached) " >&6
5839else
5840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h.  */
5842int i;
5843_ACEOF
5844if ac_fn_c_try_compile "$LINENO"; then :
5845  xorg_cv_cc_flag_unused_command_line_argument=yes
5846else
5847  xorg_cv_cc_flag_unused_command_line_argument=no
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850fi
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5854	CFLAGS="$xorg_testset_save_CFLAGS"
5855fi
5856
5857found="no"
5858
5859	if test $found = "no" ; then
5860		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862		fi
5863
5864		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5866		fi
5867
5868		CFLAGS="$CFLAGS -Wbad-function-cast"
5869
5870		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5871$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5872		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5873		if eval \${$cacheid+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877/* end confdefs.h.  */
5878int i;
5879int
5880main ()
5881{
5882
5883  ;
5884  return 0;
5885}
5886_ACEOF
5887if ac_fn_c_try_link "$LINENO"; then :
5888  eval $cacheid=yes
5889else
5890  eval $cacheid=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext \
5893    conftest$ac_exeext conftest.$ac_ext
5894fi
5895
5896
5897		CFLAGS="$xorg_testset_save_CFLAGS"
5898
5899		eval supported=\$$cacheid
5900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5901$as_echo "$supported" >&6; }
5902		if test "$supported" = "yes" ; then
5903			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5904			found="yes"
5905		fi
5906	fi
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922xorg_testset_save_CFLAGS="$CFLAGS"
5923
5924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932/* end confdefs.h.  */
5933int i;
5934_ACEOF
5935if ac_fn_c_try_compile "$LINENO"; then :
5936  xorg_cv_cc_flag_unknown_warning_option=yes
5937else
5938  xorg_cv_cc_flag_unknown_warning_option=no
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941fi
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5945	CFLAGS="$xorg_testset_save_CFLAGS"
5946fi
5947
5948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951	fi
5952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5956  $as_echo_n "(cached) " >&6
5957else
5958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959/* end confdefs.h.  */
5960int i;
5961_ACEOF
5962if ac_fn_c_try_compile "$LINENO"; then :
5963  xorg_cv_cc_flag_unused_command_line_argument=yes
5964else
5965  xorg_cv_cc_flag_unused_command_line_argument=no
5966fi
5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968fi
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5972	CFLAGS="$xorg_testset_save_CFLAGS"
5973fi
5974
5975found="no"
5976
5977	if test $found = "no" ; then
5978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5980		fi
5981
5982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5984		fi
5985
5986		CFLAGS="$CFLAGS -Wold-style-definition"
5987
5988		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5989$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5990		cacheid=xorg_cv_cc_flag__Wold_style_definition
5991		if eval \${$cacheid+:} false; then :
5992  $as_echo_n "(cached) " >&6
5993else
5994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995/* end confdefs.h.  */
5996int i;
5997int
5998main ()
5999{
6000
6001  ;
6002  return 0;
6003}
6004_ACEOF
6005if ac_fn_c_try_link "$LINENO"; then :
6006  eval $cacheid=yes
6007else
6008  eval $cacheid=no
6009fi
6010rm -f core conftest.err conftest.$ac_objext \
6011    conftest$ac_exeext conftest.$ac_ext
6012fi
6013
6014
6015		CFLAGS="$xorg_testset_save_CFLAGS"
6016
6017		eval supported=\$$cacheid
6018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6019$as_echo "$supported" >&6; }
6020		if test "$supported" = "yes" ; then
6021			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6022			found="yes"
6023		fi
6024	fi
6025
6026	if test $found = "no" ; then
6027		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029		fi
6030
6031		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6033		fi
6034
6035		CFLAGS="$CFLAGS -fd"
6036
6037		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6038$as_echo_n "checking if $CC supports -fd... " >&6; }
6039		cacheid=xorg_cv_cc_flag__fd
6040		if eval \${$cacheid+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h.  */
6045int i;
6046int
6047main ()
6048{
6049
6050  ;
6051  return 0;
6052}
6053_ACEOF
6054if ac_fn_c_try_link "$LINENO"; then :
6055  eval $cacheid=yes
6056else
6057  eval $cacheid=no
6058fi
6059rm -f core conftest.err conftest.$ac_objext \
6060    conftest$ac_exeext conftest.$ac_ext
6061fi
6062
6063
6064		CFLAGS="$xorg_testset_save_CFLAGS"
6065
6066		eval supported=\$$cacheid
6067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6068$as_echo "$supported" >&6; }
6069		if test "$supported" = "yes" ; then
6070			BASE_CFLAGS="$BASE_CFLAGS -fd"
6071			found="yes"
6072		fi
6073	fi
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089xorg_testset_save_CFLAGS="$CFLAGS"
6090
6091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6096  $as_echo_n "(cached) " >&6
6097else
6098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099/* end confdefs.h.  */
6100int i;
6101_ACEOF
6102if ac_fn_c_try_compile "$LINENO"; then :
6103  xorg_cv_cc_flag_unknown_warning_option=yes
6104else
6105  xorg_cv_cc_flag_unknown_warning_option=no
6106fi
6107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108fi
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6112	CFLAGS="$xorg_testset_save_CFLAGS"
6113fi
6114
6115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6118	fi
6119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6123  $as_echo_n "(cached) " >&6
6124else
6125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h.  */
6127int i;
6128_ACEOF
6129if ac_fn_c_try_compile "$LINENO"; then :
6130  xorg_cv_cc_flag_unused_command_line_argument=yes
6131else
6132  xorg_cv_cc_flag_unused_command_line_argument=no
6133fi
6134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135fi
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6138	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6139	CFLAGS="$xorg_testset_save_CFLAGS"
6140fi
6141
6142found="no"
6143
6144	if test $found = "no" ; then
6145		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6147		fi
6148
6149		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6151		fi
6152
6153		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6154
6155		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6156$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6157		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6158		if eval \${$cacheid+:} false; then :
6159  $as_echo_n "(cached) " >&6
6160else
6161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h.  */
6163int i;
6164int
6165main ()
6166{
6167
6168  ;
6169  return 0;
6170}
6171_ACEOF
6172if ac_fn_c_try_link "$LINENO"; then :
6173  eval $cacheid=yes
6174else
6175  eval $cacheid=no
6176fi
6177rm -f core conftest.err conftest.$ac_objext \
6178    conftest$ac_exeext conftest.$ac_ext
6179fi
6180
6181
6182		CFLAGS="$xorg_testset_save_CFLAGS"
6183
6184		eval supported=\$$cacheid
6185		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6186$as_echo "$supported" >&6; }
6187		if test "$supported" = "yes" ; then
6188			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6189			found="yes"
6190		fi
6191	fi
6192
6193
6194
6195
6196
6197# This chunk adds additional warnings that could catch undesired effects.
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211xorg_testset_save_CFLAGS="$CFLAGS"
6212
6213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h.  */
6222int i;
6223_ACEOF
6224if ac_fn_c_try_compile "$LINENO"; then :
6225  xorg_cv_cc_flag_unknown_warning_option=yes
6226else
6227  xorg_cv_cc_flag_unknown_warning_option=no
6228fi
6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6234	CFLAGS="$xorg_testset_save_CFLAGS"
6235fi
6236
6237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240	fi
6241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6245  $as_echo_n "(cached) " >&6
6246else
6247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248/* end confdefs.h.  */
6249int i;
6250_ACEOF
6251if ac_fn_c_try_compile "$LINENO"; then :
6252  xorg_cv_cc_flag_unused_command_line_argument=yes
6253else
6254  xorg_cv_cc_flag_unused_command_line_argument=no
6255fi
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257fi
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6261	CFLAGS="$xorg_testset_save_CFLAGS"
6262fi
6263
6264found="no"
6265
6266	if test $found = "no" ; then
6267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6269		fi
6270
6271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6273		fi
6274
6275		CFLAGS="$CFLAGS -Wunused"
6276
6277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6278$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6279		cacheid=xorg_cv_cc_flag__Wunused
6280		if eval \${$cacheid+:} false; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285int i;
6286int
6287main ()
6288{
6289
6290  ;
6291  return 0;
6292}
6293_ACEOF
6294if ac_fn_c_try_link "$LINENO"; then :
6295  eval $cacheid=yes
6296else
6297  eval $cacheid=no
6298fi
6299rm -f core conftest.err conftest.$ac_objext \
6300    conftest$ac_exeext conftest.$ac_ext
6301fi
6302
6303
6304		CFLAGS="$xorg_testset_save_CFLAGS"
6305
6306		eval supported=\$$cacheid
6307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6308$as_echo "$supported" >&6; }
6309		if test "$supported" = "yes" ; then
6310			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6311			found="yes"
6312		fi
6313	fi
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329xorg_testset_save_CFLAGS="$CFLAGS"
6330
6331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340int i;
6341_ACEOF
6342if ac_fn_c_try_compile "$LINENO"; then :
6343  xorg_cv_cc_flag_unknown_warning_option=yes
6344else
6345  xorg_cv_cc_flag_unknown_warning_option=no
6346fi
6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348fi
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6352	CFLAGS="$xorg_testset_save_CFLAGS"
6353fi
6354
6355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358	fi
6359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367int i;
6368_ACEOF
6369if ac_fn_c_try_compile "$LINENO"; then :
6370  xorg_cv_cc_flag_unused_command_line_argument=yes
6371else
6372  xorg_cv_cc_flag_unused_command_line_argument=no
6373fi
6374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375fi
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6379	CFLAGS="$xorg_testset_save_CFLAGS"
6380fi
6381
6382found="no"
6383
6384	if test $found = "no" ; then
6385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6387		fi
6388
6389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6391		fi
6392
6393		CFLAGS="$CFLAGS -Wuninitialized"
6394
6395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6396$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6397		cacheid=xorg_cv_cc_flag__Wuninitialized
6398		if eval \${$cacheid+:} false; then :
6399  $as_echo_n "(cached) " >&6
6400else
6401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402/* end confdefs.h.  */
6403int i;
6404int
6405main ()
6406{
6407
6408  ;
6409  return 0;
6410}
6411_ACEOF
6412if ac_fn_c_try_link "$LINENO"; then :
6413  eval $cacheid=yes
6414else
6415  eval $cacheid=no
6416fi
6417rm -f core conftest.err conftest.$ac_objext \
6418    conftest$ac_exeext conftest.$ac_ext
6419fi
6420
6421
6422		CFLAGS="$xorg_testset_save_CFLAGS"
6423
6424		eval supported=\$$cacheid
6425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6426$as_echo "$supported" >&6; }
6427		if test "$supported" = "yes" ; then
6428			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6429			found="yes"
6430		fi
6431	fi
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447xorg_testset_save_CFLAGS="$CFLAGS"
6448
6449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457/* end confdefs.h.  */
6458int i;
6459_ACEOF
6460if ac_fn_c_try_compile "$LINENO"; then :
6461  xorg_cv_cc_flag_unknown_warning_option=yes
6462else
6463  xorg_cv_cc_flag_unknown_warning_option=no
6464fi
6465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466fi
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6470	CFLAGS="$xorg_testset_save_CFLAGS"
6471fi
6472
6473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476	fi
6477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h.  */
6485int i;
6486_ACEOF
6487if ac_fn_c_try_compile "$LINENO"; then :
6488  xorg_cv_cc_flag_unused_command_line_argument=yes
6489else
6490  xorg_cv_cc_flag_unused_command_line_argument=no
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493fi
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6497	CFLAGS="$xorg_testset_save_CFLAGS"
6498fi
6499
6500found="no"
6501
6502	if test $found = "no" ; then
6503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6505		fi
6506
6507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6509		fi
6510
6511		CFLAGS="$CFLAGS -Wshadow"
6512
6513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6514$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6515		cacheid=xorg_cv_cc_flag__Wshadow
6516		if eval \${$cacheid+:} false; then :
6517  $as_echo_n "(cached) " >&6
6518else
6519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h.  */
6521int i;
6522int
6523main ()
6524{
6525
6526  ;
6527  return 0;
6528}
6529_ACEOF
6530if ac_fn_c_try_link "$LINENO"; then :
6531  eval $cacheid=yes
6532else
6533  eval $cacheid=no
6534fi
6535rm -f core conftest.err conftest.$ac_objext \
6536    conftest$ac_exeext conftest.$ac_ext
6537fi
6538
6539
6540		CFLAGS="$xorg_testset_save_CFLAGS"
6541
6542		eval supported=\$$cacheid
6543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6544$as_echo "$supported" >&6; }
6545		if test "$supported" = "yes" ; then
6546			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6547			found="yes"
6548		fi
6549	fi
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565xorg_testset_save_CFLAGS="$CFLAGS"
6566
6567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576int i;
6577_ACEOF
6578if ac_fn_c_try_compile "$LINENO"; then :
6579  xorg_cv_cc_flag_unknown_warning_option=yes
6580else
6581  xorg_cv_cc_flag_unknown_warning_option=no
6582fi
6583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584fi
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6588	CFLAGS="$xorg_testset_save_CFLAGS"
6589fi
6590
6591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594	fi
6595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603int i;
6604_ACEOF
6605if ac_fn_c_try_compile "$LINENO"; then :
6606  xorg_cv_cc_flag_unused_command_line_argument=yes
6607else
6608  xorg_cv_cc_flag_unused_command_line_argument=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611fi
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618found="no"
6619
6620	if test $found = "no" ; then
6621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6623		fi
6624
6625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6627		fi
6628
6629		CFLAGS="$CFLAGS -Wmissing-noreturn"
6630
6631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6632$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6633		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6634		if eval \${$cacheid+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h.  */
6639int i;
6640int
6641main ()
6642{
6643
6644  ;
6645  return 0;
6646}
6647_ACEOF
6648if ac_fn_c_try_link "$LINENO"; then :
6649  eval $cacheid=yes
6650else
6651  eval $cacheid=no
6652fi
6653rm -f core conftest.err conftest.$ac_objext \
6654    conftest$ac_exeext conftest.$ac_ext
6655fi
6656
6657
6658		CFLAGS="$xorg_testset_save_CFLAGS"
6659
6660		eval supported=\$$cacheid
6661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6662$as_echo "$supported" >&6; }
6663		if test "$supported" = "yes" ; then
6664			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6665			found="yes"
6666		fi
6667	fi
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683xorg_testset_save_CFLAGS="$CFLAGS"
6684
6685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h.  */
6694int i;
6695_ACEOF
6696if ac_fn_c_try_compile "$LINENO"; then :
6697  xorg_cv_cc_flag_unknown_warning_option=yes
6698else
6699  xorg_cv_cc_flag_unknown_warning_option=no
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6706	CFLAGS="$xorg_testset_save_CFLAGS"
6707fi
6708
6709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712	fi
6713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721int i;
6722_ACEOF
6723if ac_fn_c_try_compile "$LINENO"; then :
6724  xorg_cv_cc_flag_unused_command_line_argument=yes
6725else
6726  xorg_cv_cc_flag_unused_command_line_argument=no
6727fi
6728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729fi
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6733	CFLAGS="$xorg_testset_save_CFLAGS"
6734fi
6735
6736found="no"
6737
6738	if test $found = "no" ; then
6739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741		fi
6742
6743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6745		fi
6746
6747		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6748
6749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6750$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6751		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6752		if eval \${$cacheid+:} false; then :
6753  $as_echo_n "(cached) " >&6
6754else
6755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757int i;
6758int
6759main ()
6760{
6761
6762  ;
6763  return 0;
6764}
6765_ACEOF
6766if ac_fn_c_try_link "$LINENO"; then :
6767  eval $cacheid=yes
6768else
6769  eval $cacheid=no
6770fi
6771rm -f core conftest.err conftest.$ac_objext \
6772    conftest$ac_exeext conftest.$ac_ext
6773fi
6774
6775
6776		CFLAGS="$xorg_testset_save_CFLAGS"
6777
6778		eval supported=\$$cacheid
6779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6780$as_echo "$supported" >&6; }
6781		if test "$supported" = "yes" ; then
6782			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6783			found="yes"
6784		fi
6785	fi
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801xorg_testset_save_CFLAGS="$CFLAGS"
6802
6803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6808  $as_echo_n "(cached) " >&6
6809else
6810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812int i;
6813_ACEOF
6814if ac_fn_c_try_compile "$LINENO"; then :
6815  xorg_cv_cc_flag_unknown_warning_option=yes
6816else
6817  xorg_cv_cc_flag_unknown_warning_option=no
6818fi
6819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6824	CFLAGS="$xorg_testset_save_CFLAGS"
6825fi
6826
6827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830	fi
6831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6835  $as_echo_n "(cached) " >&6
6836else
6837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838/* end confdefs.h.  */
6839int i;
6840_ACEOF
6841if ac_fn_c_try_compile "$LINENO"; then :
6842  xorg_cv_cc_flag_unused_command_line_argument=yes
6843else
6844  xorg_cv_cc_flag_unused_command_line_argument=no
6845fi
6846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847fi
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6851	CFLAGS="$xorg_testset_save_CFLAGS"
6852fi
6853
6854found="no"
6855
6856	if test $found = "no" ; then
6857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859		fi
6860
6861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6863		fi
6864
6865		CFLAGS="$CFLAGS -Wredundant-decls"
6866
6867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6868$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6869		cacheid=xorg_cv_cc_flag__Wredundant_decls
6870		if eval \${$cacheid+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874/* end confdefs.h.  */
6875int i;
6876int
6877main ()
6878{
6879
6880  ;
6881  return 0;
6882}
6883_ACEOF
6884if ac_fn_c_try_link "$LINENO"; then :
6885  eval $cacheid=yes
6886else
6887  eval $cacheid=no
6888fi
6889rm -f core conftest.err conftest.$ac_objext \
6890    conftest$ac_exeext conftest.$ac_ext
6891fi
6892
6893
6894		CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896		eval supported=\$$cacheid
6897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898$as_echo "$supported" >&6; }
6899		if test "$supported" = "yes" ; then
6900			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6901			found="yes"
6902		fi
6903	fi
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919xorg_testset_save_CFLAGS="$CFLAGS"
6920
6921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929/* end confdefs.h.  */
6930int i;
6931_ACEOF
6932if ac_fn_c_try_compile "$LINENO"; then :
6933  xorg_cv_cc_flag_unknown_warning_option=yes
6934else
6935  xorg_cv_cc_flag_unknown_warning_option=no
6936fi
6937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938fi
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6942	CFLAGS="$xorg_testset_save_CFLAGS"
6943fi
6944
6945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948	fi
6949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956/* end confdefs.h.  */
6957int i;
6958_ACEOF
6959if ac_fn_c_try_compile "$LINENO"; then :
6960  xorg_cv_cc_flag_unused_command_line_argument=yes
6961else
6962  xorg_cv_cc_flag_unused_command_line_argument=no
6963fi
6964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965fi
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6969	CFLAGS="$xorg_testset_save_CFLAGS"
6970fi
6971
6972found="no"
6973
6974	if test $found = "no" ; then
6975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977		fi
6978
6979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6981		fi
6982
6983		CFLAGS="$CFLAGS -Wlogical-op"
6984
6985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6986$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6987		cacheid=xorg_cv_cc_flag__Wlogical_op
6988		if eval \${$cacheid+:} false; then :
6989  $as_echo_n "(cached) " >&6
6990else
6991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h.  */
6993int i;
6994int
6995main ()
6996{
6997
6998  ;
6999  return 0;
7000}
7001_ACEOF
7002if ac_fn_c_try_link "$LINENO"; then :
7003  eval $cacheid=yes
7004else
7005  eval $cacheid=no
7006fi
7007rm -f core conftest.err conftest.$ac_objext \
7008    conftest$ac_exeext conftest.$ac_ext
7009fi
7010
7011
7012		CFLAGS="$xorg_testset_save_CFLAGS"
7013
7014		eval supported=\$$cacheid
7015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7016$as_echo "$supported" >&6; }
7017		if test "$supported" = "yes" ; then
7018			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7019			found="yes"
7020		fi
7021	fi
7022
7023
7024
7025# These are currently disabled because they are noisy.  They will be enabled
7026# in the future once the codebase is sufficiently modernized to silence
7027# them.  For now, I don't want them to drown out the other warnings.
7028# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7029# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7030# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7031
7032# Turn some warnings into errors, so we don't accidently get successful builds
7033# when there are problems that should be fixed.
7034
7035if test "x$SELECTIVE_WERROR" = "xyes" ; then
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049xorg_testset_save_CFLAGS="$CFLAGS"
7050
7051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7052	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7056  $as_echo_n "(cached) " >&6
7057else
7058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060int i;
7061_ACEOF
7062if ac_fn_c_try_compile "$LINENO"; then :
7063  xorg_cv_cc_flag_unknown_warning_option=yes
7064else
7065  xorg_cv_cc_flag_unknown_warning_option=no
7066fi
7067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068fi
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7071	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7072	CFLAGS="$xorg_testset_save_CFLAGS"
7073fi
7074
7075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7076	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7077		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7078	fi
7079	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7083  $as_echo_n "(cached) " >&6
7084else
7085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086/* end confdefs.h.  */
7087int i;
7088_ACEOF
7089if ac_fn_c_try_compile "$LINENO"; then :
7090  xorg_cv_cc_flag_unused_command_line_argument=yes
7091else
7092  xorg_cv_cc_flag_unused_command_line_argument=no
7093fi
7094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095fi
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7098	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7099	CFLAGS="$xorg_testset_save_CFLAGS"
7100fi
7101
7102found="no"
7103
7104	if test $found = "no" ; then
7105		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7106			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107		fi
7108
7109		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7110			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7111		fi
7112
7113		CFLAGS="$CFLAGS -Werror=implicit"
7114
7115		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7116$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7117		cacheid=xorg_cv_cc_flag__Werror_implicit
7118		if eval \${$cacheid+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123int i;
7124int
7125main ()
7126{
7127
7128  ;
7129  return 0;
7130}
7131_ACEOF
7132if ac_fn_c_try_link "$LINENO"; then :
7133  eval $cacheid=yes
7134else
7135  eval $cacheid=no
7136fi
7137rm -f core conftest.err conftest.$ac_objext \
7138    conftest$ac_exeext conftest.$ac_ext
7139fi
7140
7141
7142		CFLAGS="$xorg_testset_save_CFLAGS"
7143
7144		eval supported=\$$cacheid
7145		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7146$as_echo "$supported" >&6; }
7147		if test "$supported" = "yes" ; then
7148			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7149			found="yes"
7150		fi
7151	fi
7152
7153	if test $found = "no" ; then
7154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156		fi
7157
7158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7160		fi
7161
7162		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7163
7164		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7165$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7166		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7167		if eval \${$cacheid+:} false; then :
7168  $as_echo_n "(cached) " >&6
7169else
7170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h.  */
7172int i;
7173int
7174main ()
7175{
7176
7177  ;
7178  return 0;
7179}
7180_ACEOF
7181if ac_fn_c_try_link "$LINENO"; then :
7182  eval $cacheid=yes
7183else
7184  eval $cacheid=no
7185fi
7186rm -f core conftest.err conftest.$ac_objext \
7187    conftest$ac_exeext conftest.$ac_ext
7188fi
7189
7190
7191		CFLAGS="$xorg_testset_save_CFLAGS"
7192
7193		eval supported=\$$cacheid
7194		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7195$as_echo "$supported" >&6; }
7196		if test "$supported" = "yes" ; then
7197			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7198			found="yes"
7199		fi
7200	fi
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216xorg_testset_save_CFLAGS="$CFLAGS"
7217
7218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7222if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7223  $as_echo_n "(cached) " >&6
7224else
7225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h.  */
7227int i;
7228_ACEOF
7229if ac_fn_c_try_compile "$LINENO"; then :
7230  xorg_cv_cc_flag_unknown_warning_option=yes
7231else
7232  xorg_cv_cc_flag_unknown_warning_option=no
7233fi
7234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235fi
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7237$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7239	CFLAGS="$xorg_testset_save_CFLAGS"
7240fi
7241
7242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245	fi
7246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7249if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7250  $as_echo_n "(cached) " >&6
7251else
7252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253/* end confdefs.h.  */
7254int i;
7255_ACEOF
7256if ac_fn_c_try_compile "$LINENO"; then :
7257  xorg_cv_cc_flag_unused_command_line_argument=yes
7258else
7259  xorg_cv_cc_flag_unused_command_line_argument=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262fi
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7264$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7265	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7266	CFLAGS="$xorg_testset_save_CFLAGS"
7267fi
7268
7269found="no"
7270
7271	if test $found = "no" ; then
7272		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7274		fi
7275
7276		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7278		fi
7279
7280		CFLAGS="$CFLAGS -Werror=nonnull"
7281
7282		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7283$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7284		cacheid=xorg_cv_cc_flag__Werror_nonnull
7285		if eval \${$cacheid+:} false; then :
7286  $as_echo_n "(cached) " >&6
7287else
7288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289/* end confdefs.h.  */
7290int i;
7291int
7292main ()
7293{
7294
7295  ;
7296  return 0;
7297}
7298_ACEOF
7299if ac_fn_c_try_link "$LINENO"; then :
7300  eval $cacheid=yes
7301else
7302  eval $cacheid=no
7303fi
7304rm -f core conftest.err conftest.$ac_objext \
7305    conftest$ac_exeext conftest.$ac_ext
7306fi
7307
7308
7309		CFLAGS="$xorg_testset_save_CFLAGS"
7310
7311		eval supported=\$$cacheid
7312		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7313$as_echo "$supported" >&6; }
7314		if test "$supported" = "yes" ; then
7315			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7316			found="yes"
7317		fi
7318	fi
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334xorg_testset_save_CFLAGS="$CFLAGS"
7335
7336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7339$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7340if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7341  $as_echo_n "(cached) " >&6
7342else
7343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344/* end confdefs.h.  */
7345int i;
7346_ACEOF
7347if ac_fn_c_try_compile "$LINENO"; then :
7348  xorg_cv_cc_flag_unknown_warning_option=yes
7349else
7350  xorg_cv_cc_flag_unknown_warning_option=no
7351fi
7352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353fi
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7355$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7356	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7357	CFLAGS="$xorg_testset_save_CFLAGS"
7358fi
7359
7360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7361	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363	fi
7364	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7366$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7367if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372int i;
7373_ACEOF
7374if ac_fn_c_try_compile "$LINENO"; then :
7375  xorg_cv_cc_flag_unused_command_line_argument=yes
7376else
7377  xorg_cv_cc_flag_unused_command_line_argument=no
7378fi
7379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380fi
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7382$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7384	CFLAGS="$xorg_testset_save_CFLAGS"
7385fi
7386
7387found="no"
7388
7389	if test $found = "no" ; then
7390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7392		fi
7393
7394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7396		fi
7397
7398		CFLAGS="$CFLAGS -Werror=init-self"
7399
7400		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7401$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7402		cacheid=xorg_cv_cc_flag__Werror_init_self
7403		if eval \${$cacheid+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407/* end confdefs.h.  */
7408int i;
7409int
7410main ()
7411{
7412
7413  ;
7414  return 0;
7415}
7416_ACEOF
7417if ac_fn_c_try_link "$LINENO"; then :
7418  eval $cacheid=yes
7419else
7420  eval $cacheid=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext \
7423    conftest$ac_exeext conftest.$ac_ext
7424fi
7425
7426
7427		CFLAGS="$xorg_testset_save_CFLAGS"
7428
7429		eval supported=\$$cacheid
7430		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7431$as_echo "$supported" >&6; }
7432		if test "$supported" = "yes" ; then
7433			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7434			found="yes"
7435		fi
7436	fi
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452xorg_testset_save_CFLAGS="$CFLAGS"
7453
7454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7458if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7459  $as_echo_n "(cached) " >&6
7460else
7461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h.  */
7463int i;
7464_ACEOF
7465if ac_fn_c_try_compile "$LINENO"; then :
7466  xorg_cv_cc_flag_unknown_warning_option=yes
7467else
7468  xorg_cv_cc_flag_unknown_warning_option=no
7469fi
7470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471fi
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7473$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7474	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7475	CFLAGS="$xorg_testset_save_CFLAGS"
7476fi
7477
7478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7479	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7480		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481	fi
7482	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7484$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7485if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7486  $as_echo_n "(cached) " >&6
7487else
7488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h.  */
7490int i;
7491_ACEOF
7492if ac_fn_c_try_compile "$LINENO"; then :
7493  xorg_cv_cc_flag_unused_command_line_argument=yes
7494else
7495  xorg_cv_cc_flag_unused_command_line_argument=no
7496fi
7497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7500$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7502	CFLAGS="$xorg_testset_save_CFLAGS"
7503fi
7504
7505found="no"
7506
7507	if test $found = "no" ; then
7508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510		fi
7511
7512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7514		fi
7515
7516		CFLAGS="$CFLAGS -Werror=main"
7517
7518		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7519$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7520		cacheid=xorg_cv_cc_flag__Werror_main
7521		if eval \${$cacheid+:} false; then :
7522  $as_echo_n "(cached) " >&6
7523else
7524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525/* end confdefs.h.  */
7526int i;
7527int
7528main ()
7529{
7530
7531  ;
7532  return 0;
7533}
7534_ACEOF
7535if ac_fn_c_try_link "$LINENO"; then :
7536  eval $cacheid=yes
7537else
7538  eval $cacheid=no
7539fi
7540rm -f core conftest.err conftest.$ac_objext \
7541    conftest$ac_exeext conftest.$ac_ext
7542fi
7543
7544
7545		CFLAGS="$xorg_testset_save_CFLAGS"
7546
7547		eval supported=\$$cacheid
7548		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7549$as_echo "$supported" >&6; }
7550		if test "$supported" = "yes" ; then
7551			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7552			found="yes"
7553		fi
7554	fi
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570xorg_testset_save_CFLAGS="$CFLAGS"
7571
7572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h.  */
7581int i;
7582_ACEOF
7583if ac_fn_c_try_compile "$LINENO"; then :
7584  xorg_cv_cc_flag_unknown_warning_option=yes
7585else
7586  xorg_cv_cc_flag_unknown_warning_option=no
7587fi
7588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589fi
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7592	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7593	CFLAGS="$xorg_testset_save_CFLAGS"
7594fi
7595
7596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7597	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7598		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599	fi
7600	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607/* end confdefs.h.  */
7608int i;
7609_ACEOF
7610if ac_fn_c_try_compile "$LINENO"; then :
7611  xorg_cv_cc_flag_unused_command_line_argument=yes
7612else
7613  xorg_cv_cc_flag_unused_command_line_argument=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7620	CFLAGS="$xorg_testset_save_CFLAGS"
7621fi
7622
7623found="no"
7624
7625	if test $found = "no" ; then
7626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7628		fi
7629
7630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7632		fi
7633
7634		CFLAGS="$CFLAGS -Werror=missing-braces"
7635
7636		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7637$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7638		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7639		if eval \${$cacheid+:} false; then :
7640  $as_echo_n "(cached) " >&6
7641else
7642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h.  */
7644int i;
7645int
7646main ()
7647{
7648
7649  ;
7650  return 0;
7651}
7652_ACEOF
7653if ac_fn_c_try_link "$LINENO"; then :
7654  eval $cacheid=yes
7655else
7656  eval $cacheid=no
7657fi
7658rm -f core conftest.err conftest.$ac_objext \
7659    conftest$ac_exeext conftest.$ac_ext
7660fi
7661
7662
7663		CFLAGS="$xorg_testset_save_CFLAGS"
7664
7665		eval supported=\$$cacheid
7666		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7667$as_echo "$supported" >&6; }
7668		if test "$supported" = "yes" ; then
7669			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7670			found="yes"
7671		fi
7672	fi
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688xorg_testset_save_CFLAGS="$CFLAGS"
7689
7690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h.  */
7699int i;
7700_ACEOF
7701if ac_fn_c_try_compile "$LINENO"; then :
7702  xorg_cv_cc_flag_unknown_warning_option=yes
7703else
7704  xorg_cv_cc_flag_unknown_warning_option=no
7705fi
7706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707fi
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7711	CFLAGS="$xorg_testset_save_CFLAGS"
7712fi
7713
7714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717	fi
7718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7722  $as_echo_n "(cached) " >&6
7723else
7724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h.  */
7726int i;
7727_ACEOF
7728if ac_fn_c_try_compile "$LINENO"; then :
7729  xorg_cv_cc_flag_unused_command_line_argument=yes
7730else
7731  xorg_cv_cc_flag_unused_command_line_argument=no
7732fi
7733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734fi
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7737	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7738	CFLAGS="$xorg_testset_save_CFLAGS"
7739fi
7740
7741found="no"
7742
7743	if test $found = "no" ; then
7744		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7745			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7746		fi
7747
7748		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7749			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7750		fi
7751
7752		CFLAGS="$CFLAGS -Werror=sequence-point"
7753
7754		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7755$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7756		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7757		if eval \${$cacheid+:} false; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762int i;
7763int
7764main ()
7765{
7766
7767  ;
7768  return 0;
7769}
7770_ACEOF
7771if ac_fn_c_try_link "$LINENO"; then :
7772  eval $cacheid=yes
7773else
7774  eval $cacheid=no
7775fi
7776rm -f core conftest.err conftest.$ac_objext \
7777    conftest$ac_exeext conftest.$ac_ext
7778fi
7779
7780
7781		CFLAGS="$xorg_testset_save_CFLAGS"
7782
7783		eval supported=\$$cacheid
7784		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7785$as_echo "$supported" >&6; }
7786		if test "$supported" = "yes" ; then
7787			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7788			found="yes"
7789		fi
7790	fi
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806xorg_testset_save_CFLAGS="$CFLAGS"
7807
7808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7809	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7813  $as_echo_n "(cached) " >&6
7814else
7815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816/* end confdefs.h.  */
7817int i;
7818_ACEOF
7819if ac_fn_c_try_compile "$LINENO"; then :
7820  xorg_cv_cc_flag_unknown_warning_option=yes
7821else
7822  xorg_cv_cc_flag_unknown_warning_option=no
7823fi
7824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825fi
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7828	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7829	CFLAGS="$xorg_testset_save_CFLAGS"
7830fi
7831
7832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7833	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7834		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7835	fi
7836	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7840  $as_echo_n "(cached) " >&6
7841else
7842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843/* end confdefs.h.  */
7844int i;
7845_ACEOF
7846if ac_fn_c_try_compile "$LINENO"; then :
7847  xorg_cv_cc_flag_unused_command_line_argument=yes
7848else
7849  xorg_cv_cc_flag_unused_command_line_argument=no
7850fi
7851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852fi
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7855	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7856	CFLAGS="$xorg_testset_save_CFLAGS"
7857fi
7858
7859found="no"
7860
7861	if test $found = "no" ; then
7862		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7863			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864		fi
7865
7866		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7867			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7868		fi
7869
7870		CFLAGS="$CFLAGS -Werror=return-type"
7871
7872		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7873$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7874		cacheid=xorg_cv_cc_flag__Werror_return_type
7875		if eval \${$cacheid+:} false; then :
7876  $as_echo_n "(cached) " >&6
7877else
7878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h.  */
7880int i;
7881int
7882main ()
7883{
7884
7885  ;
7886  return 0;
7887}
7888_ACEOF
7889if ac_fn_c_try_link "$LINENO"; then :
7890  eval $cacheid=yes
7891else
7892  eval $cacheid=no
7893fi
7894rm -f core conftest.err conftest.$ac_objext \
7895    conftest$ac_exeext conftest.$ac_ext
7896fi
7897
7898
7899		CFLAGS="$xorg_testset_save_CFLAGS"
7900
7901		eval supported=\$$cacheid
7902		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7903$as_echo "$supported" >&6; }
7904		if test "$supported" = "yes" ; then
7905			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7906			found="yes"
7907		fi
7908	fi
7909
7910	if test $found = "no" ; then
7911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7913		fi
7914
7915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7917		fi
7918
7919		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7920
7921		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7922$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7923		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7924		if eval \${$cacheid+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h.  */
7929int i;
7930int
7931main ()
7932{
7933
7934  ;
7935  return 0;
7936}
7937_ACEOF
7938if ac_fn_c_try_link "$LINENO"; then :
7939  eval $cacheid=yes
7940else
7941  eval $cacheid=no
7942fi
7943rm -f core conftest.err conftest.$ac_objext \
7944    conftest$ac_exeext conftest.$ac_ext
7945fi
7946
7947
7948		CFLAGS="$xorg_testset_save_CFLAGS"
7949
7950		eval supported=\$$cacheid
7951		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7952$as_echo "$supported" >&6; }
7953		if test "$supported" = "yes" ; then
7954			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7955			found="yes"
7956		fi
7957	fi
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973xorg_testset_save_CFLAGS="$CFLAGS"
7974
7975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983/* end confdefs.h.  */
7984int i;
7985_ACEOF
7986if ac_fn_c_try_compile "$LINENO"; then :
7987  xorg_cv_cc_flag_unknown_warning_option=yes
7988else
7989  xorg_cv_cc_flag_unknown_warning_option=no
7990fi
7991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992fi
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7996	CFLAGS="$xorg_testset_save_CFLAGS"
7997fi
7998
7999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002	fi
8003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h.  */
8011int i;
8012_ACEOF
8013if ac_fn_c_try_compile "$LINENO"; then :
8014  xorg_cv_cc_flag_unused_command_line_argument=yes
8015else
8016  xorg_cv_cc_flag_unused_command_line_argument=no
8017fi
8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019fi
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8023	CFLAGS="$xorg_testset_save_CFLAGS"
8024fi
8025
8026found="no"
8027
8028	if test $found = "no" ; then
8029		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8031		fi
8032
8033		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8035		fi
8036
8037		CFLAGS="$CFLAGS -Werror=trigraphs"
8038
8039		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8040$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8041		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8042		if eval \${$cacheid+:} false; then :
8043  $as_echo_n "(cached) " >&6
8044else
8045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047int i;
8048int
8049main ()
8050{
8051
8052  ;
8053  return 0;
8054}
8055_ACEOF
8056if ac_fn_c_try_link "$LINENO"; then :
8057  eval $cacheid=yes
8058else
8059  eval $cacheid=no
8060fi
8061rm -f core conftest.err conftest.$ac_objext \
8062    conftest$ac_exeext conftest.$ac_ext
8063fi
8064
8065
8066		CFLAGS="$xorg_testset_save_CFLAGS"
8067
8068		eval supported=\$$cacheid
8069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8070$as_echo "$supported" >&6; }
8071		if test "$supported" = "yes" ; then
8072			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8073			found="yes"
8074		fi
8075	fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091xorg_testset_save_CFLAGS="$CFLAGS"
8092
8093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8098  $as_echo_n "(cached) " >&6
8099else
8100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h.  */
8102int i;
8103_ACEOF
8104if ac_fn_c_try_compile "$LINENO"; then :
8105  xorg_cv_cc_flag_unknown_warning_option=yes
8106else
8107  xorg_cv_cc_flag_unknown_warning_option=no
8108fi
8109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110fi
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8114	CFLAGS="$xorg_testset_save_CFLAGS"
8115fi
8116
8117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120	fi
8121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8125  $as_echo_n "(cached) " >&6
8126else
8127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128/* end confdefs.h.  */
8129int i;
8130_ACEOF
8131if ac_fn_c_try_compile "$LINENO"; then :
8132  xorg_cv_cc_flag_unused_command_line_argument=yes
8133else
8134  xorg_cv_cc_flag_unused_command_line_argument=no
8135fi
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137fi
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8141	CFLAGS="$xorg_testset_save_CFLAGS"
8142fi
8143
8144found="no"
8145
8146	if test $found = "no" ; then
8147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149		fi
8150
8151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8153		fi
8154
8155		CFLAGS="$CFLAGS -Werror=array-bounds"
8156
8157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8158$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8159		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8160		if eval \${$cacheid+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164/* end confdefs.h.  */
8165int i;
8166int
8167main ()
8168{
8169
8170  ;
8171  return 0;
8172}
8173_ACEOF
8174if ac_fn_c_try_link "$LINENO"; then :
8175  eval $cacheid=yes
8176else
8177  eval $cacheid=no
8178fi
8179rm -f core conftest.err conftest.$ac_objext \
8180    conftest$ac_exeext conftest.$ac_ext
8181fi
8182
8183
8184		CFLAGS="$xorg_testset_save_CFLAGS"
8185
8186		eval supported=\$$cacheid
8187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8188$as_echo "$supported" >&6; }
8189		if test "$supported" = "yes" ; then
8190			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8191			found="yes"
8192		fi
8193	fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209xorg_testset_save_CFLAGS="$CFLAGS"
8210
8211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8216  $as_echo_n "(cached) " >&6
8217else
8218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h.  */
8220int i;
8221_ACEOF
8222if ac_fn_c_try_compile "$LINENO"; then :
8223  xorg_cv_cc_flag_unknown_warning_option=yes
8224else
8225  xorg_cv_cc_flag_unknown_warning_option=no
8226fi
8227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228fi
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8232	CFLAGS="$xorg_testset_save_CFLAGS"
8233fi
8234
8235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238	fi
8239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h.  */
8247int i;
8248_ACEOF
8249if ac_fn_c_try_compile "$LINENO"; then :
8250  xorg_cv_cc_flag_unused_command_line_argument=yes
8251else
8252  xorg_cv_cc_flag_unused_command_line_argument=no
8253fi
8254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255fi
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8259	CFLAGS="$xorg_testset_save_CFLAGS"
8260fi
8261
8262found="no"
8263
8264	if test $found = "no" ; then
8265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267		fi
8268
8269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8271		fi
8272
8273		CFLAGS="$CFLAGS -Werror=write-strings"
8274
8275		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8276$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8277		cacheid=xorg_cv_cc_flag__Werror_write_strings
8278		if eval \${$cacheid+:} false; then :
8279  $as_echo_n "(cached) " >&6
8280else
8281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282/* end confdefs.h.  */
8283int i;
8284int
8285main ()
8286{
8287
8288  ;
8289  return 0;
8290}
8291_ACEOF
8292if ac_fn_c_try_link "$LINENO"; then :
8293  eval $cacheid=yes
8294else
8295  eval $cacheid=no
8296fi
8297rm -f core conftest.err conftest.$ac_objext \
8298    conftest$ac_exeext conftest.$ac_ext
8299fi
8300
8301
8302		CFLAGS="$xorg_testset_save_CFLAGS"
8303
8304		eval supported=\$$cacheid
8305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8306$as_echo "$supported" >&6; }
8307		if test "$supported" = "yes" ; then
8308			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8309			found="yes"
8310		fi
8311	fi
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327xorg_testset_save_CFLAGS="$CFLAGS"
8328
8329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8334  $as_echo_n "(cached) " >&6
8335else
8336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338int i;
8339_ACEOF
8340if ac_fn_c_try_compile "$LINENO"; then :
8341  xorg_cv_cc_flag_unknown_warning_option=yes
8342else
8343  xorg_cv_cc_flag_unknown_warning_option=no
8344fi
8345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346fi
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8350	CFLAGS="$xorg_testset_save_CFLAGS"
8351fi
8352
8353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356	fi
8357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8361  $as_echo_n "(cached) " >&6
8362else
8363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364/* end confdefs.h.  */
8365int i;
8366_ACEOF
8367if ac_fn_c_try_compile "$LINENO"; then :
8368  xorg_cv_cc_flag_unused_command_line_argument=yes
8369else
8370  xorg_cv_cc_flag_unused_command_line_argument=no
8371fi
8372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373fi
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8377	CFLAGS="$xorg_testset_save_CFLAGS"
8378fi
8379
8380found="no"
8381
8382	if test $found = "no" ; then
8383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8385		fi
8386
8387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8389		fi
8390
8391		CFLAGS="$CFLAGS -Werror=address"
8392
8393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8394$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8395		cacheid=xorg_cv_cc_flag__Werror_address
8396		if eval \${$cacheid+:} false; then :
8397  $as_echo_n "(cached) " >&6
8398else
8399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h.  */
8401int i;
8402int
8403main ()
8404{
8405
8406  ;
8407  return 0;
8408}
8409_ACEOF
8410if ac_fn_c_try_link "$LINENO"; then :
8411  eval $cacheid=yes
8412else
8413  eval $cacheid=no
8414fi
8415rm -f core conftest.err conftest.$ac_objext \
8416    conftest$ac_exeext conftest.$ac_ext
8417fi
8418
8419
8420		CFLAGS="$xorg_testset_save_CFLAGS"
8421
8422		eval supported=\$$cacheid
8423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8424$as_echo "$supported" >&6; }
8425		if test "$supported" = "yes" ; then
8426			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8427			found="yes"
8428		fi
8429	fi
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445xorg_testset_save_CFLAGS="$CFLAGS"
8446
8447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8452  $as_echo_n "(cached) " >&6
8453else
8454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h.  */
8456int i;
8457_ACEOF
8458if ac_fn_c_try_compile "$LINENO"; then :
8459  xorg_cv_cc_flag_unknown_warning_option=yes
8460else
8461  xorg_cv_cc_flag_unknown_warning_option=no
8462fi
8463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464fi
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8468	CFLAGS="$xorg_testset_save_CFLAGS"
8469fi
8470
8471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8474	fi
8475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8479  $as_echo_n "(cached) " >&6
8480else
8481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482/* end confdefs.h.  */
8483int i;
8484_ACEOF
8485if ac_fn_c_try_compile "$LINENO"; then :
8486  xorg_cv_cc_flag_unused_command_line_argument=yes
8487else
8488  xorg_cv_cc_flag_unused_command_line_argument=no
8489fi
8490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491fi
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8495	CFLAGS="$xorg_testset_save_CFLAGS"
8496fi
8497
8498found="no"
8499
8500	if test $found = "no" ; then
8501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503		fi
8504
8505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8507		fi
8508
8509		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8510
8511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8512$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8513		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8514		if eval \${$cacheid+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h.  */
8519int i;
8520int
8521main ()
8522{
8523
8524  ;
8525  return 0;
8526}
8527_ACEOF
8528if ac_fn_c_try_link "$LINENO"; then :
8529  eval $cacheid=yes
8530else
8531  eval $cacheid=no
8532fi
8533rm -f core conftest.err conftest.$ac_objext \
8534    conftest$ac_exeext conftest.$ac_ext
8535fi
8536
8537
8538		CFLAGS="$xorg_testset_save_CFLAGS"
8539
8540		eval supported=\$$cacheid
8541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8542$as_echo "$supported" >&6; }
8543		if test "$supported" = "yes" ; then
8544			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8545			found="yes"
8546		fi
8547	fi
8548
8549	if test $found = "no" ; then
8550		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552		fi
8553
8554		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8556		fi
8557
8558		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8559
8560		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8561$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8562		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8563		if eval \${$cacheid+:} false; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567/* end confdefs.h.  */
8568int i;
8569int
8570main ()
8571{
8572
8573  ;
8574  return 0;
8575}
8576_ACEOF
8577if ac_fn_c_try_link "$LINENO"; then :
8578  eval $cacheid=yes
8579else
8580  eval $cacheid=no
8581fi
8582rm -f core conftest.err conftest.$ac_objext \
8583    conftest$ac_exeext conftest.$ac_ext
8584fi
8585
8586
8587		CFLAGS="$xorg_testset_save_CFLAGS"
8588
8589		eval supported=\$$cacheid
8590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8591$as_echo "$supported" >&6; }
8592		if test "$supported" = "yes" ; then
8593			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8594			found="yes"
8595		fi
8596	fi
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612xorg_testset_save_CFLAGS="$CFLAGS"
8613
8614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8619  $as_echo_n "(cached) " >&6
8620else
8621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622/* end confdefs.h.  */
8623int i;
8624_ACEOF
8625if ac_fn_c_try_compile "$LINENO"; then :
8626  xorg_cv_cc_flag_unknown_warning_option=yes
8627else
8628  xorg_cv_cc_flag_unknown_warning_option=no
8629fi
8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631fi
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8635	CFLAGS="$xorg_testset_save_CFLAGS"
8636fi
8637
8638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641	fi
8642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8646  $as_echo_n "(cached) " >&6
8647else
8648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649/* end confdefs.h.  */
8650int i;
8651_ACEOF
8652if ac_fn_c_try_compile "$LINENO"; then :
8653  xorg_cv_cc_flag_unused_command_line_argument=yes
8654else
8655  xorg_cv_cc_flag_unused_command_line_argument=no
8656fi
8657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658fi
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8662	CFLAGS="$xorg_testset_save_CFLAGS"
8663fi
8664
8665found="no"
8666
8667	if test $found = "no" ; then
8668		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8670		fi
8671
8672		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8674		fi
8675
8676		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8677
8678		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8679$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8680		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8681		if eval \${$cacheid+:} false; then :
8682  $as_echo_n "(cached) " >&6
8683else
8684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685/* end confdefs.h.  */
8686int i;
8687int
8688main ()
8689{
8690
8691  ;
8692  return 0;
8693}
8694_ACEOF
8695if ac_fn_c_try_link "$LINENO"; then :
8696  eval $cacheid=yes
8697else
8698  eval $cacheid=no
8699fi
8700rm -f core conftest.err conftest.$ac_objext \
8701    conftest$ac_exeext conftest.$ac_ext
8702fi
8703
8704
8705		CFLAGS="$xorg_testset_save_CFLAGS"
8706
8707		eval supported=\$$cacheid
8708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8709$as_echo "$supported" >&6; }
8710		if test "$supported" = "yes" ; then
8711			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8712			found="yes"
8713		fi
8714	fi
8715
8716 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8717else
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8719$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733xorg_testset_save_CFLAGS="$CFLAGS"
8734
8735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h.  */
8744int i;
8745_ACEOF
8746if ac_fn_c_try_compile "$LINENO"; then :
8747  xorg_cv_cc_flag_unknown_warning_option=yes
8748else
8749  xorg_cv_cc_flag_unknown_warning_option=no
8750fi
8751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752fi
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8756	CFLAGS="$xorg_testset_save_CFLAGS"
8757fi
8758
8759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762	fi
8763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8767  $as_echo_n "(cached) " >&6
8768else
8769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h.  */
8771int i;
8772_ACEOF
8773if ac_fn_c_try_compile "$LINENO"; then :
8774  xorg_cv_cc_flag_unused_command_line_argument=yes
8775else
8776  xorg_cv_cc_flag_unused_command_line_argument=no
8777fi
8778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779fi
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8783	CFLAGS="$xorg_testset_save_CFLAGS"
8784fi
8785
8786found="no"
8787
8788	if test $found = "no" ; then
8789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8791		fi
8792
8793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795		fi
8796
8797		CFLAGS="$CFLAGS -Wimplicit"
8798
8799		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8800$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8801		cacheid=xorg_cv_cc_flag__Wimplicit
8802		if eval \${$cacheid+:} false; then :
8803  $as_echo_n "(cached) " >&6
8804else
8805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806/* end confdefs.h.  */
8807int i;
8808int
8809main ()
8810{
8811
8812  ;
8813  return 0;
8814}
8815_ACEOF
8816if ac_fn_c_try_link "$LINENO"; then :
8817  eval $cacheid=yes
8818else
8819  eval $cacheid=no
8820fi
8821rm -f core conftest.err conftest.$ac_objext \
8822    conftest$ac_exeext conftest.$ac_ext
8823fi
8824
8825
8826		CFLAGS="$xorg_testset_save_CFLAGS"
8827
8828		eval supported=\$$cacheid
8829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8830$as_echo "$supported" >&6; }
8831		if test "$supported" = "yes" ; then
8832			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8833			found="yes"
8834		fi
8835	fi
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851xorg_testset_save_CFLAGS="$CFLAGS"
8852
8853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8856$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8857if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8858  $as_echo_n "(cached) " >&6
8859else
8860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861/* end confdefs.h.  */
8862int i;
8863_ACEOF
8864if ac_fn_c_try_compile "$LINENO"; then :
8865  xorg_cv_cc_flag_unknown_warning_option=yes
8866else
8867  xorg_cv_cc_flag_unknown_warning_option=no
8868fi
8869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870fi
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8872$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8874	CFLAGS="$xorg_testset_save_CFLAGS"
8875fi
8876
8877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880	fi
8881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8883$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8884if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8885  $as_echo_n "(cached) " >&6
8886else
8887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888/* end confdefs.h.  */
8889int i;
8890_ACEOF
8891if ac_fn_c_try_compile "$LINENO"; then :
8892  xorg_cv_cc_flag_unused_command_line_argument=yes
8893else
8894  xorg_cv_cc_flag_unused_command_line_argument=no
8895fi
8896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897fi
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8899$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8901	CFLAGS="$xorg_testset_save_CFLAGS"
8902fi
8903
8904found="no"
8905
8906	if test $found = "no" ; then
8907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8909		fi
8910
8911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913		fi
8914
8915		CFLAGS="$CFLAGS -Wnonnull"
8916
8917		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8918$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8919		cacheid=xorg_cv_cc_flag__Wnonnull
8920		if eval \${$cacheid+:} false; then :
8921  $as_echo_n "(cached) " >&6
8922else
8923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924/* end confdefs.h.  */
8925int i;
8926int
8927main ()
8928{
8929
8930  ;
8931  return 0;
8932}
8933_ACEOF
8934if ac_fn_c_try_link "$LINENO"; then :
8935  eval $cacheid=yes
8936else
8937  eval $cacheid=no
8938fi
8939rm -f core conftest.err conftest.$ac_objext \
8940    conftest$ac_exeext conftest.$ac_ext
8941fi
8942
8943
8944		CFLAGS="$xorg_testset_save_CFLAGS"
8945
8946		eval supported=\$$cacheid
8947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8948$as_echo "$supported" >&6; }
8949		if test "$supported" = "yes" ; then
8950			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8951			found="yes"
8952		fi
8953	fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969xorg_testset_save_CFLAGS="$CFLAGS"
8970
8971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8975if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8976  $as_echo_n "(cached) " >&6
8977else
8978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* end confdefs.h.  */
8980int i;
8981_ACEOF
8982if ac_fn_c_try_compile "$LINENO"; then :
8983  xorg_cv_cc_flag_unknown_warning_option=yes
8984else
8985  xorg_cv_cc_flag_unknown_warning_option=no
8986fi
8987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8990$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8992	CFLAGS="$xorg_testset_save_CFLAGS"
8993fi
8994
8995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998	fi
8999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9002if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9003  $as_echo_n "(cached) " >&6
9004else
9005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h.  */
9007int i;
9008_ACEOF
9009if ac_fn_c_try_compile "$LINENO"; then :
9010  xorg_cv_cc_flag_unused_command_line_argument=yes
9011else
9012  xorg_cv_cc_flag_unused_command_line_argument=no
9013fi
9014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015fi
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9017$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9019	CFLAGS="$xorg_testset_save_CFLAGS"
9020fi
9021
9022found="no"
9023
9024	if test $found = "no" ; then
9025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027		fi
9028
9029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031		fi
9032
9033		CFLAGS="$CFLAGS -Winit-self"
9034
9035		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9036$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9037		cacheid=xorg_cv_cc_flag__Winit_self
9038		if eval \${$cacheid+:} false; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h.  */
9043int i;
9044int
9045main ()
9046{
9047
9048  ;
9049  return 0;
9050}
9051_ACEOF
9052if ac_fn_c_try_link "$LINENO"; then :
9053  eval $cacheid=yes
9054else
9055  eval $cacheid=no
9056fi
9057rm -f core conftest.err conftest.$ac_objext \
9058    conftest$ac_exeext conftest.$ac_ext
9059fi
9060
9061
9062		CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064		eval supported=\$$cacheid
9065		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066$as_echo "$supported" >&6; }
9067		if test "$supported" = "yes" ; then
9068			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9069			found="yes"
9070		fi
9071	fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087xorg_testset_save_CFLAGS="$CFLAGS"
9088
9089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9092$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9093if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9094  $as_echo_n "(cached) " >&6
9095else
9096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097/* end confdefs.h.  */
9098int i;
9099_ACEOF
9100if ac_fn_c_try_compile "$LINENO"; then :
9101  xorg_cv_cc_flag_unknown_warning_option=yes
9102else
9103  xorg_cv_cc_flag_unknown_warning_option=no
9104fi
9105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106fi
9107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9108$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9110	CFLAGS="$xorg_testset_save_CFLAGS"
9111fi
9112
9113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116	fi
9117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9118	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9119$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9120if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9121  $as_echo_n "(cached) " >&6
9122else
9123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124/* end confdefs.h.  */
9125int i;
9126_ACEOF
9127if ac_fn_c_try_compile "$LINENO"; then :
9128  xorg_cv_cc_flag_unused_command_line_argument=yes
9129else
9130  xorg_cv_cc_flag_unused_command_line_argument=no
9131fi
9132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133fi
9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9135$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9137	CFLAGS="$xorg_testset_save_CFLAGS"
9138fi
9139
9140found="no"
9141
9142	if test $found = "no" ; then
9143		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145		fi
9146
9147		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9149		fi
9150
9151		CFLAGS="$CFLAGS -Wmain"
9152
9153		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9154$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9155		cacheid=xorg_cv_cc_flag__Wmain
9156		if eval \${$cacheid+:} false; then :
9157  $as_echo_n "(cached) " >&6
9158else
9159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160/* end confdefs.h.  */
9161int i;
9162int
9163main ()
9164{
9165
9166  ;
9167  return 0;
9168}
9169_ACEOF
9170if ac_fn_c_try_link "$LINENO"; then :
9171  eval $cacheid=yes
9172else
9173  eval $cacheid=no
9174fi
9175rm -f core conftest.err conftest.$ac_objext \
9176    conftest$ac_exeext conftest.$ac_ext
9177fi
9178
9179
9180		CFLAGS="$xorg_testset_save_CFLAGS"
9181
9182		eval supported=\$$cacheid
9183		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9184$as_echo "$supported" >&6; }
9185		if test "$supported" = "yes" ; then
9186			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9187			found="yes"
9188		fi
9189	fi
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205xorg_testset_save_CFLAGS="$CFLAGS"
9206
9207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9212  $as_echo_n "(cached) " >&6
9213else
9214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215/* end confdefs.h.  */
9216int i;
9217_ACEOF
9218if ac_fn_c_try_compile "$LINENO"; then :
9219  xorg_cv_cc_flag_unknown_warning_option=yes
9220else
9221  xorg_cv_cc_flag_unknown_warning_option=no
9222fi
9223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9224fi
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9228	CFLAGS="$xorg_testset_save_CFLAGS"
9229fi
9230
9231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234	fi
9235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9239  $as_echo_n "(cached) " >&6
9240else
9241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h.  */
9243int i;
9244_ACEOF
9245if ac_fn_c_try_compile "$LINENO"; then :
9246  xorg_cv_cc_flag_unused_command_line_argument=yes
9247else
9248  xorg_cv_cc_flag_unused_command_line_argument=no
9249fi
9250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251fi
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9255	CFLAGS="$xorg_testset_save_CFLAGS"
9256fi
9257
9258found="no"
9259
9260	if test $found = "no" ; then
9261		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9263		fi
9264
9265		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9267		fi
9268
9269		CFLAGS="$CFLAGS -Wmissing-braces"
9270
9271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9272$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9273		cacheid=xorg_cv_cc_flag__Wmissing_braces
9274		if eval \${$cacheid+:} false; then :
9275  $as_echo_n "(cached) " >&6
9276else
9277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278/* end confdefs.h.  */
9279int i;
9280int
9281main ()
9282{
9283
9284  ;
9285  return 0;
9286}
9287_ACEOF
9288if ac_fn_c_try_link "$LINENO"; then :
9289  eval $cacheid=yes
9290else
9291  eval $cacheid=no
9292fi
9293rm -f core conftest.err conftest.$ac_objext \
9294    conftest$ac_exeext conftest.$ac_ext
9295fi
9296
9297
9298		CFLAGS="$xorg_testset_save_CFLAGS"
9299
9300		eval supported=\$$cacheid
9301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9302$as_echo "$supported" >&6; }
9303		if test "$supported" = "yes" ; then
9304			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9305			found="yes"
9306		fi
9307	fi
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323xorg_testset_save_CFLAGS="$CFLAGS"
9324
9325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h.  */
9334int i;
9335_ACEOF
9336if ac_fn_c_try_compile "$LINENO"; then :
9337  xorg_cv_cc_flag_unknown_warning_option=yes
9338else
9339  xorg_cv_cc_flag_unknown_warning_option=no
9340fi
9341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342fi
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9346	CFLAGS="$xorg_testset_save_CFLAGS"
9347fi
9348
9349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352	fi
9353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9357  $as_echo_n "(cached) " >&6
9358else
9359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360/* end confdefs.h.  */
9361int i;
9362_ACEOF
9363if ac_fn_c_try_compile "$LINENO"; then :
9364  xorg_cv_cc_flag_unused_command_line_argument=yes
9365else
9366  xorg_cv_cc_flag_unused_command_line_argument=no
9367fi
9368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369fi
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9373	CFLAGS="$xorg_testset_save_CFLAGS"
9374fi
9375
9376found="no"
9377
9378	if test $found = "no" ; then
9379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381		fi
9382
9383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385		fi
9386
9387		CFLAGS="$CFLAGS -Wsequence-point"
9388
9389		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9390$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9391		cacheid=xorg_cv_cc_flag__Wsequence_point
9392		if eval \${$cacheid+:} false; then :
9393  $as_echo_n "(cached) " >&6
9394else
9395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396/* end confdefs.h.  */
9397int i;
9398int
9399main ()
9400{
9401
9402  ;
9403  return 0;
9404}
9405_ACEOF
9406if ac_fn_c_try_link "$LINENO"; then :
9407  eval $cacheid=yes
9408else
9409  eval $cacheid=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext \
9412    conftest$ac_exeext conftest.$ac_ext
9413fi
9414
9415
9416		CFLAGS="$xorg_testset_save_CFLAGS"
9417
9418		eval supported=\$$cacheid
9419		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9420$as_echo "$supported" >&6; }
9421		if test "$supported" = "yes" ; then
9422			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9423			found="yes"
9424		fi
9425	fi
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441xorg_testset_save_CFLAGS="$CFLAGS"
9442
9443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9448  $as_echo_n "(cached) " >&6
9449else
9450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451/* end confdefs.h.  */
9452int i;
9453_ACEOF
9454if ac_fn_c_try_compile "$LINENO"; then :
9455  xorg_cv_cc_flag_unknown_warning_option=yes
9456else
9457  xorg_cv_cc_flag_unknown_warning_option=no
9458fi
9459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460fi
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9464	CFLAGS="$xorg_testset_save_CFLAGS"
9465fi
9466
9467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470	fi
9471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9475  $as_echo_n "(cached) " >&6
9476else
9477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478/* end confdefs.h.  */
9479int i;
9480_ACEOF
9481if ac_fn_c_try_compile "$LINENO"; then :
9482  xorg_cv_cc_flag_unused_command_line_argument=yes
9483else
9484  xorg_cv_cc_flag_unused_command_line_argument=no
9485fi
9486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9491	CFLAGS="$xorg_testset_save_CFLAGS"
9492fi
9493
9494found="no"
9495
9496	if test $found = "no" ; then
9497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9499		fi
9500
9501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9503		fi
9504
9505		CFLAGS="$CFLAGS -Wreturn-type"
9506
9507		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9508$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9509		cacheid=xorg_cv_cc_flag__Wreturn_type
9510		if eval \${$cacheid+:} false; then :
9511  $as_echo_n "(cached) " >&6
9512else
9513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514/* end confdefs.h.  */
9515int i;
9516int
9517main ()
9518{
9519
9520  ;
9521  return 0;
9522}
9523_ACEOF
9524if ac_fn_c_try_link "$LINENO"; then :
9525  eval $cacheid=yes
9526else
9527  eval $cacheid=no
9528fi
9529rm -f core conftest.err conftest.$ac_objext \
9530    conftest$ac_exeext conftest.$ac_ext
9531fi
9532
9533
9534		CFLAGS="$xorg_testset_save_CFLAGS"
9535
9536		eval supported=\$$cacheid
9537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9538$as_echo "$supported" >&6; }
9539		if test "$supported" = "yes" ; then
9540			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9541			found="yes"
9542		fi
9543	fi
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559xorg_testset_save_CFLAGS="$CFLAGS"
9560
9561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9566  $as_echo_n "(cached) " >&6
9567else
9568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569/* end confdefs.h.  */
9570int i;
9571_ACEOF
9572if ac_fn_c_try_compile "$LINENO"; then :
9573  xorg_cv_cc_flag_unknown_warning_option=yes
9574else
9575  xorg_cv_cc_flag_unknown_warning_option=no
9576fi
9577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578fi
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9582	CFLAGS="$xorg_testset_save_CFLAGS"
9583fi
9584
9585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588	fi
9589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9593  $as_echo_n "(cached) " >&6
9594else
9595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h.  */
9597int i;
9598_ACEOF
9599if ac_fn_c_try_compile "$LINENO"; then :
9600  xorg_cv_cc_flag_unused_command_line_argument=yes
9601else
9602  xorg_cv_cc_flag_unused_command_line_argument=no
9603fi
9604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605fi
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9609	CFLAGS="$xorg_testset_save_CFLAGS"
9610fi
9611
9612found="no"
9613
9614	if test $found = "no" ; then
9615		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9617		fi
9618
9619		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9621		fi
9622
9623		CFLAGS="$CFLAGS -Wtrigraphs"
9624
9625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9626$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9627		cacheid=xorg_cv_cc_flag__Wtrigraphs
9628		if eval \${$cacheid+:} false; then :
9629  $as_echo_n "(cached) " >&6
9630else
9631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632/* end confdefs.h.  */
9633int i;
9634int
9635main ()
9636{
9637
9638  ;
9639  return 0;
9640}
9641_ACEOF
9642if ac_fn_c_try_link "$LINENO"; then :
9643  eval $cacheid=yes
9644else
9645  eval $cacheid=no
9646fi
9647rm -f core conftest.err conftest.$ac_objext \
9648    conftest$ac_exeext conftest.$ac_ext
9649fi
9650
9651
9652		CFLAGS="$xorg_testset_save_CFLAGS"
9653
9654		eval supported=\$$cacheid
9655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9656$as_echo "$supported" >&6; }
9657		if test "$supported" = "yes" ; then
9658			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9659			found="yes"
9660		fi
9661	fi
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677xorg_testset_save_CFLAGS="$CFLAGS"
9678
9679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9680	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9682$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9683if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9684  $as_echo_n "(cached) " >&6
9685else
9686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h.  */
9688int i;
9689_ACEOF
9690if ac_fn_c_try_compile "$LINENO"; then :
9691  xorg_cv_cc_flag_unknown_warning_option=yes
9692else
9693  xorg_cv_cc_flag_unknown_warning_option=no
9694fi
9695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696fi
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9698$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9699	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9700	CFLAGS="$xorg_testset_save_CFLAGS"
9701fi
9702
9703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9704	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9705		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706	fi
9707	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9709$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9710if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9711  $as_echo_n "(cached) " >&6
9712else
9713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h.  */
9715int i;
9716_ACEOF
9717if ac_fn_c_try_compile "$LINENO"; then :
9718  xorg_cv_cc_flag_unused_command_line_argument=yes
9719else
9720  xorg_cv_cc_flag_unused_command_line_argument=no
9721fi
9722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723fi
9724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9725$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9726	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9727	CFLAGS="$xorg_testset_save_CFLAGS"
9728fi
9729
9730found="no"
9731
9732	if test $found = "no" ; then
9733		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9734			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9735		fi
9736
9737		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9738			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9739		fi
9740
9741		CFLAGS="$CFLAGS -Warray-bounds"
9742
9743		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9744$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9745		cacheid=xorg_cv_cc_flag__Warray_bounds
9746		if eval \${$cacheid+:} false; then :
9747  $as_echo_n "(cached) " >&6
9748else
9749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h.  */
9751int i;
9752int
9753main ()
9754{
9755
9756  ;
9757  return 0;
9758}
9759_ACEOF
9760if ac_fn_c_try_link "$LINENO"; then :
9761  eval $cacheid=yes
9762else
9763  eval $cacheid=no
9764fi
9765rm -f core conftest.err conftest.$ac_objext \
9766    conftest$ac_exeext conftest.$ac_ext
9767fi
9768
9769
9770		CFLAGS="$xorg_testset_save_CFLAGS"
9771
9772		eval supported=\$$cacheid
9773		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9774$as_echo "$supported" >&6; }
9775		if test "$supported" = "yes" ; then
9776			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9777			found="yes"
9778		fi
9779	fi
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795xorg_testset_save_CFLAGS="$CFLAGS"
9796
9797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9802  $as_echo_n "(cached) " >&6
9803else
9804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h.  */
9806int i;
9807_ACEOF
9808if ac_fn_c_try_compile "$LINENO"; then :
9809  xorg_cv_cc_flag_unknown_warning_option=yes
9810else
9811  xorg_cv_cc_flag_unknown_warning_option=no
9812fi
9813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814fi
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9818	CFLAGS="$xorg_testset_save_CFLAGS"
9819fi
9820
9821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824	fi
9825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833int i;
9834_ACEOF
9835if ac_fn_c_try_compile "$LINENO"; then :
9836  xorg_cv_cc_flag_unused_command_line_argument=yes
9837else
9838  xorg_cv_cc_flag_unused_command_line_argument=no
9839fi
9840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841fi
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9845	CFLAGS="$xorg_testset_save_CFLAGS"
9846fi
9847
9848found="no"
9849
9850	if test $found = "no" ; then
9851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9853		fi
9854
9855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9857		fi
9858
9859		CFLAGS="$CFLAGS -Wwrite-strings"
9860
9861		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9862$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9863		cacheid=xorg_cv_cc_flag__Wwrite_strings
9864		if eval \${$cacheid+:} false; then :
9865  $as_echo_n "(cached) " >&6
9866else
9867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868/* end confdefs.h.  */
9869int i;
9870int
9871main ()
9872{
9873
9874  ;
9875  return 0;
9876}
9877_ACEOF
9878if ac_fn_c_try_link "$LINENO"; then :
9879  eval $cacheid=yes
9880else
9881  eval $cacheid=no
9882fi
9883rm -f core conftest.err conftest.$ac_objext \
9884    conftest$ac_exeext conftest.$ac_ext
9885fi
9886
9887
9888		CFLAGS="$xorg_testset_save_CFLAGS"
9889
9890		eval supported=\$$cacheid
9891		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9892$as_echo "$supported" >&6; }
9893		if test "$supported" = "yes" ; then
9894			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9895			found="yes"
9896		fi
9897	fi
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913xorg_testset_save_CFLAGS="$CFLAGS"
9914
9915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9916	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9920  $as_echo_n "(cached) " >&6
9921else
9922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923/* end confdefs.h.  */
9924int i;
9925_ACEOF
9926if ac_fn_c_try_compile "$LINENO"; then :
9927  xorg_cv_cc_flag_unknown_warning_option=yes
9928else
9929  xorg_cv_cc_flag_unknown_warning_option=no
9930fi
9931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932fi
9933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9936	CFLAGS="$xorg_testset_save_CFLAGS"
9937fi
9938
9939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942	fi
9943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9947  $as_echo_n "(cached) " >&6
9948else
9949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951int i;
9952_ACEOF
9953if ac_fn_c_try_compile "$LINENO"; then :
9954  xorg_cv_cc_flag_unused_command_line_argument=yes
9955else
9956  xorg_cv_cc_flag_unused_command_line_argument=no
9957fi
9958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959fi
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9963	CFLAGS="$xorg_testset_save_CFLAGS"
9964fi
9965
9966found="no"
9967
9968	if test $found = "no" ; then
9969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9971		fi
9972
9973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9975		fi
9976
9977		CFLAGS="$CFLAGS -Waddress"
9978
9979		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9980$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9981		cacheid=xorg_cv_cc_flag__Waddress
9982		if eval \${$cacheid+:} false; then :
9983  $as_echo_n "(cached) " >&6
9984else
9985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986/* end confdefs.h.  */
9987int i;
9988int
9989main ()
9990{
9991
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996if ac_fn_c_try_link "$LINENO"; then :
9997  eval $cacheid=yes
9998else
9999  eval $cacheid=no
10000fi
10001rm -f core conftest.err conftest.$ac_objext \
10002    conftest$ac_exeext conftest.$ac_ext
10003fi
10004
10005
10006		CFLAGS="$xorg_testset_save_CFLAGS"
10007
10008		eval supported=\$$cacheid
10009		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10010$as_echo "$supported" >&6; }
10011		if test "$supported" = "yes" ; then
10012			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10013			found="yes"
10014		fi
10015	fi
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031xorg_testset_save_CFLAGS="$CFLAGS"
10032
10033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10034	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10038  $as_echo_n "(cached) " >&6
10039else
10040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042int i;
10043_ACEOF
10044if ac_fn_c_try_compile "$LINENO"; then :
10045  xorg_cv_cc_flag_unknown_warning_option=yes
10046else
10047  xorg_cv_cc_flag_unknown_warning_option=no
10048fi
10049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10050fi
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10053	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10054	CFLAGS="$xorg_testset_save_CFLAGS"
10055fi
10056
10057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10058	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10059		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060	fi
10061	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068/* end confdefs.h.  */
10069int i;
10070_ACEOF
10071if ac_fn_c_try_compile "$LINENO"; then :
10072  xorg_cv_cc_flag_unused_command_line_argument=yes
10073else
10074  xorg_cv_cc_flag_unused_command_line_argument=no
10075fi
10076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10077fi
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10080	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10081	CFLAGS="$xorg_testset_save_CFLAGS"
10082fi
10083
10084found="no"
10085
10086	if test $found = "no" ; then
10087		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10089		fi
10090
10091		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10093		fi
10094
10095		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10096
10097		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10098$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10099		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10100		if eval \${$cacheid+:} false; then :
10101  $as_echo_n "(cached) " >&6
10102else
10103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104/* end confdefs.h.  */
10105int i;
10106int
10107main ()
10108{
10109
10110  ;
10111  return 0;
10112}
10113_ACEOF
10114if ac_fn_c_try_link "$LINENO"; then :
10115  eval $cacheid=yes
10116else
10117  eval $cacheid=no
10118fi
10119rm -f core conftest.err conftest.$ac_objext \
10120    conftest$ac_exeext conftest.$ac_ext
10121fi
10122
10123
10124		CFLAGS="$xorg_testset_save_CFLAGS"
10125
10126		eval supported=\$$cacheid
10127		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10128$as_echo "$supported" >&6; }
10129		if test "$supported" = "yes" ; then
10130			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10131			found="yes"
10132		fi
10133	fi
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149xorg_testset_save_CFLAGS="$CFLAGS"
10150
10151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10152	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10156  $as_echo_n "(cached) " >&6
10157else
10158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159/* end confdefs.h.  */
10160int i;
10161_ACEOF
10162if ac_fn_c_try_compile "$LINENO"; then :
10163  xorg_cv_cc_flag_unknown_warning_option=yes
10164else
10165  xorg_cv_cc_flag_unknown_warning_option=no
10166fi
10167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168fi
10169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10171	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10172	CFLAGS="$xorg_testset_save_CFLAGS"
10173fi
10174
10175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10176	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10178	fi
10179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10183  $as_echo_n "(cached) " >&6
10184else
10185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h.  */
10187int i;
10188_ACEOF
10189if ac_fn_c_try_compile "$LINENO"; then :
10190  xorg_cv_cc_flag_unused_command_line_argument=yes
10191else
10192  xorg_cv_cc_flag_unused_command_line_argument=no
10193fi
10194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195fi
10196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10198	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10199	CFLAGS="$xorg_testset_save_CFLAGS"
10200fi
10201
10202found="no"
10203
10204	if test $found = "no" ; then
10205		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10207		fi
10208
10209		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10211		fi
10212
10213		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10214
10215		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10216$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10217		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10218		if eval \${$cacheid+:} false; then :
10219  $as_echo_n "(cached) " >&6
10220else
10221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222/* end confdefs.h.  */
10223int i;
10224int
10225main ()
10226{
10227
10228  ;
10229  return 0;
10230}
10231_ACEOF
10232if ac_fn_c_try_link "$LINENO"; then :
10233  eval $cacheid=yes
10234else
10235  eval $cacheid=no
10236fi
10237rm -f core conftest.err conftest.$ac_objext \
10238    conftest$ac_exeext conftest.$ac_ext
10239fi
10240
10241
10242		CFLAGS="$xorg_testset_save_CFLAGS"
10243
10244		eval supported=\$$cacheid
10245		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10246$as_echo "$supported" >&6; }
10247		if test "$supported" = "yes" ; then
10248			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10249			found="yes"
10250		fi
10251	fi
10252
10253
10254fi
10255
10256
10257
10258
10259
10260
10261
10262		CWARNFLAGS="$BASE_CFLAGS"
10263		if  test "x$GCC" = xyes ; then
10264		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10265		fi
10266
10267
10268
10269
10270
10271
10272
10273
10274# Check whether --enable-strict-compilation was given.
10275if test "${enable_strict_compilation+set}" = set; then :
10276  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10277else
10278  STRICT_COMPILE=no
10279fi
10280
10281
10282
10283
10284
10285
10286STRICT_CFLAGS=""
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300xorg_testset_save_CFLAGS="$CFLAGS"
10301
10302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10307  $as_echo_n "(cached) " >&6
10308else
10309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310/* end confdefs.h.  */
10311int i;
10312_ACEOF
10313if ac_fn_c_try_compile "$LINENO"; then :
10314  xorg_cv_cc_flag_unknown_warning_option=yes
10315else
10316  xorg_cv_cc_flag_unknown_warning_option=no
10317fi
10318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10319fi
10320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10323	CFLAGS="$xorg_testset_save_CFLAGS"
10324fi
10325
10326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329	fi
10330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10334  $as_echo_n "(cached) " >&6
10335else
10336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h.  */
10338int i;
10339_ACEOF
10340if ac_fn_c_try_compile "$LINENO"; then :
10341  xorg_cv_cc_flag_unused_command_line_argument=yes
10342else
10343  xorg_cv_cc_flag_unused_command_line_argument=no
10344fi
10345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10346fi
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10350	CFLAGS="$xorg_testset_save_CFLAGS"
10351fi
10352
10353found="no"
10354
10355	if test $found = "no" ; then
10356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358		fi
10359
10360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10362		fi
10363
10364		CFLAGS="$CFLAGS -pedantic"
10365
10366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10367$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10368		cacheid=xorg_cv_cc_flag__pedantic
10369		if eval \${$cacheid+:} false; then :
10370  $as_echo_n "(cached) " >&6
10371else
10372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373/* end confdefs.h.  */
10374int i;
10375int
10376main ()
10377{
10378
10379  ;
10380  return 0;
10381}
10382_ACEOF
10383if ac_fn_c_try_link "$LINENO"; then :
10384  eval $cacheid=yes
10385else
10386  eval $cacheid=no
10387fi
10388rm -f core conftest.err conftest.$ac_objext \
10389    conftest$ac_exeext conftest.$ac_ext
10390fi
10391
10392
10393		CFLAGS="$xorg_testset_save_CFLAGS"
10394
10395		eval supported=\$$cacheid
10396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10397$as_echo "$supported" >&6; }
10398		if test "$supported" = "yes" ; then
10399			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10400			found="yes"
10401		fi
10402	fi
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418xorg_testset_save_CFLAGS="$CFLAGS"
10419
10420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10425  $as_echo_n "(cached) " >&6
10426else
10427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428/* end confdefs.h.  */
10429int i;
10430_ACEOF
10431if ac_fn_c_try_compile "$LINENO"; then :
10432  xorg_cv_cc_flag_unknown_warning_option=yes
10433else
10434  xorg_cv_cc_flag_unknown_warning_option=no
10435fi
10436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437fi
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10441	CFLAGS="$xorg_testset_save_CFLAGS"
10442fi
10443
10444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10447	fi
10448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10452  $as_echo_n "(cached) " >&6
10453else
10454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455/* end confdefs.h.  */
10456int i;
10457_ACEOF
10458if ac_fn_c_try_compile "$LINENO"; then :
10459  xorg_cv_cc_flag_unused_command_line_argument=yes
10460else
10461  xorg_cv_cc_flag_unused_command_line_argument=no
10462fi
10463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464fi
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10468	CFLAGS="$xorg_testset_save_CFLAGS"
10469fi
10470
10471found="no"
10472
10473	if test $found = "no" ; then
10474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10476		fi
10477
10478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10480		fi
10481
10482		CFLAGS="$CFLAGS -Werror"
10483
10484		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10485$as_echo_n "checking if $CC supports -Werror... " >&6; }
10486		cacheid=xorg_cv_cc_flag__Werror
10487		if eval \${$cacheid+:} false; then :
10488  $as_echo_n "(cached) " >&6
10489else
10490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491/* end confdefs.h.  */
10492int i;
10493int
10494main ()
10495{
10496
10497  ;
10498  return 0;
10499}
10500_ACEOF
10501if ac_fn_c_try_link "$LINENO"; then :
10502  eval $cacheid=yes
10503else
10504  eval $cacheid=no
10505fi
10506rm -f core conftest.err conftest.$ac_objext \
10507    conftest$ac_exeext conftest.$ac_ext
10508fi
10509
10510
10511		CFLAGS="$xorg_testset_save_CFLAGS"
10512
10513		eval supported=\$$cacheid
10514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10515$as_echo "$supported" >&6; }
10516		if test "$supported" = "yes" ; then
10517			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10518			found="yes"
10519		fi
10520	fi
10521
10522	if test $found = "no" ; then
10523		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10524			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10525		fi
10526
10527		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10528			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10529		fi
10530
10531		CFLAGS="$CFLAGS -errwarn"
10532
10533		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10534$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10535		cacheid=xorg_cv_cc_flag__errwarn
10536		if eval \${$cacheid+:} false; then :
10537  $as_echo_n "(cached) " >&6
10538else
10539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540/* end confdefs.h.  */
10541int i;
10542int
10543main ()
10544{
10545
10546  ;
10547  return 0;
10548}
10549_ACEOF
10550if ac_fn_c_try_link "$LINENO"; then :
10551  eval $cacheid=yes
10552else
10553  eval $cacheid=no
10554fi
10555rm -f core conftest.err conftest.$ac_objext \
10556    conftest$ac_exeext conftest.$ac_ext
10557fi
10558
10559
10560		CFLAGS="$xorg_testset_save_CFLAGS"
10561
10562		eval supported=\$$cacheid
10563		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10564$as_echo "$supported" >&6; }
10565		if test "$supported" = "yes" ; then
10566			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10567			found="yes"
10568		fi
10569	fi
10570
10571
10572
10573# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10574# activate it with -Werror, so we add it here explicitly.
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588xorg_testset_save_CFLAGS="$CFLAGS"
10589
10590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10595  $as_echo_n "(cached) " >&6
10596else
10597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598/* end confdefs.h.  */
10599int i;
10600_ACEOF
10601if ac_fn_c_try_compile "$LINENO"; then :
10602  xorg_cv_cc_flag_unknown_warning_option=yes
10603else
10604  xorg_cv_cc_flag_unknown_warning_option=no
10605fi
10606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607fi
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10611	CFLAGS="$xorg_testset_save_CFLAGS"
10612fi
10613
10614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10617	fi
10618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10622  $as_echo_n "(cached) " >&6
10623else
10624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h.  */
10626int i;
10627_ACEOF
10628if ac_fn_c_try_compile "$LINENO"; then :
10629  xorg_cv_cc_flag_unused_command_line_argument=yes
10630else
10631  xorg_cv_cc_flag_unused_command_line_argument=no
10632fi
10633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634fi
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10638	CFLAGS="$xorg_testset_save_CFLAGS"
10639fi
10640
10641found="no"
10642
10643	if test $found = "no" ; then
10644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10646		fi
10647
10648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10650		fi
10651
10652		CFLAGS="$CFLAGS -Werror=attributes"
10653
10654		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10655$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10656		cacheid=xorg_cv_cc_flag__Werror_attributes
10657		if eval \${$cacheid+:} false; then :
10658  $as_echo_n "(cached) " >&6
10659else
10660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661/* end confdefs.h.  */
10662int i;
10663int
10664main ()
10665{
10666
10667  ;
10668  return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_link "$LINENO"; then :
10672  eval $cacheid=yes
10673else
10674  eval $cacheid=no
10675fi
10676rm -f core conftest.err conftest.$ac_objext \
10677    conftest$ac_exeext conftest.$ac_ext
10678fi
10679
10680
10681		CFLAGS="$xorg_testset_save_CFLAGS"
10682
10683		eval supported=\$$cacheid
10684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10685$as_echo "$supported" >&6; }
10686		if test "$supported" = "yes" ; then
10687			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10688			found="yes"
10689		fi
10690	fi
10691
10692
10693
10694if test "x$STRICT_COMPILE" = "xyes"; then
10695    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10696    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10697fi
10698
10699
10700
10701
10702
10703
10704cat >>confdefs.h <<_ACEOF
10705#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10706_ACEOF
10707
10708	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10709	if test "x$PVM" = "x"; then
10710		PVM="0"
10711	fi
10712
10713cat >>confdefs.h <<_ACEOF
10714#define PACKAGE_VERSION_MINOR $PVM
10715_ACEOF
10716
10717	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10718	if test "x$PVP" = "x"; then
10719		PVP="0"
10720	fi
10721
10722cat >>confdefs.h <<_ACEOF
10723#define PACKAGE_VERSION_PATCHLEVEL $PVP
10724_ACEOF
10725
10726
10727
10728CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10729mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10730|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10731echo 'git directory not found: installing possibly empty changelog.' >&2)"
10732
10733
10734
10735
10736macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10737INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10738mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10739|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10740echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10741
10742
10743
10744
10745
10746
10747if test x$APP_MAN_SUFFIX = x    ; then
10748    APP_MAN_SUFFIX=1
10749fi
10750if test x$APP_MAN_DIR = x    ; then
10751    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10752fi
10753
10754if test x$LIB_MAN_SUFFIX = x    ; then
10755    LIB_MAN_SUFFIX=3
10756fi
10757if test x$LIB_MAN_DIR = x    ; then
10758    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10759fi
10760
10761if test x$FILE_MAN_SUFFIX = x    ; then
10762    case $host_os in
10763	solaris*)	FILE_MAN_SUFFIX=4  ;;
10764	*)		FILE_MAN_SUFFIX=5  ;;
10765    esac
10766fi
10767if test x$FILE_MAN_DIR = x    ; then
10768    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10769fi
10770
10771if test x$MISC_MAN_SUFFIX = x    ; then
10772    case $host_os in
10773	solaris*)	MISC_MAN_SUFFIX=5  ;;
10774	*)		MISC_MAN_SUFFIX=7  ;;
10775    esac
10776fi
10777if test x$MISC_MAN_DIR = x    ; then
10778    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10779fi
10780
10781if test x$DRIVER_MAN_SUFFIX = x    ; then
10782    case $host_os in
10783	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10784	*)		DRIVER_MAN_SUFFIX=4  ;;
10785    esac
10786fi
10787if test x$DRIVER_MAN_DIR = x    ; then
10788    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10789fi
10790
10791if test x$ADMIN_MAN_SUFFIX = x    ; then
10792    case $host_os in
10793	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10794	*)		ADMIN_MAN_SUFFIX=8  ;;
10795    esac
10796fi
10797if test x$ADMIN_MAN_DIR = x    ; then
10798    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10799fi
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815XORG_MAN_PAGE="X Version 11"
10816
10817MAN_SUBSTS="\
10818	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10819	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10820	-e 's|__xservername__|Xorg|g' \
10821	-e 's|__xconfigfile__|xorg.conf|g' \
10822	-e 's|__projectroot__|\$(prefix)|g' \
10823	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10824	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10825	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10826	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10827	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10828	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10829	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10830
10831
10832
10833# Check whether --enable-silent-rules was given.
10834if test "${enable_silent_rules+set}" = set; then :
10835  enableval=$enable_silent_rules;
10836fi
10837
10838case $enable_silent_rules in # (((
10839  yes) AM_DEFAULT_VERBOSITY=0;;
10840   no) AM_DEFAULT_VERBOSITY=1;;
10841    *) AM_DEFAULT_VERBOSITY=0;;
10842esac
10843am_make=${MAKE-make}
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10845$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10846if ${am_cv_make_support_nested_variables+:} false; then :
10847  $as_echo_n "(cached) " >&6
10848else
10849  if $as_echo 'TRUE=$(BAR$(V))
10850BAR0=false
10851BAR1=true
10852V=1
10853am__doit:
10854	@$(TRUE)
10855.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10856  am_cv_make_support_nested_variables=yes
10857else
10858  am_cv_make_support_nested_variables=no
10859fi
10860fi
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10862$as_echo "$am_cv_make_support_nested_variables" >&6; }
10863if test $am_cv_make_support_nested_variables = yes; then
10864    AM_V='$(V)'
10865  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10866else
10867  AM_V=$AM_DEFAULT_VERBOSITY
10868  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10869fi
10870AM_BACKSLASH='\'
10871
10872
10873
10874# Initialize libtool
10875# Check whether --enable-static was given.
10876if test "${enable_static+set}" = set; then :
10877  enableval=$enable_static; p=${PACKAGE-default}
10878    case $enableval in
10879    yes) enable_static=yes ;;
10880    no) enable_static=no ;;
10881    *)
10882     enable_static=no
10883      # Look at the argument we got.  We use all the common list separators.
10884      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10885      for pkg in $enableval; do
10886	IFS=$lt_save_ifs
10887	if test "X$pkg" = "X$p"; then
10888	  enable_static=yes
10889	fi
10890      done
10891      IFS=$lt_save_ifs
10892      ;;
10893    esac
10894else
10895  enable_static=no
10896fi
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906case `pwd` in
10907  *\ * | *\	*)
10908    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10909$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10910esac
10911
10912
10913
10914macro_version='2.4.6'
10915macro_revision='2.4.6'
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929ltmain=$ac_aux_dir/ltmain.sh
10930
10931# Backslashify metacharacters that are still active within
10932# double-quoted strings.
10933sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10934
10935# Same as above, but do not quote variable references.
10936double_quote_subst='s/\(["`\\]\)/\\\1/g'
10937
10938# Sed substitution to delay expansion of an escaped shell variable in a
10939# double_quote_subst'ed string.
10940delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10941
10942# Sed substitution to delay expansion of an escaped single quote.
10943delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10944
10945# Sed substitution to avoid accidental globbing in evaled expressions
10946no_glob_subst='s/\*/\\\*/g'
10947
10948ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10949ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10950ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10951
10952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10953$as_echo_n "checking how to print strings... " >&6; }
10954# Test print first, because it will be a builtin if present.
10955if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10956   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10957  ECHO='print -r --'
10958elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10959  ECHO='printf %s\n'
10960else
10961  # Use this function as a fallback that always works.
10962  func_fallback_echo ()
10963  {
10964    eval 'cat <<_LTECHO_EOF
10965$1
10966_LTECHO_EOF'
10967  }
10968  ECHO='func_fallback_echo'
10969fi
10970
10971# func_echo_all arg...
10972# Invoke $ECHO with all args, space-separated.
10973func_echo_all ()
10974{
10975    $ECHO ""
10976}
10977
10978case $ECHO in
10979  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10980$as_echo "printf" >&6; } ;;
10981  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10982$as_echo "print -r" >&6; } ;;
10983  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10984$as_echo "cat" >&6; } ;;
10985esac
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11001$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11002if ${ac_cv_path_SED+:} false; then :
11003  $as_echo_n "(cached) " >&6
11004else
11005            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11006     for ac_i in 1 2 3 4 5 6 7; do
11007       ac_script="$ac_script$as_nl$ac_script"
11008     done
11009     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11010     { ac_script=; unset ac_script;}
11011     if test -z "$SED"; then
11012  ac_path_SED_found=false
11013  # Loop through the user's path and test for each of PROGNAME-LIST
11014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015for as_dir in $PATH
11016do
11017  IFS=$as_save_IFS
11018  test -z "$as_dir" && as_dir=.
11019    for ac_prog in sed gsed; do
11020    for ac_exec_ext in '' $ac_executable_extensions; do
11021      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11022      as_fn_executable_p "$ac_path_SED" || continue
11023# Check for GNU ac_path_SED and select it if it is found.
11024  # Check for GNU $ac_path_SED
11025case `"$ac_path_SED" --version 2>&1` in
11026*GNU*)
11027  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11028*)
11029  ac_count=0
11030  $as_echo_n 0123456789 >"conftest.in"
11031  while :
11032  do
11033    cat "conftest.in" "conftest.in" >"conftest.tmp"
11034    mv "conftest.tmp" "conftest.in"
11035    cp "conftest.in" "conftest.nl"
11036    $as_echo '' >> "conftest.nl"
11037    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11038    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11039    as_fn_arith $ac_count + 1 && ac_count=$as_val
11040    if test $ac_count -gt ${ac_path_SED_max-0}; then
11041      # Best one so far, save it but keep looking for a better one
11042      ac_cv_path_SED="$ac_path_SED"
11043      ac_path_SED_max=$ac_count
11044    fi
11045    # 10*(2^10) chars as input seems more than enough
11046    test $ac_count -gt 10 && break
11047  done
11048  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11049esac
11050
11051      $ac_path_SED_found && break 3
11052    done
11053  done
11054  done
11055IFS=$as_save_IFS
11056  if test -z "$ac_cv_path_SED"; then
11057    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11058  fi
11059else
11060  ac_cv_path_SED=$SED
11061fi
11062
11063fi
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11065$as_echo "$ac_cv_path_SED" >&6; }
11066 SED="$ac_cv_path_SED"
11067  rm -f conftest.sed
11068
11069test -z "$SED" && SED=sed
11070Xsed="$SED -e 1s/^X//"
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11083$as_echo_n "checking for fgrep... " >&6; }
11084if ${ac_cv_path_FGREP+:} false; then :
11085  $as_echo_n "(cached) " >&6
11086else
11087  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11088   then ac_cv_path_FGREP="$GREP -F"
11089   else
11090     if test -z "$FGREP"; then
11091  ac_path_FGREP_found=false
11092  # Loop through the user's path and test for each of PROGNAME-LIST
11093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11095do
11096  IFS=$as_save_IFS
11097  test -z "$as_dir" && as_dir=.
11098    for ac_prog in fgrep; do
11099    for ac_exec_ext in '' $ac_executable_extensions; do
11100      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11101      as_fn_executable_p "$ac_path_FGREP" || continue
11102# Check for GNU ac_path_FGREP and select it if it is found.
11103  # Check for GNU $ac_path_FGREP
11104case `"$ac_path_FGREP" --version 2>&1` in
11105*GNU*)
11106  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11107*)
11108  ac_count=0
11109  $as_echo_n 0123456789 >"conftest.in"
11110  while :
11111  do
11112    cat "conftest.in" "conftest.in" >"conftest.tmp"
11113    mv "conftest.tmp" "conftest.in"
11114    cp "conftest.in" "conftest.nl"
11115    $as_echo 'FGREP' >> "conftest.nl"
11116    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11117    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11118    as_fn_arith $ac_count + 1 && ac_count=$as_val
11119    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11120      # Best one so far, save it but keep looking for a better one
11121      ac_cv_path_FGREP="$ac_path_FGREP"
11122      ac_path_FGREP_max=$ac_count
11123    fi
11124    # 10*(2^10) chars as input seems more than enough
11125    test $ac_count -gt 10 && break
11126  done
11127  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11128esac
11129
11130      $ac_path_FGREP_found && break 3
11131    done
11132  done
11133  done
11134IFS=$as_save_IFS
11135  if test -z "$ac_cv_path_FGREP"; then
11136    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11137  fi
11138else
11139  ac_cv_path_FGREP=$FGREP
11140fi
11141
11142   fi
11143fi
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11145$as_echo "$ac_cv_path_FGREP" >&6; }
11146 FGREP="$ac_cv_path_FGREP"
11147
11148
11149test -z "$GREP" && GREP=grep
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169# Check whether --with-gnu-ld was given.
11170if test "${with_gnu_ld+set}" = set; then :
11171  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11172else
11173  with_gnu_ld=no
11174fi
11175
11176ac_prog=ld
11177if test yes = "$GCC"; then
11178  # Check if gcc -print-prog-name=ld gives a path.
11179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11180$as_echo_n "checking for ld used by $CC... " >&6; }
11181  case $host in
11182  *-*-mingw*)
11183    # gcc leaves a trailing carriage return, which upsets mingw
11184    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11185  *)
11186    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11187  esac
11188  case $ac_prog in
11189    # Accept absolute paths.
11190    [\\/]* | ?:[\\/]*)
11191      re_direlt='/[^/][^/]*/\.\./'
11192      # Canonicalize the pathname of ld
11193      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11194      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11195	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11196      done
11197      test -z "$LD" && LD=$ac_prog
11198      ;;
11199  "")
11200    # If it fails, then pretend we aren't using GCC.
11201    ac_prog=ld
11202    ;;
11203  *)
11204    # If it is relative, then search for the first ld in PATH.
11205    with_gnu_ld=unknown
11206    ;;
11207  esac
11208elif test yes = "$with_gnu_ld"; then
11209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11210$as_echo_n "checking for GNU ld... " >&6; }
11211else
11212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11213$as_echo_n "checking for non-GNU ld... " >&6; }
11214fi
11215if ${lt_cv_path_LD+:} false; then :
11216  $as_echo_n "(cached) " >&6
11217else
11218  if test -z "$LD"; then
11219  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11220  for ac_dir in $PATH; do
11221    IFS=$lt_save_ifs
11222    test -z "$ac_dir" && ac_dir=.
11223    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11224      lt_cv_path_LD=$ac_dir/$ac_prog
11225      # Check to see if the program is GNU ld.  I'd rather use --version,
11226      # but apparently some variants of GNU ld only accept -v.
11227      # Break only if it was the GNU/non-GNU ld that we prefer.
11228      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11229      *GNU* | *'with BFD'*)
11230	test no != "$with_gnu_ld" && break
11231	;;
11232      *)
11233	test yes != "$with_gnu_ld" && break
11234	;;
11235      esac
11236    fi
11237  done
11238  IFS=$lt_save_ifs
11239else
11240  lt_cv_path_LD=$LD # Let the user override the test with a path.
11241fi
11242fi
11243
11244LD=$lt_cv_path_LD
11245if test -n "$LD"; then
11246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11247$as_echo "$LD" >&6; }
11248else
11249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250$as_echo "no" >&6; }
11251fi
11252test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11254$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11255if ${lt_cv_prog_gnu_ld+:} false; then :
11256  $as_echo_n "(cached) " >&6
11257else
11258  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11259case `$LD -v 2>&1 </dev/null` in
11260*GNU* | *'with BFD'*)
11261  lt_cv_prog_gnu_ld=yes
11262  ;;
11263*)
11264  lt_cv_prog_gnu_ld=no
11265  ;;
11266esac
11267fi
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11269$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11270with_gnu_ld=$lt_cv_prog_gnu_ld
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11281$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11282if ${lt_cv_path_NM+:} false; then :
11283  $as_echo_n "(cached) " >&6
11284else
11285  if test -n "$NM"; then
11286  # Let the user override the test.
11287  lt_cv_path_NM=$NM
11288else
11289  lt_nm_to_check=${ac_tool_prefix}nm
11290  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11291    lt_nm_to_check="$lt_nm_to_check nm"
11292  fi
11293  for lt_tmp_nm in $lt_nm_to_check; do
11294    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11295    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11296      IFS=$lt_save_ifs
11297      test -z "$ac_dir" && ac_dir=.
11298      tmp_nm=$ac_dir/$lt_tmp_nm
11299      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11300	# Check to see if the nm accepts a BSD-compat flag.
11301	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11302	#   nm: unknown option "B" ignored
11303	# Tru64's nm complains that /dev/null is an invalid object file
11304	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11305	case $build_os in
11306	mingw*) lt_bad_file=conftest.nm/nofile ;;
11307	*) lt_bad_file=/dev/null ;;
11308	esac
11309	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11310	*$lt_bad_file* | *'Invalid file or object type'*)
11311	  lt_cv_path_NM="$tmp_nm -B"
11312	  break 2
11313	  ;;
11314	*)
11315	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11316	  */dev/null*)
11317	    lt_cv_path_NM="$tmp_nm -p"
11318	    break 2
11319	    ;;
11320	  *)
11321	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11322	    continue # so that we can try to find one that supports BSD flags
11323	    ;;
11324	  esac
11325	  ;;
11326	esac
11327      fi
11328    done
11329    IFS=$lt_save_ifs
11330  done
11331  : ${lt_cv_path_NM=no}
11332fi
11333fi
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11335$as_echo "$lt_cv_path_NM" >&6; }
11336if test no != "$lt_cv_path_NM"; then
11337  NM=$lt_cv_path_NM
11338else
11339  # Didn't find any BSD compatible name lister, look for dumpbin.
11340  if test -n "$DUMPBIN"; then :
11341    # Let the user override the test.
11342  else
11343    if test -n "$ac_tool_prefix"; then
11344  for ac_prog in dumpbin "link -dump"
11345  do
11346    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349$as_echo_n "checking for $ac_word... " >&6; }
11350if ${ac_cv_prog_DUMPBIN+:} false; then :
11351  $as_echo_n "(cached) " >&6
11352else
11353  if test -n "$DUMPBIN"; then
11354  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11355else
11356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359  IFS=$as_save_IFS
11360  test -z "$as_dir" && as_dir=.
11361    for ac_exec_ext in '' $ac_executable_extensions; do
11362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365    break 2
11366  fi
11367done
11368  done
11369IFS=$as_save_IFS
11370
11371fi
11372fi
11373DUMPBIN=$ac_cv_prog_DUMPBIN
11374if test -n "$DUMPBIN"; then
11375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11376$as_echo "$DUMPBIN" >&6; }
11377else
11378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
11380fi
11381
11382
11383    test -n "$DUMPBIN" && break
11384  done
11385fi
11386if test -z "$DUMPBIN"; then
11387  ac_ct_DUMPBIN=$DUMPBIN
11388  for ac_prog in dumpbin "link -dump"
11389do
11390  # Extract the first word of "$ac_prog", so it can be a program name with args.
11391set dummy $ac_prog; ac_word=$2
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393$as_echo_n "checking for $ac_word... " >&6; }
11394if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11395  $as_echo_n "(cached) " >&6
11396else
11397  if test -n "$ac_ct_DUMPBIN"; then
11398  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11399else
11400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401for as_dir in $PATH
11402do
11403  IFS=$as_save_IFS
11404  test -z "$as_dir" && as_dir=.
11405    for ac_exec_ext in '' $ac_executable_extensions; do
11406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11407    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11409    break 2
11410  fi
11411done
11412  done
11413IFS=$as_save_IFS
11414
11415fi
11416fi
11417ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11418if test -n "$ac_ct_DUMPBIN"; then
11419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11420$as_echo "$ac_ct_DUMPBIN" >&6; }
11421else
11422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423$as_echo "no" >&6; }
11424fi
11425
11426
11427  test -n "$ac_ct_DUMPBIN" && break
11428done
11429
11430  if test "x$ac_ct_DUMPBIN" = x; then
11431    DUMPBIN=":"
11432  else
11433    case $cross_compiling:$ac_tool_warned in
11434yes:)
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11437ac_tool_warned=yes ;;
11438esac
11439    DUMPBIN=$ac_ct_DUMPBIN
11440  fi
11441fi
11442
11443    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11444    *COFF*)
11445      DUMPBIN="$DUMPBIN -symbols -headers"
11446      ;;
11447    *)
11448      DUMPBIN=:
11449      ;;
11450    esac
11451  fi
11452
11453  if test : != "$DUMPBIN"; then
11454    NM=$DUMPBIN
11455  fi
11456fi
11457test -z "$NM" && NM=nm
11458
11459
11460
11461
11462
11463
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11465$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11466if ${lt_cv_nm_interface+:} false; then :
11467  $as_echo_n "(cached) " >&6
11468else
11469  lt_cv_nm_interface="BSD nm"
11470  echo "int some_variable = 0;" > conftest.$ac_ext
11471  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11472  (eval "$ac_compile" 2>conftest.err)
11473  cat conftest.err >&5
11474  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11475  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11476  cat conftest.err >&5
11477  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11478  cat conftest.out >&5
11479  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11480    lt_cv_nm_interface="MS dumpbin"
11481  fi
11482  rm -f conftest*
11483fi
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11485$as_echo "$lt_cv_nm_interface" >&6; }
11486
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11488$as_echo_n "checking whether ln -s works... " >&6; }
11489LN_S=$as_ln_s
11490if test "$LN_S" = "ln -s"; then
11491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492$as_echo "yes" >&6; }
11493else
11494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11495$as_echo "no, using $LN_S" >&6; }
11496fi
11497
11498# find the maximum length of command line arguments
11499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11500$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11501if ${lt_cv_sys_max_cmd_len+:} false; then :
11502  $as_echo_n "(cached) " >&6
11503else
11504    i=0
11505  teststring=ABCD
11506
11507  case $build_os in
11508  msdosdjgpp*)
11509    # On DJGPP, this test can blow up pretty badly due to problems in libc
11510    # (any single argument exceeding 2000 bytes causes a buffer overrun
11511    # during glob expansion).  Even if it were fixed, the result of this
11512    # check would be larger than it should be.
11513    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11514    ;;
11515
11516  gnu*)
11517    # Under GNU Hurd, this test is not required because there is
11518    # no limit to the length of command line arguments.
11519    # Libtool will interpret -1 as no limit whatsoever
11520    lt_cv_sys_max_cmd_len=-1;
11521    ;;
11522
11523  cygwin* | mingw* | cegcc*)
11524    # On Win9x/ME, this test blows up -- it succeeds, but takes
11525    # about 5 minutes as the teststring grows exponentially.
11526    # Worse, since 9x/ME are not pre-emptively multitasking,
11527    # you end up with a "frozen" computer, even though with patience
11528    # the test eventually succeeds (with a max line length of 256k).
11529    # Instead, let's just punt: use the minimum linelength reported by
11530    # all of the supported platforms: 8192 (on NT/2K/XP).
11531    lt_cv_sys_max_cmd_len=8192;
11532    ;;
11533
11534  mint*)
11535    # On MiNT this can take a long time and run out of memory.
11536    lt_cv_sys_max_cmd_len=8192;
11537    ;;
11538
11539  amigaos*)
11540    # On AmigaOS with pdksh, this test takes hours, literally.
11541    # So we just punt and use a minimum line length of 8192.
11542    lt_cv_sys_max_cmd_len=8192;
11543    ;;
11544
11545  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11546    # This has been around since 386BSD, at least.  Likely further.
11547    if test -x /sbin/sysctl; then
11548      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11549    elif test -x /usr/sbin/sysctl; then
11550      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11551    else
11552      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11553    fi
11554    # And add a safety zone
11555    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11556    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11557    ;;
11558
11559  interix*)
11560    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11561    lt_cv_sys_max_cmd_len=196608
11562    ;;
11563
11564  os2*)
11565    # The test takes a long time on OS/2.
11566    lt_cv_sys_max_cmd_len=8192
11567    ;;
11568
11569  osf*)
11570    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11571    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11572    # nice to cause kernel panics so lets avoid the loop below.
11573    # First set a reasonable default.
11574    lt_cv_sys_max_cmd_len=16384
11575    #
11576    if test -x /sbin/sysconfig; then
11577      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11578        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11579      esac
11580    fi
11581    ;;
11582  sco3.2v5*)
11583    lt_cv_sys_max_cmd_len=102400
11584    ;;
11585  sysv5* | sco5v6* | sysv4.2uw2*)
11586    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11587    if test -n "$kargmax"; then
11588      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11589    else
11590      lt_cv_sys_max_cmd_len=32768
11591    fi
11592    ;;
11593  *)
11594    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11595    if test -n "$lt_cv_sys_max_cmd_len" && \
11596       test undefined != "$lt_cv_sys_max_cmd_len"; then
11597      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11598      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11599    else
11600      # Make teststring a little bigger before we do anything with it.
11601      # a 1K string should be a reasonable start.
11602      for i in 1 2 3 4 5 6 7 8; do
11603        teststring=$teststring$teststring
11604      done
11605      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11606      # If test is not a shell built-in, we'll probably end up computing a
11607      # maximum length that is only half of the actual maximum length, but
11608      # we can't tell.
11609      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11610	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11611	      test 17 != "$i" # 1/2 MB should be enough
11612      do
11613        i=`expr $i + 1`
11614        teststring=$teststring$teststring
11615      done
11616      # Only check the string length outside the loop.
11617      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11618      teststring=
11619      # Add a significant safety factor because C++ compilers can tack on
11620      # massive amounts of additional arguments before passing them to the
11621      # linker.  It appears as though 1/2 is a usable value.
11622      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11623    fi
11624    ;;
11625  esac
11626
11627fi
11628
11629if test -n "$lt_cv_sys_max_cmd_len"; then
11630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11631$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11632else
11633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11634$as_echo "none" >&6; }
11635fi
11636max_cmd_len=$lt_cv_sys_max_cmd_len
11637
11638
11639
11640
11641
11642
11643: ${CP="cp -f"}
11644: ${MV="mv -f"}
11645: ${RM="rm -f"}
11646
11647if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11648  lt_unset=unset
11649else
11650  lt_unset=false
11651fi
11652
11653
11654
11655
11656
11657# test EBCDIC or ASCII
11658case `echo X|tr X '\101'` in
11659 A) # ASCII based system
11660    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11661  lt_SP2NL='tr \040 \012'
11662  lt_NL2SP='tr \015\012 \040\040'
11663  ;;
11664 *) # EBCDIC based system
11665  lt_SP2NL='tr \100 \n'
11666  lt_NL2SP='tr \r\n \100\100'
11667  ;;
11668esac
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11679$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11680if ${lt_cv_to_host_file_cmd+:} false; then :
11681  $as_echo_n "(cached) " >&6
11682else
11683  case $host in
11684  *-*-mingw* )
11685    case $build in
11686      *-*-mingw* ) # actually msys
11687        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11688        ;;
11689      *-*-cygwin* )
11690        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11691        ;;
11692      * ) # otherwise, assume *nix
11693        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11694        ;;
11695    esac
11696    ;;
11697  *-*-cygwin* )
11698    case $build in
11699      *-*-mingw* ) # actually msys
11700        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11701        ;;
11702      *-*-cygwin* )
11703        lt_cv_to_host_file_cmd=func_convert_file_noop
11704        ;;
11705      * ) # otherwise, assume *nix
11706        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11707        ;;
11708    esac
11709    ;;
11710  * ) # unhandled hosts (and "normal" native builds)
11711    lt_cv_to_host_file_cmd=func_convert_file_noop
11712    ;;
11713esac
11714
11715fi
11716
11717to_host_file_cmd=$lt_cv_to_host_file_cmd
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11719$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11720
11721
11722
11723
11724
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11726$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11727if ${lt_cv_to_tool_file_cmd+:} false; then :
11728  $as_echo_n "(cached) " >&6
11729else
11730  #assume ordinary cross tools, or native build.
11731lt_cv_to_tool_file_cmd=func_convert_file_noop
11732case $host in
11733  *-*-mingw* )
11734    case $build in
11735      *-*-mingw* ) # actually msys
11736        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11737        ;;
11738    esac
11739    ;;
11740esac
11741
11742fi
11743
11744to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11746$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11747
11748
11749
11750
11751
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11753$as_echo_n "checking for $LD option to reload object files... " >&6; }
11754if ${lt_cv_ld_reload_flag+:} false; then :
11755  $as_echo_n "(cached) " >&6
11756else
11757  lt_cv_ld_reload_flag='-r'
11758fi
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11760$as_echo "$lt_cv_ld_reload_flag" >&6; }
11761reload_flag=$lt_cv_ld_reload_flag
11762case $reload_flag in
11763"" | " "*) ;;
11764*) reload_flag=" $reload_flag" ;;
11765esac
11766reload_cmds='$LD$reload_flag -o $output$reload_objs'
11767case $host_os in
11768  cygwin* | mingw* | pw32* | cegcc*)
11769    if test yes != "$GCC"; then
11770      reload_cmds=false
11771    fi
11772    ;;
11773  darwin*)
11774    if test yes = "$GCC"; then
11775      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11776    else
11777      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11778    fi
11779    ;;
11780esac
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790if test -n "$ac_tool_prefix"; then
11791  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11792set dummy ${ac_tool_prefix}objdump; ac_word=$2
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794$as_echo_n "checking for $ac_word... " >&6; }
11795if ${ac_cv_prog_OBJDUMP+:} false; then :
11796  $as_echo_n "(cached) " >&6
11797else
11798  if test -n "$OBJDUMP"; then
11799  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11800else
11801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $PATH
11803do
11804  IFS=$as_save_IFS
11805  test -z "$as_dir" && as_dir=.
11806    for ac_exec_ext in '' $ac_executable_extensions; do
11807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11810    break 2
11811  fi
11812done
11813  done
11814IFS=$as_save_IFS
11815
11816fi
11817fi
11818OBJDUMP=$ac_cv_prog_OBJDUMP
11819if test -n "$OBJDUMP"; then
11820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11821$as_echo "$OBJDUMP" >&6; }
11822else
11823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824$as_echo "no" >&6; }
11825fi
11826
11827
11828fi
11829if test -z "$ac_cv_prog_OBJDUMP"; then
11830  ac_ct_OBJDUMP=$OBJDUMP
11831  # Extract the first word of "objdump", so it can be a program name with args.
11832set dummy objdump; ac_word=$2
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834$as_echo_n "checking for $ac_word... " >&6; }
11835if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11836  $as_echo_n "(cached) " >&6
11837else
11838  if test -n "$ac_ct_OBJDUMP"; then
11839  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11840else
11841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842for as_dir in $PATH
11843do
11844  IFS=$as_save_IFS
11845  test -z "$as_dir" && as_dir=.
11846    for ac_exec_ext in '' $ac_executable_extensions; do
11847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850    break 2
11851  fi
11852done
11853  done
11854IFS=$as_save_IFS
11855
11856fi
11857fi
11858ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11859if test -n "$ac_ct_OBJDUMP"; then
11860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11861$as_echo "$ac_ct_OBJDUMP" >&6; }
11862else
11863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864$as_echo "no" >&6; }
11865fi
11866
11867  if test "x$ac_ct_OBJDUMP" = x; then
11868    OBJDUMP="false"
11869  else
11870    case $cross_compiling:$ac_tool_warned in
11871yes:)
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11874ac_tool_warned=yes ;;
11875esac
11876    OBJDUMP=$ac_ct_OBJDUMP
11877  fi
11878else
11879  OBJDUMP="$ac_cv_prog_OBJDUMP"
11880fi
11881
11882test -z "$OBJDUMP" && OBJDUMP=objdump
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11893$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11894if ${lt_cv_deplibs_check_method+:} false; then :
11895  $as_echo_n "(cached) " >&6
11896else
11897  lt_cv_file_magic_cmd='$MAGIC_CMD'
11898lt_cv_file_magic_test_file=
11899lt_cv_deplibs_check_method='unknown'
11900# Need to set the preceding variable on all platforms that support
11901# interlibrary dependencies.
11902# 'none' -- dependencies not supported.
11903# 'unknown' -- same as none, but documents that we really don't know.
11904# 'pass_all' -- all dependencies passed with no checks.
11905# 'test_compile' -- check by making test program.
11906# 'file_magic [[regex]]' -- check by looking for files in library path
11907# that responds to the $file_magic_cmd with a given extended regex.
11908# If you have 'file' or equivalent on your system and you're not sure
11909# whether 'pass_all' will *always* work, you probably want this one.
11910
11911case $host_os in
11912aix[4-9]*)
11913  lt_cv_deplibs_check_method=pass_all
11914  ;;
11915
11916beos*)
11917  lt_cv_deplibs_check_method=pass_all
11918  ;;
11919
11920bsdi[45]*)
11921  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11922  lt_cv_file_magic_cmd='/usr/bin/file -L'
11923  lt_cv_file_magic_test_file=/shlib/libc.so
11924  ;;
11925
11926cygwin*)
11927  # func_win32_libid is a shell function defined in ltmain.sh
11928  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11929  lt_cv_file_magic_cmd='func_win32_libid'
11930  ;;
11931
11932mingw* | pw32*)
11933  # Base MSYS/MinGW do not provide the 'file' command needed by
11934  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11935  # unless we find 'file', for example because we are cross-compiling.
11936  if ( file / ) >/dev/null 2>&1; then
11937    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11938    lt_cv_file_magic_cmd='func_win32_libid'
11939  else
11940    # Keep this pattern in sync with the one in func_win32_libid.
11941    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11942    lt_cv_file_magic_cmd='$OBJDUMP -f'
11943  fi
11944  ;;
11945
11946cegcc*)
11947  # use the weaker test based on 'objdump'. See mingw*.
11948  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11949  lt_cv_file_magic_cmd='$OBJDUMP -f'
11950  ;;
11951
11952darwin* | rhapsody*)
11953  lt_cv_deplibs_check_method=pass_all
11954  ;;
11955
11956freebsd* | dragonfly*)
11957  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11958    case $host_cpu in
11959    i*86 )
11960      # Not sure whether the presence of OpenBSD here was a mistake.
11961      # Let's accept both of them until this is cleared up.
11962      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11963      lt_cv_file_magic_cmd=/usr/bin/file
11964      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11965      ;;
11966    esac
11967  else
11968    lt_cv_deplibs_check_method=pass_all
11969  fi
11970  ;;
11971
11972haiku*)
11973  lt_cv_deplibs_check_method=pass_all
11974  ;;
11975
11976hpux10.20* | hpux11*)
11977  lt_cv_file_magic_cmd=/usr/bin/file
11978  case $host_cpu in
11979  ia64*)
11980    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11981    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11982    ;;
11983  hppa*64*)
11984    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]'
11985    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11986    ;;
11987  *)
11988    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11989    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11990    ;;
11991  esac
11992  ;;
11993
11994interix[3-9]*)
11995  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11996  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11997  ;;
11998
11999irix5* | irix6* | nonstopux*)
12000  case $LD in
12001  *-32|*"-32 ") libmagic=32-bit;;
12002  *-n32|*"-n32 ") libmagic=N32;;
12003  *-64|*"-64 ") libmagic=64-bit;;
12004  *) libmagic=never-match;;
12005  esac
12006  lt_cv_deplibs_check_method=pass_all
12007  ;;
12008
12009# This must be glibc/ELF.
12010linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12011  lt_cv_deplibs_check_method=pass_all
12012  ;;
12013
12014netbsd*)
12015  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12016    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12017  else
12018    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12019  fi
12020  ;;
12021
12022newos6*)
12023  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12024  lt_cv_file_magic_cmd=/usr/bin/file
12025  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12026  ;;
12027
12028*nto* | *qnx*)
12029  lt_cv_deplibs_check_method=pass_all
12030  ;;
12031
12032openbsd* | bitrig*)
12033  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12034    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12035  else
12036    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12037  fi
12038  ;;
12039
12040osf3* | osf4* | osf5*)
12041  lt_cv_deplibs_check_method=pass_all
12042  ;;
12043
12044rdos*)
12045  lt_cv_deplibs_check_method=pass_all
12046  ;;
12047
12048solaris*)
12049  lt_cv_deplibs_check_method=pass_all
12050  ;;
12051
12052sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12053  lt_cv_deplibs_check_method=pass_all
12054  ;;
12055
12056sysv4 | sysv4.3*)
12057  case $host_vendor in
12058  motorola)
12059    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]'
12060    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12061    ;;
12062  ncr)
12063    lt_cv_deplibs_check_method=pass_all
12064    ;;
12065  sequent)
12066    lt_cv_file_magic_cmd='/bin/file'
12067    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12068    ;;
12069  sni)
12070    lt_cv_file_magic_cmd='/bin/file'
12071    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12072    lt_cv_file_magic_test_file=/lib/libc.so
12073    ;;
12074  siemens)
12075    lt_cv_deplibs_check_method=pass_all
12076    ;;
12077  pc)
12078    lt_cv_deplibs_check_method=pass_all
12079    ;;
12080  esac
12081  ;;
12082
12083tpf*)
12084  lt_cv_deplibs_check_method=pass_all
12085  ;;
12086os2*)
12087  lt_cv_deplibs_check_method=pass_all
12088  ;;
12089esac
12090
12091fi
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12093$as_echo "$lt_cv_deplibs_check_method" >&6; }
12094
12095file_magic_glob=
12096want_nocaseglob=no
12097if test "$build" = "$host"; then
12098  case $host_os in
12099  mingw* | pw32*)
12100    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12101      want_nocaseglob=yes
12102    else
12103      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12104    fi
12105    ;;
12106  esac
12107fi
12108
12109file_magic_cmd=$lt_cv_file_magic_cmd
12110deplibs_check_method=$lt_cv_deplibs_check_method
12111test -z "$deplibs_check_method" && deplibs_check_method=unknown
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134if test -n "$ac_tool_prefix"; then
12135  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12136set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138$as_echo_n "checking for $ac_word... " >&6; }
12139if ${ac_cv_prog_DLLTOOL+:} false; then :
12140  $as_echo_n "(cached) " >&6
12141else
12142  if test -n "$DLLTOOL"; then
12143  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12144else
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148  IFS=$as_save_IFS
12149  test -z "$as_dir" && as_dir=.
12150    for ac_exec_ext in '' $ac_executable_extensions; do
12151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154    break 2
12155  fi
12156done
12157  done
12158IFS=$as_save_IFS
12159
12160fi
12161fi
12162DLLTOOL=$ac_cv_prog_DLLTOOL
12163if test -n "$DLLTOOL"; then
12164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12165$as_echo "$DLLTOOL" >&6; }
12166else
12167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168$as_echo "no" >&6; }
12169fi
12170
12171
12172fi
12173if test -z "$ac_cv_prog_DLLTOOL"; then
12174  ac_ct_DLLTOOL=$DLLTOOL
12175  # Extract the first word of "dlltool", so it can be a program name with args.
12176set dummy dlltool; ac_word=$2
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178$as_echo_n "checking for $ac_word... " >&6; }
12179if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12180  $as_echo_n "(cached) " >&6
12181else
12182  if test -n "$ac_ct_DLLTOOL"; then
12183  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12184else
12185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186for as_dir in $PATH
12187do
12188  IFS=$as_save_IFS
12189  test -z "$as_dir" && as_dir=.
12190    for ac_exec_ext in '' $ac_executable_extensions; do
12191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12192    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194    break 2
12195  fi
12196done
12197  done
12198IFS=$as_save_IFS
12199
12200fi
12201fi
12202ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12203if test -n "$ac_ct_DLLTOOL"; then
12204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12205$as_echo "$ac_ct_DLLTOOL" >&6; }
12206else
12207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208$as_echo "no" >&6; }
12209fi
12210
12211  if test "x$ac_ct_DLLTOOL" = x; then
12212    DLLTOOL="false"
12213  else
12214    case $cross_compiling:$ac_tool_warned in
12215yes:)
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12218ac_tool_warned=yes ;;
12219esac
12220    DLLTOOL=$ac_ct_DLLTOOL
12221  fi
12222else
12223  DLLTOOL="$ac_cv_prog_DLLTOOL"
12224fi
12225
12226test -z "$DLLTOOL" && DLLTOOL=dlltool
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12238$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12239if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12240  $as_echo_n "(cached) " >&6
12241else
12242  lt_cv_sharedlib_from_linklib_cmd='unknown'
12243
12244case $host_os in
12245cygwin* | mingw* | pw32* | cegcc*)
12246  # two different shell functions defined in ltmain.sh;
12247  # decide which one to use based on capabilities of $DLLTOOL
12248  case `$DLLTOOL --help 2>&1` in
12249  *--identify-strict*)
12250    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12251    ;;
12252  *)
12253    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12254    ;;
12255  esac
12256  ;;
12257*)
12258  # fallback: assume linklib IS sharedlib
12259  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12260  ;;
12261esac
12262
12263fi
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12265$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12266sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12267test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12268
12269
12270
12271
12272
12273
12274
12275if test -n "$ac_tool_prefix"; then
12276  for ac_prog in ar
12277  do
12278    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281$as_echo_n "checking for $ac_word... " >&6; }
12282if ${ac_cv_prog_AR+:} false; then :
12283  $as_echo_n "(cached) " >&6
12284else
12285  if test -n "$AR"; then
12286  ac_cv_prog_AR="$AR" # Let the user override the test.
12287else
12288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289for as_dir in $PATH
12290do
12291  IFS=$as_save_IFS
12292  test -z "$as_dir" && as_dir=.
12293    for ac_exec_ext in '' $ac_executable_extensions; do
12294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297    break 2
12298  fi
12299done
12300  done
12301IFS=$as_save_IFS
12302
12303fi
12304fi
12305AR=$ac_cv_prog_AR
12306if test -n "$AR"; then
12307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12308$as_echo "$AR" >&6; }
12309else
12310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
12312fi
12313
12314
12315    test -n "$AR" && break
12316  done
12317fi
12318if test -z "$AR"; then
12319  ac_ct_AR=$AR
12320  for ac_prog in ar
12321do
12322  # Extract the first word of "$ac_prog", so it can be a program name with args.
12323set dummy $ac_prog; ac_word=$2
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325$as_echo_n "checking for $ac_word... " >&6; }
12326if ${ac_cv_prog_ac_ct_AR+:} false; then :
12327  $as_echo_n "(cached) " >&6
12328else
12329  if test -n "$ac_ct_AR"; then
12330  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12331else
12332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333for as_dir in $PATH
12334do
12335  IFS=$as_save_IFS
12336  test -z "$as_dir" && as_dir=.
12337    for ac_exec_ext in '' $ac_executable_extensions; do
12338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12339    ac_cv_prog_ac_ct_AR="$ac_prog"
12340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341    break 2
12342  fi
12343done
12344  done
12345IFS=$as_save_IFS
12346
12347fi
12348fi
12349ac_ct_AR=$ac_cv_prog_ac_ct_AR
12350if test -n "$ac_ct_AR"; then
12351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12352$as_echo "$ac_ct_AR" >&6; }
12353else
12354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355$as_echo "no" >&6; }
12356fi
12357
12358
12359  test -n "$ac_ct_AR" && break
12360done
12361
12362  if test "x$ac_ct_AR" = x; then
12363    AR="false"
12364  else
12365    case $cross_compiling:$ac_tool_warned in
12366yes:)
12367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12369ac_tool_warned=yes ;;
12370esac
12371    AR=$ac_ct_AR
12372  fi
12373fi
12374
12375: ${AR=ar}
12376: ${AR_FLAGS=cru}
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12389$as_echo_n "checking for archiver @FILE support... " >&6; }
12390if ${lt_cv_ar_at_file+:} false; then :
12391  $as_echo_n "(cached) " >&6
12392else
12393  lt_cv_ar_at_file=no
12394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395/* end confdefs.h.  */
12396
12397int
12398main ()
12399{
12400
12401  ;
12402  return 0;
12403}
12404_ACEOF
12405if ac_fn_c_try_compile "$LINENO"; then :
12406  echo conftest.$ac_objext > conftest.lst
12407      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12408      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12409  (eval $lt_ar_try) 2>&5
12410  ac_status=$?
12411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12412  test $ac_status = 0; }
12413      if test 0 -eq "$ac_status"; then
12414	# Ensure the archiver fails upon bogus file names.
12415	rm -f conftest.$ac_objext libconftest.a
12416	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12417  (eval $lt_ar_try) 2>&5
12418  ac_status=$?
12419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12420  test $ac_status = 0; }
12421	if test 0 -ne "$ac_status"; then
12422          lt_cv_ar_at_file=@
12423        fi
12424      fi
12425      rm -f conftest.* libconftest.a
12426
12427fi
12428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429
12430fi
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12432$as_echo "$lt_cv_ar_at_file" >&6; }
12433
12434if test no = "$lt_cv_ar_at_file"; then
12435  archiver_list_spec=
12436else
12437  archiver_list_spec=$lt_cv_ar_at_file
12438fi
12439
12440
12441
12442
12443
12444
12445
12446if test -n "$ac_tool_prefix"; then
12447  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12448set dummy ${ac_tool_prefix}strip; ac_word=$2
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450$as_echo_n "checking for $ac_word... " >&6; }
12451if ${ac_cv_prog_STRIP+:} false; then :
12452  $as_echo_n "(cached) " >&6
12453else
12454  if test -n "$STRIP"; then
12455  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12456else
12457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458for as_dir in $PATH
12459do
12460  IFS=$as_save_IFS
12461  test -z "$as_dir" && as_dir=.
12462    for ac_exec_ext in '' $ac_executable_extensions; do
12463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12464    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466    break 2
12467  fi
12468done
12469  done
12470IFS=$as_save_IFS
12471
12472fi
12473fi
12474STRIP=$ac_cv_prog_STRIP
12475if test -n "$STRIP"; then
12476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12477$as_echo "$STRIP" >&6; }
12478else
12479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
12481fi
12482
12483
12484fi
12485if test -z "$ac_cv_prog_STRIP"; then
12486  ac_ct_STRIP=$STRIP
12487  # Extract the first word of "strip", so it can be a program name with args.
12488set dummy strip; ac_word=$2
12489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12490$as_echo_n "checking for $ac_word... " >&6; }
12491if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12492  $as_echo_n "(cached) " >&6
12493else
12494  if test -n "$ac_ct_STRIP"; then
12495  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12496else
12497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498for as_dir in $PATH
12499do
12500  IFS=$as_save_IFS
12501  test -z "$as_dir" && as_dir=.
12502    for ac_exec_ext in '' $ac_executable_extensions; do
12503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12504    ac_cv_prog_ac_ct_STRIP="strip"
12505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12506    break 2
12507  fi
12508done
12509  done
12510IFS=$as_save_IFS
12511
12512fi
12513fi
12514ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12515if test -n "$ac_ct_STRIP"; then
12516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12517$as_echo "$ac_ct_STRIP" >&6; }
12518else
12519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520$as_echo "no" >&6; }
12521fi
12522
12523  if test "x$ac_ct_STRIP" = x; then
12524    STRIP=":"
12525  else
12526    case $cross_compiling:$ac_tool_warned in
12527yes:)
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12530ac_tool_warned=yes ;;
12531esac
12532    STRIP=$ac_ct_STRIP
12533  fi
12534else
12535  STRIP="$ac_cv_prog_STRIP"
12536fi
12537
12538test -z "$STRIP" && STRIP=:
12539
12540
12541
12542
12543
12544
12545if test -n "$ac_tool_prefix"; then
12546  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12547set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549$as_echo_n "checking for $ac_word... " >&6; }
12550if ${ac_cv_prog_RANLIB+:} false; then :
12551  $as_echo_n "(cached) " >&6
12552else
12553  if test -n "$RANLIB"; then
12554  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12555else
12556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557for as_dir in $PATH
12558do
12559  IFS=$as_save_IFS
12560  test -z "$as_dir" && as_dir=.
12561    for ac_exec_ext in '' $ac_executable_extensions; do
12562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12563    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565    break 2
12566  fi
12567done
12568  done
12569IFS=$as_save_IFS
12570
12571fi
12572fi
12573RANLIB=$ac_cv_prog_RANLIB
12574if test -n "$RANLIB"; then
12575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12576$as_echo "$RANLIB" >&6; }
12577else
12578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579$as_echo "no" >&6; }
12580fi
12581
12582
12583fi
12584if test -z "$ac_cv_prog_RANLIB"; then
12585  ac_ct_RANLIB=$RANLIB
12586  # Extract the first word of "ranlib", so it can be a program name with args.
12587set dummy ranlib; ac_word=$2
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589$as_echo_n "checking for $ac_word... " >&6; }
12590if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12591  $as_echo_n "(cached) " >&6
12592else
12593  if test -n "$ac_ct_RANLIB"; then
12594  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12595else
12596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597for as_dir in $PATH
12598do
12599  IFS=$as_save_IFS
12600  test -z "$as_dir" && as_dir=.
12601    for ac_exec_ext in '' $ac_executable_extensions; do
12602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603    ac_cv_prog_ac_ct_RANLIB="ranlib"
12604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605    break 2
12606  fi
12607done
12608  done
12609IFS=$as_save_IFS
12610
12611fi
12612fi
12613ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12614if test -n "$ac_ct_RANLIB"; then
12615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12616$as_echo "$ac_ct_RANLIB" >&6; }
12617else
12618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
12620fi
12621
12622  if test "x$ac_ct_RANLIB" = x; then
12623    RANLIB=":"
12624  else
12625    case $cross_compiling:$ac_tool_warned in
12626yes:)
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12629ac_tool_warned=yes ;;
12630esac
12631    RANLIB=$ac_ct_RANLIB
12632  fi
12633else
12634  RANLIB="$ac_cv_prog_RANLIB"
12635fi
12636
12637test -z "$RANLIB" && RANLIB=:
12638
12639
12640
12641
12642
12643
12644# Determine commands to create old-style static archives.
12645old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12646old_postinstall_cmds='chmod 644 $oldlib'
12647old_postuninstall_cmds=
12648
12649if test -n "$RANLIB"; then
12650  case $host_os in
12651  bitrig* | openbsd*)
12652    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12653    ;;
12654  *)
12655    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12656    ;;
12657  esac
12658  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12659fi
12660
12661case $host_os in
12662  darwin*)
12663    lock_old_archive_extraction=yes ;;
12664  *)
12665    lock_old_archive_extraction=no ;;
12666esac
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706# If no C compiler was specified, use CC.
12707LTCC=${LTCC-"$CC"}
12708
12709# If no C compiler flags were specified, use CFLAGS.
12710LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12711
12712# Allow CC to be a program name with arguments.
12713compiler=$CC
12714
12715
12716# Check for command to grab the raw symbol name followed by C symbol from nm.
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12718$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12719if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12720  $as_echo_n "(cached) " >&6
12721else
12722
12723# These are sane defaults that work on at least a few old systems.
12724# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12725
12726# Character class describing NM global symbol codes.
12727symcode='[BCDEGRST]'
12728
12729# Regexp to match symbols that can be accessed directly from C.
12730sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12731
12732# Define system-specific variables.
12733case $host_os in
12734aix*)
12735  symcode='[BCDT]'
12736  ;;
12737cygwin* | mingw* | pw32* | cegcc*)
12738  symcode='[ABCDGISTW]'
12739  ;;
12740hpux*)
12741  if test ia64 = "$host_cpu"; then
12742    symcode='[ABCDEGRST]'
12743  fi
12744  ;;
12745irix* | nonstopux*)
12746  symcode='[BCDEGRST]'
12747  ;;
12748osf*)
12749  symcode='[BCDEGQRST]'
12750  ;;
12751solaris*)
12752  symcode='[BDRT]'
12753  ;;
12754sco3.2v5*)
12755  symcode='[DT]'
12756  ;;
12757sysv4.2uw2*)
12758  symcode='[DT]'
12759  ;;
12760sysv5* | sco5v6* | unixware* | OpenUNIX*)
12761  symcode='[ABDT]'
12762  ;;
12763sysv4)
12764  symcode='[DFNSTU]'
12765  ;;
12766esac
12767
12768# If we're using GNU nm, then use its standard symbol codes.
12769case `$NM -V 2>&1` in
12770*GNU* | *'with BFD'*)
12771  symcode='[ABCDGIRSTW]' ;;
12772esac
12773
12774if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12775  # Gets list of data symbols to import.
12776  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12777  # Adjust the below global symbol transforms to fixup imported variables.
12778  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12779  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12780  lt_c_name_lib_hook="\
12781  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12782  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12783else
12784  # Disable hooks by default.
12785  lt_cv_sys_global_symbol_to_import=
12786  lt_cdecl_hook=
12787  lt_c_name_hook=
12788  lt_c_name_lib_hook=
12789fi
12790
12791# Transform an extracted symbol line into a proper C declaration.
12792# Some systems (esp. on ia64) link data and code symbols differently,
12793# so use this general approach.
12794lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12795$lt_cdecl_hook\
12796" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12797" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12798
12799# Transform an extracted symbol line into symbol name and symbol address
12800lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12801$lt_c_name_hook\
12802" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12803" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12804
12805# Transform an extracted symbol line into symbol name with lib prefix and
12806# symbol address.
12807lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12808$lt_c_name_lib_hook\
12809" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12810" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12811" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12812
12813# Handle CRLF in mingw tool chain
12814opt_cr=
12815case $build_os in
12816mingw*)
12817  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12818  ;;
12819esac
12820
12821# Try without a prefix underscore, then with it.
12822for ac_symprfx in "" "_"; do
12823
12824  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12825  symxfrm="\\1 $ac_symprfx\\2 \\2"
12826
12827  # Write the raw and C identifiers.
12828  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12829    # Fake it for dumpbin and say T for any non-static function,
12830    # D for any global variable and I for any imported variable.
12831    # Also find C++ and __fastcall symbols from MSVC++,
12832    # which start with @ or ?.
12833    lt_cv_sys_global_symbol_pipe="$AWK '"\
12834"     {last_section=section; section=\$ 3};"\
12835"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12836"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12837"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12838"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12839"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12840"     \$ 0!~/External *\|/{next};"\
12841"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12842"     {if(hide[section]) next};"\
12843"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12844"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12845"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12846"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12847"     ' prfx=^$ac_symprfx"
12848  else
12849    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12850  fi
12851  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12852
12853  # Check to see that the pipe works correctly.
12854  pipe_works=no
12855
12856  rm -f conftest*
12857  cat > conftest.$ac_ext <<_LT_EOF
12858#ifdef __cplusplus
12859extern "C" {
12860#endif
12861char nm_test_var;
12862void nm_test_func(void);
12863void nm_test_func(void){}
12864#ifdef __cplusplus
12865}
12866#endif
12867int main(){nm_test_var='a';nm_test_func();return(0);}
12868_LT_EOF
12869
12870  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12871  (eval $ac_compile) 2>&5
12872  ac_status=$?
12873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12874  test $ac_status = 0; }; then
12875    # Now try to grab the symbols.
12876    nlist=conftest.nm
12877    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12878  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12879  ac_status=$?
12880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881  test $ac_status = 0; } && test -s "$nlist"; then
12882      # Try sorting and uniquifying the output.
12883      if sort "$nlist" | uniq > "$nlist"T; then
12884	mv -f "$nlist"T "$nlist"
12885      else
12886	rm -f "$nlist"T
12887      fi
12888
12889      # Make sure that we snagged all the symbols we need.
12890      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12891	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12892	  cat <<_LT_EOF > conftest.$ac_ext
12893/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12894#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12895/* DATA imports from DLLs on WIN32 can't be const, because runtime
12896   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12897# define LT_DLSYM_CONST
12898#elif defined __osf__
12899/* This system does not cope well with relocations in const data.  */
12900# define LT_DLSYM_CONST
12901#else
12902# define LT_DLSYM_CONST const
12903#endif
12904
12905#ifdef __cplusplus
12906extern "C" {
12907#endif
12908
12909_LT_EOF
12910	  # Now generate the symbol file.
12911	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12912
12913	  cat <<_LT_EOF >> conftest.$ac_ext
12914
12915/* The mapping between symbol names and symbols.  */
12916LT_DLSYM_CONST struct {
12917  const char *name;
12918  void       *address;
12919}
12920lt__PROGRAM__LTX_preloaded_symbols[] =
12921{
12922  { "@PROGRAM@", (void *) 0 },
12923_LT_EOF
12924	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12925	  cat <<\_LT_EOF >> conftest.$ac_ext
12926  {0, (void *) 0}
12927};
12928
12929/* This works around a problem in FreeBSD linker */
12930#ifdef FREEBSD_WORKAROUND
12931static const void *lt_preloaded_setup() {
12932  return lt__PROGRAM__LTX_preloaded_symbols;
12933}
12934#endif
12935
12936#ifdef __cplusplus
12937}
12938#endif
12939_LT_EOF
12940	  # Now try linking the two files.
12941	  mv conftest.$ac_objext conftstm.$ac_objext
12942	  lt_globsym_save_LIBS=$LIBS
12943	  lt_globsym_save_CFLAGS=$CFLAGS
12944	  LIBS=conftstm.$ac_objext
12945	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12946	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12947  (eval $ac_link) 2>&5
12948  ac_status=$?
12949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12951	    pipe_works=yes
12952	  fi
12953	  LIBS=$lt_globsym_save_LIBS
12954	  CFLAGS=$lt_globsym_save_CFLAGS
12955	else
12956	  echo "cannot find nm_test_func in $nlist" >&5
12957	fi
12958      else
12959	echo "cannot find nm_test_var in $nlist" >&5
12960      fi
12961    else
12962      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12963    fi
12964  else
12965    echo "$progname: failed program was:" >&5
12966    cat conftest.$ac_ext >&5
12967  fi
12968  rm -rf conftest* conftst*
12969
12970  # Do not use the global_symbol_pipe unless it works.
12971  if test yes = "$pipe_works"; then
12972    break
12973  else
12974    lt_cv_sys_global_symbol_pipe=
12975  fi
12976done
12977
12978fi
12979
12980if test -z "$lt_cv_sys_global_symbol_pipe"; then
12981  lt_cv_sys_global_symbol_to_cdecl=
12982fi
12983if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12985$as_echo "failed" >&6; }
12986else
12987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12988$as_echo "ok" >&6; }
12989fi
12990
12991# Response file support.
12992if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12993  nm_file_list_spec='@'
12994elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12995  nm_file_list_spec='@'
12996fi
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13035$as_echo_n "checking for sysroot... " >&6; }
13036
13037# Check whether --with-sysroot was given.
13038if test "${with_sysroot+set}" = set; then :
13039  withval=$with_sysroot;
13040else
13041  with_sysroot=no
13042fi
13043
13044
13045lt_sysroot=
13046case $with_sysroot in #(
13047 yes)
13048   if test yes = "$GCC"; then
13049     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13050   fi
13051   ;; #(
13052 /*)
13053   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13054   ;; #(
13055 no|'')
13056   ;; #(
13057 *)
13058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13059$as_echo "$with_sysroot" >&6; }
13060   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13061   ;;
13062esac
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13065$as_echo "${lt_sysroot:-no}" >&6; }
13066
13067
13068
13069
13070
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13072$as_echo_n "checking for a working dd... " >&6; }
13073if ${ac_cv_path_lt_DD+:} false; then :
13074  $as_echo_n "(cached) " >&6
13075else
13076  printf 0123456789abcdef0123456789abcdef >conftest.i
13077cat conftest.i conftest.i >conftest2.i
13078: ${lt_DD:=$DD}
13079if test -z "$lt_DD"; then
13080  ac_path_lt_DD_found=false
13081  # Loop through the user's path and test for each of PROGNAME-LIST
13082  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083for as_dir in $PATH
13084do
13085  IFS=$as_save_IFS
13086  test -z "$as_dir" && as_dir=.
13087    for ac_prog in dd; do
13088    for ac_exec_ext in '' $ac_executable_extensions; do
13089      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13090      as_fn_executable_p "$ac_path_lt_DD" || continue
13091if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13092  cmp -s conftest.i conftest.out \
13093  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13094fi
13095      $ac_path_lt_DD_found && break 3
13096    done
13097  done
13098  done
13099IFS=$as_save_IFS
13100  if test -z "$ac_cv_path_lt_DD"; then
13101    :
13102  fi
13103else
13104  ac_cv_path_lt_DD=$lt_DD
13105fi
13106
13107rm -f conftest.i conftest2.i conftest.out
13108fi
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13110$as_echo "$ac_cv_path_lt_DD" >&6; }
13111
13112
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13114$as_echo_n "checking how to truncate binary pipes... " >&6; }
13115if ${lt_cv_truncate_bin+:} false; then :
13116  $as_echo_n "(cached) " >&6
13117else
13118  printf 0123456789abcdef0123456789abcdef >conftest.i
13119cat conftest.i conftest.i >conftest2.i
13120lt_cv_truncate_bin=
13121if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13122  cmp -s conftest.i conftest.out \
13123  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13124fi
13125rm -f conftest.i conftest2.i conftest.out
13126test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13127fi
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13129$as_echo "$lt_cv_truncate_bin" >&6; }
13130
13131
13132
13133
13134
13135
13136
13137# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13138func_cc_basename ()
13139{
13140    for cc_temp in $*""; do
13141      case $cc_temp in
13142        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13143        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13144        \-*) ;;
13145        *) break;;
13146      esac
13147    done
13148    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13149}
13150
13151# Check whether --enable-libtool-lock was given.
13152if test "${enable_libtool_lock+set}" = set; then :
13153  enableval=$enable_libtool_lock;
13154fi
13155
13156test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13157
13158# Some flags need to be propagated to the compiler or linker for good
13159# libtool support.
13160case $host in
13161ia64-*-hpux*)
13162  # Find out what ABI is being produced by ac_compile, and set mode
13163  # options accordingly.
13164  echo 'int i;' > conftest.$ac_ext
13165  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13166  (eval $ac_compile) 2>&5
13167  ac_status=$?
13168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13169  test $ac_status = 0; }; then
13170    case `/usr/bin/file conftest.$ac_objext` in
13171      *ELF-32*)
13172	HPUX_IA64_MODE=32
13173	;;
13174      *ELF-64*)
13175	HPUX_IA64_MODE=64
13176	;;
13177    esac
13178  fi
13179  rm -rf conftest*
13180  ;;
13181*-*-irix6*)
13182  # Find out what ABI is being produced by ac_compile, and set linker
13183  # options accordingly.
13184  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13185  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13186  (eval $ac_compile) 2>&5
13187  ac_status=$?
13188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189  test $ac_status = 0; }; then
13190    if test yes = "$lt_cv_prog_gnu_ld"; then
13191      case `/usr/bin/file conftest.$ac_objext` in
13192	*32-bit*)
13193	  LD="${LD-ld} -melf32bsmip"
13194	  ;;
13195	*N32*)
13196	  LD="${LD-ld} -melf32bmipn32"
13197	  ;;
13198	*64-bit*)
13199	  LD="${LD-ld} -melf64bmip"
13200	;;
13201      esac
13202    else
13203      case `/usr/bin/file conftest.$ac_objext` in
13204	*32-bit*)
13205	  LD="${LD-ld} -32"
13206	  ;;
13207	*N32*)
13208	  LD="${LD-ld} -n32"
13209	  ;;
13210	*64-bit*)
13211	  LD="${LD-ld} -64"
13212	  ;;
13213      esac
13214    fi
13215  fi
13216  rm -rf conftest*
13217  ;;
13218
13219mips64*-*linux*)
13220  # Find out what ABI is being produced by ac_compile, and set linker
13221  # options accordingly.
13222  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13223  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13224  (eval $ac_compile) 2>&5
13225  ac_status=$?
13226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13227  test $ac_status = 0; }; then
13228    emul=elf
13229    case `/usr/bin/file conftest.$ac_objext` in
13230      *32-bit*)
13231	emul="${emul}32"
13232	;;
13233      *64-bit*)
13234	emul="${emul}64"
13235	;;
13236    esac
13237    case `/usr/bin/file conftest.$ac_objext` in
13238      *MSB*)
13239	emul="${emul}btsmip"
13240	;;
13241      *LSB*)
13242	emul="${emul}ltsmip"
13243	;;
13244    esac
13245    case `/usr/bin/file conftest.$ac_objext` in
13246      *N32*)
13247	emul="${emul}n32"
13248	;;
13249    esac
13250    LD="${LD-ld} -m $emul"
13251  fi
13252  rm -rf conftest*
13253  ;;
13254
13255x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13256s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13257  # Find out what ABI is being produced by ac_compile, and set linker
13258  # options accordingly.  Note that the listed cases only cover the
13259  # situations where additional linker options are needed (such as when
13260  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13261  # vice versa); the common cases where no linker options are needed do
13262  # not appear in the list.
13263  echo 'int i;' > conftest.$ac_ext
13264  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13265  (eval $ac_compile) 2>&5
13266  ac_status=$?
13267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13268  test $ac_status = 0; }; then
13269    case `/usr/bin/file conftest.o` in
13270      *32-bit*)
13271	case $host in
13272	  x86_64-*kfreebsd*-gnu)
13273	    LD="${LD-ld} -m elf_i386_fbsd"
13274	    ;;
13275	  x86_64-*linux*)
13276	    case `/usr/bin/file conftest.o` in
13277	      *x86-64*)
13278		LD="${LD-ld} -m elf32_x86_64"
13279		;;
13280	      *)
13281		LD="${LD-ld} -m elf_i386"
13282		;;
13283	    esac
13284	    ;;
13285	  powerpc64le-*linux*)
13286	    LD="${LD-ld} -m elf32lppclinux"
13287	    ;;
13288	  powerpc64-*linux*)
13289	    LD="${LD-ld} -m elf32ppclinux"
13290	    ;;
13291	  s390x-*linux*)
13292	    LD="${LD-ld} -m elf_s390"
13293	    ;;
13294	  sparc64-*linux*)
13295	    LD="${LD-ld} -m elf32_sparc"
13296	    ;;
13297	esac
13298	;;
13299      *64-bit*)
13300	case $host in
13301	  x86_64-*kfreebsd*-gnu)
13302	    LD="${LD-ld} -m elf_x86_64_fbsd"
13303	    ;;
13304	  x86_64-*linux*)
13305	    LD="${LD-ld} -m elf_x86_64"
13306	    ;;
13307	  powerpcle-*linux*)
13308	    LD="${LD-ld} -m elf64lppc"
13309	    ;;
13310	  powerpc-*linux*)
13311	    LD="${LD-ld} -m elf64ppc"
13312	    ;;
13313	  s390*-*linux*|s390*-*tpf*)
13314	    LD="${LD-ld} -m elf64_s390"
13315	    ;;
13316	  sparc*-*linux*)
13317	    LD="${LD-ld} -m elf64_sparc"
13318	    ;;
13319	esac
13320	;;
13321    esac
13322  fi
13323  rm -rf conftest*
13324  ;;
13325
13326*-*-sco3.2v5*)
13327  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13328  SAVE_CFLAGS=$CFLAGS
13329  CFLAGS="$CFLAGS -belf"
13330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13331$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13332if ${lt_cv_cc_needs_belf+:} false; then :
13333  $as_echo_n "(cached) " >&6
13334else
13335  ac_ext=c
13336ac_cpp='$CPP $CPPFLAGS'
13337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339ac_compiler_gnu=$ac_cv_c_compiler_gnu
13340
13341     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342/* end confdefs.h.  */
13343
13344int
13345main ()
13346{
13347
13348  ;
13349  return 0;
13350}
13351_ACEOF
13352if ac_fn_c_try_link "$LINENO"; then :
13353  lt_cv_cc_needs_belf=yes
13354else
13355  lt_cv_cc_needs_belf=no
13356fi
13357rm -f core conftest.err conftest.$ac_objext \
13358    conftest$ac_exeext conftest.$ac_ext
13359     ac_ext=c
13360ac_cpp='$CPP $CPPFLAGS'
13361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13363ac_compiler_gnu=$ac_cv_c_compiler_gnu
13364
13365fi
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13367$as_echo "$lt_cv_cc_needs_belf" >&6; }
13368  if test yes != "$lt_cv_cc_needs_belf"; then
13369    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13370    CFLAGS=$SAVE_CFLAGS
13371  fi
13372  ;;
13373*-*solaris*)
13374  # Find out what ABI is being produced by ac_compile, and set linker
13375  # options accordingly.
13376  echo 'int i;' > conftest.$ac_ext
13377  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13378  (eval $ac_compile) 2>&5
13379  ac_status=$?
13380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381  test $ac_status = 0; }; then
13382    case `/usr/bin/file conftest.o` in
13383    *64-bit*)
13384      case $lt_cv_prog_gnu_ld in
13385      yes*)
13386        case $host in
13387        i?86-*-solaris*|x86_64-*-solaris*)
13388          LD="${LD-ld} -m elf_x86_64"
13389          ;;
13390        sparc*-*-solaris*)
13391          LD="${LD-ld} -m elf64_sparc"
13392          ;;
13393        esac
13394        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13395        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13396          LD=${LD-ld}_sol2
13397        fi
13398        ;;
13399      *)
13400	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13401	  LD="${LD-ld} -64"
13402	fi
13403	;;
13404      esac
13405      ;;
13406    esac
13407  fi
13408  rm -rf conftest*
13409  ;;
13410esac
13411
13412need_locks=$enable_libtool_lock
13413
13414if test -n "$ac_tool_prefix"; then
13415  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13416set dummy ${ac_tool_prefix}mt; ac_word=$2
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13418$as_echo_n "checking for $ac_word... " >&6; }
13419if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13420  $as_echo_n "(cached) " >&6
13421else
13422  if test -n "$MANIFEST_TOOL"; then
13423  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13424else
13425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426for as_dir in $PATH
13427do
13428  IFS=$as_save_IFS
13429  test -z "$as_dir" && as_dir=.
13430    for ac_exec_ext in '' $ac_executable_extensions; do
13431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434    break 2
13435  fi
13436done
13437  done
13438IFS=$as_save_IFS
13439
13440fi
13441fi
13442MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13443if test -n "$MANIFEST_TOOL"; then
13444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13445$as_echo "$MANIFEST_TOOL" >&6; }
13446else
13447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448$as_echo "no" >&6; }
13449fi
13450
13451
13452fi
13453if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13454  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13455  # Extract the first word of "mt", so it can be a program name with args.
13456set dummy mt; ac_word=$2
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13458$as_echo_n "checking for $ac_word... " >&6; }
13459if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13460  $as_echo_n "(cached) " >&6
13461else
13462  if test -n "$ac_ct_MANIFEST_TOOL"; then
13463  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13464else
13465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466for as_dir in $PATH
13467do
13468  IFS=$as_save_IFS
13469  test -z "$as_dir" && as_dir=.
13470    for ac_exec_ext in '' $ac_executable_extensions; do
13471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13472    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13474    break 2
13475  fi
13476done
13477  done
13478IFS=$as_save_IFS
13479
13480fi
13481fi
13482ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13483if test -n "$ac_ct_MANIFEST_TOOL"; then
13484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13485$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13486else
13487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488$as_echo "no" >&6; }
13489fi
13490
13491  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13492    MANIFEST_TOOL=":"
13493  else
13494    case $cross_compiling:$ac_tool_warned in
13495yes:)
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13498ac_tool_warned=yes ;;
13499esac
13500    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13501  fi
13502else
13503  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13504fi
13505
13506test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13508$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13509if ${lt_cv_path_mainfest_tool+:} false; then :
13510  $as_echo_n "(cached) " >&6
13511else
13512  lt_cv_path_mainfest_tool=no
13513  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13514  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13515  cat conftest.err >&5
13516  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13517    lt_cv_path_mainfest_tool=yes
13518  fi
13519  rm -f conftest*
13520fi
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13522$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13523if test yes != "$lt_cv_path_mainfest_tool"; then
13524  MANIFEST_TOOL=:
13525fi
13526
13527
13528
13529
13530
13531
13532  case $host_os in
13533    rhapsody* | darwin*)
13534    if test -n "$ac_tool_prefix"; then
13535  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13536set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13538$as_echo_n "checking for $ac_word... " >&6; }
13539if ${ac_cv_prog_DSYMUTIL+:} false; then :
13540  $as_echo_n "(cached) " >&6
13541else
13542  if test -n "$DSYMUTIL"; then
13543  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13544else
13545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13546for as_dir in $PATH
13547do
13548  IFS=$as_save_IFS
13549  test -z "$as_dir" && as_dir=.
13550    for ac_exec_ext in '' $ac_executable_extensions; do
13551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13552    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13554    break 2
13555  fi
13556done
13557  done
13558IFS=$as_save_IFS
13559
13560fi
13561fi
13562DSYMUTIL=$ac_cv_prog_DSYMUTIL
13563if test -n "$DSYMUTIL"; then
13564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13565$as_echo "$DSYMUTIL" >&6; }
13566else
13567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568$as_echo "no" >&6; }
13569fi
13570
13571
13572fi
13573if test -z "$ac_cv_prog_DSYMUTIL"; then
13574  ac_ct_DSYMUTIL=$DSYMUTIL
13575  # Extract the first word of "dsymutil", so it can be a program name with args.
13576set dummy dsymutil; ac_word=$2
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578$as_echo_n "checking for $ac_word... " >&6; }
13579if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13580  $as_echo_n "(cached) " >&6
13581else
13582  if test -n "$ac_ct_DSYMUTIL"; then
13583  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13584else
13585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586for as_dir in $PATH
13587do
13588  IFS=$as_save_IFS
13589  test -z "$as_dir" && as_dir=.
13590    for ac_exec_ext in '' $ac_executable_extensions; do
13591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13592    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594    break 2
13595  fi
13596done
13597  done
13598IFS=$as_save_IFS
13599
13600fi
13601fi
13602ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13603if test -n "$ac_ct_DSYMUTIL"; then
13604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13605$as_echo "$ac_ct_DSYMUTIL" >&6; }
13606else
13607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608$as_echo "no" >&6; }
13609fi
13610
13611  if test "x$ac_ct_DSYMUTIL" = x; then
13612    DSYMUTIL=":"
13613  else
13614    case $cross_compiling:$ac_tool_warned in
13615yes:)
13616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13618ac_tool_warned=yes ;;
13619esac
13620    DSYMUTIL=$ac_ct_DSYMUTIL
13621  fi
13622else
13623  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13624fi
13625
13626    if test -n "$ac_tool_prefix"; then
13627  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13628set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630$as_echo_n "checking for $ac_word... " >&6; }
13631if ${ac_cv_prog_NMEDIT+:} false; then :
13632  $as_echo_n "(cached) " >&6
13633else
13634  if test -n "$NMEDIT"; then
13635  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13636else
13637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638for as_dir in $PATH
13639do
13640  IFS=$as_save_IFS
13641  test -z "$as_dir" && as_dir=.
13642    for ac_exec_ext in '' $ac_executable_extensions; do
13643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13644    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646    break 2
13647  fi
13648done
13649  done
13650IFS=$as_save_IFS
13651
13652fi
13653fi
13654NMEDIT=$ac_cv_prog_NMEDIT
13655if test -n "$NMEDIT"; then
13656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13657$as_echo "$NMEDIT" >&6; }
13658else
13659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660$as_echo "no" >&6; }
13661fi
13662
13663
13664fi
13665if test -z "$ac_cv_prog_NMEDIT"; then
13666  ac_ct_NMEDIT=$NMEDIT
13667  # Extract the first word of "nmedit", so it can be a program name with args.
13668set dummy nmedit; ac_word=$2
13669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670$as_echo_n "checking for $ac_word... " >&6; }
13671if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13672  $as_echo_n "(cached) " >&6
13673else
13674  if test -n "$ac_ct_NMEDIT"; then
13675  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13676else
13677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678for as_dir in $PATH
13679do
13680  IFS=$as_save_IFS
13681  test -z "$as_dir" && as_dir=.
13682    for ac_exec_ext in '' $ac_executable_extensions; do
13683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13684    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686    break 2
13687  fi
13688done
13689  done
13690IFS=$as_save_IFS
13691
13692fi
13693fi
13694ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13695if test -n "$ac_ct_NMEDIT"; then
13696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13697$as_echo "$ac_ct_NMEDIT" >&6; }
13698else
13699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700$as_echo "no" >&6; }
13701fi
13702
13703  if test "x$ac_ct_NMEDIT" = x; then
13704    NMEDIT=":"
13705  else
13706    case $cross_compiling:$ac_tool_warned in
13707yes:)
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13710ac_tool_warned=yes ;;
13711esac
13712    NMEDIT=$ac_ct_NMEDIT
13713  fi
13714else
13715  NMEDIT="$ac_cv_prog_NMEDIT"
13716fi
13717
13718    if test -n "$ac_tool_prefix"; then
13719  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13720set dummy ${ac_tool_prefix}lipo; ac_word=$2
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722$as_echo_n "checking for $ac_word... " >&6; }
13723if ${ac_cv_prog_LIPO+:} false; then :
13724  $as_echo_n "(cached) " >&6
13725else
13726  if test -n "$LIPO"; then
13727  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13728else
13729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730for as_dir in $PATH
13731do
13732  IFS=$as_save_IFS
13733  test -z "$as_dir" && as_dir=.
13734    for ac_exec_ext in '' $ac_executable_extensions; do
13735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13736    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738    break 2
13739  fi
13740done
13741  done
13742IFS=$as_save_IFS
13743
13744fi
13745fi
13746LIPO=$ac_cv_prog_LIPO
13747if test -n "$LIPO"; then
13748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13749$as_echo "$LIPO" >&6; }
13750else
13751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752$as_echo "no" >&6; }
13753fi
13754
13755
13756fi
13757if test -z "$ac_cv_prog_LIPO"; then
13758  ac_ct_LIPO=$LIPO
13759  # Extract the first word of "lipo", so it can be a program name with args.
13760set dummy lipo; ac_word=$2
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762$as_echo_n "checking for $ac_word... " >&6; }
13763if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13764  $as_echo_n "(cached) " >&6
13765else
13766  if test -n "$ac_ct_LIPO"; then
13767  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13768else
13769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770for as_dir in $PATH
13771do
13772  IFS=$as_save_IFS
13773  test -z "$as_dir" && as_dir=.
13774    for ac_exec_ext in '' $ac_executable_extensions; do
13775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13776    ac_cv_prog_ac_ct_LIPO="lipo"
13777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13778    break 2
13779  fi
13780done
13781  done
13782IFS=$as_save_IFS
13783
13784fi
13785fi
13786ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13787if test -n "$ac_ct_LIPO"; then
13788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13789$as_echo "$ac_ct_LIPO" >&6; }
13790else
13791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792$as_echo "no" >&6; }
13793fi
13794
13795  if test "x$ac_ct_LIPO" = x; then
13796    LIPO=":"
13797  else
13798    case $cross_compiling:$ac_tool_warned in
13799yes:)
13800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13802ac_tool_warned=yes ;;
13803esac
13804    LIPO=$ac_ct_LIPO
13805  fi
13806else
13807  LIPO="$ac_cv_prog_LIPO"
13808fi
13809
13810    if test -n "$ac_tool_prefix"; then
13811  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13812set dummy ${ac_tool_prefix}otool; ac_word=$2
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13814$as_echo_n "checking for $ac_word... " >&6; }
13815if ${ac_cv_prog_OTOOL+:} false; then :
13816  $as_echo_n "(cached) " >&6
13817else
13818  if test -n "$OTOOL"; then
13819  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13820else
13821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822for as_dir in $PATH
13823do
13824  IFS=$as_save_IFS
13825  test -z "$as_dir" && as_dir=.
13826    for ac_exec_ext in '' $ac_executable_extensions; do
13827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13828    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13830    break 2
13831  fi
13832done
13833  done
13834IFS=$as_save_IFS
13835
13836fi
13837fi
13838OTOOL=$ac_cv_prog_OTOOL
13839if test -n "$OTOOL"; then
13840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13841$as_echo "$OTOOL" >&6; }
13842else
13843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844$as_echo "no" >&6; }
13845fi
13846
13847
13848fi
13849if test -z "$ac_cv_prog_OTOOL"; then
13850  ac_ct_OTOOL=$OTOOL
13851  # Extract the first word of "otool", so it can be a program name with args.
13852set dummy otool; ac_word=$2
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13854$as_echo_n "checking for $ac_word... " >&6; }
13855if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13856  $as_echo_n "(cached) " >&6
13857else
13858  if test -n "$ac_ct_OTOOL"; then
13859  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13860else
13861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862for as_dir in $PATH
13863do
13864  IFS=$as_save_IFS
13865  test -z "$as_dir" && as_dir=.
13866    for ac_exec_ext in '' $ac_executable_extensions; do
13867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13868    ac_cv_prog_ac_ct_OTOOL="otool"
13869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13870    break 2
13871  fi
13872done
13873  done
13874IFS=$as_save_IFS
13875
13876fi
13877fi
13878ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13879if test -n "$ac_ct_OTOOL"; then
13880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13881$as_echo "$ac_ct_OTOOL" >&6; }
13882else
13883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884$as_echo "no" >&6; }
13885fi
13886
13887  if test "x$ac_ct_OTOOL" = x; then
13888    OTOOL=":"
13889  else
13890    case $cross_compiling:$ac_tool_warned in
13891yes:)
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13894ac_tool_warned=yes ;;
13895esac
13896    OTOOL=$ac_ct_OTOOL
13897  fi
13898else
13899  OTOOL="$ac_cv_prog_OTOOL"
13900fi
13901
13902    if test -n "$ac_tool_prefix"; then
13903  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13904set dummy ${ac_tool_prefix}otool64; ac_word=$2
13905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13906$as_echo_n "checking for $ac_word... " >&6; }
13907if ${ac_cv_prog_OTOOL64+:} false; then :
13908  $as_echo_n "(cached) " >&6
13909else
13910  if test -n "$OTOOL64"; then
13911  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13912else
13913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13914for as_dir in $PATH
13915do
13916  IFS=$as_save_IFS
13917  test -z "$as_dir" && as_dir=.
13918    for ac_exec_ext in '' $ac_executable_extensions; do
13919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13920    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13922    break 2
13923  fi
13924done
13925  done
13926IFS=$as_save_IFS
13927
13928fi
13929fi
13930OTOOL64=$ac_cv_prog_OTOOL64
13931if test -n "$OTOOL64"; then
13932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13933$as_echo "$OTOOL64" >&6; }
13934else
13935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936$as_echo "no" >&6; }
13937fi
13938
13939
13940fi
13941if test -z "$ac_cv_prog_OTOOL64"; then
13942  ac_ct_OTOOL64=$OTOOL64
13943  # Extract the first word of "otool64", so it can be a program name with args.
13944set dummy otool64; ac_word=$2
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13946$as_echo_n "checking for $ac_word... " >&6; }
13947if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13948  $as_echo_n "(cached) " >&6
13949else
13950  if test -n "$ac_ct_OTOOL64"; then
13951  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13952else
13953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954for as_dir in $PATH
13955do
13956  IFS=$as_save_IFS
13957  test -z "$as_dir" && as_dir=.
13958    for ac_exec_ext in '' $ac_executable_extensions; do
13959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13960    ac_cv_prog_ac_ct_OTOOL64="otool64"
13961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13962    break 2
13963  fi
13964done
13965  done
13966IFS=$as_save_IFS
13967
13968fi
13969fi
13970ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13971if test -n "$ac_ct_OTOOL64"; then
13972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13973$as_echo "$ac_ct_OTOOL64" >&6; }
13974else
13975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976$as_echo "no" >&6; }
13977fi
13978
13979  if test "x$ac_ct_OTOOL64" = x; then
13980    OTOOL64=":"
13981  else
13982    case $cross_compiling:$ac_tool_warned in
13983yes:)
13984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13986ac_tool_warned=yes ;;
13987esac
13988    OTOOL64=$ac_ct_OTOOL64
13989  fi
13990else
13991  OTOOL64="$ac_cv_prog_OTOOL64"
13992fi
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14021$as_echo_n "checking for -single_module linker flag... " >&6; }
14022if ${lt_cv_apple_cc_single_mod+:} false; then :
14023  $as_echo_n "(cached) " >&6
14024else
14025  lt_cv_apple_cc_single_mod=no
14026      if test -z "$LT_MULTI_MODULE"; then
14027	# By default we will add the -single_module flag. You can override
14028	# by either setting the environment variable LT_MULTI_MODULE
14029	# non-empty at configure time, or by adding -multi_module to the
14030	# link flags.
14031	rm -rf libconftest.dylib*
14032	echo "int foo(void){return 1;}" > conftest.c
14033	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14034-dynamiclib -Wl,-single_module conftest.c" >&5
14035	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14036	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14037        _lt_result=$?
14038	# If there is a non-empty error log, and "single_module"
14039	# appears in it, assume the flag caused a linker warning
14040        if test -s conftest.err && $GREP single_module conftest.err; then
14041	  cat conftest.err >&5
14042	# Otherwise, if the output was created with a 0 exit code from
14043	# the compiler, it worked.
14044	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14045	  lt_cv_apple_cc_single_mod=yes
14046	else
14047	  cat conftest.err >&5
14048	fi
14049	rm -rf libconftest.dylib*
14050	rm -f conftest.*
14051      fi
14052fi
14053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14054$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14055
14056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14057$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14058if ${lt_cv_ld_exported_symbols_list+:} false; then :
14059  $as_echo_n "(cached) " >&6
14060else
14061  lt_cv_ld_exported_symbols_list=no
14062      save_LDFLAGS=$LDFLAGS
14063      echo "_main" > conftest.sym
14064      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14065      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066/* end confdefs.h.  */
14067
14068int
14069main ()
14070{
14071
14072  ;
14073  return 0;
14074}
14075_ACEOF
14076if ac_fn_c_try_link "$LINENO"; then :
14077  lt_cv_ld_exported_symbols_list=yes
14078else
14079  lt_cv_ld_exported_symbols_list=no
14080fi
14081rm -f core conftest.err conftest.$ac_objext \
14082    conftest$ac_exeext conftest.$ac_ext
14083	LDFLAGS=$save_LDFLAGS
14084
14085fi
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14087$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14088
14089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14090$as_echo_n "checking for -force_load linker flag... " >&6; }
14091if ${lt_cv_ld_force_load+:} false; then :
14092  $as_echo_n "(cached) " >&6
14093else
14094  lt_cv_ld_force_load=no
14095      cat > conftest.c << _LT_EOF
14096int forced_loaded() { return 2;}
14097_LT_EOF
14098      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14099      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14100      echo "$AR cru libconftest.a conftest.o" >&5
14101      $AR cru libconftest.a conftest.o 2>&5
14102      echo "$RANLIB libconftest.a" >&5
14103      $RANLIB libconftest.a 2>&5
14104      cat > conftest.c << _LT_EOF
14105int main() { return 0;}
14106_LT_EOF
14107      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14108      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14109      _lt_result=$?
14110      if test -s conftest.err && $GREP force_load conftest.err; then
14111	cat conftest.err >&5
14112      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14113	lt_cv_ld_force_load=yes
14114      else
14115	cat conftest.err >&5
14116      fi
14117        rm -f conftest.err libconftest.a conftest conftest.c
14118        rm -rf conftest.dSYM
14119
14120fi
14121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14122$as_echo "$lt_cv_ld_force_load" >&6; }
14123    case $host_os in
14124    rhapsody* | darwin1.[012])
14125      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14126    darwin1.*)
14127      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14128    darwin*) # darwin 5.x on
14129      # if running on 10.5 or later, the deployment target defaults
14130      # to the OS version, if on x86, and 10.4, the deployment
14131      # target defaults to 10.4. Don't you love it?
14132      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14133	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14134	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14135	10.[012][,.]*)
14136	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14137	10.*)
14138	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14139      esac
14140    ;;
14141  esac
14142    if test yes = "$lt_cv_apple_cc_single_mod"; then
14143      _lt_dar_single_mod='$single_module'
14144    fi
14145    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14146      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14147    else
14148      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14149    fi
14150    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14151      _lt_dsymutil='~$DSYMUTIL $lib || :'
14152    else
14153      _lt_dsymutil=
14154    fi
14155    ;;
14156  esac
14157
14158# func_munge_path_list VARIABLE PATH
14159# -----------------------------------
14160# VARIABLE is name of variable containing _space_ separated list of
14161# directories to be munged by the contents of PATH, which is string
14162# having a format:
14163# "DIR[:DIR]:"
14164#       string "DIR[ DIR]" will be prepended to VARIABLE
14165# ":DIR[:DIR]"
14166#       string "DIR[ DIR]" will be appended to VARIABLE
14167# "DIRP[:DIRP]::[DIRA:]DIRA"
14168#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14169#       "DIRA[ DIRA]" will be appended to VARIABLE
14170# "DIR[:DIR]"
14171#       VARIABLE will be replaced by "DIR[ DIR]"
14172func_munge_path_list ()
14173{
14174    case x$2 in
14175    x)
14176        ;;
14177    *:)
14178        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14179        ;;
14180    x:*)
14181        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14182        ;;
14183    *::*)
14184        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14185        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14186        ;;
14187    *)
14188        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14189        ;;
14190    esac
14191}
14192
14193for ac_header in dlfcn.h
14194do :
14195  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14196"
14197if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14198  cat >>confdefs.h <<_ACEOF
14199#define HAVE_DLFCN_H 1
14200_ACEOF
14201
14202fi
14203
14204done
14205
14206
14207
14208
14209
14210# Set options
14211
14212
14213
14214        enable_dlopen=no
14215
14216
14217  enable_win32_dll=no
14218
14219
14220            # Check whether --enable-shared was given.
14221if test "${enable_shared+set}" = set; then :
14222  enableval=$enable_shared; p=${PACKAGE-default}
14223    case $enableval in
14224    yes) enable_shared=yes ;;
14225    no) enable_shared=no ;;
14226    *)
14227      enable_shared=no
14228      # Look at the argument we got.  We use all the common list separators.
14229      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14230      for pkg in $enableval; do
14231	IFS=$lt_save_ifs
14232	if test "X$pkg" = "X$p"; then
14233	  enable_shared=yes
14234	fi
14235      done
14236      IFS=$lt_save_ifs
14237      ;;
14238    esac
14239else
14240  enable_shared=yes
14241fi
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253# Check whether --with-pic was given.
14254if test "${with_pic+set}" = set; then :
14255  withval=$with_pic; lt_p=${PACKAGE-default}
14256    case $withval in
14257    yes|no) pic_mode=$withval ;;
14258    *)
14259      pic_mode=default
14260      # Look at the argument we got.  We use all the common list separators.
14261      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14262      for lt_pkg in $withval; do
14263	IFS=$lt_save_ifs
14264	if test "X$lt_pkg" = "X$lt_p"; then
14265	  pic_mode=yes
14266	fi
14267      done
14268      IFS=$lt_save_ifs
14269      ;;
14270    esac
14271else
14272  pic_mode=default
14273fi
14274
14275
14276
14277
14278
14279
14280
14281
14282  # Check whether --enable-fast-install was given.
14283if test "${enable_fast_install+set}" = set; then :
14284  enableval=$enable_fast_install; p=${PACKAGE-default}
14285    case $enableval in
14286    yes) enable_fast_install=yes ;;
14287    no) enable_fast_install=no ;;
14288    *)
14289      enable_fast_install=no
14290      # Look at the argument we got.  We use all the common list separators.
14291      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14292      for pkg in $enableval; do
14293	IFS=$lt_save_ifs
14294	if test "X$pkg" = "X$p"; then
14295	  enable_fast_install=yes
14296	fi
14297      done
14298      IFS=$lt_save_ifs
14299      ;;
14300    esac
14301else
14302  enable_fast_install=yes
14303fi
14304
14305
14306
14307
14308
14309
14310
14311
14312  shared_archive_member_spec=
14313case $host,$enable_shared in
14314power*-*-aix[5-9]*,yes)
14315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14316$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14317
14318# Check whether --with-aix-soname was given.
14319if test "${with_aix_soname+set}" = set; then :
14320  withval=$with_aix_soname; case $withval in
14321    aix|svr4|both)
14322      ;;
14323    *)
14324      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14325      ;;
14326    esac
14327    lt_cv_with_aix_soname=$with_aix_soname
14328else
14329  if ${lt_cv_with_aix_soname+:} false; then :
14330  $as_echo_n "(cached) " >&6
14331else
14332  lt_cv_with_aix_soname=aix
14333fi
14334
14335    with_aix_soname=$lt_cv_with_aix_soname
14336fi
14337
14338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14339$as_echo "$with_aix_soname" >&6; }
14340  if test aix != "$with_aix_soname"; then
14341    # For the AIX way of multilib, we name the shared archive member
14342    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14343    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14344    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14345    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14346    if test 64 = "${OBJECT_MODE-32}"; then
14347      shared_archive_member_spec=shr_64
14348    else
14349      shared_archive_member_spec=shr
14350    fi
14351  fi
14352  ;;
14353*)
14354  with_aix_soname=aix
14355  ;;
14356esac
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367# This can be used to rebuild libtool when needed
14368LIBTOOL_DEPS=$ltmain
14369
14370# Always use our own libtool.
14371LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402test -z "$LN_S" && LN_S="ln -s"
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417if test -n "${ZSH_VERSION+set}"; then
14418   setopt NO_GLOB_SUBST
14419fi
14420
14421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14422$as_echo_n "checking for objdir... " >&6; }
14423if ${lt_cv_objdir+:} false; then :
14424  $as_echo_n "(cached) " >&6
14425else
14426  rm -f .libs 2>/dev/null
14427mkdir .libs 2>/dev/null
14428if test -d .libs; then
14429  lt_cv_objdir=.libs
14430else
14431  # MS-DOS does not allow filenames that begin with a dot.
14432  lt_cv_objdir=_libs
14433fi
14434rmdir .libs 2>/dev/null
14435fi
14436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14437$as_echo "$lt_cv_objdir" >&6; }
14438objdir=$lt_cv_objdir
14439
14440
14441
14442
14443
14444cat >>confdefs.h <<_ACEOF
14445#define LT_OBJDIR "$lt_cv_objdir/"
14446_ACEOF
14447
14448
14449
14450
14451case $host_os in
14452aix3*)
14453  # AIX sometimes has problems with the GCC collect2 program.  For some
14454  # reason, if we set the COLLECT_NAMES environment variable, the problems
14455  # vanish in a puff of smoke.
14456  if test set != "${COLLECT_NAMES+set}"; then
14457    COLLECT_NAMES=
14458    export COLLECT_NAMES
14459  fi
14460  ;;
14461esac
14462
14463# Global variables:
14464ofile=libtool
14465can_build_shared=yes
14466
14467# All known linkers require a '.a' archive for static linking (except MSVC,
14468# which needs '.lib').
14469libext=a
14470
14471with_gnu_ld=$lt_cv_prog_gnu_ld
14472
14473old_CC=$CC
14474old_CFLAGS=$CFLAGS
14475
14476# Set sane defaults for various variables
14477test -z "$CC" && CC=cc
14478test -z "$LTCC" && LTCC=$CC
14479test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14480test -z "$LD" && LD=ld
14481test -z "$ac_objext" && ac_objext=o
14482
14483func_cc_basename $compiler
14484cc_basename=$func_cc_basename_result
14485
14486
14487# Only perform the check for file, if the check method requires it
14488test -z "$MAGIC_CMD" && MAGIC_CMD=file
14489case $deplibs_check_method in
14490file_magic*)
14491  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14493$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14494if ${lt_cv_path_MAGIC_CMD+:} false; then :
14495  $as_echo_n "(cached) " >&6
14496else
14497  case $MAGIC_CMD in
14498[\\/*] |  ?:[\\/]*)
14499  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14500  ;;
14501*)
14502  lt_save_MAGIC_CMD=$MAGIC_CMD
14503  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14504  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14505  for ac_dir in $ac_dummy; do
14506    IFS=$lt_save_ifs
14507    test -z "$ac_dir" && ac_dir=.
14508    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14509      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14510      if test -n "$file_magic_test_file"; then
14511	case $deplibs_check_method in
14512	"file_magic "*)
14513	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14514	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14515	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14516	    $EGREP "$file_magic_regex" > /dev/null; then
14517	    :
14518	  else
14519	    cat <<_LT_EOF 1>&2
14520
14521*** Warning: the command libtool uses to detect shared libraries,
14522*** $file_magic_cmd, produces output that libtool cannot recognize.
14523*** The result is that libtool may fail to recognize shared libraries
14524*** as such.  This will affect the creation of libtool libraries that
14525*** depend on shared libraries, but programs linked with such libtool
14526*** libraries will work regardless of this problem.  Nevertheless, you
14527*** may want to report the problem to your system manager and/or to
14528*** bug-libtool@gnu.org
14529
14530_LT_EOF
14531	  fi ;;
14532	esac
14533      fi
14534      break
14535    fi
14536  done
14537  IFS=$lt_save_ifs
14538  MAGIC_CMD=$lt_save_MAGIC_CMD
14539  ;;
14540esac
14541fi
14542
14543MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14544if test -n "$MAGIC_CMD"; then
14545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14546$as_echo "$MAGIC_CMD" >&6; }
14547else
14548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549$as_echo "no" >&6; }
14550fi
14551
14552
14553
14554
14555
14556if test -z "$lt_cv_path_MAGIC_CMD"; then
14557  if test -n "$ac_tool_prefix"; then
14558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14559$as_echo_n "checking for file... " >&6; }
14560if ${lt_cv_path_MAGIC_CMD+:} false; then :
14561  $as_echo_n "(cached) " >&6
14562else
14563  case $MAGIC_CMD in
14564[\\/*] |  ?:[\\/]*)
14565  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14566  ;;
14567*)
14568  lt_save_MAGIC_CMD=$MAGIC_CMD
14569  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14570  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14571  for ac_dir in $ac_dummy; do
14572    IFS=$lt_save_ifs
14573    test -z "$ac_dir" && ac_dir=.
14574    if test -f "$ac_dir/file"; then
14575      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14576      if test -n "$file_magic_test_file"; then
14577	case $deplibs_check_method in
14578	"file_magic "*)
14579	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14580	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14581	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14582	    $EGREP "$file_magic_regex" > /dev/null; then
14583	    :
14584	  else
14585	    cat <<_LT_EOF 1>&2
14586
14587*** Warning: the command libtool uses to detect shared libraries,
14588*** $file_magic_cmd, produces output that libtool cannot recognize.
14589*** The result is that libtool may fail to recognize shared libraries
14590*** as such.  This will affect the creation of libtool libraries that
14591*** depend on shared libraries, but programs linked with such libtool
14592*** libraries will work regardless of this problem.  Nevertheless, you
14593*** may want to report the problem to your system manager and/or to
14594*** bug-libtool@gnu.org
14595
14596_LT_EOF
14597	  fi ;;
14598	esac
14599      fi
14600      break
14601    fi
14602  done
14603  IFS=$lt_save_ifs
14604  MAGIC_CMD=$lt_save_MAGIC_CMD
14605  ;;
14606esac
14607fi
14608
14609MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14610if test -n "$MAGIC_CMD"; then
14611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14612$as_echo "$MAGIC_CMD" >&6; }
14613else
14614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615$as_echo "no" >&6; }
14616fi
14617
14618
14619  else
14620    MAGIC_CMD=:
14621  fi
14622fi
14623
14624  fi
14625  ;;
14626esac
14627
14628# Use C for the default configuration in the libtool script
14629
14630lt_save_CC=$CC
14631ac_ext=c
14632ac_cpp='$CPP $CPPFLAGS'
14633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14635ac_compiler_gnu=$ac_cv_c_compiler_gnu
14636
14637
14638# Source file extension for C test sources.
14639ac_ext=c
14640
14641# Object file extension for compiled C test sources.
14642objext=o
14643objext=$objext
14644
14645# Code to be used in simple compile tests
14646lt_simple_compile_test_code="int some_variable = 0;"
14647
14648# Code to be used in simple link tests
14649lt_simple_link_test_code='int main(){return(0);}'
14650
14651
14652
14653
14654
14655
14656
14657# If no C compiler was specified, use CC.
14658LTCC=${LTCC-"$CC"}
14659
14660# If no C compiler flags were specified, use CFLAGS.
14661LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14662
14663# Allow CC to be a program name with arguments.
14664compiler=$CC
14665
14666# Save the default compiler, since it gets overwritten when the other
14667# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14668compiler_DEFAULT=$CC
14669
14670# save warnings/boilerplate of simple test code
14671ac_outfile=conftest.$ac_objext
14672echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14673eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14674_lt_compiler_boilerplate=`cat conftest.err`
14675$RM conftest*
14676
14677ac_outfile=conftest.$ac_objext
14678echo "$lt_simple_link_test_code" >conftest.$ac_ext
14679eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14680_lt_linker_boilerplate=`cat conftest.err`
14681$RM -r conftest*
14682
14683
14684if test -n "$compiler"; then
14685
14686lt_prog_compiler_no_builtin_flag=
14687
14688if test yes = "$GCC"; then
14689  case $cc_basename in
14690  nvcc*)
14691    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14692  *)
14693    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14694  esac
14695
14696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14697$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14698if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14699  $as_echo_n "(cached) " >&6
14700else
14701  lt_cv_prog_compiler_rtti_exceptions=no
14702   ac_outfile=conftest.$ac_objext
14703   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14704   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14705   # Insert the option either (1) after the last *FLAGS variable, or
14706   # (2) before a word containing "conftest.", or (3) at the end.
14707   # Note that $ac_compile itself does not contain backslashes and begins
14708   # with a dollar sign (not a hyphen), so the echo should work correctly.
14709   # The option is referenced via a variable to avoid confusing sed.
14710   lt_compile=`echo "$ac_compile" | $SED \
14711   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14712   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14713   -e 's:$: $lt_compiler_flag:'`
14714   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14715   (eval "$lt_compile" 2>conftest.err)
14716   ac_status=$?
14717   cat conftest.err >&5
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   if (exit $ac_status) && test -s "$ac_outfile"; then
14720     # The compiler can only warn and ignore the option if not recognized
14721     # So say no if there are warnings other than the usual output.
14722     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14723     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14724     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14725       lt_cv_prog_compiler_rtti_exceptions=yes
14726     fi
14727   fi
14728   $RM conftest*
14729
14730fi
14731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14732$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14733
14734if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14735    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14736else
14737    :
14738fi
14739
14740fi
14741
14742
14743
14744
14745
14746
14747  lt_prog_compiler_wl=
14748lt_prog_compiler_pic=
14749lt_prog_compiler_static=
14750
14751
14752  if test yes = "$GCC"; then
14753    lt_prog_compiler_wl='-Wl,'
14754    lt_prog_compiler_static='-static'
14755
14756    case $host_os in
14757      aix*)
14758      # All AIX code is PIC.
14759      if test ia64 = "$host_cpu"; then
14760	# AIX 5 now supports IA64 processor
14761	lt_prog_compiler_static='-Bstatic'
14762      fi
14763      lt_prog_compiler_pic='-fPIC'
14764      ;;
14765
14766    amigaos*)
14767      case $host_cpu in
14768      powerpc)
14769            # see comment about AmigaOS4 .so support
14770            lt_prog_compiler_pic='-fPIC'
14771        ;;
14772      m68k)
14773            # FIXME: we need at least 68020 code to build shared libraries, but
14774            # adding the '-m68020' flag to GCC prevents building anything better,
14775            # like '-m68040'.
14776            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14777        ;;
14778      esac
14779      ;;
14780
14781    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14782      # PIC is the default for these OSes.
14783      ;;
14784
14785    mingw* | cygwin* | pw32* | os2* | cegcc*)
14786      # This hack is so that the source file can tell whether it is being
14787      # built for inclusion in a dll (and should export symbols for example).
14788      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14789      # (--disable-auto-import) libraries
14790      lt_prog_compiler_pic='-DDLL_EXPORT'
14791      case $host_os in
14792      os2*)
14793	lt_prog_compiler_static='$wl-static'
14794	;;
14795      esac
14796      ;;
14797
14798    darwin* | rhapsody*)
14799      # PIC is the default on this platform
14800      # Common symbols not allowed in MH_DYLIB files
14801      lt_prog_compiler_pic='-fno-common'
14802      ;;
14803
14804    haiku*)
14805      # PIC is the default for Haiku.
14806      # The "-static" flag exists, but is broken.
14807      lt_prog_compiler_static=
14808      ;;
14809
14810    hpux*)
14811      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14812      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14813      # sets the default TLS model and affects inlining.
14814      case $host_cpu in
14815      hppa*64*)
14816	# +Z the default
14817	;;
14818      *)
14819	lt_prog_compiler_pic='-fPIC'
14820	;;
14821      esac
14822      ;;
14823
14824    interix[3-9]*)
14825      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14826      # Instead, we relocate shared libraries at runtime.
14827      ;;
14828
14829    msdosdjgpp*)
14830      # Just because we use GCC doesn't mean we suddenly get shared libraries
14831      # on systems that don't support them.
14832      lt_prog_compiler_can_build_shared=no
14833      enable_shared=no
14834      ;;
14835
14836    *nto* | *qnx*)
14837      # QNX uses GNU C++, but need to define -shared option too, otherwise
14838      # it will coredump.
14839      lt_prog_compiler_pic='-fPIC -shared'
14840      ;;
14841
14842    sysv4*MP*)
14843      if test -d /usr/nec; then
14844	lt_prog_compiler_pic=-Kconform_pic
14845      fi
14846      ;;
14847
14848    *)
14849      lt_prog_compiler_pic='-fPIC'
14850      ;;
14851    esac
14852
14853    case $cc_basename in
14854    nvcc*) # Cuda Compiler Driver 2.2
14855      lt_prog_compiler_wl='-Xlinker '
14856      if test -n "$lt_prog_compiler_pic"; then
14857        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14858      fi
14859      ;;
14860    esac
14861  else
14862    # PORTME Check for flag to pass linker flags through the system compiler.
14863    case $host_os in
14864    aix*)
14865      lt_prog_compiler_wl='-Wl,'
14866      if test ia64 = "$host_cpu"; then
14867	# AIX 5 now supports IA64 processor
14868	lt_prog_compiler_static='-Bstatic'
14869      else
14870	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14871      fi
14872      ;;
14873
14874    darwin* | rhapsody*)
14875      # PIC is the default on this platform
14876      # Common symbols not allowed in MH_DYLIB files
14877      lt_prog_compiler_pic='-fno-common'
14878      case $cc_basename in
14879      nagfor*)
14880        # NAG Fortran compiler
14881        lt_prog_compiler_wl='-Wl,-Wl,,'
14882        lt_prog_compiler_pic='-PIC'
14883        lt_prog_compiler_static='-Bstatic'
14884        ;;
14885      esac
14886      ;;
14887
14888    mingw* | cygwin* | pw32* | os2* | cegcc*)
14889      # This hack is so that the source file can tell whether it is being
14890      # built for inclusion in a dll (and should export symbols for example).
14891      lt_prog_compiler_pic='-DDLL_EXPORT'
14892      case $host_os in
14893      os2*)
14894	lt_prog_compiler_static='$wl-static'
14895	;;
14896      esac
14897      ;;
14898
14899    hpux9* | hpux10* | hpux11*)
14900      lt_prog_compiler_wl='-Wl,'
14901      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14902      # not for PA HP-UX.
14903      case $host_cpu in
14904      hppa*64*|ia64*)
14905	# +Z the default
14906	;;
14907      *)
14908	lt_prog_compiler_pic='+Z'
14909	;;
14910      esac
14911      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14912      lt_prog_compiler_static='$wl-a ${wl}archive'
14913      ;;
14914
14915    irix5* | irix6* | nonstopux*)
14916      lt_prog_compiler_wl='-Wl,'
14917      # PIC (with -KPIC) is the default.
14918      lt_prog_compiler_static='-non_shared'
14919      ;;
14920
14921    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14922      case $cc_basename in
14923      # old Intel for x86_64, which still supported -KPIC.
14924      ecc*)
14925	lt_prog_compiler_wl='-Wl,'
14926	lt_prog_compiler_pic='-KPIC'
14927	lt_prog_compiler_static='-static'
14928        ;;
14929      # icc used to be incompatible with GCC.
14930      # ICC 10 doesn't accept -KPIC any more.
14931      icc* | ifort*)
14932	lt_prog_compiler_wl='-Wl,'
14933	lt_prog_compiler_pic='-fPIC'
14934	lt_prog_compiler_static='-static'
14935        ;;
14936      # Lahey Fortran 8.1.
14937      lf95*)
14938	lt_prog_compiler_wl='-Wl,'
14939	lt_prog_compiler_pic='--shared'
14940	lt_prog_compiler_static='--static'
14941	;;
14942      nagfor*)
14943	# NAG Fortran compiler
14944	lt_prog_compiler_wl='-Wl,-Wl,,'
14945	lt_prog_compiler_pic='-PIC'
14946	lt_prog_compiler_static='-Bstatic'
14947	;;
14948      tcc*)
14949	# Fabrice Bellard et al's Tiny C Compiler
14950	lt_prog_compiler_wl='-Wl,'
14951	lt_prog_compiler_pic='-fPIC'
14952	lt_prog_compiler_static='-static'
14953	;;
14954      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14955        # Portland Group compilers (*not* the Pentium gcc compiler,
14956	# which looks to be a dead project)
14957	lt_prog_compiler_wl='-Wl,'
14958	lt_prog_compiler_pic='-fpic'
14959	lt_prog_compiler_static='-Bstatic'
14960        ;;
14961      ccc*)
14962        lt_prog_compiler_wl='-Wl,'
14963        # All Alpha code is PIC.
14964        lt_prog_compiler_static='-non_shared'
14965        ;;
14966      xl* | bgxl* | bgf* | mpixl*)
14967	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14968	lt_prog_compiler_wl='-Wl,'
14969	lt_prog_compiler_pic='-qpic'
14970	lt_prog_compiler_static='-qstaticlink'
14971	;;
14972      *)
14973	case `$CC -V 2>&1 | sed 5q` in
14974	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14975	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14976	  lt_prog_compiler_pic='-KPIC'
14977	  lt_prog_compiler_static='-Bstatic'
14978	  lt_prog_compiler_wl=''
14979	  ;;
14980	*Sun\ F* | *Sun*Fortran*)
14981	  lt_prog_compiler_pic='-KPIC'
14982	  lt_prog_compiler_static='-Bstatic'
14983	  lt_prog_compiler_wl='-Qoption ld '
14984	  ;;
14985	*Sun\ C*)
14986	  # Sun C 5.9
14987	  lt_prog_compiler_pic='-KPIC'
14988	  lt_prog_compiler_static='-Bstatic'
14989	  lt_prog_compiler_wl='-Wl,'
14990	  ;;
14991        *Intel*\ [CF]*Compiler*)
14992	  lt_prog_compiler_wl='-Wl,'
14993	  lt_prog_compiler_pic='-fPIC'
14994	  lt_prog_compiler_static='-static'
14995	  ;;
14996	*Portland\ Group*)
14997	  lt_prog_compiler_wl='-Wl,'
14998	  lt_prog_compiler_pic='-fpic'
14999	  lt_prog_compiler_static='-Bstatic'
15000	  ;;
15001	esac
15002	;;
15003      esac
15004      ;;
15005
15006    newsos6)
15007      lt_prog_compiler_pic='-KPIC'
15008      lt_prog_compiler_static='-Bstatic'
15009      ;;
15010
15011    *nto* | *qnx*)
15012      # QNX uses GNU C++, but need to define -shared option too, otherwise
15013      # it will coredump.
15014      lt_prog_compiler_pic='-fPIC -shared'
15015      ;;
15016
15017    osf3* | osf4* | osf5*)
15018      lt_prog_compiler_wl='-Wl,'
15019      # All OSF/1 code is PIC.
15020      lt_prog_compiler_static='-non_shared'
15021      ;;
15022
15023    rdos*)
15024      lt_prog_compiler_static='-non_shared'
15025      ;;
15026
15027    solaris*)
15028      lt_prog_compiler_pic='-KPIC'
15029      lt_prog_compiler_static='-Bstatic'
15030      case $cc_basename in
15031      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15032	lt_prog_compiler_wl='-Qoption ld ';;
15033      *)
15034	lt_prog_compiler_wl='-Wl,';;
15035      esac
15036      ;;
15037
15038    sunos4*)
15039      lt_prog_compiler_wl='-Qoption ld '
15040      lt_prog_compiler_pic='-PIC'
15041      lt_prog_compiler_static='-Bstatic'
15042      ;;
15043
15044    sysv4 | sysv4.2uw2* | sysv4.3*)
15045      lt_prog_compiler_wl='-Wl,'
15046      lt_prog_compiler_pic='-KPIC'
15047      lt_prog_compiler_static='-Bstatic'
15048      ;;
15049
15050    sysv4*MP*)
15051      if test -d /usr/nec; then
15052	lt_prog_compiler_pic='-Kconform_pic'
15053	lt_prog_compiler_static='-Bstatic'
15054      fi
15055      ;;
15056
15057    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15058      lt_prog_compiler_wl='-Wl,'
15059      lt_prog_compiler_pic='-KPIC'
15060      lt_prog_compiler_static='-Bstatic'
15061      ;;
15062
15063    unicos*)
15064      lt_prog_compiler_wl='-Wl,'
15065      lt_prog_compiler_can_build_shared=no
15066      ;;
15067
15068    uts4*)
15069      lt_prog_compiler_pic='-pic'
15070      lt_prog_compiler_static='-Bstatic'
15071      ;;
15072
15073    *)
15074      lt_prog_compiler_can_build_shared=no
15075      ;;
15076    esac
15077  fi
15078
15079case $host_os in
15080  # For platforms that do not support PIC, -DPIC is meaningless:
15081  *djgpp*)
15082    lt_prog_compiler_pic=
15083    ;;
15084  *)
15085    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15086    ;;
15087esac
15088
15089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15090$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15091if ${lt_cv_prog_compiler_pic+:} false; then :
15092  $as_echo_n "(cached) " >&6
15093else
15094  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15095fi
15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15097$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15098lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15099
15100#
15101# Check to make sure the PIC flag actually works.
15102#
15103if test -n "$lt_prog_compiler_pic"; then
15104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15105$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15106if ${lt_cv_prog_compiler_pic_works+:} false; then :
15107  $as_echo_n "(cached) " >&6
15108else
15109  lt_cv_prog_compiler_pic_works=no
15110   ac_outfile=conftest.$ac_objext
15111   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15112   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15113   # Insert the option either (1) after the last *FLAGS variable, or
15114   # (2) before a word containing "conftest.", or (3) at the end.
15115   # Note that $ac_compile itself does not contain backslashes and begins
15116   # with a dollar sign (not a hyphen), so the echo should work correctly.
15117   # The option is referenced via a variable to avoid confusing sed.
15118   lt_compile=`echo "$ac_compile" | $SED \
15119   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15120   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15121   -e 's:$: $lt_compiler_flag:'`
15122   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15123   (eval "$lt_compile" 2>conftest.err)
15124   ac_status=$?
15125   cat conftest.err >&5
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   if (exit $ac_status) && test -s "$ac_outfile"; then
15128     # The compiler can only warn and ignore the option if not recognized
15129     # So say no if there are warnings other than the usual output.
15130     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15131     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15132     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15133       lt_cv_prog_compiler_pic_works=yes
15134     fi
15135   fi
15136   $RM conftest*
15137
15138fi
15139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15140$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15141
15142if test yes = "$lt_cv_prog_compiler_pic_works"; then
15143    case $lt_prog_compiler_pic in
15144     "" | " "*) ;;
15145     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15146     esac
15147else
15148    lt_prog_compiler_pic=
15149     lt_prog_compiler_can_build_shared=no
15150fi
15151
15152fi
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164#
15165# Check to make sure the static flag actually works.
15166#
15167wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15169$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15170if ${lt_cv_prog_compiler_static_works+:} false; then :
15171  $as_echo_n "(cached) " >&6
15172else
15173  lt_cv_prog_compiler_static_works=no
15174   save_LDFLAGS=$LDFLAGS
15175   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15176   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15177   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15178     # The linker can only warn and ignore the option if not recognized
15179     # So say no if there are warnings
15180     if test -s conftest.err; then
15181       # Append any errors to the config.log.
15182       cat conftest.err 1>&5
15183       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15184       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15185       if diff conftest.exp conftest.er2 >/dev/null; then
15186         lt_cv_prog_compiler_static_works=yes
15187       fi
15188     else
15189       lt_cv_prog_compiler_static_works=yes
15190     fi
15191   fi
15192   $RM -r conftest*
15193   LDFLAGS=$save_LDFLAGS
15194
15195fi
15196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15197$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15198
15199if test yes = "$lt_cv_prog_compiler_static_works"; then
15200    :
15201else
15202    lt_prog_compiler_static=
15203fi
15204
15205
15206
15207
15208
15209
15210
15211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15212$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15213if ${lt_cv_prog_compiler_c_o+:} false; then :
15214  $as_echo_n "(cached) " >&6
15215else
15216  lt_cv_prog_compiler_c_o=no
15217   $RM -r conftest 2>/dev/null
15218   mkdir conftest
15219   cd conftest
15220   mkdir out
15221   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15222
15223   lt_compiler_flag="-o out/conftest2.$ac_objext"
15224   # Insert the option either (1) after the last *FLAGS variable, or
15225   # (2) before a word containing "conftest.", or (3) at the end.
15226   # Note that $ac_compile itself does not contain backslashes and begins
15227   # with a dollar sign (not a hyphen), so the echo should work correctly.
15228   lt_compile=`echo "$ac_compile" | $SED \
15229   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15230   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15231   -e 's:$: $lt_compiler_flag:'`
15232   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15233   (eval "$lt_compile" 2>out/conftest.err)
15234   ac_status=$?
15235   cat out/conftest.err >&5
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15238   then
15239     # The compiler can only warn and ignore the option if not recognized
15240     # So say no if there are warnings
15241     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15242     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15243     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15244       lt_cv_prog_compiler_c_o=yes
15245     fi
15246   fi
15247   chmod u+w . 2>&5
15248   $RM conftest*
15249   # SGI C++ compiler will create directory out/ii_files/ for
15250   # template instantiation
15251   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15252   $RM out/* && rmdir out
15253   cd ..
15254   $RM -r conftest
15255   $RM conftest*
15256
15257fi
15258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15259$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15260
15261
15262
15263
15264
15265
15266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15267$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15268if ${lt_cv_prog_compiler_c_o+:} false; then :
15269  $as_echo_n "(cached) " >&6
15270else
15271  lt_cv_prog_compiler_c_o=no
15272   $RM -r conftest 2>/dev/null
15273   mkdir conftest
15274   cd conftest
15275   mkdir out
15276   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15277
15278   lt_compiler_flag="-o out/conftest2.$ac_objext"
15279   # Insert the option either (1) after the last *FLAGS variable, or
15280   # (2) before a word containing "conftest.", or (3) at the end.
15281   # Note that $ac_compile itself does not contain backslashes and begins
15282   # with a dollar sign (not a hyphen), so the echo should work correctly.
15283   lt_compile=`echo "$ac_compile" | $SED \
15284   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15285   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15286   -e 's:$: $lt_compiler_flag:'`
15287   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15288   (eval "$lt_compile" 2>out/conftest.err)
15289   ac_status=$?
15290   cat out/conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15293   then
15294     # The compiler can only warn and ignore the option if not recognized
15295     # So say no if there are warnings
15296     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15297     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15298     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15299       lt_cv_prog_compiler_c_o=yes
15300     fi
15301   fi
15302   chmod u+w . 2>&5
15303   $RM conftest*
15304   # SGI C++ compiler will create directory out/ii_files/ for
15305   # template instantiation
15306   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15307   $RM out/* && rmdir out
15308   cd ..
15309   $RM -r conftest
15310   $RM conftest*
15311
15312fi
15313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15314$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15315
15316
15317
15318
15319hard_links=nottested
15320if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15321  # do not overwrite the value of need_locks provided by the user
15322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15323$as_echo_n "checking if we can lock with hard links... " >&6; }
15324  hard_links=yes
15325  $RM conftest*
15326  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15327  touch conftest.a
15328  ln conftest.a conftest.b 2>&5 || hard_links=no
15329  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15331$as_echo "$hard_links" >&6; }
15332  if test no = "$hard_links"; then
15333    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15334$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15335    need_locks=warn
15336  fi
15337else
15338  need_locks=no
15339fi
15340
15341
15342
15343
15344
15345
15346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15347$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15348
15349  runpath_var=
15350  allow_undefined_flag=
15351  always_export_symbols=no
15352  archive_cmds=
15353  archive_expsym_cmds=
15354  compiler_needs_object=no
15355  enable_shared_with_static_runtimes=no
15356  export_dynamic_flag_spec=
15357  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15358  hardcode_automatic=no
15359  hardcode_direct=no
15360  hardcode_direct_absolute=no
15361  hardcode_libdir_flag_spec=
15362  hardcode_libdir_separator=
15363  hardcode_minus_L=no
15364  hardcode_shlibpath_var=unsupported
15365  inherit_rpath=no
15366  link_all_deplibs=unknown
15367  module_cmds=
15368  module_expsym_cmds=
15369  old_archive_from_new_cmds=
15370  old_archive_from_expsyms_cmds=
15371  thread_safe_flag_spec=
15372  whole_archive_flag_spec=
15373  # include_expsyms should be a list of space-separated symbols to be *always*
15374  # included in the symbol list
15375  include_expsyms=
15376  # exclude_expsyms can be an extended regexp of symbols to exclude
15377  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15378  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15379  # as well as any symbol that contains 'd'.
15380  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15381  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15382  # platforms (ab)use it in PIC code, but their linkers get confused if
15383  # the symbol is explicitly referenced.  Since portable code cannot
15384  # rely on this symbol name, it's probably fine to never include it in
15385  # preloaded symbol tables.
15386  # Exclude shared library initialization/finalization symbols.
15387  extract_expsyms_cmds=
15388
15389  case $host_os in
15390  cygwin* | mingw* | pw32* | cegcc*)
15391    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15392    # When not using gcc, we currently assume that we are using
15393    # Microsoft Visual C++.
15394    if test yes != "$GCC"; then
15395      with_gnu_ld=no
15396    fi
15397    ;;
15398  interix*)
15399    # we just hope/assume this is gcc and not c89 (= MSVC++)
15400    with_gnu_ld=yes
15401    ;;
15402  openbsd* | bitrig*)
15403    with_gnu_ld=no
15404    ;;
15405  esac
15406
15407  ld_shlibs=yes
15408
15409  # On some targets, GNU ld is compatible enough with the native linker
15410  # that we're better off using the native interface for both.
15411  lt_use_gnu_ld_interface=no
15412  if test yes = "$with_gnu_ld"; then
15413    case $host_os in
15414      aix*)
15415	# The AIX port of GNU ld has always aspired to compatibility
15416	# with the native linker.  However, as the warning in the GNU ld
15417	# block says, versions before 2.19.5* couldn't really create working
15418	# shared libraries, regardless of the interface used.
15419	case `$LD -v 2>&1` in
15420	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15421	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15422	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15423	  *)
15424	    lt_use_gnu_ld_interface=yes
15425	    ;;
15426	esac
15427	;;
15428      *)
15429	lt_use_gnu_ld_interface=yes
15430	;;
15431    esac
15432  fi
15433
15434  if test yes = "$lt_use_gnu_ld_interface"; then
15435    # If archive_cmds runs LD, not CC, wlarc should be empty
15436    wlarc='$wl'
15437
15438    # Set some defaults for GNU ld with shared library support. These
15439    # are reset later if shared libraries are not supported. Putting them
15440    # here allows them to be overridden if necessary.
15441    runpath_var=LD_RUN_PATH
15442    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15443    export_dynamic_flag_spec='$wl--export-dynamic'
15444    # ancient GNU ld didn't support --whole-archive et. al.
15445    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15446      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15447    else
15448      whole_archive_flag_spec=
15449    fi
15450    supports_anon_versioning=no
15451    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15452      *GNU\ gold*) supports_anon_versioning=yes ;;
15453      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15454      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15455      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15456      *\ 2.11.*) ;; # other 2.11 versions
15457      *) supports_anon_versioning=yes ;;
15458    esac
15459
15460    # See if GNU ld supports shared libraries.
15461    case $host_os in
15462    aix[3-9]*)
15463      # On AIX/PPC, the GNU linker is very broken
15464      if test ia64 != "$host_cpu"; then
15465	ld_shlibs=no
15466	cat <<_LT_EOF 1>&2
15467
15468*** Warning: the GNU linker, at least up to release 2.19, is reported
15469*** to be unable to reliably create shared libraries on AIX.
15470*** Therefore, libtool is disabling shared libraries support.  If you
15471*** really care for shared libraries, you may want to install binutils
15472*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15473*** You will then need to restart the configuration process.
15474
15475_LT_EOF
15476      fi
15477      ;;
15478
15479    amigaos*)
15480      case $host_cpu in
15481      powerpc)
15482            # see comment about AmigaOS4 .so support
15483            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15484            archive_expsym_cmds=''
15485        ;;
15486      m68k)
15487            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)'
15488            hardcode_libdir_flag_spec='-L$libdir'
15489            hardcode_minus_L=yes
15490        ;;
15491      esac
15492      ;;
15493
15494    beos*)
15495      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15496	allow_undefined_flag=unsupported
15497	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15498	# support --undefined.  This deserves some investigation.  FIXME
15499	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15500      else
15501	ld_shlibs=no
15502      fi
15503      ;;
15504
15505    cygwin* | mingw* | pw32* | cegcc*)
15506      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15507      # as there is no search path for DLLs.
15508      hardcode_libdir_flag_spec='-L$libdir'
15509      export_dynamic_flag_spec='$wl--export-all-symbols'
15510      allow_undefined_flag=unsupported
15511      always_export_symbols=no
15512      enable_shared_with_static_runtimes=yes
15513      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'
15514      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15515
15516      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15517        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15518	# If the export-symbols file already is a .def file, use it as
15519	# is; otherwise, prepend EXPORTS...
15520	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15521          cp $export_symbols $output_objdir/$soname.def;
15522        else
15523          echo EXPORTS > $output_objdir/$soname.def;
15524          cat $export_symbols >> $output_objdir/$soname.def;
15525        fi~
15526        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15527      else
15528	ld_shlibs=no
15529      fi
15530      ;;
15531
15532    haiku*)
15533      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15534      link_all_deplibs=yes
15535      ;;
15536
15537    os2*)
15538      hardcode_libdir_flag_spec='-L$libdir'
15539      hardcode_minus_L=yes
15540      allow_undefined_flag=unsupported
15541      shrext_cmds=.dll
15542      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15543	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15544	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15545	$ECHO EXPORTS >> $output_objdir/$libname.def~
15546	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15547	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15548	emximp -o $lib $output_objdir/$libname.def'
15549      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15550	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15551	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15552	$ECHO EXPORTS >> $output_objdir/$libname.def~
15553	prefix_cmds="$SED"~
15554	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15555	  prefix_cmds="$prefix_cmds -e 1d";
15556	fi~
15557	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15558	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15559	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15560	emximp -o $lib $output_objdir/$libname.def'
15561      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15562      enable_shared_with_static_runtimes=yes
15563      ;;
15564
15565    interix[3-9]*)
15566      hardcode_direct=no
15567      hardcode_shlibpath_var=no
15568      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15569      export_dynamic_flag_spec='$wl-E'
15570      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15571      # Instead, shared libraries are loaded at an image base (0x10000000 by
15572      # default) and relocated if they conflict, which is a slow very memory
15573      # consuming and fragmenting process.  To avoid this, we pick a random,
15574      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15575      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15576      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15577      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'
15578      ;;
15579
15580    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15581      tmp_diet=no
15582      if test linux-dietlibc = "$host_os"; then
15583	case $cc_basename in
15584	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15585	esac
15586      fi
15587      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15588	 && test no = "$tmp_diet"
15589      then
15590	tmp_addflag=' $pic_flag'
15591	tmp_sharedflag='-shared'
15592	case $cc_basename,$host_cpu in
15593        pgcc*)				# Portland Group C compiler
15594	  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'
15595	  tmp_addflag=' $pic_flag'
15596	  ;;
15597	pgf77* | pgf90* | pgf95* | pgfortran*)
15598					# Portland Group f77 and f90 compilers
15599	  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'
15600	  tmp_addflag=' $pic_flag -Mnomain' ;;
15601	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15602	  tmp_addflag=' -i_dynamic' ;;
15603	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15604	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15605	ifc* | ifort*)			# Intel Fortran compiler
15606	  tmp_addflag=' -nofor_main' ;;
15607	lf95*)				# Lahey Fortran 8.1
15608	  whole_archive_flag_spec=
15609	  tmp_sharedflag='--shared' ;;
15610        nagfor*)                        # NAGFOR 5.3
15611          tmp_sharedflag='-Wl,-shared' ;;
15612	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15613	  tmp_sharedflag='-qmkshrobj'
15614	  tmp_addflag= ;;
15615	nvcc*)	# Cuda Compiler Driver 2.2
15616	  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'
15617	  compiler_needs_object=yes
15618	  ;;
15619	esac
15620	case `$CC -V 2>&1 | sed 5q` in
15621	*Sun\ C*)			# Sun C 5.9
15622	  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'
15623	  compiler_needs_object=yes
15624	  tmp_sharedflag='-G' ;;
15625	*Sun\ F*)			# Sun Fortran 8.3
15626	  tmp_sharedflag='-G' ;;
15627	esac
15628	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15629
15630        if test yes = "$supports_anon_versioning"; then
15631          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15632            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15633            echo "local: *; };" >> $output_objdir/$libname.ver~
15634            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15635        fi
15636
15637	case $cc_basename in
15638	tcc*)
15639	  export_dynamic_flag_spec='-rdynamic'
15640	  ;;
15641	xlf* | bgf* | bgxlf* | mpixlf*)
15642	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15643	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15644	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15645	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15646	  if test yes = "$supports_anon_versioning"; then
15647	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15648              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15649              echo "local: *; };" >> $output_objdir/$libname.ver~
15650              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15651	  fi
15652	  ;;
15653	esac
15654      else
15655        ld_shlibs=no
15656      fi
15657      ;;
15658
15659    netbsd*)
15660      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15661	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15662	wlarc=
15663      else
15664	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15665	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15666      fi
15667      ;;
15668
15669    solaris*)
15670      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15671	ld_shlibs=no
15672	cat <<_LT_EOF 1>&2
15673
15674*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15675*** create shared libraries on Solaris systems.  Therefore, libtool
15676*** is disabling shared libraries support.  We urge you to upgrade GNU
15677*** binutils to release 2.9.1 or newer.  Another option is to modify
15678*** your PATH or compiler configuration so that the native linker is
15679*** used, and then restart.
15680
15681_LT_EOF
15682      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15683	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15684	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15685      else
15686	ld_shlibs=no
15687      fi
15688      ;;
15689
15690    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15691      case `$LD -v 2>&1` in
15692        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15693	ld_shlibs=no
15694	cat <<_LT_EOF 1>&2
15695
15696*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15697*** reliably create shared libraries on SCO systems.  Therefore, libtool
15698*** is disabling shared libraries support.  We urge you to upgrade GNU
15699*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15700*** your PATH or compiler configuration so that the native linker is
15701*** used, and then restart.
15702
15703_LT_EOF
15704	;;
15705	*)
15706	  # For security reasons, it is highly recommended that you always
15707	  # use absolute paths for naming shared libraries, and exclude the
15708	  # DT_RUNPATH tag from executables and libraries.  But doing so
15709	  # requires that you compile everything twice, which is a pain.
15710	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15711	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15712	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15713	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15714	  else
15715	    ld_shlibs=no
15716	  fi
15717	;;
15718      esac
15719      ;;
15720
15721    sunos4*)
15722      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15723      wlarc=
15724      hardcode_direct=yes
15725      hardcode_shlibpath_var=no
15726      ;;
15727
15728    *)
15729      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15730	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15731	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15732      else
15733	ld_shlibs=no
15734      fi
15735      ;;
15736    esac
15737
15738    if test no = "$ld_shlibs"; then
15739      runpath_var=
15740      hardcode_libdir_flag_spec=
15741      export_dynamic_flag_spec=
15742      whole_archive_flag_spec=
15743    fi
15744  else
15745    # PORTME fill in a description of your system's linker (not GNU ld)
15746    case $host_os in
15747    aix3*)
15748      allow_undefined_flag=unsupported
15749      always_export_symbols=yes
15750      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'
15751      # Note: this linker hardcodes the directories in LIBPATH if there
15752      # are no directories specified by -L.
15753      hardcode_minus_L=yes
15754      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15755	# Neither direct hardcoding nor static linking is supported with a
15756	# broken collect2.
15757	hardcode_direct=unsupported
15758      fi
15759      ;;
15760
15761    aix[4-9]*)
15762      if test ia64 = "$host_cpu"; then
15763	# On IA64, the linker does run time linking by default, so we don't
15764	# have to do anything special.
15765	aix_use_runtimelinking=no
15766	exp_sym_flag='-Bexport'
15767	no_entry_flag=
15768      else
15769	# If we're using GNU nm, then we don't want the "-C" option.
15770	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15771	# Without the "-l" option, or with the "-B" option, AIX nm treats
15772	# weak defined symbols like other global defined symbols, whereas
15773	# GNU nm marks them as "W".
15774	# While the 'weak' keyword is ignored in the Export File, we need
15775	# it in the Import File for the 'aix-soname' feature, so we have
15776	# to replace the "-B" option with "-P" for AIX nm.
15777	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15778	  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'
15779	else
15780	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15781	fi
15782	aix_use_runtimelinking=no
15783
15784	# Test if we are trying to use run time linking or normal
15785	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15786	# have runtime linking enabled, and use it for executables.
15787	# For shared libraries, we enable/disable runtime linking
15788	# depending on the kind of the shared library created -
15789	# when "with_aix_soname,aix_use_runtimelinking" is:
15790	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15791	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15792	#            lib.a           static archive
15793	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15794	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15795	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15796	#            lib.a(lib.so.V) shared, rtl:no
15797	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15798	#            lib.a           static archive
15799	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15800	  for ld_flag in $LDFLAGS; do
15801	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15802	    aix_use_runtimelinking=yes
15803	    break
15804	  fi
15805	  done
15806	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15807	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15808	    # so we don't have lib.a shared libs to link our executables.
15809	    # We have to force runtime linking in this case.
15810	    aix_use_runtimelinking=yes
15811	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15812	  fi
15813	  ;;
15814	esac
15815
15816	exp_sym_flag='-bexport'
15817	no_entry_flag='-bnoentry'
15818      fi
15819
15820      # When large executables or shared objects are built, AIX ld can
15821      # have problems creating the table of contents.  If linking a library
15822      # or program results in "error TOC overflow" add -mminimal-toc to
15823      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15824      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15825
15826      archive_cmds=''
15827      hardcode_direct=yes
15828      hardcode_direct_absolute=yes
15829      hardcode_libdir_separator=':'
15830      link_all_deplibs=yes
15831      file_list_spec='$wl-f,'
15832      case $with_aix_soname,$aix_use_runtimelinking in
15833      aix,*) ;; # traditional, no import file
15834      svr4,* | *,yes) # use import file
15835	# The Import File defines what to hardcode.
15836	hardcode_direct=no
15837	hardcode_direct_absolute=no
15838	;;
15839      esac
15840
15841      if test yes = "$GCC"; then
15842	case $host_os in aix4.[012]|aix4.[012].*)
15843	# We only want to do this on AIX 4.2 and lower, the check
15844	# below for broken collect2 doesn't work under 4.3+
15845	  collect2name=`$CC -print-prog-name=collect2`
15846	  if test -f "$collect2name" &&
15847	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15848	  then
15849	  # We have reworked collect2
15850	  :
15851	  else
15852	  # We have old collect2
15853	  hardcode_direct=unsupported
15854	  # It fails to find uninstalled libraries when the uninstalled
15855	  # path is not listed in the libpath.  Setting hardcode_minus_L
15856	  # to unsupported forces relinking
15857	  hardcode_minus_L=yes
15858	  hardcode_libdir_flag_spec='-L$libdir'
15859	  hardcode_libdir_separator=
15860	  fi
15861	  ;;
15862	esac
15863	shared_flag='-shared'
15864	if test yes = "$aix_use_runtimelinking"; then
15865	  shared_flag="$shared_flag "'$wl-G'
15866	fi
15867	# Need to ensure runtime linking is disabled for the traditional
15868	# shared library, or the linker may eventually find shared libraries
15869	# /with/ Import File - we do not want to mix them.
15870	shared_flag_aix='-shared'
15871	shared_flag_svr4='-shared $wl-G'
15872      else
15873	# not using gcc
15874	if test ia64 = "$host_cpu"; then
15875	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15876	# chokes on -Wl,-G. The following line is correct:
15877	  shared_flag='-G'
15878	else
15879	  if test yes = "$aix_use_runtimelinking"; then
15880	    shared_flag='$wl-G'
15881	  else
15882	    shared_flag='$wl-bM:SRE'
15883	  fi
15884	  shared_flag_aix='$wl-bM:SRE'
15885	  shared_flag_svr4='$wl-G'
15886	fi
15887      fi
15888
15889      export_dynamic_flag_spec='$wl-bexpall'
15890      # It seems that -bexpall does not export symbols beginning with
15891      # underscore (_), so it is better to generate a list of symbols to export.
15892      always_export_symbols=yes
15893      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15894	# Warning - without using the other runtime loading flags (-brtl),
15895	# -berok will link without error, but may produce a broken library.
15896	allow_undefined_flag='-berok'
15897        # Determine the default libpath from the value encoded in an
15898        # empty executable.
15899        if test set = "${lt_cv_aix_libpath+set}"; then
15900  aix_libpath=$lt_cv_aix_libpath
15901else
15902  if ${lt_cv_aix_libpath_+:} false; then :
15903  $as_echo_n "(cached) " >&6
15904else
15905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906/* end confdefs.h.  */
15907
15908int
15909main ()
15910{
15911
15912  ;
15913  return 0;
15914}
15915_ACEOF
15916if ac_fn_c_try_link "$LINENO"; then :
15917
15918  lt_aix_libpath_sed='
15919      /Import File Strings/,/^$/ {
15920	  /^0/ {
15921	      s/^0  *\([^ ]*\) *$/\1/
15922	      p
15923	  }
15924      }'
15925  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15926  # Check for a 64-bit object if we didn't find anything.
15927  if test -z "$lt_cv_aix_libpath_"; then
15928    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15929  fi
15930fi
15931rm -f core conftest.err conftest.$ac_objext \
15932    conftest$ac_exeext conftest.$ac_ext
15933  if test -z "$lt_cv_aix_libpath_"; then
15934    lt_cv_aix_libpath_=/usr/lib:/lib
15935  fi
15936
15937fi
15938
15939  aix_libpath=$lt_cv_aix_libpath_
15940fi
15941
15942        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15943        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
15944      else
15945	if test ia64 = "$host_cpu"; then
15946	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15947	  allow_undefined_flag="-z nodefs"
15948	  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"
15949	else
15950	 # Determine the default libpath from the value encoded in an
15951	 # empty executable.
15952	 if test set = "${lt_cv_aix_libpath+set}"; then
15953  aix_libpath=$lt_cv_aix_libpath
15954else
15955  if ${lt_cv_aix_libpath_+:} false; then :
15956  $as_echo_n "(cached) " >&6
15957else
15958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959/* end confdefs.h.  */
15960
15961int
15962main ()
15963{
15964
15965  ;
15966  return 0;
15967}
15968_ACEOF
15969if ac_fn_c_try_link "$LINENO"; then :
15970
15971  lt_aix_libpath_sed='
15972      /Import File Strings/,/^$/ {
15973	  /^0/ {
15974	      s/^0  *\([^ ]*\) *$/\1/
15975	      p
15976	  }
15977      }'
15978  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15979  # Check for a 64-bit object if we didn't find anything.
15980  if test -z "$lt_cv_aix_libpath_"; then
15981    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15982  fi
15983fi
15984rm -f core conftest.err conftest.$ac_objext \
15985    conftest$ac_exeext conftest.$ac_ext
15986  if test -z "$lt_cv_aix_libpath_"; then
15987    lt_cv_aix_libpath_=/usr/lib:/lib
15988  fi
15989
15990fi
15991
15992  aix_libpath=$lt_cv_aix_libpath_
15993fi
15994
15995	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15996	  # Warning - without using the other run time loading flags,
15997	  # -berok will link without error, but may produce a broken library.
15998	  no_undefined_flag=' $wl-bernotok'
15999	  allow_undefined_flag=' $wl-berok'
16000	  if test yes = "$with_gnu_ld"; then
16001	    # We only use this code for GNU lds that support --whole-archive.
16002	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16003	  else
16004	    # Exported symbols can be pulled into shared objects from archives
16005	    whole_archive_flag_spec='$convenience'
16006	  fi
16007	  archive_cmds_need_lc=yes
16008	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16009	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16010	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16011	  if test svr4 != "$with_aix_soname"; then
16012	    # This is similar to how AIX traditionally builds its shared libraries.
16013	    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'
16014	  fi
16015	  if test aix != "$with_aix_soname"; then
16016	    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'
16017	  else
16018	    # used by -dlpreopen to get the symbols
16019	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16020	  fi
16021	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16022	fi
16023      fi
16024      ;;
16025
16026    amigaos*)
16027      case $host_cpu in
16028      powerpc)
16029            # see comment about AmigaOS4 .so support
16030            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16031            archive_expsym_cmds=''
16032        ;;
16033      m68k)
16034            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)'
16035            hardcode_libdir_flag_spec='-L$libdir'
16036            hardcode_minus_L=yes
16037        ;;
16038      esac
16039      ;;
16040
16041    bsdi[45]*)
16042      export_dynamic_flag_spec=-rdynamic
16043      ;;
16044
16045    cygwin* | mingw* | pw32* | cegcc*)
16046      # When not using gcc, we currently assume that we are using
16047      # Microsoft Visual C++.
16048      # hardcode_libdir_flag_spec is actually meaningless, as there is
16049      # no search path for DLLs.
16050      case $cc_basename in
16051      cl*)
16052	# Native MSVC
16053	hardcode_libdir_flag_spec=' '
16054	allow_undefined_flag=unsupported
16055	always_export_symbols=yes
16056	file_list_spec='@'
16057	# Tell ltmain to make .lib files, not .a files.
16058	libext=lib
16059	# Tell ltmain to make .dll files, not .so files.
16060	shrext_cmds=.dll
16061	# FIXME: Setting linknames here is a bad hack.
16062	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16063	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16064            cp "$export_symbols" "$output_objdir/$soname.def";
16065            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16066          else
16067            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16068          fi~
16069          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16070          linknames='
16071	# The linker will not automatically build a static lib if we build a DLL.
16072	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16073	enable_shared_with_static_runtimes=yes
16074	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16075	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16076	# Don't use ranlib
16077	old_postinstall_cmds='chmod 644 $oldlib'
16078	postlink_cmds='lt_outputfile="@OUTPUT@"~
16079          lt_tool_outputfile="@TOOL_OUTPUT@"~
16080          case $lt_outputfile in
16081            *.exe|*.EXE) ;;
16082            *)
16083              lt_outputfile=$lt_outputfile.exe
16084              lt_tool_outputfile=$lt_tool_outputfile.exe
16085              ;;
16086          esac~
16087          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16088            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16089            $RM "$lt_outputfile.manifest";
16090          fi'
16091	;;
16092      *)
16093	# Assume MSVC wrapper
16094	hardcode_libdir_flag_spec=' '
16095	allow_undefined_flag=unsupported
16096	# Tell ltmain to make .lib files, not .a files.
16097	libext=lib
16098	# Tell ltmain to make .dll files, not .so files.
16099	shrext_cmds=.dll
16100	# FIXME: Setting linknames here is a bad hack.
16101	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16102	# The linker will automatically build a .lib file if we build a DLL.
16103	old_archive_from_new_cmds='true'
16104	# FIXME: Should let the user specify the lib program.
16105	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16106	enable_shared_with_static_runtimes=yes
16107	;;
16108      esac
16109      ;;
16110
16111    darwin* | rhapsody*)
16112
16113
16114  archive_cmds_need_lc=no
16115  hardcode_direct=no
16116  hardcode_automatic=yes
16117  hardcode_shlibpath_var=unsupported
16118  if test yes = "$lt_cv_ld_force_load"; then
16119    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\"`'
16120
16121  else
16122    whole_archive_flag_spec=''
16123  fi
16124  link_all_deplibs=yes
16125  allow_undefined_flag=$_lt_dar_allow_undefined
16126  case $cc_basename in
16127     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16128     *) _lt_dar_can_shared=$GCC ;;
16129  esac
16130  if test yes = "$_lt_dar_can_shared"; then
16131    output_verbose_link_cmd=func_echo_all
16132    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16133    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16134    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"
16135    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"
16136
16137  else
16138  ld_shlibs=no
16139  fi
16140
16141      ;;
16142
16143    dgux*)
16144      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16145      hardcode_libdir_flag_spec='-L$libdir'
16146      hardcode_shlibpath_var=no
16147      ;;
16148
16149    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16150    # support.  Future versions do this automatically, but an explicit c++rt0.o
16151    # does not break anything, and helps significantly (at the cost of a little
16152    # extra space).
16153    freebsd2.2*)
16154      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16155      hardcode_libdir_flag_spec='-R$libdir'
16156      hardcode_direct=yes
16157      hardcode_shlibpath_var=no
16158      ;;
16159
16160    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16161    freebsd2.*)
16162      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16163      hardcode_direct=yes
16164      hardcode_minus_L=yes
16165      hardcode_shlibpath_var=no
16166      ;;
16167
16168    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16169    freebsd* | dragonfly*)
16170      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16171      hardcode_libdir_flag_spec='-R$libdir'
16172      hardcode_direct=yes
16173      hardcode_shlibpath_var=no
16174      ;;
16175
16176    hpux9*)
16177      if test yes = "$GCC"; then
16178	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'
16179      else
16180	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'
16181      fi
16182      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16183      hardcode_libdir_separator=:
16184      hardcode_direct=yes
16185
16186      # hardcode_minus_L: Not really in the search PATH,
16187      # but as the default location of the library.
16188      hardcode_minus_L=yes
16189      export_dynamic_flag_spec='$wl-E'
16190      ;;
16191
16192    hpux10*)
16193      if test yes,no = "$GCC,$with_gnu_ld"; then
16194	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16195      else
16196	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16197      fi
16198      if test no = "$with_gnu_ld"; then
16199	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16200	hardcode_libdir_separator=:
16201	hardcode_direct=yes
16202	hardcode_direct_absolute=yes
16203	export_dynamic_flag_spec='$wl-E'
16204	# hardcode_minus_L: Not really in the search PATH,
16205	# but as the default location of the library.
16206	hardcode_minus_L=yes
16207      fi
16208      ;;
16209
16210    hpux11*)
16211      if test yes,no = "$GCC,$with_gnu_ld"; then
16212	case $host_cpu in
16213	hppa*64*)
16214	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16215	  ;;
16216	ia64*)
16217	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16218	  ;;
16219	*)
16220	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16221	  ;;
16222	esac
16223      else
16224	case $host_cpu in
16225	hppa*64*)
16226	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16227	  ;;
16228	ia64*)
16229	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16230	  ;;
16231	*)
16232
16233	  # Older versions of the 11.00 compiler do not understand -b yet
16234	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16235	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16236$as_echo_n "checking if $CC understands -b... " >&6; }
16237if ${lt_cv_prog_compiler__b+:} false; then :
16238  $as_echo_n "(cached) " >&6
16239else
16240  lt_cv_prog_compiler__b=no
16241   save_LDFLAGS=$LDFLAGS
16242   LDFLAGS="$LDFLAGS -b"
16243   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16244   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16245     # The linker can only warn and ignore the option if not recognized
16246     # So say no if there are warnings
16247     if test -s conftest.err; then
16248       # Append any errors to the config.log.
16249       cat conftest.err 1>&5
16250       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16251       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16252       if diff conftest.exp conftest.er2 >/dev/null; then
16253         lt_cv_prog_compiler__b=yes
16254       fi
16255     else
16256       lt_cv_prog_compiler__b=yes
16257     fi
16258   fi
16259   $RM -r conftest*
16260   LDFLAGS=$save_LDFLAGS
16261
16262fi
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16264$as_echo "$lt_cv_prog_compiler__b" >&6; }
16265
16266if test yes = "$lt_cv_prog_compiler__b"; then
16267    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16268else
16269    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16270fi
16271
16272	  ;;
16273	esac
16274      fi
16275      if test no = "$with_gnu_ld"; then
16276	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16277	hardcode_libdir_separator=:
16278
16279	case $host_cpu in
16280	hppa*64*|ia64*)
16281	  hardcode_direct=no
16282	  hardcode_shlibpath_var=no
16283	  ;;
16284	*)
16285	  hardcode_direct=yes
16286	  hardcode_direct_absolute=yes
16287	  export_dynamic_flag_spec='$wl-E'
16288
16289	  # hardcode_minus_L: Not really in the search PATH,
16290	  # but as the default location of the library.
16291	  hardcode_minus_L=yes
16292	  ;;
16293	esac
16294      fi
16295      ;;
16296
16297    irix5* | irix6* | nonstopux*)
16298      if test yes = "$GCC"; then
16299	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'
16300	# Try to use the -exported_symbol ld option, if it does not
16301	# work, assume that -exports_file does not work either and
16302	# implicitly export all symbols.
16303	# This should be the same for all languages, so no per-tag cache variable.
16304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16305$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16306if ${lt_cv_irix_exported_symbol+:} false; then :
16307  $as_echo_n "(cached) " >&6
16308else
16309  save_LDFLAGS=$LDFLAGS
16310	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16311	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312/* end confdefs.h.  */
16313int foo (void) { return 0; }
16314_ACEOF
16315if ac_fn_c_try_link "$LINENO"; then :
16316  lt_cv_irix_exported_symbol=yes
16317else
16318  lt_cv_irix_exported_symbol=no
16319fi
16320rm -f core conftest.err conftest.$ac_objext \
16321    conftest$ac_exeext conftest.$ac_ext
16322           LDFLAGS=$save_LDFLAGS
16323fi
16324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16325$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16326	if test yes = "$lt_cv_irix_exported_symbol"; then
16327          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'
16328	fi
16329      else
16330	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'
16331	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'
16332      fi
16333      archive_cmds_need_lc='no'
16334      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16335      hardcode_libdir_separator=:
16336      inherit_rpath=yes
16337      link_all_deplibs=yes
16338      ;;
16339
16340    linux*)
16341      case $cc_basename in
16342      tcc*)
16343	# Fabrice Bellard et al's Tiny C Compiler
16344	ld_shlibs=yes
16345	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16346	;;
16347      esac
16348      ;;
16349
16350    netbsd*)
16351      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16352	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16353      else
16354	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16355      fi
16356      hardcode_libdir_flag_spec='-R$libdir'
16357      hardcode_direct=yes
16358      hardcode_shlibpath_var=no
16359      ;;
16360
16361    newsos6)
16362      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363      hardcode_direct=yes
16364      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16365      hardcode_libdir_separator=:
16366      hardcode_shlibpath_var=no
16367      ;;
16368
16369    *nto* | *qnx*)
16370      ;;
16371
16372    openbsd* | bitrig*)
16373      if test -f /usr/libexec/ld.so; then
16374	hardcode_direct=yes
16375	hardcode_shlibpath_var=no
16376	hardcode_direct_absolute=yes
16377	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16378	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16379	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16380	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16381	  export_dynamic_flag_spec='$wl-E'
16382	else
16383	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16384	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16385	fi
16386      else
16387	ld_shlibs=no
16388      fi
16389      ;;
16390
16391    os2*)
16392      hardcode_libdir_flag_spec='-L$libdir'
16393      hardcode_minus_L=yes
16394      allow_undefined_flag=unsupported
16395      shrext_cmds=.dll
16396      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16397	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16398	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16399	$ECHO EXPORTS >> $output_objdir/$libname.def~
16400	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16401	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16402	emximp -o $lib $output_objdir/$libname.def'
16403      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16404	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16405	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16406	$ECHO EXPORTS >> $output_objdir/$libname.def~
16407	prefix_cmds="$SED"~
16408	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16409	  prefix_cmds="$prefix_cmds -e 1d";
16410	fi~
16411	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16412	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16413	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16414	emximp -o $lib $output_objdir/$libname.def'
16415      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16416      enable_shared_with_static_runtimes=yes
16417      ;;
16418
16419    osf3*)
16420      if test yes = "$GCC"; then
16421	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16422	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'
16423      else
16424	allow_undefined_flag=' -expect_unresolved \*'
16425	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'
16426      fi
16427      archive_cmds_need_lc='no'
16428      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16429      hardcode_libdir_separator=:
16430      ;;
16431
16432    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16433      if test yes = "$GCC"; then
16434	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16435	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'
16436	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16437      else
16438	allow_undefined_flag=' -expect_unresolved \*'
16439	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'
16440	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~
16441          $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'
16442
16443	# Both c and cxx compiler support -rpath directly
16444	hardcode_libdir_flag_spec='-rpath $libdir'
16445      fi
16446      archive_cmds_need_lc='no'
16447      hardcode_libdir_separator=:
16448      ;;
16449
16450    solaris*)
16451      no_undefined_flag=' -z defs'
16452      if test yes = "$GCC"; then
16453	wlarc='$wl'
16454	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16455	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16456          $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'
16457      else
16458	case `$CC -V 2>&1` in
16459	*"Compilers 5.0"*)
16460	  wlarc=''
16461	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16462	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16463            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16464	  ;;
16465	*)
16466	  wlarc='$wl'
16467	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16468	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16469            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16470	  ;;
16471	esac
16472      fi
16473      hardcode_libdir_flag_spec='-R$libdir'
16474      hardcode_shlibpath_var=no
16475      case $host_os in
16476      solaris2.[0-5] | solaris2.[0-5].*) ;;
16477      *)
16478	# The compiler driver will combine and reorder linker options,
16479	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16480	# but is careful enough not to reorder.
16481	# Supported since Solaris 2.6 (maybe 2.5.1?)
16482	if test yes = "$GCC"; then
16483	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16484	else
16485	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16486	fi
16487	;;
16488      esac
16489      link_all_deplibs=yes
16490      ;;
16491
16492    sunos4*)
16493      if test sequent = "$host_vendor"; then
16494	# Use $CC to link under sequent, because it throws in some extra .o
16495	# files that make .init and .fini sections work.
16496	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16497      else
16498	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16499      fi
16500      hardcode_libdir_flag_spec='-L$libdir'
16501      hardcode_direct=yes
16502      hardcode_minus_L=yes
16503      hardcode_shlibpath_var=no
16504      ;;
16505
16506    sysv4)
16507      case $host_vendor in
16508	sni)
16509	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16510	  hardcode_direct=yes # is this really true???
16511	;;
16512	siemens)
16513	  ## LD is ld it makes a PLAMLIB
16514	  ## CC just makes a GrossModule.
16515	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16516	  reload_cmds='$CC -r -o $output$reload_objs'
16517	  hardcode_direct=no
16518        ;;
16519	motorola)
16520	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16522	;;
16523      esac
16524      runpath_var='LD_RUN_PATH'
16525      hardcode_shlibpath_var=no
16526      ;;
16527
16528    sysv4.3*)
16529      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530      hardcode_shlibpath_var=no
16531      export_dynamic_flag_spec='-Bexport'
16532      ;;
16533
16534    sysv4*MP*)
16535      if test -d /usr/nec; then
16536	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16537	hardcode_shlibpath_var=no
16538	runpath_var=LD_RUN_PATH
16539	hardcode_runpath_var=yes
16540	ld_shlibs=yes
16541      fi
16542      ;;
16543
16544    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16545      no_undefined_flag='$wl-z,text'
16546      archive_cmds_need_lc=no
16547      hardcode_shlibpath_var=no
16548      runpath_var='LD_RUN_PATH'
16549
16550      if test yes = "$GCC"; then
16551	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16552	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16553      else
16554	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16555	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16556      fi
16557      ;;
16558
16559    sysv5* | sco3.2v5* | sco5v6*)
16560      # Note: We CANNOT use -z defs as we might desire, because we do not
16561      # link with -lc, and that would cause any symbols used from libc to
16562      # always be unresolved, which means just about no library would
16563      # ever link correctly.  If we're not using GNU ld we use -z text
16564      # though, which does catch some bad symbols but isn't as heavy-handed
16565      # as -z defs.
16566      no_undefined_flag='$wl-z,text'
16567      allow_undefined_flag='$wl-z,nodefs'
16568      archive_cmds_need_lc=no
16569      hardcode_shlibpath_var=no
16570      hardcode_libdir_flag_spec='$wl-R,$libdir'
16571      hardcode_libdir_separator=':'
16572      link_all_deplibs=yes
16573      export_dynamic_flag_spec='$wl-Bexport'
16574      runpath_var='LD_RUN_PATH'
16575
16576      if test yes = "$GCC"; then
16577	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16578	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16579      else
16580	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16581	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16582      fi
16583      ;;
16584
16585    uts4*)
16586      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587      hardcode_libdir_flag_spec='-L$libdir'
16588      hardcode_shlibpath_var=no
16589      ;;
16590
16591    *)
16592      ld_shlibs=no
16593      ;;
16594    esac
16595
16596    if test sni = "$host_vendor"; then
16597      case $host in
16598      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16599	export_dynamic_flag_spec='$wl-Blargedynsym'
16600	;;
16601      esac
16602    fi
16603  fi
16604
16605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16606$as_echo "$ld_shlibs" >&6; }
16607test no = "$ld_shlibs" && can_build_shared=no
16608
16609with_gnu_ld=$with_gnu_ld
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625#
16626# Do we need to explicitly link libc?
16627#
16628case "x$archive_cmds_need_lc" in
16629x|xyes)
16630  # Assume -lc should be added
16631  archive_cmds_need_lc=yes
16632
16633  if test yes,yes = "$GCC,$enable_shared"; then
16634    case $archive_cmds in
16635    *'~'*)
16636      # FIXME: we may have to deal with multi-command sequences.
16637      ;;
16638    '$CC '*)
16639      # Test whether the compiler implicitly links with -lc since on some
16640      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16641      # to ld, don't add -lc before -lgcc.
16642      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16643$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16644if ${lt_cv_archive_cmds_need_lc+:} false; then :
16645  $as_echo_n "(cached) " >&6
16646else
16647  $RM conftest*
16648	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16649
16650	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16651  (eval $ac_compile) 2>&5
16652  ac_status=$?
16653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16654  test $ac_status = 0; } 2>conftest.err; then
16655	  soname=conftest
16656	  lib=conftest
16657	  libobjs=conftest.$ac_objext
16658	  deplibs=
16659	  wl=$lt_prog_compiler_wl
16660	  pic_flag=$lt_prog_compiler_pic
16661	  compiler_flags=-v
16662	  linker_flags=-v
16663	  verstring=
16664	  output_objdir=.
16665	  libname=conftest
16666	  lt_save_allow_undefined_flag=$allow_undefined_flag
16667	  allow_undefined_flag=
16668	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16669  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16670  ac_status=$?
16671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16672  test $ac_status = 0; }
16673	  then
16674	    lt_cv_archive_cmds_need_lc=no
16675	  else
16676	    lt_cv_archive_cmds_need_lc=yes
16677	  fi
16678	  allow_undefined_flag=$lt_save_allow_undefined_flag
16679	else
16680	  cat conftest.err 1>&5
16681	fi
16682	$RM conftest*
16683
16684fi
16685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16686$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16687      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16688      ;;
16689    esac
16690  fi
16691  ;;
16692esac
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16846$as_echo_n "checking dynamic linker characteristics... " >&6; }
16847
16848if test yes = "$GCC"; then
16849  case $host_os in
16850    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16851    *) lt_awk_arg='/^libraries:/' ;;
16852  esac
16853  case $host_os in
16854    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16855    *) lt_sed_strip_eq='s|=/|/|g' ;;
16856  esac
16857  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16858  case $lt_search_path_spec in
16859  *\;*)
16860    # if the path contains ";" then we assume it to be the separator
16861    # otherwise default to the standard path separator (i.e. ":") - it is
16862    # assumed that no part of a normal pathname contains ";" but that should
16863    # okay in the real world where ";" in dirpaths is itself problematic.
16864    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16865    ;;
16866  *)
16867    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16868    ;;
16869  esac
16870  # Ok, now we have the path, separated by spaces, we can step through it
16871  # and add multilib dir if necessary...
16872  lt_tmp_lt_search_path_spec=
16873  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16874  # ...but if some path component already ends with the multilib dir we assume
16875  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16876  case "$lt_multi_os_dir; $lt_search_path_spec " in
16877  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16878    lt_multi_os_dir=
16879    ;;
16880  esac
16881  for lt_sys_path in $lt_search_path_spec; do
16882    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16883      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16884    elif test -n "$lt_multi_os_dir"; then
16885      test -d "$lt_sys_path" && \
16886	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16887    fi
16888  done
16889  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16890BEGIN {RS = " "; FS = "/|\n";} {
16891  lt_foo = "";
16892  lt_count = 0;
16893  for (lt_i = NF; lt_i > 0; lt_i--) {
16894    if ($lt_i != "" && $lt_i != ".") {
16895      if ($lt_i == "..") {
16896        lt_count++;
16897      } else {
16898        if (lt_count == 0) {
16899          lt_foo = "/" $lt_i lt_foo;
16900        } else {
16901          lt_count--;
16902        }
16903      }
16904    }
16905  }
16906  if (lt_foo != "") { lt_freq[lt_foo]++; }
16907  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16908}'`
16909  # AWK program above erroneously prepends '/' to C:/dos/paths
16910  # for these hosts.
16911  case $host_os in
16912    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16913      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16914  esac
16915  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16916else
16917  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16918fi
16919library_names_spec=
16920libname_spec='lib$name'
16921soname_spec=
16922shrext_cmds=.so
16923postinstall_cmds=
16924postuninstall_cmds=
16925finish_cmds=
16926finish_eval=
16927shlibpath_var=
16928shlibpath_overrides_runpath=unknown
16929version_type=none
16930dynamic_linker="$host_os ld.so"
16931sys_lib_dlsearch_path_spec="/lib /usr/lib"
16932need_lib_prefix=unknown
16933hardcode_into_libs=no
16934
16935# when you set need_version to no, make sure it does not cause -set_version
16936# flags to be left without arguments
16937need_version=unknown
16938
16939
16940
16941case $host_os in
16942aix3*)
16943  version_type=linux # correct to gnu/linux during the next big refactor
16944  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16945  shlibpath_var=LIBPATH
16946
16947  # AIX 3 has no versioning support, so we append a major version to the name.
16948  soname_spec='$libname$release$shared_ext$major'
16949  ;;
16950
16951aix[4-9]*)
16952  version_type=linux # correct to gnu/linux during the next big refactor
16953  need_lib_prefix=no
16954  need_version=no
16955  hardcode_into_libs=yes
16956  if test ia64 = "$host_cpu"; then
16957    # AIX 5 supports IA64
16958    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16959    shlibpath_var=LD_LIBRARY_PATH
16960  else
16961    # With GCC up to 2.95.x, collect2 would create an import file
16962    # for dependence libraries.  The import file would start with
16963    # the line '#! .'.  This would cause the generated library to
16964    # depend on '.', always an invalid library.  This was fixed in
16965    # development snapshots of GCC prior to 3.0.
16966    case $host_os in
16967      aix4 | aix4.[01] | aix4.[01].*)
16968      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16969	   echo ' yes '
16970	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16971	:
16972      else
16973	can_build_shared=no
16974      fi
16975      ;;
16976    esac
16977    # Using Import Files as archive members, it is possible to support
16978    # filename-based versioning of shared library archives on AIX. While
16979    # this would work for both with and without runtime linking, it will
16980    # prevent static linking of such archives. So we do filename-based
16981    # shared library versioning with .so extension only, which is used
16982    # when both runtime linking and shared linking is enabled.
16983    # Unfortunately, runtime linking may impact performance, so we do
16984    # not want this to be the default eventually. Also, we use the
16985    # versioned .so libs for executables only if there is the -brtl
16986    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16987    # To allow for filename-based versioning support, we need to create
16988    # libNAME.so.V as an archive file, containing:
16989    # *) an Import File, referring to the versioned filename of the
16990    #    archive as well as the shared archive member, telling the
16991    #    bitwidth (32 or 64) of that shared object, and providing the
16992    #    list of exported symbols of that shared object, eventually
16993    #    decorated with the 'weak' keyword
16994    # *) the shared object with the F_LOADONLY flag set, to really avoid
16995    #    it being seen by the linker.
16996    # At run time we better use the real file rather than another symlink,
16997    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16998
16999    case $with_aix_soname,$aix_use_runtimelinking in
17000    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17001    # soname into executable. Probably we can add versioning support to
17002    # collect2, so additional links can be useful in future.
17003    aix,yes) # traditional libtool
17004      dynamic_linker='AIX unversionable lib.so'
17005      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17006      # instead of lib<name>.a to let people know that these are not
17007      # typical AIX shared libraries.
17008      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17009      ;;
17010    aix,no) # traditional AIX only
17011      dynamic_linker='AIX lib.a(lib.so.V)'
17012      # We preserve .a as extension for shared libraries through AIX4.2
17013      # and later when we are not doing run time linking.
17014      library_names_spec='$libname$release.a $libname.a'
17015      soname_spec='$libname$release$shared_ext$major'
17016      ;;
17017    svr4,*) # full svr4 only
17018      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17019      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17020      # We do not specify a path in Import Files, so LIBPATH fires.
17021      shlibpath_overrides_runpath=yes
17022      ;;
17023    *,yes) # both, prefer svr4
17024      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17025      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17026      # unpreferred sharedlib libNAME.a needs extra handling
17027      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"'
17028      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"'
17029      # We do not specify a path in Import Files, so LIBPATH fires.
17030      shlibpath_overrides_runpath=yes
17031      ;;
17032    *,no) # both, prefer aix
17033      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17034      library_names_spec='$libname$release.a $libname.a'
17035      soname_spec='$libname$release$shared_ext$major'
17036      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17037      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)'
17038      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"'
17039      ;;
17040    esac
17041    shlibpath_var=LIBPATH
17042  fi
17043  ;;
17044
17045amigaos*)
17046  case $host_cpu in
17047  powerpc)
17048    # Since July 2007 AmigaOS4 officially supports .so libraries.
17049    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17050    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17051    ;;
17052  m68k)
17053    library_names_spec='$libname.ixlibrary $libname.a'
17054    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17055    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'
17056    ;;
17057  esac
17058  ;;
17059
17060beos*)
17061  library_names_spec='$libname$shared_ext'
17062  dynamic_linker="$host_os ld.so"
17063  shlibpath_var=LIBRARY_PATH
17064  ;;
17065
17066bsdi[45]*)
17067  version_type=linux # correct to gnu/linux during the next big refactor
17068  need_version=no
17069  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17070  soname_spec='$libname$release$shared_ext$major'
17071  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17072  shlibpath_var=LD_LIBRARY_PATH
17073  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17074  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17075  # the default ld.so.conf also contains /usr/contrib/lib and
17076  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17077  # libtool to hard-code these into programs
17078  ;;
17079
17080cygwin* | mingw* | pw32* | cegcc*)
17081  version_type=windows
17082  shrext_cmds=.dll
17083  need_version=no
17084  need_lib_prefix=no
17085
17086  case $GCC,$cc_basename in
17087  yes,*)
17088    # gcc
17089    library_names_spec='$libname.dll.a'
17090    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17091    postinstall_cmds='base_file=`basename \$file`~
17092      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17093      dldir=$destdir/`dirname \$dlpath`~
17094      test -d \$dldir || mkdir -p \$dldir~
17095      $install_prog $dir/$dlname \$dldir/$dlname~
17096      chmod a+x \$dldir/$dlname~
17097      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17098        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17099      fi'
17100    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17101      dlpath=$dir/\$dldll~
17102       $RM \$dlpath'
17103    shlibpath_overrides_runpath=yes
17104
17105    case $host_os in
17106    cygwin*)
17107      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17108      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17109
17110      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17111      ;;
17112    mingw* | cegcc*)
17113      # MinGW DLLs use traditional 'lib' prefix
17114      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17115      ;;
17116    pw32*)
17117      # pw32 DLLs use 'pw' prefix rather than 'lib'
17118      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17119      ;;
17120    esac
17121    dynamic_linker='Win32 ld.exe'
17122    ;;
17123
17124  *,cl*)
17125    # Native MSVC
17126    libname_spec='$name'
17127    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17128    library_names_spec='$libname.dll.lib'
17129
17130    case $build_os in
17131    mingw*)
17132      sys_lib_search_path_spec=
17133      lt_save_ifs=$IFS
17134      IFS=';'
17135      for lt_path in $LIB
17136      do
17137        IFS=$lt_save_ifs
17138        # Let DOS variable expansion print the short 8.3 style file name.
17139        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17140        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17141      done
17142      IFS=$lt_save_ifs
17143      # Convert to MSYS style.
17144      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17145      ;;
17146    cygwin*)
17147      # Convert to unix form, then to dos form, then back to unix form
17148      # but this time dos style (no spaces!) so that the unix form looks
17149      # like /cygdrive/c/PROGRA~1:/cygdr...
17150      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17151      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17152      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17153      ;;
17154    *)
17155      sys_lib_search_path_spec=$LIB
17156      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17157        # It is most probably a Windows format PATH.
17158        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17159      else
17160        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17161      fi
17162      # FIXME: find the short name or the path components, as spaces are
17163      # common. (e.g. "Program Files" -> "PROGRA~1")
17164      ;;
17165    esac
17166
17167    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17168    postinstall_cmds='base_file=`basename \$file`~
17169      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17170      dldir=$destdir/`dirname \$dlpath`~
17171      test -d \$dldir || mkdir -p \$dldir~
17172      $install_prog $dir/$dlname \$dldir/$dlname'
17173    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17174      dlpath=$dir/\$dldll~
17175       $RM \$dlpath'
17176    shlibpath_overrides_runpath=yes
17177    dynamic_linker='Win32 link.exe'
17178    ;;
17179
17180  *)
17181    # Assume MSVC wrapper
17182    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17183    dynamic_linker='Win32 ld.exe'
17184    ;;
17185  esac
17186  # FIXME: first we should search . and the directory the executable is in
17187  shlibpath_var=PATH
17188  ;;
17189
17190darwin* | rhapsody*)
17191  dynamic_linker="$host_os dyld"
17192  version_type=darwin
17193  need_lib_prefix=no
17194  need_version=no
17195  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17196  soname_spec='$libname$release$major$shared_ext'
17197  shlibpath_overrides_runpath=yes
17198  shlibpath_var=DYLD_LIBRARY_PATH
17199  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17200
17201  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17202  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17203  ;;
17204
17205dgux*)
17206  version_type=linux # correct to gnu/linux during the next big refactor
17207  need_lib_prefix=no
17208  need_version=no
17209  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17210  soname_spec='$libname$release$shared_ext$major'
17211  shlibpath_var=LD_LIBRARY_PATH
17212  ;;
17213
17214freebsd* | dragonfly*)
17215  # DragonFly does not have aout.  When/if they implement a new
17216  # versioning mechanism, adjust this.
17217  if test -x /usr/bin/objformat; then
17218    objformat=`/usr/bin/objformat`
17219  else
17220    case $host_os in
17221    freebsd[23].*) objformat=aout ;;
17222    *) objformat=elf ;;
17223    esac
17224  fi
17225  # Handle Gentoo/FreeBSD as it was Linux
17226  case $host_vendor in
17227    gentoo)
17228      version_type=linux ;;
17229    *)
17230      version_type=freebsd-$objformat ;;
17231  esac
17232
17233  case $version_type in
17234    freebsd-elf*)
17235      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17236      soname_spec='$libname$release$shared_ext$major'
17237      need_version=no
17238      need_lib_prefix=no
17239      ;;
17240    freebsd-*)
17241      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17242      need_version=yes
17243      ;;
17244    linux)
17245      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17246      soname_spec='${libname}${release}${shared_ext}$major'
17247      need_lib_prefix=no
17248      need_version=no
17249      ;;
17250  esac
17251  shlibpath_var=LD_LIBRARY_PATH
17252  case $host_os in
17253  freebsd2.*)
17254    shlibpath_overrides_runpath=yes
17255    ;;
17256  freebsd3.[01]* | freebsdelf3.[01]*)
17257    shlibpath_overrides_runpath=yes
17258    hardcode_into_libs=yes
17259    ;;
17260  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17261  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17262    shlibpath_overrides_runpath=no
17263    hardcode_into_libs=yes
17264    ;;
17265  *) # from 4.6 on, and DragonFly
17266    shlibpath_overrides_runpath=yes
17267    hardcode_into_libs=yes
17268    ;;
17269  esac
17270  ;;
17271
17272haiku*)
17273  version_type=linux # correct to gnu/linux during the next big refactor
17274  need_lib_prefix=no
17275  need_version=no
17276  dynamic_linker="$host_os runtime_loader"
17277  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17278  soname_spec='$libname$release$shared_ext$major'
17279  shlibpath_var=LIBRARY_PATH
17280  shlibpath_overrides_runpath=no
17281  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17282  hardcode_into_libs=yes
17283  ;;
17284
17285hpux9* | hpux10* | hpux11*)
17286  # Give a soname corresponding to the major version so that dld.sl refuses to
17287  # link against other versions.
17288  version_type=sunos
17289  need_lib_prefix=no
17290  need_version=no
17291  case $host_cpu in
17292  ia64*)
17293    shrext_cmds='.so'
17294    hardcode_into_libs=yes
17295    dynamic_linker="$host_os dld.so"
17296    shlibpath_var=LD_LIBRARY_PATH
17297    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17298    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17299    soname_spec='$libname$release$shared_ext$major'
17300    if test 32 = "$HPUX_IA64_MODE"; then
17301      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17302      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17303    else
17304      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17305      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17306    fi
17307    ;;
17308  hppa*64*)
17309    shrext_cmds='.sl'
17310    hardcode_into_libs=yes
17311    dynamic_linker="$host_os dld.sl"
17312    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17313    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17314    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17315    soname_spec='$libname$release$shared_ext$major'
17316    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17317    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17318    ;;
17319  *)
17320    shrext_cmds='.sl'
17321    dynamic_linker="$host_os dld.sl"
17322    shlibpath_var=SHLIB_PATH
17323    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17324    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17325    soname_spec='$libname$release$shared_ext$major'
17326    ;;
17327  esac
17328  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17329  postinstall_cmds='chmod 555 $lib'
17330  # or fails outright, so override atomically:
17331  install_override_mode=555
17332  ;;
17333
17334interix[3-9]*)
17335  version_type=linux # correct to gnu/linux during the next big refactor
17336  need_lib_prefix=no
17337  need_version=no
17338  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17339  soname_spec='$libname$release$shared_ext$major'
17340  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17341  shlibpath_var=LD_LIBRARY_PATH
17342  shlibpath_overrides_runpath=no
17343  hardcode_into_libs=yes
17344  ;;
17345
17346irix5* | irix6* | nonstopux*)
17347  case $host_os in
17348    nonstopux*) version_type=nonstopux ;;
17349    *)
17350	if test yes = "$lt_cv_prog_gnu_ld"; then
17351		version_type=linux # correct to gnu/linux during the next big refactor
17352	else
17353		version_type=irix
17354	fi ;;
17355  esac
17356  need_lib_prefix=no
17357  need_version=no
17358  soname_spec='$libname$release$shared_ext$major'
17359  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17360  case $host_os in
17361  irix5* | nonstopux*)
17362    libsuff= shlibsuff=
17363    ;;
17364  *)
17365    case $LD in # libtool.m4 will add one of these switches to LD
17366    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17367      libsuff= shlibsuff= libmagic=32-bit;;
17368    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17369      libsuff=32 shlibsuff=N32 libmagic=N32;;
17370    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17371      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17372    *) libsuff= shlibsuff= libmagic=never-match;;
17373    esac
17374    ;;
17375  esac
17376  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17377  shlibpath_overrides_runpath=no
17378  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17379  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17380  hardcode_into_libs=yes
17381  ;;
17382
17383# No shared lib support for Linux oldld, aout, or coff.
17384linux*oldld* | linux*aout* | linux*coff*)
17385  dynamic_linker=no
17386  ;;
17387
17388linux*android*)
17389  version_type=none # Android doesn't support versioned libraries.
17390  need_lib_prefix=no
17391  need_version=no
17392  library_names_spec='$libname$release$shared_ext'
17393  soname_spec='$libname$release$shared_ext'
17394  finish_cmds=
17395  shlibpath_var=LD_LIBRARY_PATH
17396  shlibpath_overrides_runpath=yes
17397
17398  # This implies no fast_install, which is unacceptable.
17399  # Some rework will be needed to allow for fast_install
17400  # before this can be enabled.
17401  hardcode_into_libs=yes
17402
17403  dynamic_linker='Android linker'
17404  # Don't embed -rpath directories since the linker doesn't support them.
17405  hardcode_libdir_flag_spec='-L$libdir'
17406  ;;
17407
17408# This must be glibc/ELF.
17409linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17410  version_type=linux # correct to gnu/linux during the next big refactor
17411  need_lib_prefix=no
17412  need_version=no
17413  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17414  soname_spec='$libname$release$shared_ext$major'
17415  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17416  shlibpath_var=LD_LIBRARY_PATH
17417  shlibpath_overrides_runpath=no
17418
17419  # Some binutils ld are patched to set DT_RUNPATH
17420  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17421  $as_echo_n "(cached) " >&6
17422else
17423  lt_cv_shlibpath_overrides_runpath=no
17424    save_LDFLAGS=$LDFLAGS
17425    save_libdir=$libdir
17426    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17427	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17428    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429/* end confdefs.h.  */
17430
17431int
17432main ()
17433{
17434
17435  ;
17436  return 0;
17437}
17438_ACEOF
17439if ac_fn_c_try_link "$LINENO"; then :
17440  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17441  lt_cv_shlibpath_overrides_runpath=yes
17442fi
17443fi
17444rm -f core conftest.err conftest.$ac_objext \
17445    conftest$ac_exeext conftest.$ac_ext
17446    LDFLAGS=$save_LDFLAGS
17447    libdir=$save_libdir
17448
17449fi
17450
17451  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17452
17453  # This implies no fast_install, which is unacceptable.
17454  # Some rework will be needed to allow for fast_install
17455  # before this can be enabled.
17456  hardcode_into_libs=yes
17457
17458  # Ideally, we could use ldconfig to report *all* directores which are
17459  # searched for libraries, however this is still not possible.  Aside from not
17460  # being certain /sbin/ldconfig is available, command
17461  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17462  # even though it is searched at run-time.  Try to do the best guess by
17463  # appending ld.so.conf contents (and includes) to the search path.
17464  if test -f /etc/ld.so.conf; then
17465    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' ' '`
17466    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17467  fi
17468
17469  # We used to test for /lib/ld.so.1 and disable shared libraries on
17470  # powerpc, because MkLinux only supported shared libraries with the
17471  # GNU dynamic linker.  Since this was broken with cross compilers,
17472  # most powerpc-linux boxes support dynamic linking these days and
17473  # people can always --disable-shared, the test was removed, and we
17474  # assume the GNU/Linux dynamic linker is in use.
17475  dynamic_linker='GNU/Linux ld.so'
17476  ;;
17477
17478netbsd*)
17479  version_type=sunos
17480  need_lib_prefix=no
17481  need_version=no
17482  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17483    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17484    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17485    dynamic_linker='NetBSD (a.out) ld.so'
17486  else
17487    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17488    soname_spec='$libname$release$shared_ext$major'
17489    dynamic_linker='NetBSD ld.elf_so'
17490  fi
17491  shlibpath_var=LD_LIBRARY_PATH
17492  shlibpath_overrides_runpath=yes
17493  hardcode_into_libs=yes
17494  ;;
17495
17496newsos6)
17497  version_type=linux # correct to gnu/linux during the next big refactor
17498  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17499  shlibpath_var=LD_LIBRARY_PATH
17500  shlibpath_overrides_runpath=yes
17501  ;;
17502
17503*nto* | *qnx*)
17504  version_type=qnx
17505  need_lib_prefix=no
17506  need_version=no
17507  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17508  soname_spec='$libname$release$shared_ext$major'
17509  shlibpath_var=LD_LIBRARY_PATH
17510  shlibpath_overrides_runpath=no
17511  hardcode_into_libs=yes
17512  dynamic_linker='ldqnx.so'
17513  ;;
17514
17515openbsd* | bitrig*)
17516  version_type=sunos
17517  sys_lib_dlsearch_path_spec=/usr/lib
17518  need_lib_prefix=no
17519  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17520    need_version=no
17521  else
17522    need_version=yes
17523  fi
17524  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17525  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17526  shlibpath_var=LD_LIBRARY_PATH
17527  shlibpath_overrides_runpath=yes
17528  ;;
17529
17530os2*)
17531  libname_spec='$name'
17532  version_type=windows
17533  shrext_cmds=.dll
17534  need_version=no
17535  need_lib_prefix=no
17536  # OS/2 can only load a DLL with a base name of 8 characters or less.
17537  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17538    v=$($ECHO $release$versuffix | tr -d .-);
17539    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17540    $ECHO $n$v`$shared_ext'
17541  library_names_spec='${libname}_dll.$libext'
17542  dynamic_linker='OS/2 ld.exe'
17543  shlibpath_var=BEGINLIBPATH
17544  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17545  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17546  postinstall_cmds='base_file=`basename \$file`~
17547    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17548    dldir=$destdir/`dirname \$dlpath`~
17549    test -d \$dldir || mkdir -p \$dldir~
17550    $install_prog $dir/$dlname \$dldir/$dlname~
17551    chmod a+x \$dldir/$dlname~
17552    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17553      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17554    fi'
17555  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17556    dlpath=$dir/\$dldll~
17557    $RM \$dlpath'
17558  ;;
17559
17560osf3* | osf4* | osf5*)
17561  version_type=osf
17562  need_lib_prefix=no
17563  need_version=no
17564  soname_spec='$libname$release$shared_ext$major'
17565  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17566  shlibpath_var=LD_LIBRARY_PATH
17567  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17568  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17569  ;;
17570
17571rdos*)
17572  dynamic_linker=no
17573  ;;
17574
17575solaris*)
17576  version_type=linux # correct to gnu/linux during the next big refactor
17577  need_lib_prefix=no
17578  need_version=no
17579  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17580  soname_spec='$libname$release$shared_ext$major'
17581  shlibpath_var=LD_LIBRARY_PATH
17582  shlibpath_overrides_runpath=yes
17583  hardcode_into_libs=yes
17584  # ldd complains unless libraries are executable
17585  postinstall_cmds='chmod +x $lib'
17586  ;;
17587
17588sunos4*)
17589  version_type=sunos
17590  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17591  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17592  shlibpath_var=LD_LIBRARY_PATH
17593  shlibpath_overrides_runpath=yes
17594  if test yes = "$with_gnu_ld"; then
17595    need_lib_prefix=no
17596  fi
17597  need_version=yes
17598  ;;
17599
17600sysv4 | sysv4.3*)
17601  version_type=linux # correct to gnu/linux during the next big refactor
17602  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17603  soname_spec='$libname$release$shared_ext$major'
17604  shlibpath_var=LD_LIBRARY_PATH
17605  case $host_vendor in
17606    sni)
17607      shlibpath_overrides_runpath=no
17608      need_lib_prefix=no
17609      runpath_var=LD_RUN_PATH
17610      ;;
17611    siemens)
17612      need_lib_prefix=no
17613      ;;
17614    motorola)
17615      need_lib_prefix=no
17616      need_version=no
17617      shlibpath_overrides_runpath=no
17618      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17619      ;;
17620  esac
17621  ;;
17622
17623sysv4*MP*)
17624  if test -d /usr/nec; then
17625    version_type=linux # correct to gnu/linux during the next big refactor
17626    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17627    soname_spec='$libname$shared_ext.$major'
17628    shlibpath_var=LD_LIBRARY_PATH
17629  fi
17630  ;;
17631
17632sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17633  version_type=sco
17634  need_lib_prefix=no
17635  need_version=no
17636  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17637  soname_spec='$libname$release$shared_ext$major'
17638  shlibpath_var=LD_LIBRARY_PATH
17639  shlibpath_overrides_runpath=yes
17640  hardcode_into_libs=yes
17641  if test yes = "$with_gnu_ld"; then
17642    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17643  else
17644    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17645    case $host_os in
17646      sco3.2v5*)
17647        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17648	;;
17649    esac
17650  fi
17651  sys_lib_dlsearch_path_spec='/usr/lib'
17652  ;;
17653
17654tpf*)
17655  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17656  version_type=linux # correct to gnu/linux during the next big refactor
17657  need_lib_prefix=no
17658  need_version=no
17659  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17660  shlibpath_var=LD_LIBRARY_PATH
17661  shlibpath_overrides_runpath=no
17662  hardcode_into_libs=yes
17663  ;;
17664
17665uts4*)
17666  version_type=linux # correct to gnu/linux during the next big refactor
17667  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17668  soname_spec='$libname$release$shared_ext$major'
17669  shlibpath_var=LD_LIBRARY_PATH
17670  ;;
17671
17672*)
17673  dynamic_linker=no
17674  ;;
17675esac
17676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17677$as_echo "$dynamic_linker" >&6; }
17678test no = "$dynamic_linker" && can_build_shared=no
17679
17680variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17681if test yes = "$GCC"; then
17682  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17683fi
17684
17685if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17686  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17687fi
17688
17689if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17690  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17691fi
17692
17693# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17694configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17695
17696# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17697func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17698
17699# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17700configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17799$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17800hardcode_action=
17801if test -n "$hardcode_libdir_flag_spec" ||
17802   test -n "$runpath_var" ||
17803   test yes = "$hardcode_automatic"; then
17804
17805  # We can hardcode non-existent directories.
17806  if test no != "$hardcode_direct" &&
17807     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17808     # have to relink, otherwise we might link with an installed library
17809     # when we should be linking with a yet-to-be-installed one
17810     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17811     test no != "$hardcode_minus_L"; then
17812    # Linking always hardcodes the temporary library directory.
17813    hardcode_action=relink
17814  else
17815    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17816    hardcode_action=immediate
17817  fi
17818else
17819  # We cannot hardcode anything, or else we can only hardcode existing
17820  # directories.
17821  hardcode_action=unsupported
17822fi
17823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17824$as_echo "$hardcode_action" >&6; }
17825
17826if test relink = "$hardcode_action" ||
17827   test yes = "$inherit_rpath"; then
17828  # Fast installation is not supported
17829  enable_fast_install=no
17830elif test yes = "$shlibpath_overrides_runpath" ||
17831     test no = "$enable_shared"; then
17832  # Fast installation is not necessary
17833  enable_fast_install=needless
17834fi
17835
17836
17837
17838
17839
17840
17841  if test yes != "$enable_dlopen"; then
17842  enable_dlopen=unknown
17843  enable_dlopen_self=unknown
17844  enable_dlopen_self_static=unknown
17845else
17846  lt_cv_dlopen=no
17847  lt_cv_dlopen_libs=
17848
17849  case $host_os in
17850  beos*)
17851    lt_cv_dlopen=load_add_on
17852    lt_cv_dlopen_libs=
17853    lt_cv_dlopen_self=yes
17854    ;;
17855
17856  mingw* | pw32* | cegcc*)
17857    lt_cv_dlopen=LoadLibrary
17858    lt_cv_dlopen_libs=
17859    ;;
17860
17861  cygwin*)
17862    lt_cv_dlopen=dlopen
17863    lt_cv_dlopen_libs=
17864    ;;
17865
17866  darwin*)
17867    # if libdl is installed we need to link against it
17868    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17869$as_echo_n "checking for dlopen in -ldl... " >&6; }
17870if ${ac_cv_lib_dl_dlopen+:} false; then :
17871  $as_echo_n "(cached) " >&6
17872else
17873  ac_check_lib_save_LIBS=$LIBS
17874LIBS="-ldl  $LIBS"
17875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876/* end confdefs.h.  */
17877
17878/* Override any GCC internal prototype to avoid an error.
17879   Use char because int might match the return type of a GCC
17880   builtin and then its argument prototype would still apply.  */
17881#ifdef __cplusplus
17882extern "C"
17883#endif
17884char dlopen ();
17885int
17886main ()
17887{
17888return dlopen ();
17889  ;
17890  return 0;
17891}
17892_ACEOF
17893if ac_fn_c_try_link "$LINENO"; then :
17894  ac_cv_lib_dl_dlopen=yes
17895else
17896  ac_cv_lib_dl_dlopen=no
17897fi
17898rm -f core conftest.err conftest.$ac_objext \
17899    conftest$ac_exeext conftest.$ac_ext
17900LIBS=$ac_check_lib_save_LIBS
17901fi
17902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17903$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17904if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17905  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17906else
17907
17908    lt_cv_dlopen=dyld
17909    lt_cv_dlopen_libs=
17910    lt_cv_dlopen_self=yes
17911
17912fi
17913
17914    ;;
17915
17916  tpf*)
17917    # Don't try to run any link tests for TPF.  We know it's impossible
17918    # because TPF is a cross-compiler, and we know how we open DSOs.
17919    lt_cv_dlopen=dlopen
17920    lt_cv_dlopen_libs=
17921    lt_cv_dlopen_self=no
17922    ;;
17923
17924  *)
17925    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17926if test "x$ac_cv_func_shl_load" = xyes; then :
17927  lt_cv_dlopen=shl_load
17928else
17929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17930$as_echo_n "checking for shl_load in -ldld... " >&6; }
17931if ${ac_cv_lib_dld_shl_load+:} false; then :
17932  $as_echo_n "(cached) " >&6
17933else
17934  ac_check_lib_save_LIBS=$LIBS
17935LIBS="-ldld  $LIBS"
17936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937/* end confdefs.h.  */
17938
17939/* Override any GCC internal prototype to avoid an error.
17940   Use char because int might match the return type of a GCC
17941   builtin and then its argument prototype would still apply.  */
17942#ifdef __cplusplus
17943extern "C"
17944#endif
17945char shl_load ();
17946int
17947main ()
17948{
17949return shl_load ();
17950  ;
17951  return 0;
17952}
17953_ACEOF
17954if ac_fn_c_try_link "$LINENO"; then :
17955  ac_cv_lib_dld_shl_load=yes
17956else
17957  ac_cv_lib_dld_shl_load=no
17958fi
17959rm -f core conftest.err conftest.$ac_objext \
17960    conftest$ac_exeext conftest.$ac_ext
17961LIBS=$ac_check_lib_save_LIBS
17962fi
17963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17964$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17965if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17966  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17967else
17968  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17969if test "x$ac_cv_func_dlopen" = xyes; then :
17970  lt_cv_dlopen=dlopen
17971else
17972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17973$as_echo_n "checking for dlopen in -ldl... " >&6; }
17974if ${ac_cv_lib_dl_dlopen+:} false; then :
17975  $as_echo_n "(cached) " >&6
17976else
17977  ac_check_lib_save_LIBS=$LIBS
17978LIBS="-ldl  $LIBS"
17979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980/* end confdefs.h.  */
17981
17982/* Override any GCC internal prototype to avoid an error.
17983   Use char because int might match the return type of a GCC
17984   builtin and then its argument prototype would still apply.  */
17985#ifdef __cplusplus
17986extern "C"
17987#endif
17988char dlopen ();
17989int
17990main ()
17991{
17992return dlopen ();
17993  ;
17994  return 0;
17995}
17996_ACEOF
17997if ac_fn_c_try_link "$LINENO"; then :
17998  ac_cv_lib_dl_dlopen=yes
17999else
18000  ac_cv_lib_dl_dlopen=no
18001fi
18002rm -f core conftest.err conftest.$ac_objext \
18003    conftest$ac_exeext conftest.$ac_ext
18004LIBS=$ac_check_lib_save_LIBS
18005fi
18006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18007$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18008if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18009  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18010else
18011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18012$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18013if ${ac_cv_lib_svld_dlopen+:} false; then :
18014  $as_echo_n "(cached) " >&6
18015else
18016  ac_check_lib_save_LIBS=$LIBS
18017LIBS="-lsvld  $LIBS"
18018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019/* end confdefs.h.  */
18020
18021/* Override any GCC internal prototype to avoid an error.
18022   Use char because int might match the return type of a GCC
18023   builtin and then its argument prototype would still apply.  */
18024#ifdef __cplusplus
18025extern "C"
18026#endif
18027char dlopen ();
18028int
18029main ()
18030{
18031return dlopen ();
18032  ;
18033  return 0;
18034}
18035_ACEOF
18036if ac_fn_c_try_link "$LINENO"; then :
18037  ac_cv_lib_svld_dlopen=yes
18038else
18039  ac_cv_lib_svld_dlopen=no
18040fi
18041rm -f core conftest.err conftest.$ac_objext \
18042    conftest$ac_exeext conftest.$ac_ext
18043LIBS=$ac_check_lib_save_LIBS
18044fi
18045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18046$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18047if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18048  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18049else
18050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18051$as_echo_n "checking for dld_link in -ldld... " >&6; }
18052if ${ac_cv_lib_dld_dld_link+:} false; then :
18053  $as_echo_n "(cached) " >&6
18054else
18055  ac_check_lib_save_LIBS=$LIBS
18056LIBS="-ldld  $LIBS"
18057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058/* end confdefs.h.  */
18059
18060/* Override any GCC internal prototype to avoid an error.
18061   Use char because int might match the return type of a GCC
18062   builtin and then its argument prototype would still apply.  */
18063#ifdef __cplusplus
18064extern "C"
18065#endif
18066char dld_link ();
18067int
18068main ()
18069{
18070return dld_link ();
18071  ;
18072  return 0;
18073}
18074_ACEOF
18075if ac_fn_c_try_link "$LINENO"; then :
18076  ac_cv_lib_dld_dld_link=yes
18077else
18078  ac_cv_lib_dld_dld_link=no
18079fi
18080rm -f core conftest.err conftest.$ac_objext \
18081    conftest$ac_exeext conftest.$ac_ext
18082LIBS=$ac_check_lib_save_LIBS
18083fi
18084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18085$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18086if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18087  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18088fi
18089
18090
18091fi
18092
18093
18094fi
18095
18096
18097fi
18098
18099
18100fi
18101
18102
18103fi
18104
18105    ;;
18106  esac
18107
18108  if test no = "$lt_cv_dlopen"; then
18109    enable_dlopen=no
18110  else
18111    enable_dlopen=yes
18112  fi
18113
18114  case $lt_cv_dlopen in
18115  dlopen)
18116    save_CPPFLAGS=$CPPFLAGS
18117    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18118
18119    save_LDFLAGS=$LDFLAGS
18120    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18121
18122    save_LIBS=$LIBS
18123    LIBS="$lt_cv_dlopen_libs $LIBS"
18124
18125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18126$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18127if ${lt_cv_dlopen_self+:} false; then :
18128  $as_echo_n "(cached) " >&6
18129else
18130  	  if test yes = "$cross_compiling"; then :
18131  lt_cv_dlopen_self=cross
18132else
18133  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18134  lt_status=$lt_dlunknown
18135  cat > conftest.$ac_ext <<_LT_EOF
18136#line $LINENO "configure"
18137#include "confdefs.h"
18138
18139#if HAVE_DLFCN_H
18140#include <dlfcn.h>
18141#endif
18142
18143#include <stdio.h>
18144
18145#ifdef RTLD_GLOBAL
18146#  define LT_DLGLOBAL		RTLD_GLOBAL
18147#else
18148#  ifdef DL_GLOBAL
18149#    define LT_DLGLOBAL		DL_GLOBAL
18150#  else
18151#    define LT_DLGLOBAL		0
18152#  endif
18153#endif
18154
18155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18156   find out it does not work in some platform. */
18157#ifndef LT_DLLAZY_OR_NOW
18158#  ifdef RTLD_LAZY
18159#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18160#  else
18161#    ifdef DL_LAZY
18162#      define LT_DLLAZY_OR_NOW		DL_LAZY
18163#    else
18164#      ifdef RTLD_NOW
18165#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18166#      else
18167#        ifdef DL_NOW
18168#          define LT_DLLAZY_OR_NOW	DL_NOW
18169#        else
18170#          define LT_DLLAZY_OR_NOW	0
18171#        endif
18172#      endif
18173#    endif
18174#  endif
18175#endif
18176
18177/* When -fvisibility=hidden is used, assume the code has been annotated
18178   correspondingly for the symbols needed.  */
18179#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18180int fnord () __attribute__((visibility("default")));
18181#endif
18182
18183int fnord () { return 42; }
18184int main ()
18185{
18186  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18187  int status = $lt_dlunknown;
18188
18189  if (self)
18190    {
18191      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18192      else
18193        {
18194	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18195          else puts (dlerror ());
18196	}
18197      /* dlclose (self); */
18198    }
18199  else
18200    puts (dlerror ());
18201
18202  return status;
18203}
18204_LT_EOF
18205  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18206  (eval $ac_link) 2>&5
18207  ac_status=$?
18208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18209  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18210    (./conftest; exit; ) >&5 2>/dev/null
18211    lt_status=$?
18212    case x$lt_status in
18213      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18214      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18215      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18216    esac
18217  else :
18218    # compilation failed
18219    lt_cv_dlopen_self=no
18220  fi
18221fi
18222rm -fr conftest*
18223
18224
18225fi
18226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18227$as_echo "$lt_cv_dlopen_self" >&6; }
18228
18229    if test yes = "$lt_cv_dlopen_self"; then
18230      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18231      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18232$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18233if ${lt_cv_dlopen_self_static+:} false; then :
18234  $as_echo_n "(cached) " >&6
18235else
18236  	  if test yes = "$cross_compiling"; then :
18237  lt_cv_dlopen_self_static=cross
18238else
18239  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18240  lt_status=$lt_dlunknown
18241  cat > conftest.$ac_ext <<_LT_EOF
18242#line $LINENO "configure"
18243#include "confdefs.h"
18244
18245#if HAVE_DLFCN_H
18246#include <dlfcn.h>
18247#endif
18248
18249#include <stdio.h>
18250
18251#ifdef RTLD_GLOBAL
18252#  define LT_DLGLOBAL		RTLD_GLOBAL
18253#else
18254#  ifdef DL_GLOBAL
18255#    define LT_DLGLOBAL		DL_GLOBAL
18256#  else
18257#    define LT_DLGLOBAL		0
18258#  endif
18259#endif
18260
18261/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18262   find out it does not work in some platform. */
18263#ifndef LT_DLLAZY_OR_NOW
18264#  ifdef RTLD_LAZY
18265#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18266#  else
18267#    ifdef DL_LAZY
18268#      define LT_DLLAZY_OR_NOW		DL_LAZY
18269#    else
18270#      ifdef RTLD_NOW
18271#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18272#      else
18273#        ifdef DL_NOW
18274#          define LT_DLLAZY_OR_NOW	DL_NOW
18275#        else
18276#          define LT_DLLAZY_OR_NOW	0
18277#        endif
18278#      endif
18279#    endif
18280#  endif
18281#endif
18282
18283/* When -fvisibility=hidden is used, assume the code has been annotated
18284   correspondingly for the symbols needed.  */
18285#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18286int fnord () __attribute__((visibility("default")));
18287#endif
18288
18289int fnord () { return 42; }
18290int main ()
18291{
18292  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18293  int status = $lt_dlunknown;
18294
18295  if (self)
18296    {
18297      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18298      else
18299        {
18300	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18301          else puts (dlerror ());
18302	}
18303      /* dlclose (self); */
18304    }
18305  else
18306    puts (dlerror ());
18307
18308  return status;
18309}
18310_LT_EOF
18311  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18312  (eval $ac_link) 2>&5
18313  ac_status=$?
18314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18315  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18316    (./conftest; exit; ) >&5 2>/dev/null
18317    lt_status=$?
18318    case x$lt_status in
18319      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18320      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18321      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18322    esac
18323  else :
18324    # compilation failed
18325    lt_cv_dlopen_self_static=no
18326  fi
18327fi
18328rm -fr conftest*
18329
18330
18331fi
18332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18333$as_echo "$lt_cv_dlopen_self_static" >&6; }
18334    fi
18335
18336    CPPFLAGS=$save_CPPFLAGS
18337    LDFLAGS=$save_LDFLAGS
18338    LIBS=$save_LIBS
18339    ;;
18340  esac
18341
18342  case $lt_cv_dlopen_self in
18343  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18344  *) enable_dlopen_self=unknown ;;
18345  esac
18346
18347  case $lt_cv_dlopen_self_static in
18348  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18349  *) enable_dlopen_self_static=unknown ;;
18350  esac
18351fi
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369striplib=
18370old_striplib=
18371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18372$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18373if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18374  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18375  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18377$as_echo "yes" >&6; }
18378else
18379# FIXME - insert some real tests, host_os isn't really good enough
18380  case $host_os in
18381  darwin*)
18382    if test -n "$STRIP"; then
18383      striplib="$STRIP -x"
18384      old_striplib="$STRIP -S"
18385      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18386$as_echo "yes" >&6; }
18387    else
18388      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18389$as_echo "no" >&6; }
18390    fi
18391    ;;
18392  *)
18393    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394$as_echo "no" >&6; }
18395    ;;
18396  esac
18397fi
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410  # Report what library types will actually be built
18411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18412$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18414$as_echo "$can_build_shared" >&6; }
18415
18416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18417$as_echo_n "checking whether to build shared libraries... " >&6; }
18418  test no = "$can_build_shared" && enable_shared=no
18419
18420  # On AIX, shared libraries and static libraries use the same namespace, and
18421  # are all built from PIC.
18422  case $host_os in
18423  aix3*)
18424    test yes = "$enable_shared" && enable_static=no
18425    if test -n "$RANLIB"; then
18426      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18427      postinstall_cmds='$RANLIB $lib'
18428    fi
18429    ;;
18430
18431  aix[4-9]*)
18432    if test ia64 != "$host_cpu"; then
18433      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18434      yes,aix,yes) ;;			# shared object as lib.so file only
18435      yes,svr4,*) ;;			# shared object as lib.so archive member only
18436      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18437      esac
18438    fi
18439    ;;
18440  esac
18441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18442$as_echo "$enable_shared" >&6; }
18443
18444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18445$as_echo_n "checking whether to build static libraries... " >&6; }
18446  # Make sure either enable_shared or enable_static is yes.
18447  test yes = "$enable_shared" || enable_static=yes
18448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18449$as_echo "$enable_static" >&6; }
18450
18451
18452
18453
18454fi
18455ac_ext=c
18456ac_cpp='$CPP $CPPFLAGS'
18457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18459ac_compiler_gnu=$ac_cv_c_compiler_gnu
18460
18461CC=$lt_save_CC
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477        ac_config_commands="$ac_config_commands libtool"
18478
18479
18480
18481
18482# Only expand once:
18483
18484
18485
18486
18487
18488# Define a configure option for an alternate module directory
18489
18490# Check whether --with-xorg-module-dir was given.
18491if test "${with_xorg_module_dir+set}" = set; then :
18492  withval=$with_xorg_module_dir; moduledir="$withval"
18493else
18494  moduledir="$libdir/xorg/modules"
18495fi
18496
18497
18498# Store the list of server defined optional extensions in REQUIRED_MODULES
18499
18500
18501	SAVE_CFLAGS="$CFLAGS"
18502	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18503	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504/* end confdefs.h.  */
18505
18506#include "xorg-server.h"
18507#if !defined XV
18508#error XV not defined
18509#endif
18510
18511int
18512main ()
18513{
18514
18515  ;
18516  return 0;
18517}
18518_ACEOF
18519if ac_fn_c_try_compile "$LINENO"; then :
18520  _EXT_CHECK=yes
18521else
18522  _EXT_CHECK=no
18523fi
18524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18525	CFLAGS="$SAVE_CFLAGS"
18526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18527$as_echo_n "checking if XV is defined... " >&6; }
18528	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18529$as_echo "$_EXT_CHECK" >&6; }
18530	if test "$_EXT_CHECK" != no; then
18531		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18532	fi
18533
18534
18535
18536	SAVE_CFLAGS="$CFLAGS"
18537	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18538	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539/* end confdefs.h.  */
18540
18541#include "xorg-server.h"
18542#if !defined DPMSExtension
18543#error DPMSExtension not defined
18544#endif
18545
18546int
18547main ()
18548{
18549
18550  ;
18551  return 0;
18552}
18553_ACEOF
18554if ac_fn_c_try_compile "$LINENO"; then :
18555  _EXT_CHECK=yes
18556else
18557  _EXT_CHECK=no
18558fi
18559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18560	CFLAGS="$SAVE_CFLAGS"
18561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18562$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18563	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18564$as_echo "$_EXT_CHECK" >&6; }
18565	if test "$_EXT_CHECK" != no; then
18566		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18567	fi
18568
18569
18570
18571	SAVE_CFLAGS="$CFLAGS"
18572	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18573	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574/* end confdefs.h.  */
18575
18576#include "xorg-server.h"
18577#if !defined XFreeXDGA
18578#error XFreeXDGA not defined
18579#endif
18580
18581int
18582main ()
18583{
18584
18585  ;
18586  return 0;
18587}
18588_ACEOF
18589if ac_fn_c_try_compile "$LINENO"; then :
18590  _EXT_CHECK=yes
18591else
18592  _EXT_CHECK=no
18593fi
18594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18595	CFLAGS="$SAVE_CFLAGS"
18596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5
18597$as_echo_n "checking if XFreeXDGA is defined... " >&6; }
18598	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18599$as_echo "$_EXT_CHECK" >&6; }
18600	if test "$_EXT_CHECK" != no; then
18601		REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto"
18602	fi
18603
18604
18605# Obtain compiler/linker options for the driver dependencies
18606
18607pkg_failed=no
18608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18609$as_echo_n "checking for XORG... " >&6; }
18610
18611if test -n "$XORG_CFLAGS"; then
18612    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18613 elif test -n "$PKG_CONFIG"; then
18614    if test -n "$PKG_CONFIG" && \
18615    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\""; } >&5
18616  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
18617  ac_status=$?
18618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18619  test $ac_status = 0; }; then
18620  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
18621		      test "x$?" != "x0" && pkg_failed=yes
18622else
18623  pkg_failed=yes
18624fi
18625 else
18626    pkg_failed=untried
18627fi
18628if test -n "$XORG_LIBS"; then
18629    pkg_cv_XORG_LIBS="$XORG_LIBS"
18630 elif test -n "$PKG_CONFIG"; then
18631    if test -n "$PKG_CONFIG" && \
18632    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\""; } >&5
18633  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
18634  ac_status=$?
18635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18636  test $ac_status = 0; }; then
18637  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
18638		      test "x$?" != "x0" && pkg_failed=yes
18639else
18640  pkg_failed=yes
18641fi
18642 else
18643    pkg_failed=untried
18644fi
18645
18646
18647
18648if test $pkg_failed = yes; then
18649   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18650$as_echo "no" >&6; }
18651
18652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18653        _pkg_short_errors_supported=yes
18654else
18655        _pkg_short_errors_supported=no
18656fi
18657        if test $_pkg_short_errors_supported = yes; then
18658	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>&1`
18659        else
18660	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>&1`
18661        fi
18662	# Put the nasty error message in config.log where it belongs
18663	echo "$XORG_PKG_ERRORS" >&5
18664
18665	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
18666
18667$XORG_PKG_ERRORS
18668
18669Consider adjusting the PKG_CONFIG_PATH environment variable if you
18670installed software in a non-standard prefix.
18671
18672Alternatively, you may set the environment variables XORG_CFLAGS
18673and XORG_LIBS to avoid the need to call pkg-config.
18674See the pkg-config man page for more details." "$LINENO" 5
18675elif test $pkg_failed = untried; then
18676     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18677$as_echo "no" >&6; }
18678	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18680as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18681is in your PATH or set the PKG_CONFIG environment variable to the full
18682path to pkg-config.
18683
18684Alternatively, you may set the environment variables XORG_CFLAGS
18685and XORG_LIBS to avoid the need to call pkg-config.
18686See the pkg-config man page for more details.
18687
18688To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18689See \`config.log' for more details" "$LINENO" 5; }
18690else
18691	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18692	XORG_LIBS=$pkg_cv_XORG_LIBS
18693        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18694$as_echo "yes" >&6; }
18695
18696fi
18697
18698pkg_failed=no
18699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18700$as_echo_n "checking for XEXT... " >&6; }
18701
18702if test -n "$XEXT_CFLAGS"; then
18703    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18704 elif test -n "$PKG_CONFIG"; then
18705    if test -n "$PKG_CONFIG" && \
18706    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18707  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18708  ac_status=$?
18709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18710  test $ac_status = 0; }; then
18711  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18712		      test "x$?" != "x0" && pkg_failed=yes
18713else
18714  pkg_failed=yes
18715fi
18716 else
18717    pkg_failed=untried
18718fi
18719if test -n "$XEXT_LIBS"; then
18720    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18721 elif test -n "$PKG_CONFIG"; then
18722    if test -n "$PKG_CONFIG" && \
18723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18724  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18725  ac_status=$?
18726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18727  test $ac_status = 0; }; then
18728  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18729		      test "x$?" != "x0" && pkg_failed=yes
18730else
18731  pkg_failed=yes
18732fi
18733 else
18734    pkg_failed=untried
18735fi
18736
18737
18738
18739if test $pkg_failed = yes; then
18740   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18741$as_echo "no" >&6; }
18742
18743if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18744        _pkg_short_errors_supported=yes
18745else
18746        _pkg_short_errors_supported=no
18747fi
18748        if test $_pkg_short_errors_supported = yes; then
18749	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18750        else
18751	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18752        fi
18753	# Put the nasty error message in config.log where it belongs
18754	echo "$XEXT_PKG_ERRORS" >&5
18755
18756	HAVE_XEXTPROTO_71="no"
18757elif test $pkg_failed = untried; then
18758     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18759$as_echo "no" >&6; }
18760	HAVE_XEXTPROTO_71="no"
18761else
18762	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18763	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18764        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18765$as_echo "yes" >&6; }
18766	HAVE_XEXTPROTO_71="yes";
18767$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18768
18769fi
18770 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
18771  HAVE_XEXTPROTO_71_TRUE=
18772  HAVE_XEXTPROTO_71_FALSE='#'
18773else
18774  HAVE_XEXTPROTO_71_TRUE='#'
18775  HAVE_XEXTPROTO_71_FALSE=
18776fi
18777
18778sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18779
18780# Checks for libraries.
18781SAVE_CPPFLAGS="$CPPFLAGS"
18782CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18783ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18784"
18785if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18786  XSERVER_LIBPCIACCESS=yes
18787else
18788  XSERVER_LIBPCIACCESS=no
18789fi
18790
18791CPPFLAGS="$SAVE_CPPFLAGS"
18792
18793if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18794
18795pkg_failed=no
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18797$as_echo_n "checking for PCIACCESS... " >&6; }
18798
18799if test -n "$PCIACCESS_CFLAGS"; then
18800    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18801 elif test -n "$PKG_CONFIG"; then
18802    if test -n "$PKG_CONFIG" && \
18803    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18804  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18805  ac_status=$?
18806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18807  test $ac_status = 0; }; then
18808  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18809		      test "x$?" != "x0" && pkg_failed=yes
18810else
18811  pkg_failed=yes
18812fi
18813 else
18814    pkg_failed=untried
18815fi
18816if test -n "$PCIACCESS_LIBS"; then
18817    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18818 elif test -n "$PKG_CONFIG"; then
18819    if test -n "$PKG_CONFIG" && \
18820    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18821  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18822  ac_status=$?
18823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18824  test $ac_status = 0; }; then
18825  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18826		      test "x$?" != "x0" && pkg_failed=yes
18827else
18828  pkg_failed=yes
18829fi
18830 else
18831    pkg_failed=untried
18832fi
18833
18834
18835
18836if test $pkg_failed = yes; then
18837   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18838$as_echo "no" >&6; }
18839
18840if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18841        _pkg_short_errors_supported=yes
18842else
18843        _pkg_short_errors_supported=no
18844fi
18845        if test $_pkg_short_errors_supported = yes; then
18846	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18847        else
18848	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18849        fi
18850	# Put the nasty error message in config.log where it belongs
18851	echo "$PCIACCESS_PKG_ERRORS" >&5
18852
18853	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18854
18855$PCIACCESS_PKG_ERRORS
18856
18857Consider adjusting the PKG_CONFIG_PATH environment variable if you
18858installed software in a non-standard prefix.
18859
18860Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18861and PCIACCESS_LIBS to avoid the need to call pkg-config.
18862See the pkg-config man page for more details." "$LINENO" 5
18863elif test $pkg_failed = untried; then
18864     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18865$as_echo "no" >&6; }
18866	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18868as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18869is in your PATH or set the PKG_CONFIG environment variable to the full
18870path to pkg-config.
18871
18872Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18873and PCIACCESS_LIBS to avoid the need to call pkg-config.
18874See the pkg-config man page for more details.
18875
18876To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18877See \`config.log' for more details" "$LINENO" 5; }
18878else
18879	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18880	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18881        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18882$as_echo "yes" >&6; }
18883
18884fi
18885    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18886fi
18887 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18888  XSERVER_LIBPCIACCESS_TRUE=
18889  XSERVER_LIBPCIACCESS_FALSE='#'
18890else
18891  XSERVER_LIBPCIACCESS_TRUE='#'
18892  XSERVER_LIBPCIACCESS_FALSE=
18893fi
18894
18895
18896# Check whether --enable-xaa was given.
18897if test "${enable_xaa+set}" = set; then :
18898  enableval=$enable_xaa; XAA="$enableval"
18899else
18900  XAA=auto
18901fi
18902
18903if test "x$XAA" != xno; then
18904        save_CFLAGS=$CFLAGS
18905        save_CPPFLAGS=$CPPFLAGS
18906        CFLAGS=$XORG_CFLAGS
18907        CPPFLAGS="$XORG_CFLAGS"
18908        for ac_header in xaa.h
18909do :
18910  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18911if test "x$ac_cv_header_xaa_h" = xyes; then :
18912  cat >>confdefs.h <<_ACEOF
18913#define HAVE_XAA_H 1
18914_ACEOF
18915 XAA=yes
18916else
18917  XAA=no
18918fi
18919
18920done
18921
18922        CFLAGS=$save_CFLAGS
18923        CPPFLAGS=$save_CPPFLAGS
18924fi
18925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18926$as_echo_n "checking whether to include XAA support... " >&6; }
18927 if test "x$XAA" = xyes; then
18928  XAA_TRUE=
18929  XAA_FALSE='#'
18930else
18931  XAA_TRUE='#'
18932  XAA_FALSE=
18933fi
18934
18935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18936$as_echo "$XAA" >&6; }
18937
18938
18939
18940DRIVER_NAME=glint
18941
18942
18943ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18944
18945cat >confcache <<\_ACEOF
18946# This file is a shell script that caches the results of configure
18947# tests run on this system so they can be shared between configure
18948# scripts and configure runs, see configure's option --config-cache.
18949# It is not useful on other systems.  If it contains results you don't
18950# want to keep, you may remove or edit it.
18951#
18952# config.status only pays attention to the cache file if you give it
18953# the --recheck option to rerun configure.
18954#
18955# `ac_cv_env_foo' variables (set or unset) will be overridden when
18956# loading this file, other *unset* `ac_cv_foo' will be assigned the
18957# following values.
18958
18959_ACEOF
18960
18961# The following way of writing the cache mishandles newlines in values,
18962# but we know of no workaround that is simple, portable, and efficient.
18963# So, we kill variables containing newlines.
18964# Ultrix sh set writes to stderr and can't be redirected directly,
18965# and sets the high bit in the cache file unless we assign to the vars.
18966(
18967  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18968    eval ac_val=\$$ac_var
18969    case $ac_val in #(
18970    *${as_nl}*)
18971      case $ac_var in #(
18972      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18973$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18974      esac
18975      case $ac_var in #(
18976      _ | IFS | as_nl) ;; #(
18977      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18978      *) { eval $ac_var=; unset $ac_var;} ;;
18979      esac ;;
18980    esac
18981  done
18982
18983  (set) 2>&1 |
18984    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18985    *${as_nl}ac_space=\ *)
18986      # `set' does not quote correctly, so add quotes: double-quote
18987      # substitution turns \\\\ into \\, and sed turns \\ into \.
18988      sed -n \
18989	"s/'/'\\\\''/g;
18990	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18991      ;; #(
18992    *)
18993      # `set' quotes correctly as required by POSIX, so do not add quotes.
18994      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18995      ;;
18996    esac |
18997    sort
18998) |
18999  sed '
19000     /^ac_cv_env_/b end
19001     t clear
19002     :clear
19003     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19004     t end
19005     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19006     :end' >>confcache
19007if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19008  if test -w "$cache_file"; then
19009    if test "x$cache_file" != "x/dev/null"; then
19010      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19011$as_echo "$as_me: updating cache $cache_file" >&6;}
19012      if test ! -f "$cache_file" || test -h "$cache_file"; then
19013	cat confcache >"$cache_file"
19014      else
19015        case $cache_file in #(
19016        */* | ?:*)
19017	  mv -f confcache "$cache_file"$$ &&
19018	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19019        *)
19020	  mv -f confcache "$cache_file" ;;
19021	esac
19022      fi
19023    fi
19024  else
19025    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19026$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19027  fi
19028fi
19029rm -f confcache
19030
19031test "x$prefix" = xNONE && prefix=$ac_default_prefix
19032# Let make expand exec_prefix.
19033test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19034
19035DEFS=-DHAVE_CONFIG_H
19036
19037ac_libobjs=
19038ac_ltlibobjs=
19039U=
19040for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19041  # 1. Remove the extension, and $U if already installed.
19042  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19043  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19044  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19045  #    will be set to the directory where LIBOBJS objects are built.
19046  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19047  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19048done
19049LIBOBJS=$ac_libobjs
19050
19051LTLIBOBJS=$ac_ltlibobjs
19052
19053
19054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19055$as_echo_n "checking that generated files are newer than configure... " >&6; }
19056   if test -n "$am_sleep_pid"; then
19057     # Hide warnings about reused PIDs.
19058     wait $am_sleep_pid 2>/dev/null
19059   fi
19060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19061$as_echo "done" >&6; }
19062 if test -n "$EXEEXT"; then
19063  am__EXEEXT_TRUE=
19064  am__EXEEXT_FALSE='#'
19065else
19066  am__EXEEXT_TRUE='#'
19067  am__EXEEXT_FALSE=
19068fi
19069
19070if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19071  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19072Usually this means the macro was only invoked conditionally." "$LINENO" 5
19073fi
19074if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19075  as_fn_error $? "conditional \"AMDEP\" was never defined.
19076Usually this means the macro was only invoked conditionally." "$LINENO" 5
19077fi
19078if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19079  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19080Usually this means the macro was only invoked conditionally." "$LINENO" 5
19081fi
19082if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19083  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19084Usually this means the macro was only invoked conditionally." "$LINENO" 5
19085fi
19086if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19087  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19088Usually this means the macro was only invoked conditionally." "$LINENO" 5
19089fi
19090if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19091  as_fn_error $? "conditional \"XAA\" was never defined.
19092Usually this means the macro was only invoked conditionally." "$LINENO" 5
19093fi
19094
19095: "${CONFIG_STATUS=./config.status}"
19096ac_write_fail=0
19097ac_clean_files_save=$ac_clean_files
19098ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19099{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19100$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19101as_write_fail=0
19102cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19103#! $SHELL
19104# Generated by $as_me.
19105# Run this file to recreate the current configuration.
19106# Compiler output produced by configure, useful for debugging
19107# configure, is in config.log if it exists.
19108
19109debug=false
19110ac_cs_recheck=false
19111ac_cs_silent=false
19112
19113SHELL=\${CONFIG_SHELL-$SHELL}
19114export SHELL
19115_ASEOF
19116cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19117## -------------------- ##
19118## M4sh Initialization. ##
19119## -------------------- ##
19120
19121# Be more Bourne compatible
19122DUALCASE=1; export DUALCASE # for MKS sh
19123if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19124  emulate sh
19125  NULLCMD=:
19126  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19127  # is contrary to our usage.  Disable this feature.
19128  alias -g '${1+"$@"}'='"$@"'
19129  setopt NO_GLOB_SUBST
19130else
19131  case `(set -o) 2>/dev/null` in #(
19132  *posix*) :
19133    set -o posix ;; #(
19134  *) :
19135     ;;
19136esac
19137fi
19138
19139
19140as_nl='
19141'
19142export as_nl
19143# Printing a long string crashes Solaris 7 /usr/bin/printf.
19144as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19145as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19146as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19147# Prefer a ksh shell builtin over an external printf program on Solaris,
19148# but without wasting forks for bash or zsh.
19149if test -z "$BASH_VERSION$ZSH_VERSION" \
19150    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19151  as_echo='print -r --'
19152  as_echo_n='print -rn --'
19153elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19154  as_echo='printf %s\n'
19155  as_echo_n='printf %s'
19156else
19157  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19158    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19159    as_echo_n='/usr/ucb/echo -n'
19160  else
19161    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19162    as_echo_n_body='eval
19163      arg=$1;
19164      case $arg in #(
19165      *"$as_nl"*)
19166	expr "X$arg" : "X\\(.*\\)$as_nl";
19167	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19168      esac;
19169      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19170    '
19171    export as_echo_n_body
19172    as_echo_n='sh -c $as_echo_n_body as_echo'
19173  fi
19174  export as_echo_body
19175  as_echo='sh -c $as_echo_body as_echo'
19176fi
19177
19178# The user is always right.
19179if test "${PATH_SEPARATOR+set}" != set; then
19180  PATH_SEPARATOR=:
19181  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19182    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19183      PATH_SEPARATOR=';'
19184  }
19185fi
19186
19187
19188# IFS
19189# We need space, tab and new line, in precisely that order.  Quoting is
19190# there to prevent editors from complaining about space-tab.
19191# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19192# splitting by setting IFS to empty value.)
19193IFS=" ""	$as_nl"
19194
19195# Find who we are.  Look in the path if we contain no directory separator.
19196as_myself=
19197case $0 in #((
19198  *[\\/]* ) as_myself=$0 ;;
19199  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19200for as_dir in $PATH
19201do
19202  IFS=$as_save_IFS
19203  test -z "$as_dir" && as_dir=.
19204    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19205  done
19206IFS=$as_save_IFS
19207
19208     ;;
19209esac
19210# We did not find ourselves, most probably we were run as `sh COMMAND'
19211# in which case we are not to be found in the path.
19212if test "x$as_myself" = x; then
19213  as_myself=$0
19214fi
19215if test ! -f "$as_myself"; then
19216  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19217  exit 1
19218fi
19219
19220# Unset variables that we do not need and which cause bugs (e.g. in
19221# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19222# suppresses any "Segmentation fault" message there.  '((' could
19223# trigger a bug in pdksh 5.2.14.
19224for as_var in BASH_ENV ENV MAIL MAILPATH
19225do eval test x\${$as_var+set} = xset \
19226  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19227done
19228PS1='$ '
19229PS2='> '
19230PS4='+ '
19231
19232# NLS nuisances.
19233LC_ALL=C
19234export LC_ALL
19235LANGUAGE=C
19236export LANGUAGE
19237
19238# CDPATH.
19239(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19240
19241
19242# as_fn_error STATUS ERROR [LINENO LOG_FD]
19243# ----------------------------------------
19244# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19245# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19246# script with STATUS, using 1 if that was 0.
19247as_fn_error ()
19248{
19249  as_status=$1; test $as_status -eq 0 && as_status=1
19250  if test "$4"; then
19251    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19252    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19253  fi
19254  $as_echo "$as_me: error: $2" >&2
19255  as_fn_exit $as_status
19256} # as_fn_error
19257
19258
19259# as_fn_set_status STATUS
19260# -----------------------
19261# Set $? to STATUS, without forking.
19262as_fn_set_status ()
19263{
19264  return $1
19265} # as_fn_set_status
19266
19267# as_fn_exit STATUS
19268# -----------------
19269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19270as_fn_exit ()
19271{
19272  set +e
19273  as_fn_set_status $1
19274  exit $1
19275} # as_fn_exit
19276
19277# as_fn_unset VAR
19278# ---------------
19279# Portably unset VAR.
19280as_fn_unset ()
19281{
19282  { eval $1=; unset $1;}
19283}
19284as_unset=as_fn_unset
19285# as_fn_append VAR VALUE
19286# ----------------------
19287# Append the text in VALUE to the end of the definition contained in VAR. Take
19288# advantage of any shell optimizations that allow amortized linear growth over
19289# repeated appends, instead of the typical quadratic growth present in naive
19290# implementations.
19291if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19292  eval 'as_fn_append ()
19293  {
19294    eval $1+=\$2
19295  }'
19296else
19297  as_fn_append ()
19298  {
19299    eval $1=\$$1\$2
19300  }
19301fi # as_fn_append
19302
19303# as_fn_arith ARG...
19304# ------------------
19305# Perform arithmetic evaluation on the ARGs, and store the result in the
19306# global $as_val. Take advantage of shells that can avoid forks. The arguments
19307# must be portable across $(()) and expr.
19308if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19309  eval 'as_fn_arith ()
19310  {
19311    as_val=$(( $* ))
19312  }'
19313else
19314  as_fn_arith ()
19315  {
19316    as_val=`expr "$@" || test $? -eq 1`
19317  }
19318fi # as_fn_arith
19319
19320
19321if expr a : '\(a\)' >/dev/null 2>&1 &&
19322   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19323  as_expr=expr
19324else
19325  as_expr=false
19326fi
19327
19328if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19329  as_basename=basename
19330else
19331  as_basename=false
19332fi
19333
19334if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19335  as_dirname=dirname
19336else
19337  as_dirname=false
19338fi
19339
19340as_me=`$as_basename -- "$0" ||
19341$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19342	 X"$0" : 'X\(//\)$' \| \
19343	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19344$as_echo X/"$0" |
19345    sed '/^.*\/\([^/][^/]*\)\/*$/{
19346	    s//\1/
19347	    q
19348	  }
19349	  /^X\/\(\/\/\)$/{
19350	    s//\1/
19351	    q
19352	  }
19353	  /^X\/\(\/\).*/{
19354	    s//\1/
19355	    q
19356	  }
19357	  s/.*/./; q'`
19358
19359# Avoid depending upon Character Ranges.
19360as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19361as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19362as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19363as_cr_digits='0123456789'
19364as_cr_alnum=$as_cr_Letters$as_cr_digits
19365
19366ECHO_C= ECHO_N= ECHO_T=
19367case `echo -n x` in #(((((
19368-n*)
19369  case `echo 'xy\c'` in
19370  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19371  xy)  ECHO_C='\c';;
19372  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19373       ECHO_T='	';;
19374  esac;;
19375*)
19376  ECHO_N='-n';;
19377esac
19378
19379rm -f conf$$ conf$$.exe conf$$.file
19380if test -d conf$$.dir; then
19381  rm -f conf$$.dir/conf$$.file
19382else
19383  rm -f conf$$.dir
19384  mkdir conf$$.dir 2>/dev/null
19385fi
19386if (echo >conf$$.file) 2>/dev/null; then
19387  if ln -s conf$$.file conf$$ 2>/dev/null; then
19388    as_ln_s='ln -s'
19389    # ... but there are two gotchas:
19390    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19391    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19392    # In both cases, we have to default to `cp -pR'.
19393    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19394      as_ln_s='cp -pR'
19395  elif ln conf$$.file conf$$ 2>/dev/null; then
19396    as_ln_s=ln
19397  else
19398    as_ln_s='cp -pR'
19399  fi
19400else
19401  as_ln_s='cp -pR'
19402fi
19403rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19404rmdir conf$$.dir 2>/dev/null
19405
19406
19407# as_fn_mkdir_p
19408# -------------
19409# Create "$as_dir" as a directory, including parents if necessary.
19410as_fn_mkdir_p ()
19411{
19412
19413  case $as_dir in #(
19414  -*) as_dir=./$as_dir;;
19415  esac
19416  test -d "$as_dir" || eval $as_mkdir_p || {
19417    as_dirs=
19418    while :; do
19419      case $as_dir in #(
19420      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19421      *) as_qdir=$as_dir;;
19422      esac
19423      as_dirs="'$as_qdir' $as_dirs"
19424      as_dir=`$as_dirname -- "$as_dir" ||
19425$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19426	 X"$as_dir" : 'X\(//\)[^/]' \| \
19427	 X"$as_dir" : 'X\(//\)$' \| \
19428	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19429$as_echo X"$as_dir" |
19430    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19431	    s//\1/
19432	    q
19433	  }
19434	  /^X\(\/\/\)[^/].*/{
19435	    s//\1/
19436	    q
19437	  }
19438	  /^X\(\/\/\)$/{
19439	    s//\1/
19440	    q
19441	  }
19442	  /^X\(\/\).*/{
19443	    s//\1/
19444	    q
19445	  }
19446	  s/.*/./; q'`
19447      test -d "$as_dir" && break
19448    done
19449    test -z "$as_dirs" || eval "mkdir $as_dirs"
19450  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19451
19452
19453} # as_fn_mkdir_p
19454if mkdir -p . 2>/dev/null; then
19455  as_mkdir_p='mkdir -p "$as_dir"'
19456else
19457  test -d ./-p && rmdir ./-p
19458  as_mkdir_p=false
19459fi
19460
19461
19462# as_fn_executable_p FILE
19463# -----------------------
19464# Test if FILE is an executable regular file.
19465as_fn_executable_p ()
19466{
19467  test -f "$1" && test -x "$1"
19468} # as_fn_executable_p
19469as_test_x='test -x'
19470as_executable_p=as_fn_executable_p
19471
19472# Sed expression to map a string onto a valid CPP name.
19473as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19474
19475# Sed expression to map a string onto a valid variable name.
19476as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19477
19478
19479exec 6>&1
19480## ----------------------------------- ##
19481## Main body of $CONFIG_STATUS script. ##
19482## ----------------------------------- ##
19483_ASEOF
19484test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19485
19486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19487# Save the log message, to keep $0 and so on meaningful, and to
19488# report actual input values of CONFIG_FILES etc. instead of their
19489# values after options handling.
19490ac_log="
19491This file was extended by xf86-video-glint $as_me 1.2.9, which was
19492generated by GNU Autoconf 2.69.  Invocation command line was
19493
19494  CONFIG_FILES    = $CONFIG_FILES
19495  CONFIG_HEADERS  = $CONFIG_HEADERS
19496  CONFIG_LINKS    = $CONFIG_LINKS
19497  CONFIG_COMMANDS = $CONFIG_COMMANDS
19498  $ $0 $@
19499
19500on `(hostname || uname -n) 2>/dev/null | sed 1q`
19501"
19502
19503_ACEOF
19504
19505case $ac_config_files in *"
19506"*) set x $ac_config_files; shift; ac_config_files=$*;;
19507esac
19508
19509case $ac_config_headers in *"
19510"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19511esac
19512
19513
19514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19515# Files that config.status was made for.
19516config_files="$ac_config_files"
19517config_headers="$ac_config_headers"
19518config_commands="$ac_config_commands"
19519
19520_ACEOF
19521
19522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19523ac_cs_usage="\
19524\`$as_me' instantiates files and other configuration actions
19525from templates according to the current configuration.  Unless the files
19526and actions are specified as TAGs, all are instantiated by default.
19527
19528Usage: $0 [OPTION]... [TAG]...
19529
19530  -h, --help       print this help, then exit
19531  -V, --version    print version number and configuration settings, then exit
19532      --config     print configuration, then exit
19533  -q, --quiet, --silent
19534                   do not print progress messages
19535  -d, --debug      don't remove temporary files
19536      --recheck    update $as_me by reconfiguring in the same conditions
19537      --file=FILE[:TEMPLATE]
19538                   instantiate the configuration file FILE
19539      --header=FILE[:TEMPLATE]
19540                   instantiate the configuration header FILE
19541
19542Configuration files:
19543$config_files
19544
19545Configuration headers:
19546$config_headers
19547
19548Configuration commands:
19549$config_commands
19550
19551Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint>."
19552
19553_ACEOF
19554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19555ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19556ac_cs_version="\\
19557xf86-video-glint config.status 1.2.9
19558configured by $0, generated by GNU Autoconf 2.69,
19559  with options \\"\$ac_cs_config\\"
19560
19561Copyright (C) 2012 Free Software Foundation, Inc.
19562This config.status script is free software; the Free Software Foundation
19563gives unlimited permission to copy, distribute and modify it."
19564
19565ac_pwd='$ac_pwd'
19566srcdir='$srcdir'
19567INSTALL='$INSTALL'
19568MKDIR_P='$MKDIR_P'
19569AWK='$AWK'
19570test -n "\$AWK" || AWK=awk
19571_ACEOF
19572
19573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19574# The default lists apply if the user does not specify any file.
19575ac_need_defaults=:
19576while test $# != 0
19577do
19578  case $1 in
19579  --*=?*)
19580    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19581    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19582    ac_shift=:
19583    ;;
19584  --*=)
19585    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19586    ac_optarg=
19587    ac_shift=:
19588    ;;
19589  *)
19590    ac_option=$1
19591    ac_optarg=$2
19592    ac_shift=shift
19593    ;;
19594  esac
19595
19596  case $ac_option in
19597  # Handling of the options.
19598  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19599    ac_cs_recheck=: ;;
19600  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19601    $as_echo "$ac_cs_version"; exit ;;
19602  --config | --confi | --conf | --con | --co | --c )
19603    $as_echo "$ac_cs_config"; exit ;;
19604  --debug | --debu | --deb | --de | --d | -d )
19605    debug=: ;;
19606  --file | --fil | --fi | --f )
19607    $ac_shift
19608    case $ac_optarg in
19609    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19610    '') as_fn_error $? "missing file argument" ;;
19611    esac
19612    as_fn_append CONFIG_FILES " '$ac_optarg'"
19613    ac_need_defaults=false;;
19614  --header | --heade | --head | --hea )
19615    $ac_shift
19616    case $ac_optarg in
19617    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19618    esac
19619    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19620    ac_need_defaults=false;;
19621  --he | --h)
19622    # Conflict between --help and --header
19623    as_fn_error $? "ambiguous option: \`$1'
19624Try \`$0 --help' for more information.";;
19625  --help | --hel | -h )
19626    $as_echo "$ac_cs_usage"; exit ;;
19627  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19628  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19629    ac_cs_silent=: ;;
19630
19631  # This is an error.
19632  -*) as_fn_error $? "unrecognized option: \`$1'
19633Try \`$0 --help' for more information." ;;
19634
19635  *) as_fn_append ac_config_targets " $1"
19636     ac_need_defaults=false ;;
19637
19638  esac
19639  shift
19640done
19641
19642ac_configure_extra_args=
19643
19644if $ac_cs_silent; then
19645  exec 6>/dev/null
19646  ac_configure_extra_args="$ac_configure_extra_args --silent"
19647fi
19648
19649_ACEOF
19650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19651if \$ac_cs_recheck; then
19652  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19653  shift
19654  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19655  CONFIG_SHELL='$SHELL'
19656  export CONFIG_SHELL
19657  exec "\$@"
19658fi
19659
19660_ACEOF
19661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19662exec 5>>config.log
19663{
19664  echo
19665  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19666## Running $as_me. ##
19667_ASBOX
19668  $as_echo "$ac_log"
19669} >&5
19670
19671_ACEOF
19672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19673#
19674# INIT-COMMANDS
19675#
19676AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19677
19678
19679# The HP-UX ksh and POSIX shell print the target directory to stdout
19680# if CDPATH is set.
19681(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19682
19683sed_quote_subst='$sed_quote_subst'
19684double_quote_subst='$double_quote_subst'
19685delay_variable_subst='$delay_variable_subst'
19686enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19687macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19688macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19689enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19690pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19691enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19692shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19693SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19694ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19695PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19696host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19697host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19698host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19699build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19700build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19701build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19702SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19703Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19704GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19705EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19706FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19707LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19708NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19709LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19710max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19711ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19712exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19713lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19714lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19715lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19716lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19717lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19718reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19719reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19720OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19721deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19722file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19723file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19724want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19725DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19726sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19727AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19728AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19729archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19730STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19731RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19732old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19733old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19734old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19735lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19736CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19737CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19738compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19739GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19740lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19741lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19742lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19743lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19744lt_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"`'
19745lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19746nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19747lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19748lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19749objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19750MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19751lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19752lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19753lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19754lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19755lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19756need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19757MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19758DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19759NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19760LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19761OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19762OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19763libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19764shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19765extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19766archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19767enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19768export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19769whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19770compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19771old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19772old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19773archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19774archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19775module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19776module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19777with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19778allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19779no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19780hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19781hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19782hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19783hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19784hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19785hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19786hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19787inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19788link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19789always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19790export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19791exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19792include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19793prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19794postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19795file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19796variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19797need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19798need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19799version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19800runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19801shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19802shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19803libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19804library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19805soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19806install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19807postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19808postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19809finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19810finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19811hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19812sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19813configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19814configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19815hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19816enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19817enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19818enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19819old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19820striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19821
19822LTCC='$LTCC'
19823LTCFLAGS='$LTCFLAGS'
19824compiler='$compiler_DEFAULT'
19825
19826# A function that is used when there is no print builtin or printf.
19827func_fallback_echo ()
19828{
19829  eval 'cat <<_LTECHO_EOF
19830\$1
19831_LTECHO_EOF'
19832}
19833
19834# Quote evaled strings.
19835for var in SHELL \
19836ECHO \
19837PATH_SEPARATOR \
19838SED \
19839GREP \
19840EGREP \
19841FGREP \
19842LD \
19843NM \
19844LN_S \
19845lt_SP2NL \
19846lt_NL2SP \
19847reload_flag \
19848OBJDUMP \
19849deplibs_check_method \
19850file_magic_cmd \
19851file_magic_glob \
19852want_nocaseglob \
19853DLLTOOL \
19854sharedlib_from_linklib_cmd \
19855AR \
19856AR_FLAGS \
19857archiver_list_spec \
19858STRIP \
19859RANLIB \
19860CC \
19861CFLAGS \
19862compiler \
19863lt_cv_sys_global_symbol_pipe \
19864lt_cv_sys_global_symbol_to_cdecl \
19865lt_cv_sys_global_symbol_to_import \
19866lt_cv_sys_global_symbol_to_c_name_address \
19867lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19868lt_cv_nm_interface \
19869nm_file_list_spec \
19870lt_cv_truncate_bin \
19871lt_prog_compiler_no_builtin_flag \
19872lt_prog_compiler_pic \
19873lt_prog_compiler_wl \
19874lt_prog_compiler_static \
19875lt_cv_prog_compiler_c_o \
19876need_locks \
19877MANIFEST_TOOL \
19878DSYMUTIL \
19879NMEDIT \
19880LIPO \
19881OTOOL \
19882OTOOL64 \
19883shrext_cmds \
19884export_dynamic_flag_spec \
19885whole_archive_flag_spec \
19886compiler_needs_object \
19887with_gnu_ld \
19888allow_undefined_flag \
19889no_undefined_flag \
19890hardcode_libdir_flag_spec \
19891hardcode_libdir_separator \
19892exclude_expsyms \
19893include_expsyms \
19894file_list_spec \
19895variables_saved_for_relink \
19896libname_spec \
19897library_names_spec \
19898soname_spec \
19899install_override_mode \
19900finish_eval \
19901old_striplib \
19902striplib; do
19903    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19904    *[\\\\\\\`\\"\\\$]*)
19905      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19906      ;;
19907    *)
19908      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19909      ;;
19910    esac
19911done
19912
19913# Double-quote double-evaled strings.
19914for var in reload_cmds \
19915old_postinstall_cmds \
19916old_postuninstall_cmds \
19917old_archive_cmds \
19918extract_expsyms_cmds \
19919old_archive_from_new_cmds \
19920old_archive_from_expsyms_cmds \
19921archive_cmds \
19922archive_expsym_cmds \
19923module_cmds \
19924module_expsym_cmds \
19925export_symbols_cmds \
19926prelink_cmds \
19927postlink_cmds \
19928postinstall_cmds \
19929postuninstall_cmds \
19930finish_cmds \
19931sys_lib_search_path_spec \
19932configure_time_dlsearch_path \
19933configure_time_lt_sys_library_path; do
19934    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19935    *[\\\\\\\`\\"\\\$]*)
19936      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19937      ;;
19938    *)
19939      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19940      ;;
19941    esac
19942done
19943
19944ac_aux_dir='$ac_aux_dir'
19945
19946# See if we are running on zsh, and set the options that allow our
19947# commands through without removal of \ escapes INIT.
19948if test -n "\${ZSH_VERSION+set}"; then
19949   setopt NO_GLOB_SUBST
19950fi
19951
19952
19953    PACKAGE='$PACKAGE'
19954    VERSION='$VERSION'
19955    RM='$RM'
19956    ofile='$ofile'
19957
19958
19959
19960
19961_ACEOF
19962
19963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19964
19965# Handling of arguments.
19966for ac_config_target in $ac_config_targets
19967do
19968  case $ac_config_target in
19969    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19970    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19971    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19972    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19973    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19974    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19975
19976  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19977  esac
19978done
19979
19980
19981# If the user did not use the arguments to specify the items to instantiate,
19982# then the envvar interface is used.  Set only those that are not.
19983# We use the long form for the default assignment because of an extremely
19984# bizarre bug on SunOS 4.1.3.
19985if $ac_need_defaults; then
19986  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19987  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19988  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19989fi
19990
19991# Have a temporary directory for convenience.  Make it in the build tree
19992# simply because there is no reason against having it here, and in addition,
19993# creating and moving files from /tmp can sometimes cause problems.
19994# Hook for its removal unless debugging.
19995# Note that there is a small window in which the directory will not be cleaned:
19996# after its creation but before its name has been assigned to `$tmp'.
19997$debug ||
19998{
19999  tmp= ac_tmp=
20000  trap 'exit_status=$?
20001  : "${ac_tmp:=$tmp}"
20002  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20003' 0
20004  trap 'as_fn_exit 1' 1 2 13 15
20005}
20006# Create a (secure) tmp directory for tmp files.
20007
20008{
20009  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20010  test -d "$tmp"
20011}  ||
20012{
20013  tmp=./conf$$-$RANDOM
20014  (umask 077 && mkdir "$tmp")
20015} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20016ac_tmp=$tmp
20017
20018# Set up the scripts for CONFIG_FILES section.
20019# No need to generate them if there are no CONFIG_FILES.
20020# This happens for instance with `./config.status config.h'.
20021if test -n "$CONFIG_FILES"; then
20022
20023
20024ac_cr=`echo X | tr X '\015'`
20025# On cygwin, bash can eat \r inside `` if the user requested igncr.
20026# But we know of no other shell where ac_cr would be empty at this
20027# point, so we can use a bashism as a fallback.
20028if test "x$ac_cr" = x; then
20029  eval ac_cr=\$\'\\r\'
20030fi
20031ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20032if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20033  ac_cs_awk_cr='\\r'
20034else
20035  ac_cs_awk_cr=$ac_cr
20036fi
20037
20038echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20039_ACEOF
20040
20041
20042{
20043  echo "cat >conf$$subs.awk <<_ACEOF" &&
20044  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20045  echo "_ACEOF"
20046} >conf$$subs.sh ||
20047  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20048ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20049ac_delim='%!_!# '
20050for ac_last_try in false false false false false :; do
20051  . ./conf$$subs.sh ||
20052    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20053
20054  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20055  if test $ac_delim_n = $ac_delim_num; then
20056    break
20057  elif $ac_last_try; then
20058    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20059  else
20060    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20061  fi
20062done
20063rm -f conf$$subs.sh
20064
20065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20066cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20067_ACEOF
20068sed -n '
20069h
20070s/^/S["/; s/!.*/"]=/
20071p
20072g
20073s/^[^!]*!//
20074:repl
20075t repl
20076s/'"$ac_delim"'$//
20077t delim
20078:nl
20079h
20080s/\(.\{148\}\)..*/\1/
20081t more1
20082s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20083p
20084n
20085b repl
20086:more1
20087s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20088p
20089g
20090s/.\{148\}//
20091t nl
20092:delim
20093h
20094s/\(.\{148\}\)..*/\1/
20095t more2
20096s/["\\]/\\&/g; s/^/"/; s/$/"/
20097p
20098b
20099:more2
20100s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20101p
20102g
20103s/.\{148\}//
20104t delim
20105' <conf$$subs.awk | sed '
20106/^[^""]/{
20107  N
20108  s/\n//
20109}
20110' >>$CONFIG_STATUS || ac_write_fail=1
20111rm -f conf$$subs.awk
20112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20113_ACAWK
20114cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20115  for (key in S) S_is_set[key] = 1
20116  FS = ""
20117
20118}
20119{
20120  line = $ 0
20121  nfields = split(line, field, "@")
20122  substed = 0
20123  len = length(field[1])
20124  for (i = 2; i < nfields; i++) {
20125    key = field[i]
20126    keylen = length(key)
20127    if (S_is_set[key]) {
20128      value = S[key]
20129      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20130      len += length(value) + length(field[++i])
20131      substed = 1
20132    } else
20133      len += 1 + keylen
20134  }
20135
20136  print line
20137}
20138
20139_ACAWK
20140_ACEOF
20141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20142if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20143  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20144else
20145  cat
20146fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20147  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20148_ACEOF
20149
20150# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20151# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20152# trailing colons and then remove the whole line if VPATH becomes empty
20153# (actually we leave an empty line to preserve line numbers).
20154if test "x$srcdir" = x.; then
20155  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20156h
20157s///
20158s/^/:/
20159s/[	 ]*$/:/
20160s/:\$(srcdir):/:/g
20161s/:\${srcdir}:/:/g
20162s/:@srcdir@:/:/g
20163s/^:*//
20164s/:*$//
20165x
20166s/\(=[	 ]*\).*/\1/
20167G
20168s/\n//
20169s/^[^=]*=[	 ]*$//
20170}'
20171fi
20172
20173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20174fi # test -n "$CONFIG_FILES"
20175
20176# Set up the scripts for CONFIG_HEADERS section.
20177# No need to generate them if there are no CONFIG_HEADERS.
20178# This happens for instance with `./config.status Makefile'.
20179if test -n "$CONFIG_HEADERS"; then
20180cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20181BEGIN {
20182_ACEOF
20183
20184# Transform confdefs.h into an awk script `defines.awk', embedded as
20185# here-document in config.status, that substitutes the proper values into
20186# config.h.in to produce config.h.
20187
20188# Create a delimiter string that does not exist in confdefs.h, to ease
20189# handling of long lines.
20190ac_delim='%!_!# '
20191for ac_last_try in false false :; do
20192  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20193  if test -z "$ac_tt"; then
20194    break
20195  elif $ac_last_try; then
20196    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20197  else
20198    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20199  fi
20200done
20201
20202# For the awk script, D is an array of macro values keyed by name,
20203# likewise P contains macro parameters if any.  Preserve backslash
20204# newline sequences.
20205
20206ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20207sed -n '
20208s/.\{148\}/&'"$ac_delim"'/g
20209t rset
20210:rset
20211s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20212t def
20213d
20214:def
20215s/\\$//
20216t bsnl
20217s/["\\]/\\&/g
20218s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20219D["\1"]=" \3"/p
20220s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20221d
20222:bsnl
20223s/["\\]/\\&/g
20224s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20225D["\1"]=" \3\\\\\\n"\\/p
20226t cont
20227s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20228t cont
20229d
20230:cont
20231n
20232s/.\{148\}/&'"$ac_delim"'/g
20233t clear
20234:clear
20235s/\\$//
20236t bsnlc
20237s/["\\]/\\&/g; s/^/"/; s/$/"/p
20238d
20239:bsnlc
20240s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20241b cont
20242' <confdefs.h | sed '
20243s/'"$ac_delim"'/"\\\
20244"/g' >>$CONFIG_STATUS || ac_write_fail=1
20245
20246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20247  for (key in D) D_is_set[key] = 1
20248  FS = ""
20249}
20250/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20251  line = \$ 0
20252  split(line, arg, " ")
20253  if (arg[1] == "#") {
20254    defundef = arg[2]
20255    mac1 = arg[3]
20256  } else {
20257    defundef = substr(arg[1], 2)
20258    mac1 = arg[2]
20259  }
20260  split(mac1, mac2, "(") #)
20261  macro = mac2[1]
20262  prefix = substr(line, 1, index(line, defundef) - 1)
20263  if (D_is_set[macro]) {
20264    # Preserve the white space surrounding the "#".
20265    print prefix "define", macro P[macro] D[macro]
20266    next
20267  } else {
20268    # Replace #undef with comments.  This is necessary, for example,
20269    # in the case of _POSIX_SOURCE, which is predefined and required
20270    # on some systems where configure will not decide to define it.
20271    if (defundef == "undef") {
20272      print "/*", prefix defundef, macro, "*/"
20273      next
20274    }
20275  }
20276}
20277{ print }
20278_ACAWK
20279_ACEOF
20280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20281  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20282fi # test -n "$CONFIG_HEADERS"
20283
20284
20285eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20286shift
20287for ac_tag
20288do
20289  case $ac_tag in
20290  :[FHLC]) ac_mode=$ac_tag; continue;;
20291  esac
20292  case $ac_mode$ac_tag in
20293  :[FHL]*:*);;
20294  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20295  :[FH]-) ac_tag=-:-;;
20296  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20297  esac
20298  ac_save_IFS=$IFS
20299  IFS=:
20300  set x $ac_tag
20301  IFS=$ac_save_IFS
20302  shift
20303  ac_file=$1
20304  shift
20305
20306  case $ac_mode in
20307  :L) ac_source=$1;;
20308  :[FH])
20309    ac_file_inputs=
20310    for ac_f
20311    do
20312      case $ac_f in
20313      -) ac_f="$ac_tmp/stdin";;
20314      *) # Look for the file first in the build tree, then in the source tree
20315	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20316	 # because $ac_f cannot contain `:'.
20317	 test -f "$ac_f" ||
20318	   case $ac_f in
20319	   [\\/$]*) false;;
20320	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20321	   esac ||
20322	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20323      esac
20324      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20325      as_fn_append ac_file_inputs " '$ac_f'"
20326    done
20327
20328    # Let's still pretend it is `configure' which instantiates (i.e., don't
20329    # use $as_me), people would be surprised to read:
20330    #    /* config.h.  Generated by config.status.  */
20331    configure_input='Generated from '`
20332	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20333	`' by configure.'
20334    if test x"$ac_file" != x-; then
20335      configure_input="$ac_file.  $configure_input"
20336      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20337$as_echo "$as_me: creating $ac_file" >&6;}
20338    fi
20339    # Neutralize special characters interpreted by sed in replacement strings.
20340    case $configure_input in #(
20341    *\&* | *\|* | *\\* )
20342       ac_sed_conf_input=`$as_echo "$configure_input" |
20343       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20344    *) ac_sed_conf_input=$configure_input;;
20345    esac
20346
20347    case $ac_tag in
20348    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20349      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20350    esac
20351    ;;
20352  esac
20353
20354  ac_dir=`$as_dirname -- "$ac_file" ||
20355$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20356	 X"$ac_file" : 'X\(//\)[^/]' \| \
20357	 X"$ac_file" : 'X\(//\)$' \| \
20358	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20359$as_echo X"$ac_file" |
20360    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20361	    s//\1/
20362	    q
20363	  }
20364	  /^X\(\/\/\)[^/].*/{
20365	    s//\1/
20366	    q
20367	  }
20368	  /^X\(\/\/\)$/{
20369	    s//\1/
20370	    q
20371	  }
20372	  /^X\(\/\).*/{
20373	    s//\1/
20374	    q
20375	  }
20376	  s/.*/./; q'`
20377  as_dir="$ac_dir"; as_fn_mkdir_p
20378  ac_builddir=.
20379
20380case "$ac_dir" in
20381.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20382*)
20383  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20384  # A ".." for each directory in $ac_dir_suffix.
20385  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20386  case $ac_top_builddir_sub in
20387  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20388  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20389  esac ;;
20390esac
20391ac_abs_top_builddir=$ac_pwd
20392ac_abs_builddir=$ac_pwd$ac_dir_suffix
20393# for backward compatibility:
20394ac_top_builddir=$ac_top_build_prefix
20395
20396case $srcdir in
20397  .)  # We are building in place.
20398    ac_srcdir=.
20399    ac_top_srcdir=$ac_top_builddir_sub
20400    ac_abs_top_srcdir=$ac_pwd ;;
20401  [\\/]* | ?:[\\/]* )  # Absolute name.
20402    ac_srcdir=$srcdir$ac_dir_suffix;
20403    ac_top_srcdir=$srcdir
20404    ac_abs_top_srcdir=$srcdir ;;
20405  *) # Relative name.
20406    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20407    ac_top_srcdir=$ac_top_build_prefix$srcdir
20408    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20409esac
20410ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20411
20412
20413  case $ac_mode in
20414  :F)
20415  #
20416  # CONFIG_FILE
20417  #
20418
20419  case $INSTALL in
20420  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20421  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20422  esac
20423  ac_MKDIR_P=$MKDIR_P
20424  case $MKDIR_P in
20425  [\\/$]* | ?:[\\/]* ) ;;
20426  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20427  esac
20428_ACEOF
20429
20430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20431# If the template does not know about datarootdir, expand it.
20432# FIXME: This hack should be removed a few years after 2.60.
20433ac_datarootdir_hack=; ac_datarootdir_seen=
20434ac_sed_dataroot='
20435/datarootdir/ {
20436  p
20437  q
20438}
20439/@datadir@/p
20440/@docdir@/p
20441/@infodir@/p
20442/@localedir@/p
20443/@mandir@/p'
20444case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20445*datarootdir*) ac_datarootdir_seen=yes;;
20446*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20447  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20448$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20449_ACEOF
20450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20451  ac_datarootdir_hack='
20452  s&@datadir@&$datadir&g
20453  s&@docdir@&$docdir&g
20454  s&@infodir@&$infodir&g
20455  s&@localedir@&$localedir&g
20456  s&@mandir@&$mandir&g
20457  s&\\\${datarootdir}&$datarootdir&g' ;;
20458esac
20459_ACEOF
20460
20461# Neutralize VPATH when `$srcdir' = `.'.
20462# Shell code in configure.ac might set extrasub.
20463# FIXME: do we really want to maintain this feature?
20464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20465ac_sed_extra="$ac_vpsub
20466$extrasub
20467_ACEOF
20468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20469:t
20470/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20471s|@configure_input@|$ac_sed_conf_input|;t t
20472s&@top_builddir@&$ac_top_builddir_sub&;t t
20473s&@top_build_prefix@&$ac_top_build_prefix&;t t
20474s&@srcdir@&$ac_srcdir&;t t
20475s&@abs_srcdir@&$ac_abs_srcdir&;t t
20476s&@top_srcdir@&$ac_top_srcdir&;t t
20477s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20478s&@builddir@&$ac_builddir&;t t
20479s&@abs_builddir@&$ac_abs_builddir&;t t
20480s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20481s&@INSTALL@&$ac_INSTALL&;t t
20482s&@MKDIR_P@&$ac_MKDIR_P&;t t
20483$ac_datarootdir_hack
20484"
20485eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20486  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20487
20488test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20489  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20490  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20491      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20492  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20493which seems to be undefined.  Please make sure it is defined" >&5
20494$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20495which seems to be undefined.  Please make sure it is defined" >&2;}
20496
20497  rm -f "$ac_tmp/stdin"
20498  case $ac_file in
20499  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20500  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20501  esac \
20502  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20503 ;;
20504  :H)
20505  #
20506  # CONFIG_HEADER
20507  #
20508  if test x"$ac_file" != x-; then
20509    {
20510      $as_echo "/* $configure_input  */" \
20511      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20512    } >"$ac_tmp/config.h" \
20513      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20514    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20515      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20516$as_echo "$as_me: $ac_file is unchanged" >&6;}
20517    else
20518      rm -f "$ac_file"
20519      mv "$ac_tmp/config.h" "$ac_file" \
20520	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20521    fi
20522  else
20523    $as_echo "/* $configure_input  */" \
20524      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20525      || as_fn_error $? "could not create -" "$LINENO" 5
20526  fi
20527# Compute "$ac_file"'s index in $config_headers.
20528_am_arg="$ac_file"
20529_am_stamp_count=1
20530for _am_header in $config_headers :; do
20531  case $_am_header in
20532    $_am_arg | $_am_arg:* )
20533      break ;;
20534    * )
20535      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20536  esac
20537done
20538echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20539$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20540	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20541	 X"$_am_arg" : 'X\(//\)$' \| \
20542	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20543$as_echo X"$_am_arg" |
20544    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20545	    s//\1/
20546	    q
20547	  }
20548	  /^X\(\/\/\)[^/].*/{
20549	    s//\1/
20550	    q
20551	  }
20552	  /^X\(\/\/\)$/{
20553	    s//\1/
20554	    q
20555	  }
20556	  /^X\(\/\).*/{
20557	    s//\1/
20558	    q
20559	  }
20560	  s/.*/./; q'`/stamp-h$_am_stamp_count
20561 ;;
20562
20563  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20564$as_echo "$as_me: executing $ac_file commands" >&6;}
20565 ;;
20566  esac
20567
20568
20569  case $ac_file$ac_mode in
20570    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20571  # Older Autoconf quotes --file arguments for eval, but not when files
20572  # are listed without --file.  Let's play safe and only enable the eval
20573  # if we detect the quoting.
20574  case $CONFIG_FILES in
20575  *\'*) eval set x "$CONFIG_FILES" ;;
20576  *)   set x $CONFIG_FILES ;;
20577  esac
20578  shift
20579  for mf
20580  do
20581    # Strip MF so we end up with the name of the file.
20582    mf=`echo "$mf" | sed -e 's/:.*$//'`
20583    # Check whether this is an Automake generated Makefile or not.
20584    # We used to match only the files named 'Makefile.in', but
20585    # some people rename them; so instead we look at the file content.
20586    # Grep'ing the first line is not enough: some people post-process
20587    # each Makefile.in and add a new line on top of each file to say so.
20588    # Grep'ing the whole file is not good either: AIX grep has a line
20589    # limit of 2048, but all sed's we know have understand at least 4000.
20590    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20591      dirpart=`$as_dirname -- "$mf" ||
20592$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20593	 X"$mf" : 'X\(//\)[^/]' \| \
20594	 X"$mf" : 'X\(//\)$' \| \
20595	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20596$as_echo X"$mf" |
20597    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20598	    s//\1/
20599	    q
20600	  }
20601	  /^X\(\/\/\)[^/].*/{
20602	    s//\1/
20603	    q
20604	  }
20605	  /^X\(\/\/\)$/{
20606	    s//\1/
20607	    q
20608	  }
20609	  /^X\(\/\).*/{
20610	    s//\1/
20611	    q
20612	  }
20613	  s/.*/./; q'`
20614    else
20615      continue
20616    fi
20617    # Extract the definition of DEPDIR, am__include, and am__quote
20618    # from the Makefile without running 'make'.
20619    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20620    test -z "$DEPDIR" && continue
20621    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20622    test -z "$am__include" && continue
20623    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20624    # Find all dependency output files, they are included files with
20625    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20626    # simplest approach to changing $(DEPDIR) to its actual value in the
20627    # expansion.
20628    for file in `sed -n "
20629      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20630	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20631      # Make sure the directory exists.
20632      test -f "$dirpart/$file" && continue
20633      fdir=`$as_dirname -- "$file" ||
20634$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20635	 X"$file" : 'X\(//\)[^/]' \| \
20636	 X"$file" : 'X\(//\)$' \| \
20637	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20638$as_echo X"$file" |
20639    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20640	    s//\1/
20641	    q
20642	  }
20643	  /^X\(\/\/\)[^/].*/{
20644	    s//\1/
20645	    q
20646	  }
20647	  /^X\(\/\/\)$/{
20648	    s//\1/
20649	    q
20650	  }
20651	  /^X\(\/\).*/{
20652	    s//\1/
20653	    q
20654	  }
20655	  s/.*/./; q'`
20656      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20657      # echo "creating $dirpart/$file"
20658      echo '# dummy' > "$dirpart/$file"
20659    done
20660  done
20661}
20662 ;;
20663    "libtool":C)
20664
20665    # See if we are running on zsh, and set the options that allow our
20666    # commands through without removal of \ escapes.
20667    if test -n "${ZSH_VERSION+set}"; then
20668      setopt NO_GLOB_SUBST
20669    fi
20670
20671    cfgfile=${ofile}T
20672    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20673    $RM "$cfgfile"
20674
20675    cat <<_LT_EOF >> "$cfgfile"
20676#! $SHELL
20677# Generated automatically by $as_me ($PACKAGE) $VERSION
20678# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20679# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20680
20681# Provide generalized library-building support services.
20682# Written by Gordon Matzigkeit, 1996
20683
20684# Copyright (C) 2014 Free Software Foundation, Inc.
20685# This is free software; see the source for copying conditions.  There is NO
20686# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20687
20688# GNU Libtool is free software; you can redistribute it and/or modify
20689# it under the terms of the GNU General Public License as published by
20690# the Free Software Foundation; either version 2 of of the License, or
20691# (at your option) any later version.
20692#
20693# As a special exception to the GNU General Public License, if you
20694# distribute this file as part of a program or library that is built
20695# using GNU Libtool, you may include this file under the  same
20696# distribution terms that you use for the rest of that program.
20697#
20698# GNU Libtool is distributed in the hope that it will be useful, but
20699# WITHOUT ANY WARRANTY; without even the implied warranty of
20700# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20701# GNU General Public License for more details.
20702#
20703# You should have received a copy of the GNU General Public License
20704# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20705
20706
20707# The names of the tagged configurations supported by this script.
20708available_tags=''
20709
20710# Configured defaults for sys_lib_dlsearch_path munging.
20711: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20712
20713# ### BEGIN LIBTOOL CONFIG
20714
20715# Whether or not to build static libraries.
20716build_old_libs=$enable_static
20717
20718# Which release of libtool.m4 was used?
20719macro_version=$macro_version
20720macro_revision=$macro_revision
20721
20722# Whether or not to build shared libraries.
20723build_libtool_libs=$enable_shared
20724
20725# What type of objects to build.
20726pic_mode=$pic_mode
20727
20728# Whether or not to optimize for fast installation.
20729fast_install=$enable_fast_install
20730
20731# Shared archive member basename,for filename based shared library versioning on AIX.
20732shared_archive_member_spec=$shared_archive_member_spec
20733
20734# Shell to use when invoking shell scripts.
20735SHELL=$lt_SHELL
20736
20737# An echo program that protects backslashes.
20738ECHO=$lt_ECHO
20739
20740# The PATH separator for the build system.
20741PATH_SEPARATOR=$lt_PATH_SEPARATOR
20742
20743# The host system.
20744host_alias=$host_alias
20745host=$host
20746host_os=$host_os
20747
20748# The build system.
20749build_alias=$build_alias
20750build=$build
20751build_os=$build_os
20752
20753# A sed program that does not truncate output.
20754SED=$lt_SED
20755
20756# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20757Xsed="\$SED -e 1s/^X//"
20758
20759# A grep program that handles long lines.
20760GREP=$lt_GREP
20761
20762# An ERE matcher.
20763EGREP=$lt_EGREP
20764
20765# A literal string matcher.
20766FGREP=$lt_FGREP
20767
20768# A BSD- or MS-compatible name lister.
20769NM=$lt_NM
20770
20771# Whether we need soft or hard links.
20772LN_S=$lt_LN_S
20773
20774# What is the maximum length of a command?
20775max_cmd_len=$max_cmd_len
20776
20777# Object file suffix (normally "o").
20778objext=$ac_objext
20779
20780# Executable file suffix (normally "").
20781exeext=$exeext
20782
20783# whether the shell understands "unset".
20784lt_unset=$lt_unset
20785
20786# turn spaces into newlines.
20787SP2NL=$lt_lt_SP2NL
20788
20789# turn newlines into spaces.
20790NL2SP=$lt_lt_NL2SP
20791
20792# convert \$build file names to \$host format.
20793to_host_file_cmd=$lt_cv_to_host_file_cmd
20794
20795# convert \$build files to toolchain format.
20796to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20797
20798# An object symbol dumper.
20799OBJDUMP=$lt_OBJDUMP
20800
20801# Method to check whether dependent libraries are shared objects.
20802deplibs_check_method=$lt_deplibs_check_method
20803
20804# Command to use when deplibs_check_method = "file_magic".
20805file_magic_cmd=$lt_file_magic_cmd
20806
20807# How to find potential files when deplibs_check_method = "file_magic".
20808file_magic_glob=$lt_file_magic_glob
20809
20810# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20811want_nocaseglob=$lt_want_nocaseglob
20812
20813# DLL creation program.
20814DLLTOOL=$lt_DLLTOOL
20815
20816# Command to associate shared and link libraries.
20817sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20818
20819# The archiver.
20820AR=$lt_AR
20821
20822# Flags to create an archive.
20823AR_FLAGS=$lt_AR_FLAGS
20824
20825# How to feed a file listing to the archiver.
20826archiver_list_spec=$lt_archiver_list_spec
20827
20828# A symbol stripping program.
20829STRIP=$lt_STRIP
20830
20831# Commands used to install an old-style archive.
20832RANLIB=$lt_RANLIB
20833old_postinstall_cmds=$lt_old_postinstall_cmds
20834old_postuninstall_cmds=$lt_old_postuninstall_cmds
20835
20836# Whether to use a lock for old archive extraction.
20837lock_old_archive_extraction=$lock_old_archive_extraction
20838
20839# A C compiler.
20840LTCC=$lt_CC
20841
20842# LTCC compiler flags.
20843LTCFLAGS=$lt_CFLAGS
20844
20845# Take the output of nm and produce a listing of raw symbols and C names.
20846global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20847
20848# Transform the output of nm in a proper C declaration.
20849global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20850
20851# Transform the output of nm into a list of symbols to manually relocate.
20852global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20853
20854# Transform the output of nm in a C name address pair.
20855global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20856
20857# Transform the output of nm in a C name address pair when lib prefix is needed.
20858global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20859
20860# The name lister interface.
20861nm_interface=$lt_lt_cv_nm_interface
20862
20863# Specify filename containing input files for \$NM.
20864nm_file_list_spec=$lt_nm_file_list_spec
20865
20866# The root where to search for dependent libraries,and where our libraries should be installed.
20867lt_sysroot=$lt_sysroot
20868
20869# Command to truncate a binary pipe.
20870lt_truncate_bin=$lt_lt_cv_truncate_bin
20871
20872# The name of the directory that contains temporary libtool files.
20873objdir=$objdir
20874
20875# Used to examine libraries when file_magic_cmd begins with "file".
20876MAGIC_CMD=$MAGIC_CMD
20877
20878# Must we lock files when doing compilation?
20879need_locks=$lt_need_locks
20880
20881# Manifest tool.
20882MANIFEST_TOOL=$lt_MANIFEST_TOOL
20883
20884# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20885DSYMUTIL=$lt_DSYMUTIL
20886
20887# Tool to change global to local symbols on Mac OS X.
20888NMEDIT=$lt_NMEDIT
20889
20890# Tool to manipulate fat objects and archives on Mac OS X.
20891LIPO=$lt_LIPO
20892
20893# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20894OTOOL=$lt_OTOOL
20895
20896# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20897OTOOL64=$lt_OTOOL64
20898
20899# Old archive suffix (normally "a").
20900libext=$libext
20901
20902# Shared library suffix (normally ".so").
20903shrext_cmds=$lt_shrext_cmds
20904
20905# The commands to extract the exported symbol list from a shared archive.
20906extract_expsyms_cmds=$lt_extract_expsyms_cmds
20907
20908# Variables whose values should be saved in libtool wrapper scripts and
20909# restored at link time.
20910variables_saved_for_relink=$lt_variables_saved_for_relink
20911
20912# Do we need the "lib" prefix for modules?
20913need_lib_prefix=$need_lib_prefix
20914
20915# Do we need a version for libraries?
20916need_version=$need_version
20917
20918# Library versioning type.
20919version_type=$version_type
20920
20921# Shared library runtime path variable.
20922runpath_var=$runpath_var
20923
20924# Shared library path variable.
20925shlibpath_var=$shlibpath_var
20926
20927# Is shlibpath searched before the hard-coded library search path?
20928shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20929
20930# Format of library name prefix.
20931libname_spec=$lt_libname_spec
20932
20933# List of archive names.  First name is the real one, the rest are links.
20934# The last name is the one that the linker finds with -lNAME
20935library_names_spec=$lt_library_names_spec
20936
20937# The coded name of the library, if different from the real name.
20938soname_spec=$lt_soname_spec
20939
20940# Permission mode override for installation of shared libraries.
20941install_override_mode=$lt_install_override_mode
20942
20943# Command to use after installation of a shared archive.
20944postinstall_cmds=$lt_postinstall_cmds
20945
20946# Command to use after uninstallation of a shared archive.
20947postuninstall_cmds=$lt_postuninstall_cmds
20948
20949# Commands used to finish a libtool library installation in a directory.
20950finish_cmds=$lt_finish_cmds
20951
20952# As "finish_cmds", except a single script fragment to be evaled but
20953# not shown.
20954finish_eval=$lt_finish_eval
20955
20956# Whether we should hardcode library paths into libraries.
20957hardcode_into_libs=$hardcode_into_libs
20958
20959# Compile-time system search path for libraries.
20960sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20961
20962# Detected run-time system search path for libraries.
20963sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20964
20965# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20966configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20967
20968# Whether dlopen is supported.
20969dlopen_support=$enable_dlopen
20970
20971# Whether dlopen of programs is supported.
20972dlopen_self=$enable_dlopen_self
20973
20974# Whether dlopen of statically linked programs is supported.
20975dlopen_self_static=$enable_dlopen_self_static
20976
20977# Commands to strip libraries.
20978old_striplib=$lt_old_striplib
20979striplib=$lt_striplib
20980
20981
20982# The linker used to build libraries.
20983LD=$lt_LD
20984
20985# How to create reloadable object files.
20986reload_flag=$lt_reload_flag
20987reload_cmds=$lt_reload_cmds
20988
20989# Commands used to build an old-style archive.
20990old_archive_cmds=$lt_old_archive_cmds
20991
20992# A language specific compiler.
20993CC=$lt_compiler
20994
20995# Is the compiler the GNU compiler?
20996with_gcc=$GCC
20997
20998# Compiler flag to turn off builtin functions.
20999no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21000
21001# Additional compiler flags for building library objects.
21002pic_flag=$lt_lt_prog_compiler_pic
21003
21004# How to pass a linker flag through the compiler.
21005wl=$lt_lt_prog_compiler_wl
21006
21007# Compiler flag to prevent dynamic linking.
21008link_static_flag=$lt_lt_prog_compiler_static
21009
21010# Does compiler simultaneously support -c and -o options?
21011compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21012
21013# Whether or not to add -lc for building shared libraries.
21014build_libtool_need_lc=$archive_cmds_need_lc
21015
21016# Whether or not to disallow shared libs when runtime libs are static.
21017allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21018
21019# Compiler flag to allow reflexive dlopens.
21020export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21021
21022# Compiler flag to generate shared objects directly from archives.
21023whole_archive_flag_spec=$lt_whole_archive_flag_spec
21024
21025# Whether the compiler copes with passing no objects directly.
21026compiler_needs_object=$lt_compiler_needs_object
21027
21028# Create an old-style archive from a shared archive.
21029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21030
21031# Create a temporary old-style archive to link instead of a shared archive.
21032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21033
21034# Commands used to build a shared archive.
21035archive_cmds=$lt_archive_cmds
21036archive_expsym_cmds=$lt_archive_expsym_cmds
21037
21038# Commands used to build a loadable module if different from building
21039# a shared archive.
21040module_cmds=$lt_module_cmds
21041module_expsym_cmds=$lt_module_expsym_cmds
21042
21043# Whether we are building with GNU ld or not.
21044with_gnu_ld=$lt_with_gnu_ld
21045
21046# Flag that allows shared libraries with undefined symbols to be built.
21047allow_undefined_flag=$lt_allow_undefined_flag
21048
21049# Flag that enforces no undefined symbols.
21050no_undefined_flag=$lt_no_undefined_flag
21051
21052# Flag to hardcode \$libdir into a binary during linking.
21053# This must work even if \$libdir does not exist
21054hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21055
21056# Whether we need a single "-rpath" flag with a separated argument.
21057hardcode_libdir_separator=$lt_hardcode_libdir_separator
21058
21059# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21060# DIR into the resulting binary.
21061hardcode_direct=$hardcode_direct
21062
21063# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21064# DIR into the resulting binary and the resulting library dependency is
21065# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21066# library is relocated.
21067hardcode_direct_absolute=$hardcode_direct_absolute
21068
21069# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21070# into the resulting binary.
21071hardcode_minus_L=$hardcode_minus_L
21072
21073# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21074# into the resulting binary.
21075hardcode_shlibpath_var=$hardcode_shlibpath_var
21076
21077# Set to "yes" if building a shared library automatically hardcodes DIR
21078# into the library and all subsequent libraries and executables linked
21079# against it.
21080hardcode_automatic=$hardcode_automatic
21081
21082# Set to yes if linker adds runtime paths of dependent libraries
21083# to runtime path list.
21084inherit_rpath=$inherit_rpath
21085
21086# Whether libtool must link a program against all its dependency libraries.
21087link_all_deplibs=$link_all_deplibs
21088
21089# Set to "yes" if exported symbols are required.
21090always_export_symbols=$always_export_symbols
21091
21092# The commands to list exported symbols.
21093export_symbols_cmds=$lt_export_symbols_cmds
21094
21095# Symbols that should not be listed in the preloaded symbols.
21096exclude_expsyms=$lt_exclude_expsyms
21097
21098# Symbols that must always be exported.
21099include_expsyms=$lt_include_expsyms
21100
21101# Commands necessary for linking programs (against libraries) with templates.
21102prelink_cmds=$lt_prelink_cmds
21103
21104# Commands necessary for finishing linking programs.
21105postlink_cmds=$lt_postlink_cmds
21106
21107# Specify filename containing input files.
21108file_list_spec=$lt_file_list_spec
21109
21110# How to hardcode a shared library path into an executable.
21111hardcode_action=$hardcode_action
21112
21113# ### END LIBTOOL CONFIG
21114
21115_LT_EOF
21116
21117    cat <<'_LT_EOF' >> "$cfgfile"
21118
21119# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21120
21121# func_munge_path_list VARIABLE PATH
21122# -----------------------------------
21123# VARIABLE is name of variable containing _space_ separated list of
21124# directories to be munged by the contents of PATH, which is string
21125# having a format:
21126# "DIR[:DIR]:"
21127#       string "DIR[ DIR]" will be prepended to VARIABLE
21128# ":DIR[:DIR]"
21129#       string "DIR[ DIR]" will be appended to VARIABLE
21130# "DIRP[:DIRP]::[DIRA:]DIRA"
21131#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21132#       "DIRA[ DIRA]" will be appended to VARIABLE
21133# "DIR[:DIR]"
21134#       VARIABLE will be replaced by "DIR[ DIR]"
21135func_munge_path_list ()
21136{
21137    case x$2 in
21138    x)
21139        ;;
21140    *:)
21141        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21142        ;;
21143    x:*)
21144        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21145        ;;
21146    *::*)
21147        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21148        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21149        ;;
21150    *)
21151        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21152        ;;
21153    esac
21154}
21155
21156
21157# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21158func_cc_basename ()
21159{
21160    for cc_temp in $*""; do
21161      case $cc_temp in
21162        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21163        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21164        \-*) ;;
21165        *) break;;
21166      esac
21167    done
21168    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21169}
21170
21171
21172# ### END FUNCTIONS SHARED WITH CONFIGURE
21173
21174_LT_EOF
21175
21176  case $host_os in
21177  aix3*)
21178    cat <<\_LT_EOF >> "$cfgfile"
21179# AIX sometimes has problems with the GCC collect2 program.  For some
21180# reason, if we set the COLLECT_NAMES environment variable, the problems
21181# vanish in a puff of smoke.
21182if test set != "${COLLECT_NAMES+set}"; then
21183  COLLECT_NAMES=
21184  export COLLECT_NAMES
21185fi
21186_LT_EOF
21187    ;;
21188  esac
21189
21190
21191ltmain=$ac_aux_dir/ltmain.sh
21192
21193
21194  # We use sed instead of cat because bash on DJGPP gets confused if
21195  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21196  # text mode, it properly converts lines to CR/LF.  This bash problem
21197  # is reportedly fixed, but why not run on old versions too?
21198  sed '$q' "$ltmain" >> "$cfgfile" \
21199     || (rm -f "$cfgfile"; exit 1)
21200
21201   mv -f "$cfgfile" "$ofile" ||
21202    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21203  chmod +x "$ofile"
21204
21205 ;;
21206
21207  esac
21208done # for ac_tag
21209
21210
21211as_fn_exit 0
21212_ACEOF
21213ac_clean_files=$ac_clean_files_save
21214
21215test $ac_write_fail = 0 ||
21216  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21217
21218
21219# configure is writing to config.log, and then calls config.status.
21220# config.status does its own redirection, appending to config.log.
21221# Unfortunately, on DOS this fails, as config.log is still kept open
21222# by configure, so config.status won't be able to write to it; its
21223# output is simply discarded.  So we exec the FD to /dev/null,
21224# effectively closing config.log, so it can be properly (re)opened and
21225# appended to by config.status.  When coming back to configure, we
21226# need to make the FD available again.
21227if test "$no_create" != yes; then
21228  ac_cs_success=:
21229  ac_config_status_args=
21230  test "$silent" = yes &&
21231    ac_config_status_args="$ac_config_status_args --quiet"
21232  exec 5>/dev/null
21233  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21234  exec 5>>config.log
21235  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21236  # would make configure fail if this is the last instruction.
21237  $ac_cs_success || as_fn_exit 1
21238fi
21239if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21240  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21241$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21242fi
21243
21244