1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXcursor 1.2.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXcursor/issues>.
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://gitlab.freedesktop.org/xorg/lib/libXcursor/issues
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='libXcursor'
593PACKAGE_TARNAME='libXcursor'
594PACKAGE_VERSION='1.2.0'
595PACKAGE_STRING='libXcursor 1.2.0'
596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXcursor/issues'
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
640LINT_FALSE
641LINT_TRUE
642LINT_FLAGS
643LINT
644XCURSOR_LIBS
645XCURSOR_CFLAGS
646XCURSORPATH
647ICONDIR
648MAN_SUBSTS
649XORG_MAN_PAGE
650ADMIN_MAN_DIR
651DRIVER_MAN_DIR
652MISC_MAN_DIR
653FILE_MAN_DIR
654LIB_MAN_DIR
655APP_MAN_DIR
656ADMIN_MAN_SUFFIX
657DRIVER_MAN_SUFFIX
658MISC_MAN_SUFFIX
659FILE_MAN_SUFFIX
660LIB_MAN_SUFFIX
661APP_MAN_SUFFIX
662INSTALL_CMD
663PKG_CONFIG_LIBDIR
664PKG_CONFIG_PATH
665PKG_CONFIG
666CHANGELOG_CMD
667STRICT_CFLAGS
668CWARNFLAGS
669BASE_CFLAGS
670LT_SYS_LIBRARY_PATH
671OTOOL64
672OTOOL
673LIPO
674NMEDIT
675DSYMUTIL
676MANIFEST_TOOL
677RANLIB
678ac_ct_AR
679AR
680DLLTOOL
681OBJDUMP
682LN_S
683NM
684ac_ct_DUMPBIN
685DUMPBIN
686LD
687FGREP
688SED
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697LIBTOOL
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
702am__fastdepCC_FALSE
703am__fastdepCC_TRUE
704CCDEPMODE
705am__nodep
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__quote
710am__include
711DEPDIR
712am__untar
713am__tar
714AMTAR
715am__leading_dot
716SET_MAKE
717AWK
718mkdir_p
719MKDIR_P
720INSTALL_STRIP_PROGRAM
721STRIP
722install_sh
723MAKEINFO
724AUTOHEADER
725AUTOMAKE
726AUTOCONF
727ACLOCAL
728VERSION
729PACKAGE
730CYGPATH_W
731am__isrc
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735EGREP
736GREP
737CPP
738OBJEXT
739EXEEXT
740ac_ct_CC
741CPPFLAGS
742LDFLAGS
743CFLAGS
744CC
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
775PACKAGE_URL
776PACKAGE_BUGREPORT
777PACKAGE_STRING
778PACKAGE_VERSION
779PACKAGE_TARNAME
780PACKAGE_NAME
781PATH_SEPARATOR
782SHELL'
783ac_subst_files=''
784ac_user_opts='
785enable_option_checking
786enable_dependency_tracking
787enable_silent_rules
788enable_shared
789enable_static
790with_pic
791enable_fast_install
792with_aix_soname
793with_gnu_ld
794with_sysroot
795enable_libtool_lock
796enable_selective_werror
797enable_strict_compilation
798with_icondir
799with_cursorpath
800with_lint
801'
802      ac_precious_vars='build_alias
803host_alias
804target_alias
805CC
806CFLAGS
807LDFLAGS
808LIBS
809CPPFLAGS
810CPP
811LT_SYS_LIBRARY_PATH
812PKG_CONFIG
813PKG_CONFIG_PATH
814PKG_CONFIG_LIBDIR
815XCURSOR_CFLAGS
816XCURSOR_LIBS
817LINT
818LINT_FLAGS'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *=)   ac_optarg= ;;
883  *)    ac_optarg=yes ;;
884  esac
885
886  # Accept the important Cygnus configure options, so we can diagnose typos.
887
888  case $ac_dashdash$ac_option in
889  --)
890    ac_dashdash=yes ;;
891
892  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893    ac_prev=bindir ;;
894  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895    bindir=$ac_optarg ;;
896
897  -build | --build | --buil | --bui | --bu)
898    ac_prev=build_alias ;;
899  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900    build_alias=$ac_optarg ;;
901
902  -cache-file | --cache-file | --cache-fil | --cache-fi \
903  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904    ac_prev=cache_file ;;
905  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907    cache_file=$ac_optarg ;;
908
909  --config-cache | -C)
910    cache_file=config.cache ;;
911
912  -datadir | --datadir | --datadi | --datad)
913    ac_prev=datadir ;;
914  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915    datadir=$ac_optarg ;;
916
917  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918  | --dataroo | --dataro | --datar)
919    ac_prev=datarootdir ;;
920  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922    datarootdir=$ac_optarg ;;
923
924  -disable-* | --disable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=no ;;
939
940  -docdir | --docdir | --docdi | --doc | --do)
941    ac_prev=docdir ;;
942  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943    docdir=$ac_optarg ;;
944
945  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946    ac_prev=dvidir ;;
947  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948    dvidir=$ac_optarg ;;
949
950  -enable-* | --enable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: $ac_useropt"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=\$ac_optarg ;;
965
966  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968  | --exec | --exe | --ex)
969    ac_prev=exec_prefix ;;
970  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972  | --exec=* | --exe=* | --ex=*)
973    exec_prefix=$ac_optarg ;;
974
975  -gas | --gas | --ga | --g)
976    # Obsolete; use --with-gas.
977    with_gas=yes ;;
978
979  -help | --help | --hel | --he | -h)
980    ac_init_help=long ;;
981  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982    ac_init_help=recursive ;;
983  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984    ac_init_help=short ;;
985
986  -host | --host | --hos | --ho)
987    ac_prev=host_alias ;;
988  -host=* | --host=* | --hos=* | --ho=*)
989    host_alias=$ac_optarg ;;
990
991  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992    ac_prev=htmldir ;;
993  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994  | --ht=*)
995    htmldir=$ac_optarg ;;
996
997  -includedir | --includedir | --includedi | --included | --include \
998  | --includ | --inclu | --incl | --inc)
999    ac_prev=includedir ;;
1000  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001  | --includ=* | --inclu=* | --incl=* | --inc=*)
1002    includedir=$ac_optarg ;;
1003
1004  -infodir | --infodir | --infodi | --infod | --info | --inf)
1005    ac_prev=infodir ;;
1006  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007    infodir=$ac_optarg ;;
1008
1009  -libdir | --libdir | --libdi | --libd)
1010    ac_prev=libdir ;;
1011  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012    libdir=$ac_optarg ;;
1013
1014  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015  | --libexe | --libex | --libe)
1016    ac_prev=libexecdir ;;
1017  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018  | --libexe=* | --libex=* | --libe=*)
1019    libexecdir=$ac_optarg ;;
1020
1021  -localedir | --localedir | --localedi | --localed | --locale)
1022    ac_prev=localedir ;;
1023  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024    localedir=$ac_optarg ;;
1025
1026  -localstatedir | --localstatedir | --localstatedi | --localstated \
1027  | --localstate | --localstat | --localsta | --localst | --locals)
1028    ac_prev=localstatedir ;;
1029  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031    localstatedir=$ac_optarg ;;
1032
1033  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034    ac_prev=mandir ;;
1035  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036    mandir=$ac_optarg ;;
1037
1038  -nfp | --nfp | --nf)
1039    # Obsolete; use --without-fp.
1040    with_fp=no ;;
1041
1042  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043  | --no-cr | --no-c | -n)
1044    no_create=yes ;;
1045
1046  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048    no_recursion=yes ;;
1049
1050  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052  | --oldin | --oldi | --old | --ol | --o)
1053    ac_prev=oldincludedir ;;
1054  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057    oldincludedir=$ac_optarg ;;
1058
1059  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060    ac_prev=prefix ;;
1061  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062    prefix=$ac_optarg ;;
1063
1064  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065  | --program-pre | --program-pr | --program-p)
1066    ac_prev=program_prefix ;;
1067  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069    program_prefix=$ac_optarg ;;
1070
1071  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072  | --program-suf | --program-su | --program-s)
1073    ac_prev=program_suffix ;;
1074  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076    program_suffix=$ac_optarg ;;
1077
1078  -program-transform-name | --program-transform-name \
1079  | --program-transform-nam | --program-transform-na \
1080  | --program-transform-n | --program-transform- \
1081  | --program-transform | --program-transfor \
1082  | --program-transfo | --program-transf \
1083  | --program-trans | --program-tran \
1084  | --progr-tra | --program-tr | --program-t)
1085    ac_prev=program_transform_name ;;
1086  -program-transform-name=* | --program-transform-name=* \
1087  | --program-transform-nam=* | --program-transform-na=* \
1088  | --program-transform-n=* | --program-transform-=* \
1089  | --program-transform=* | --program-transfor=* \
1090  | --program-transfo=* | --program-transf=* \
1091  | --program-trans=* | --program-tran=* \
1092  | --progr-tra=* | --program-tr=* | --program-t=*)
1093    program_transform_name=$ac_optarg ;;
1094
1095  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096    ac_prev=pdfdir ;;
1097  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098    pdfdir=$ac_optarg ;;
1099
1100  -psdir | --psdir | --psdi | --psd | --ps)
1101    ac_prev=psdir ;;
1102  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103    psdir=$ac_optarg ;;
1104
1105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106  | -silent | --silent | --silen | --sile | --sil)
1107    silent=yes ;;
1108
1109  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110    ac_prev=sbindir ;;
1111  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112  | --sbi=* | --sb=*)
1113    sbindir=$ac_optarg ;;
1114
1115  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117  | --sharedst | --shareds | --shared | --share | --shar \
1118  | --sha | --sh)
1119    ac_prev=sharedstatedir ;;
1120  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123  | --sha=* | --sh=*)
1124    sharedstatedir=$ac_optarg ;;
1125
1126  -site | --site | --sit)
1127    ac_prev=site ;;
1128  -site=* | --site=* | --sit=*)
1129    site=$ac_optarg ;;
1130
1131  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132    ac_prev=srcdir ;;
1133  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134    srcdir=$ac_optarg ;;
1135
1136  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137  | --syscon | --sysco | --sysc | --sys | --sy)
1138    ac_prev=sysconfdir ;;
1139  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141    sysconfdir=$ac_optarg ;;
1142
1143  -target | --target | --targe | --targ | --tar | --ta | --t)
1144    ac_prev=target_alias ;;
1145  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146    target_alias=$ac_optarg ;;
1147
1148  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149    verbose=yes ;;
1150
1151  -version | --version | --versio | --versi | --vers | -V)
1152    ac_init_version=: ;;
1153
1154  -with-* | --with-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=\$ac_optarg ;;
1169
1170  -without-* | --without-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=no ;;
1185
1186  --x)
1187    # Obsolete; use --with-x.
1188    with_x=yes ;;
1189
1190  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191  | --x-incl | --x-inc | --x-in | --x-i)
1192    ac_prev=x_includes ;;
1193  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195    x_includes=$ac_optarg ;;
1196
1197  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199    ac_prev=x_libraries ;;
1200  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202    x_libraries=$ac_optarg ;;
1203
1204  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
1206    ;;
1207
1208  *=*)
1209    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210    # Reject names that are not valid shell variable names.
1211    case $ac_envvar in #(
1212      '' | [0-9]* | *[!_$as_cr_alnum]* )
1213      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214    esac
1215    eval $ac_envvar=\$ac_optarg
1216    export $ac_envvar ;;
1217
1218  *)
1219    # FIXME: should be removed in autoconf 3.0.
1220    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224    ;;
1225
1226  esac
1227done
1228
1229if test -n "$ac_prev"; then
1230  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231  as_fn_error $? "missing argument to $ac_option"
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235  case $enable_option_checking in
1236    no) ;;
1237    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239  esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244		datadir sysconfdir sharedstatedir localstatedir includedir \
1245		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246		libdir localedir mandir
1247do
1248  eval ac_val=\$$ac_var
1249  # Remove trailing slashes.
1250  case $ac_val in
1251    */ )
1252      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253      eval $ac_var=\$ac_val;;
1254  esac
1255  # Be sure to have absolute directory names.
1256  case $ac_val in
1257    [\\/$]* | ?:[\\/]* )  continue;;
1258    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259  esac
1260  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272  if test "x$build_alias" = x; then
1273    cross_compiling=maybe
1274  elif test "x$build_alias" != "x$host_alias"; then
1275    cross_compiling=yes
1276  fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
1283
1284
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288  as_fn_error $? "working directory cannot be determined"
1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290  as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295  ac_srcdir_defaulted=yes
1296  # Try the directory containing this script, then the parent directory.
1297  ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299	 X"$as_myself" : 'X\(//\)[^/]' \| \
1300	 X"$as_myself" : 'X\(//\)$' \| \
1301	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)[^/].*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\/\)$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\).*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  s/.*/./; q'`
1320  srcdir=$ac_confdir
1321  if test ! -r "$srcdir/$ac_unique_file"; then
1322    srcdir=..
1323  fi
1324else
1325  ac_srcdir_defaulted=no
1326fi
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
1333	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334	pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337  srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_env_${ac_var}_value=\$${ac_var}
1348  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356  # Omit some internal or obsolete options to make the list less imposing.
1357  # This message is too long to be a string in the A/UX 3.1 sh.
1358  cat <<_ACEOF
1359\`configure' configures libXcursor 1.2.0 to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369  -h, --help              display this help and exit
1370      --help=short        display options specific to this package
1371      --help=recursive    display the short help of all the included packages
1372  -V, --version           display version information and exit
1373  -q, --quiet, --silent   do not print \`checking ...' messages
1374      --cache-file=FILE   cache test results in FILE [disabled]
1375  -C, --config-cache      alias for \`--cache-file=config.cache'
1376  -n, --no-create         do not create output files
1377      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380  --prefix=PREFIX         install architecture-independent files in PREFIX
1381                          [$ac_default_prefix]
1382  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                          [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393  --bindir=DIR            user executables [EPREFIX/bin]
1394  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395  --libexecdir=DIR        program executables [EPREFIX/libexec]
1396  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399  --libdir=DIR            object code libraries [EPREFIX/lib]
1400  --includedir=DIR        C header files [PREFIX/include]
1401  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404  --infodir=DIR           info documentation [DATAROOTDIR/info]
1405  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406  --mandir=DIR            man documentation [DATAROOTDIR/man]
1407  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXcursor]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416Program names:
1417  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421System types:
1422  --build=BUILD     configure for building on BUILD [guessed]
1423  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424_ACEOF
1425fi
1426
1427if test -n "$ac_init_help"; then
1428  case $ac_init_help in
1429     short | recursive ) echo "Configuration of libXcursor 1.2.0:";;
1430   esac
1431  cat <<\_ACEOF
1432
1433Optional Features:
1434  --disable-option-checking  ignore unrecognized --enable/--with options
1435  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437  --enable-dependency-tracking
1438                          do not reject slow dependency extractors
1439  --disable-dependency-tracking
1440                          speeds up one-time build
1441  --enable-silent-rules   less verbose build output (undo: "make V=1")
1442  --disable-silent-rules  verbose build output (undo: "make V=0")
1443  --enable-shared[=PKGS]  build shared libraries [default=yes]
1444  --enable-static[=PKGS]  build static libraries [default=yes]
1445  --enable-fast-install[=PKGS]
1446                          optimize for fast installation [default=yes]
1447  --disable-libtool-lock  avoid locking (might break parallel builds)
1448  --disable-selective-werror
1449                          Turn off selective compiler errors. (default:
1450                          enabled)
1451  --enable-strict-compilation
1452                          Enable all warnings from compiler and make them
1453                          errors (default: disabled)
1454
1455Optional Packages:
1456  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1459                          both]
1460  --with-aix-soname=aix|svr4|both
1461                          shared library versioning (aka "SONAME") variant to
1462                          provide on AIX, [default=aix].
1463  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1464  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1465                          compiler's sysroot if not specified).
1466  --with-icondir=<path>   Set default icon directory (default:
1467                          ${datadir}/icons)
1468  --with-cursorpath=<paths>
1469                          Set default search path for cursors
1470  --with-lint             Use a lint-style source code checker (default:
1471                          disabled)
1472
1473Some influential environment variables:
1474  CC          C compiler command
1475  CFLAGS      C compiler flags
1476  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1477              nonstandard directory <lib dir>
1478  LIBS        libraries to pass to the linker, e.g. -l<library>
1479  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480              you have headers in a nonstandard directory <include dir>
1481  CPP         C preprocessor
1482  LT_SYS_LIBRARY_PATH
1483              User-defined run-time library search path.
1484  PKG_CONFIG  path to pkg-config utility
1485  PKG_CONFIG_PATH
1486              directories to add to pkg-config's search path
1487  PKG_CONFIG_LIBDIR
1488              path overriding pkg-config's built-in search path
1489  XCURSOR_CFLAGS
1490              C compiler flags for XCURSOR, overriding pkg-config
1491  XCURSOR_LIBS
1492              linker flags for XCURSOR, overriding pkg-config
1493  LINT        Path to a lint-style command
1494  LINT_FLAGS  Flags for the lint-style command
1495
1496Use these variables to override the choices made by `configure' or to help
1497it to find libraries and programs with nonstandard names/locations.
1498
1499Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXcursor/issues>.
1500_ACEOF
1501ac_status=$?
1502fi
1503
1504if test "$ac_init_help" = "recursive"; then
1505  # If there are subdirs, report their specific --help.
1506  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507    test -d "$ac_dir" ||
1508      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509      continue
1510    ac_builddir=.
1511
1512case "$ac_dir" in
1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514*)
1515  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1516  # A ".." for each directory in $ac_dir_suffix.
1517  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518  case $ac_top_builddir_sub in
1519  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521  esac ;;
1522esac
1523ac_abs_top_builddir=$ac_pwd
1524ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525# for backward compatibility:
1526ac_top_builddir=$ac_top_build_prefix
1527
1528case $srcdir in
1529  .)  # We are building in place.
1530    ac_srcdir=.
1531    ac_top_srcdir=$ac_top_builddir_sub
1532    ac_abs_top_srcdir=$ac_pwd ;;
1533  [\\/]* | ?:[\\/]* )  # Absolute name.
1534    ac_srcdir=$srcdir$ac_dir_suffix;
1535    ac_top_srcdir=$srcdir
1536    ac_abs_top_srcdir=$srcdir ;;
1537  *) # Relative name.
1538    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539    ac_top_srcdir=$ac_top_build_prefix$srcdir
1540    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541esac
1542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544    cd "$ac_dir" || { ac_status=$?; continue; }
1545    # Check for guested configure.
1546    if test -f "$ac_srcdir/configure.gnu"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549    elif test -f "$ac_srcdir/configure"; then
1550      echo &&
1551      $SHELL "$ac_srcdir/configure" --help=recursive
1552    else
1553      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554    fi || ac_status=$?
1555    cd "$ac_pwd" || { ac_status=$?; break; }
1556  done
1557fi
1558
1559test -n "$ac_init_help" && exit $ac_status
1560if $ac_init_version; then
1561  cat <<\_ACEOF
1562libXcursor configure 1.2.0
1563generated by GNU Autoconf 2.69
1564
1565Copyright (C) 2012 Free Software Foundation, Inc.
1566This configure script is free software; the Free Software Foundation
1567gives unlimited permission to copy, distribute and modify it.
1568_ACEOF
1569  exit
1570fi
1571
1572## ------------------------ ##
1573## Autoconf initialization. ##
1574## ------------------------ ##
1575
1576# ac_fn_c_try_compile LINENO
1577# --------------------------
1578# Try to compile conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_compile ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  rm -f conftest.$ac_objext
1583  if { { ac_try="$ac_compile"
1584case "(($ac_try" in
1585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586  *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590  (eval "$ac_compile") 2>conftest.err
1591  ac_status=$?
1592  if test -s conftest.err; then
1593    grep -v '^ *+' conftest.err >conftest.er1
1594    cat conftest.er1 >&5
1595    mv -f conftest.er1 conftest.err
1596  fi
1597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598  test $ac_status = 0; } && {
1599	 test -z "$ac_c_werror_flag" ||
1600	 test ! -s conftest.err
1601       } && test -s conftest.$ac_objext; then :
1602  ac_retval=0
1603else
1604  $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607	ac_retval=1
1608fi
1609  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610  as_fn_set_status $ac_retval
1611
1612} # ac_fn_c_try_compile
1613
1614# ac_fn_c_try_cpp LINENO
1615# ----------------------
1616# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617ac_fn_c_try_cpp ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  if { { ac_try="$ac_cpp conftest.$ac_ext"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } > conftest.i && {
1636	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       }; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644    ac_retval=1
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_cpp
1650
1651# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1652# -------------------------------------------------------
1653# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1654# the include files in INCLUDES and setting the cache variable VAR
1655# accordingly.
1656ac_fn_c_check_header_mongrel ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  if eval \${$3+:} false; then :
1660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if eval \${$3+:} false; then :
1663  $as_echo_n "(cached) " >&6
1664fi
1665eval ac_res=\$$3
1666	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668else
1669  # Is the header compilable?
1670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1671$as_echo_n "checking $2 usability... " >&6; }
1672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673/* end confdefs.h.  */
1674$4
1675#include <$2>
1676_ACEOF
1677if ac_fn_c_try_compile "$LINENO"; then :
1678  ac_header_compiler=yes
1679else
1680  ac_header_compiler=no
1681fi
1682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1684$as_echo "$ac_header_compiler" >&6; }
1685
1686# Is the header present?
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1688$as_echo_n "checking $2 presence... " >&6; }
1689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h.  */
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_cpp "$LINENO"; then :
1694  ac_header_preproc=yes
1695else
1696  ac_header_preproc=no
1697fi
1698rm -f conftest.err conftest.i conftest.$ac_ext
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1700$as_echo "$ac_header_preproc" >&6; }
1701
1702# So?  What about this header?
1703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1704  yes:no: )
1705    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1706$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1707    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709    ;;
1710  no:yes:* )
1711    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1712$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1713    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1714$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1716$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1718$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721( $as_echo "## ------------------------------------------------------------------------ ##
1722## Report this to https://gitlab.freedesktop.org/xorg/lib/libXcursor/issues ##
1723## ------------------------------------------------------------------------ ##"
1724     ) | sed "s/^/$as_me: WARNING:     /" >&2
1725    ;;
1726esac
1727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728$as_echo_n "checking for $2... " >&6; }
1729if eval \${$3+:} false; then :
1730  $as_echo_n "(cached) " >&6
1731else
1732  eval "$3=\$ac_header_compiler"
1733fi
1734eval ac_res=\$$3
1735	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737fi
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740} # ac_fn_c_check_header_mongrel
1741
1742# ac_fn_c_try_run LINENO
1743# ----------------------
1744# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745# that executables *can* be run.
1746ac_fn_c_try_run ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  if { { ac_try="$ac_link"
1750case "(($ac_try" in
1751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752  *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756  (eval "$ac_link") 2>&5
1757  ac_status=$?
1758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760  { { case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_try") 2>&5
1767  ac_status=$?
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; }; }; then :
1770  ac_retval=0
1771else
1772  $as_echo "$as_me: program exited with status $ac_status" >&5
1773       $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776       ac_retval=$ac_status
1777fi
1778  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780  as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_run
1783
1784# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785# -------------------------------------------------------
1786# Tests whether HEADER exists and can be compiled using the include files in
1787# INCLUDES, setting the cache variable VAR accordingly.
1788ac_fn_c_check_header_compile ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if eval \${$3+:} false; then :
1794  $as_echo_n "(cached) " >&6
1795else
1796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h.  */
1798$4
1799#include <$2>
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802  eval "$3=yes"
1803else
1804  eval "$3=no"
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813} # ac_fn_c_check_header_compile
1814
1815# ac_fn_c_try_link LINENO
1816# -----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded.
1818ac_fn_c_try_link ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  rm -f conftest.$ac_objext conftest$ac_exeext
1822  if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825  *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829  (eval "$ac_link") 2>conftest.err
1830  ac_status=$?
1831  if test -s conftest.err; then
1832    grep -v '^ *+' conftest.err >conftest.er1
1833    cat conftest.er1 >&5
1834    mv -f conftest.er1 conftest.err
1835  fi
1836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837  test $ac_status = 0; } && {
1838	 test -z "$ac_c_werror_flag" ||
1839	 test ! -s conftest.err
1840       } && test -s conftest$ac_exeext && {
1841	 test "$cross_compiling" = yes ||
1842	 test -x conftest$ac_exeext
1843       }; then :
1844  ac_retval=0
1845else
1846  $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849	ac_retval=1
1850fi
1851  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1852  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1853  # interfere with the next link command; also delete a directory that is
1854  # left behind by Apple's compiler.  We do this before executing the actions.
1855  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857  as_fn_set_status $ac_retval
1858
1859} # ac_fn_c_try_link
1860
1861# ac_fn_c_check_func LINENO FUNC VAR
1862# ----------------------------------
1863# Tests whether FUNC exists, setting the cache variable VAR accordingly
1864ac_fn_c_check_func ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1876#define $2 innocuous_$2
1877
1878/* System header to define __stub macros and hopefully few prototypes,
1879    which can conflict with char $2 (); below.
1880    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881    <limits.h> exists even on freestanding compilers.  */
1882
1883#ifdef __STDC__
1884# include <limits.h>
1885#else
1886# include <assert.h>
1887#endif
1888
1889#undef $2
1890
1891/* Override any GCC internal prototype to avoid an error.
1892   Use char because int might match the return type of a GCC
1893   builtin and then its argument prototype would still apply.  */
1894#ifdef __cplusplus
1895extern "C"
1896#endif
1897char $2 ();
1898/* The GNU C library defines this for functions which it implements
1899    to always fail with ENOSYS.  Some functions are actually named
1900    something starting with __ and the normal name is an alias.  */
1901#if defined __stub_$2 || defined __stub___$2
1902choke me
1903#endif
1904
1905int
1906main ()
1907{
1908return $2 ();
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_link "$LINENO"; then :
1914  eval "$3=yes"
1915else
1916  eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext \
1919    conftest$ac_exeext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_func
1927
1928# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1929# ---------------------------------------------
1930# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1931# accordingly.
1932ac_fn_c_check_decl ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  as_decl_name=`echo $2|sed 's/ *(.*//'`
1936  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1938$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1939if eval \${$3+:} false; then :
1940  $as_echo_n "(cached) " >&6
1941else
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$4
1945int
1946main ()
1947{
1948#ifndef $as_decl_name
1949#ifdef __cplusplus
1950  (void) $as_decl_use;
1951#else
1952  (void) $as_decl_name;
1953#endif
1954#endif
1955
1956  ;
1957  return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961  eval "$3=yes"
1962else
1963  eval "$3=no"
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_decl
1973cat >config.log <<_ACEOF
1974This file contains any messages produced by compilers while
1975running configure, to aid debugging if configure makes a mistake.
1976
1977It was created by libXcursor $as_me 1.2.0, which was
1978generated by GNU Autoconf 2.69.  Invocation command line was
1979
1980  $ $0 $@
1981
1982_ACEOF
1983exec 5>>config.log
1984{
1985cat <<_ASUNAME
1986## --------- ##
1987## Platform. ##
1988## --------- ##
1989
1990hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1991uname -m = `(uname -m) 2>/dev/null || echo unknown`
1992uname -r = `(uname -r) 2>/dev/null || echo unknown`
1993uname -s = `(uname -s) 2>/dev/null || echo unknown`
1994uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995
1996/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1997/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1998
1999/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2000/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2001/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2002/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2003/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2004/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2005/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2006
2007_ASUNAME
2008
2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010for as_dir in $PATH
2011do
2012  IFS=$as_save_IFS
2013  test -z "$as_dir" && as_dir=.
2014    $as_echo "PATH: $as_dir"
2015  done
2016IFS=$as_save_IFS
2017
2018} >&5
2019
2020cat >&5 <<_ACEOF
2021
2022
2023## ----------- ##
2024## Core tests. ##
2025## ----------- ##
2026
2027_ACEOF
2028
2029
2030# Keep a trace of the command line.
2031# Strip out --no-create and --no-recursion so they do not pile up.
2032# Strip out --silent because we don't want to record it for future runs.
2033# Also quote any args containing shell meta-characters.
2034# Make two passes to allow for proper duplicate-argument suppression.
2035ac_configure_args=
2036ac_configure_args0=
2037ac_configure_args1=
2038ac_must_keep_next=false
2039for ac_pass in 1 2
2040do
2041  for ac_arg
2042  do
2043    case $ac_arg in
2044    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2045    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2046    | -silent | --silent | --silen | --sile | --sil)
2047      continue ;;
2048    *\'*)
2049      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050    esac
2051    case $ac_pass in
2052    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053    2)
2054      as_fn_append ac_configure_args1 " '$ac_arg'"
2055      if test $ac_must_keep_next = true; then
2056	ac_must_keep_next=false # Got value, back to normal.
2057      else
2058	case $ac_arg in
2059	  *=* | --config-cache | -C | -disable-* | --disable-* \
2060	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2061	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2062	  | -with-* | --with-* | -without-* | --without-* | --x)
2063	    case "$ac_configure_args0 " in
2064	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065	    esac
2066	    ;;
2067	  -* ) ac_must_keep_next=true ;;
2068	esac
2069      fi
2070      as_fn_append ac_configure_args " '$ac_arg'"
2071      ;;
2072    esac
2073  done
2074done
2075{ ac_configure_args0=; unset ac_configure_args0;}
2076{ ac_configure_args1=; unset ac_configure_args1;}
2077
2078# When interrupted or exit'd, cleanup temporary files, and complete
2079# config.log.  We remove comments because anyway the quotes in there
2080# would cause problems or look ugly.
2081# WARNING: Use '\'' to represent an apostrophe within the trap.
2082# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2083trap 'exit_status=$?
2084  # Save into config.log some information that might help in debugging.
2085  {
2086    echo
2087
2088    $as_echo "## ---------------- ##
2089## Cache variables. ##
2090## ---------------- ##"
2091    echo
2092    # The following way of writing the cache mishandles newlines in values,
2093(
2094  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2095    eval ac_val=\$$ac_var
2096    case $ac_val in #(
2097    *${as_nl}*)
2098      case $ac_var in #(
2099      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2100$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2101      esac
2102      case $ac_var in #(
2103      _ | IFS | as_nl) ;; #(
2104      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2105      *) { eval $ac_var=; unset $ac_var;} ;;
2106      esac ;;
2107    esac
2108  done
2109  (set) 2>&1 |
2110    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2111    *${as_nl}ac_space=\ *)
2112      sed -n \
2113	"s/'\''/'\''\\\\'\'''\''/g;
2114	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2115      ;; #(
2116    *)
2117      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2118      ;;
2119    esac |
2120    sort
2121)
2122    echo
2123
2124    $as_echo "## ----------------- ##
2125## Output variables. ##
2126## ----------------- ##"
2127    echo
2128    for ac_var in $ac_subst_vars
2129    do
2130      eval ac_val=\$$ac_var
2131      case $ac_val in
2132      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133      esac
2134      $as_echo "$ac_var='\''$ac_val'\''"
2135    done | sort
2136    echo
2137
2138    if test -n "$ac_subst_files"; then
2139      $as_echo "## ------------------- ##
2140## File substitutions. ##
2141## ------------------- ##"
2142      echo
2143      for ac_var in $ac_subst_files
2144      do
2145	eval ac_val=\$$ac_var
2146	case $ac_val in
2147	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148	esac
2149	$as_echo "$ac_var='\''$ac_val'\''"
2150      done | sort
2151      echo
2152    fi
2153
2154    if test -s confdefs.h; then
2155      $as_echo "## ----------- ##
2156## confdefs.h. ##
2157## ----------- ##"
2158      echo
2159      cat confdefs.h
2160      echo
2161    fi
2162    test "$ac_signal" != 0 &&
2163      $as_echo "$as_me: caught signal $ac_signal"
2164    $as_echo "$as_me: exit $exit_status"
2165  } >&5
2166  rm -f core *.core core.conftest.* &&
2167    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2168    exit $exit_status
2169' 0
2170for ac_signal in 1 2 13 15; do
2171  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2172done
2173ac_signal=0
2174
2175# confdefs.h avoids OS command line length limits that DEFS can exceed.
2176rm -f -r conftest* confdefs.h
2177
2178$as_echo "/* confdefs.h */" > confdefs.h
2179
2180# Predefined preprocessor variables.
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_NAME "$PACKAGE_NAME"
2184_ACEOF
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188_ACEOF
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_VERSION "$PACKAGE_VERSION"
2192_ACEOF
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_STRING "$PACKAGE_STRING"
2196_ACEOF
2197
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2200_ACEOF
2201
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_URL "$PACKAGE_URL"
2204_ACEOF
2205
2206
2207# Let the site file select an alternate cache file if it wants to.
2208# Prefer an explicitly selected file to automatically selected ones.
2209ac_site_file1=NONE
2210ac_site_file2=NONE
2211if test -n "$CONFIG_SITE"; then
2212  # We do not want a PATH search for config.site.
2213  case $CONFIG_SITE in #((
2214    -*)  ac_site_file1=./$CONFIG_SITE;;
2215    */*) ac_site_file1=$CONFIG_SITE;;
2216    *)   ac_site_file1=./$CONFIG_SITE;;
2217  esac
2218elif test "x$prefix" != xNONE; then
2219  ac_site_file1=$prefix/share/config.site
2220  ac_site_file2=$prefix/etc/config.site
2221else
2222  ac_site_file1=$ac_default_prefix/share/config.site
2223  ac_site_file2=$ac_default_prefix/etc/config.site
2224fi
2225for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2226do
2227  test "x$ac_site_file" = xNONE && continue
2228  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2229    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2230$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2231    sed 's/^/| /' "$ac_site_file" >&5
2232    . "$ac_site_file" \
2233      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2235as_fn_error $? "failed to load site script $ac_site_file
2236See \`config.log' for more details" "$LINENO" 5; }
2237  fi
2238done
2239
2240if test -r "$cache_file"; then
2241  # Some versions of bash will fail to source /dev/null (special files
2242  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2243  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2244    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2245$as_echo "$as_me: loading cache $cache_file" >&6;}
2246    case $cache_file in
2247      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2248      *)                      . "./$cache_file";;
2249    esac
2250  fi
2251else
2252  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2253$as_echo "$as_me: creating cache $cache_file" >&6;}
2254  >$cache_file
2255fi
2256
2257# Check that the precious variables saved in the cache have kept the same
2258# value.
2259ac_cache_corrupted=false
2260for ac_var in $ac_precious_vars; do
2261  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2262  eval ac_new_set=\$ac_env_${ac_var}_set
2263  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2264  eval ac_new_val=\$ac_env_${ac_var}_value
2265  case $ac_old_set,$ac_new_set in
2266    set,)
2267      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2268$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2269      ac_cache_corrupted=: ;;
2270    ,set)
2271      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2272$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2273      ac_cache_corrupted=: ;;
2274    ,);;
2275    *)
2276      if test "x$ac_old_val" != "x$ac_new_val"; then
2277	# differences in whitespace do not lead to failure.
2278	ac_old_val_w=`echo x $ac_old_val`
2279	ac_new_val_w=`echo x $ac_new_val`
2280	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2281	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2282$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2283	  ac_cache_corrupted=:
2284	else
2285	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2286$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2287	  eval $ac_var=\$ac_old_val
2288	fi
2289	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2290$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2291	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2292$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2293      fi;;
2294  esac
2295  # Pass precious variables to config.status.
2296  if test "$ac_new_set" = set; then
2297    case $ac_new_val in
2298    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2299    *) ac_arg=$ac_var=$ac_new_val ;;
2300    esac
2301    case " $ac_configure_args " in
2302      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2303      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2304    esac
2305  fi
2306done
2307if $ac_cache_corrupted; then
2308  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2311$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2312  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2313fi
2314## -------------------- ##
2315## Main body of script. ##
2316## -------------------- ##
2317
2318ac_ext=c
2319ac_cpp='$CPP $CPPFLAGS'
2320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323
2324
2325
2326ac_config_headers="$ac_config_headers config.h include/X11/Xcursor/Xcursor.h"
2327
2328# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2329# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2330# to avoid autoconf errors.
2331ac_aux_dir=
2332for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2333  if test -f "$ac_dir/install-sh"; then
2334    ac_aux_dir=$ac_dir
2335    ac_install_sh="$ac_aux_dir/install-sh -c"
2336    break
2337  elif test -f "$ac_dir/install.sh"; then
2338    ac_aux_dir=$ac_dir
2339    ac_install_sh="$ac_aux_dir/install.sh -c"
2340    break
2341  elif test -f "$ac_dir/shtool"; then
2342    ac_aux_dir=$ac_dir
2343    ac_install_sh="$ac_aux_dir/shtool install -c"
2344    break
2345  fi
2346done
2347if test -z "$ac_aux_dir"; then
2348  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2349fi
2350
2351# These three variables are undocumented and unsupported,
2352# and are intended to be withdrawn in a future Autoconf release.
2353# They can cause serious problems if a builder's source tree is in a directory
2354# whose full name contains unusual characters.
2355ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2356ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2357ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2358
2359
2360# Expand $ac_aux_dir to an absolute path.
2361am_aux_dir=`cd "$ac_aux_dir" && pwd`
2362
2363ac_ext=c
2364ac_cpp='$CPP $CPPFLAGS'
2365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368if test -n "$ac_tool_prefix"; then
2369  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2370set dummy ${ac_tool_prefix}gcc; ac_word=$2
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2372$as_echo_n "checking for $ac_word... " >&6; }
2373if ${ac_cv_prog_CC+:} false; then :
2374  $as_echo_n "(cached) " >&6
2375else
2376  if test -n "$CC"; then
2377  ac_cv_prog_CC="$CC" # Let the user override the test.
2378else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382  IFS=$as_save_IFS
2383  test -z "$as_dir" && as_dir=.
2384    for ac_exec_ext in '' $ac_executable_extensions; do
2385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388    break 2
2389  fi
2390done
2391  done
2392IFS=$as_save_IFS
2393
2394fi
2395fi
2396CC=$ac_cv_prog_CC
2397if test -n "$CC"; then
2398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2399$as_echo "$CC" >&6; }
2400else
2401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2402$as_echo "no" >&6; }
2403fi
2404
2405
2406fi
2407if test -z "$ac_cv_prog_CC"; then
2408  ac_ct_CC=$CC
2409  # Extract the first word of "gcc", so it can be a program name with args.
2410set dummy gcc; ac_word=$2
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412$as_echo_n "checking for $ac_word... " >&6; }
2413if ${ac_cv_prog_ac_ct_CC+:} false; then :
2414  $as_echo_n "(cached) " >&6
2415else
2416  if test -n "$ac_ct_CC"; then
2417  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422  IFS=$as_save_IFS
2423  test -z "$as_dir" && as_dir=.
2424    for ac_exec_ext in '' $ac_executable_extensions; do
2425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426    ac_cv_prog_ac_ct_CC="gcc"
2427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428    break 2
2429  fi
2430done
2431  done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436ac_ct_CC=$ac_cv_prog_ac_ct_CC
2437if test -n "$ac_ct_CC"; then
2438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2439$as_echo "$ac_ct_CC" >&6; }
2440else
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442$as_echo "no" >&6; }
2443fi
2444
2445  if test "x$ac_ct_CC" = x; then
2446    CC=""
2447  else
2448    case $cross_compiling:$ac_tool_warned in
2449yes:)
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2452ac_tool_warned=yes ;;
2453esac
2454    CC=$ac_ct_CC
2455  fi
2456else
2457  CC="$ac_cv_prog_CC"
2458fi
2459
2460if test -z "$CC"; then
2461          if test -n "$ac_tool_prefix"; then
2462    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2463set dummy ${ac_tool_prefix}cc; ac_word=$2
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; }
2466if ${ac_cv_prog_CC+:} false; then :
2467  $as_echo_n "(cached) " >&6
2468else
2469  if test -n "$CC"; then
2470  ac_cv_prog_CC="$CC" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475  IFS=$as_save_IFS
2476  test -z "$as_dir" && as_dir=.
2477    for ac_exec_ext in '' $ac_executable_extensions; do
2478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479    ac_cv_prog_CC="${ac_tool_prefix}cc"
2480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481    break 2
2482  fi
2483done
2484  done
2485IFS=$as_save_IFS
2486
2487fi
2488fi
2489CC=$ac_cv_prog_CC
2490if test -n "$CC"; then
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2492$as_echo "$CC" >&6; }
2493else
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495$as_echo "no" >&6; }
2496fi
2497
2498
2499  fi
2500fi
2501if test -z "$CC"; then
2502  # Extract the first word of "cc", so it can be a program name with args.
2503set dummy cc; ac_word=$2
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505$as_echo_n "checking for $ac_word... " >&6; }
2506if ${ac_cv_prog_CC+:} false; then :
2507  $as_echo_n "(cached) " >&6
2508else
2509  if test -n "$CC"; then
2510  ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
2512  ac_prog_rejected=no
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516  IFS=$as_save_IFS
2517  test -z "$as_dir" && as_dir=.
2518    for ac_exec_ext in '' $ac_executable_extensions; do
2519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2521       ac_prog_rejected=yes
2522       continue
2523     fi
2524    ac_cv_prog_CC="cc"
2525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526    break 2
2527  fi
2528done
2529  done
2530IFS=$as_save_IFS
2531
2532if test $ac_prog_rejected = yes; then
2533  # We found a bogon in the path, so make sure we never use it.
2534  set dummy $ac_cv_prog_CC
2535  shift
2536  if test $# != 0; then
2537    # We chose a different compiler from the bogus one.
2538    # However, it has the same basename, so the bogon will be chosen
2539    # first if we set CC to just the basename; use the full file name.
2540    shift
2541    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2542  fi
2543fi
2544fi
2545fi
2546CC=$ac_cv_prog_CC
2547if test -n "$CC"; then
2548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2549$as_echo "$CC" >&6; }
2550else
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552$as_echo "no" >&6; }
2553fi
2554
2555
2556fi
2557if test -z "$CC"; then
2558  if test -n "$ac_tool_prefix"; then
2559  for ac_prog in cl.exe
2560  do
2561    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2562set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564$as_echo_n "checking for $ac_word... " >&6; }
2565if ${ac_cv_prog_CC+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  if test -n "$CC"; then
2569  ac_cv_prog_CC="$CC" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576    for ac_exec_ext in '' $ac_executable_extensions; do
2577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580    break 2
2581  fi
2582done
2583  done
2584IFS=$as_save_IFS
2585
2586fi
2587fi
2588CC=$ac_cv_prog_CC
2589if test -n "$CC"; then
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2591$as_echo "$CC" >&6; }
2592else
2593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594$as_echo "no" >&6; }
2595fi
2596
2597
2598    test -n "$CC" && break
2599  done
2600fi
2601if test -z "$CC"; then
2602  ac_ct_CC=$CC
2603  for ac_prog in cl.exe
2604do
2605  # Extract the first word of "$ac_prog", so it can be a program name with args.
2606set dummy $ac_prog; ac_word=$2
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if ${ac_cv_prog_ac_ct_CC+:} false; then :
2610  $as_echo_n "(cached) " >&6
2611else
2612  if test -n "$ac_ct_CC"; then
2613  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620    for ac_exec_ext in '' $ac_executable_extensions; do
2621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622    ac_cv_prog_ac_ct_CC="$ac_prog"
2623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624    break 2
2625  fi
2626done
2627  done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633if test -n "$ac_ct_CC"; then
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2635$as_echo "$ac_ct_CC" >&6; }
2636else
2637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638$as_echo "no" >&6; }
2639fi
2640
2641
2642  test -n "$ac_ct_CC" && break
2643done
2644
2645  if test "x$ac_ct_CC" = x; then
2646    CC=""
2647  else
2648    case $cross_compiling:$ac_tool_warned in
2649yes:)
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2652ac_tool_warned=yes ;;
2653esac
2654    CC=$ac_ct_CC
2655  fi
2656fi
2657
2658fi
2659
2660
2661test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663as_fn_error $? "no acceptable C compiler found in \$PATH
2664See \`config.log' for more details" "$LINENO" 5; }
2665
2666# Provide some information about the compiler.
2667$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2668set X $ac_compile
2669ac_compiler=$2
2670for ac_option in --version -v -V -qversion; do
2671  { { ac_try="$ac_compiler $ac_option >&5"
2672case "(($ac_try" in
2673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674  *) ac_try_echo=$ac_try;;
2675esac
2676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677$as_echo "$ac_try_echo"; } >&5
2678  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2679  ac_status=$?
2680  if test -s conftest.err; then
2681    sed '10a\
2682... rest of stderr output deleted ...
2683         10q' conftest.err >conftest.er1
2684    cat conftest.er1 >&5
2685  fi
2686  rm -f conftest.er1 conftest.err
2687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2688  test $ac_status = 0; }
2689done
2690
2691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692/* end confdefs.h.  */
2693
2694int
2695main ()
2696{
2697
2698  ;
2699  return 0;
2700}
2701_ACEOF
2702ac_clean_files_save=$ac_clean_files
2703ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2704# Try to create an executable without -o first, disregard a.out.
2705# It will help us diagnose broken compilers, and finding out an intuition
2706# of exeext.
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2708$as_echo_n "checking whether the C compiler works... " >&6; }
2709ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2710
2711# The possible output files:
2712ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2713
2714ac_rmfiles=
2715for ac_file in $ac_files
2716do
2717  case $ac_file in
2718    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2719    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2720  esac
2721done
2722rm -f $ac_rmfiles
2723
2724if { { ac_try="$ac_link_default"
2725case "(($ac_try" in
2726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727  *) ac_try_echo=$ac_try;;
2728esac
2729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730$as_echo "$ac_try_echo"; } >&5
2731  (eval "$ac_link_default") 2>&5
2732  ac_status=$?
2733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2734  test $ac_status = 0; }; then :
2735  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2736# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2737# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2738# so that the user can short-circuit this test for compilers unknown to
2739# Autoconf.
2740for ac_file in $ac_files ''
2741do
2742  test -f "$ac_file" || continue
2743  case $ac_file in
2744    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2745	;;
2746    [ab].out )
2747	# We found the default executable, but exeext='' is most
2748	# certainly right.
2749	break;;
2750    *.* )
2751	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2752	then :; else
2753	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2754	fi
2755	# We set ac_cv_exeext here because the later test for it is not
2756	# safe: cross compilers may not add the suffix if given an `-o'
2757	# argument, so we may need to know it at that point already.
2758	# Even if this section looks crufty: it has the advantage of
2759	# actually working.
2760	break;;
2761    * )
2762	break;;
2763  esac
2764done
2765test "$ac_cv_exeext" = no && ac_cv_exeext=
2766
2767else
2768  ac_file=''
2769fi
2770if test -z "$ac_file"; then :
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773$as_echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2778as_fn_error 77 "C compiler cannot create executables
2779See \`config.log' for more details" "$LINENO" 5; }
2780else
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2782$as_echo "yes" >&6; }
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2785$as_echo_n "checking for C compiler default output file name... " >&6; }
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2787$as_echo "$ac_file" >&6; }
2788ac_exeext=$ac_cv_exeext
2789
2790rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2791ac_clean_files=$ac_clean_files_save
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2793$as_echo_n "checking for suffix of executables... " >&6; }
2794if { { ac_try="$ac_link"
2795case "(($ac_try" in
2796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797  *) ac_try_echo=$ac_try;;
2798esac
2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800$as_echo "$ac_try_echo"; } >&5
2801  (eval "$ac_link") 2>&5
2802  ac_status=$?
2803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804  test $ac_status = 0; }; then :
2805  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2806# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2807# work properly (i.e., refer to `conftest.exe'), while it won't with
2808# `rm'.
2809for ac_file in conftest.exe conftest conftest.*; do
2810  test -f "$ac_file" || continue
2811  case $ac_file in
2812    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2813    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2814	  break;;
2815    * ) break;;
2816  esac
2817done
2818else
2819  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2822See \`config.log' for more details" "$LINENO" 5; }
2823fi
2824rm -f conftest conftest$ac_cv_exeext
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2826$as_echo "$ac_cv_exeext" >&6; }
2827
2828rm -f conftest.$ac_ext
2829EXEEXT=$ac_cv_exeext
2830ac_exeext=$EXEEXT
2831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832/* end confdefs.h.  */
2833#include <stdio.h>
2834int
2835main ()
2836{
2837FILE *f = fopen ("conftest.out", "w");
2838 return ferror (f) || fclose (f) != 0;
2839
2840  ;
2841  return 0;
2842}
2843_ACEOF
2844ac_clean_files="$ac_clean_files conftest.out"
2845# Check that the compiler produces executables we can run.  If not, either
2846# the compiler is broken, or we cross compile.
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2848$as_echo_n "checking whether we are cross compiling... " >&6; }
2849if test "$cross_compiling" != yes; then
2850  { { ac_try="$ac_link"
2851case "(($ac_try" in
2852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853  *) ac_try_echo=$ac_try;;
2854esac
2855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856$as_echo "$ac_try_echo"; } >&5
2857  (eval "$ac_link") 2>&5
2858  ac_status=$?
2859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860  test $ac_status = 0; }
2861  if { ac_try='./conftest$ac_cv_exeext'
2862  { { case "(($ac_try" in
2863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864  *) ac_try_echo=$ac_try;;
2865esac
2866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2867$as_echo "$ac_try_echo"; } >&5
2868  (eval "$ac_try") 2>&5
2869  ac_status=$?
2870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871  test $ac_status = 0; }; }; then
2872    cross_compiling=no
2873  else
2874    if test "$cross_compiling" = maybe; then
2875	cross_compiling=yes
2876    else
2877	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879as_fn_error $? "cannot run C compiled programs.
2880If you meant to cross compile, use \`--host'.
2881See \`config.log' for more details" "$LINENO" 5; }
2882    fi
2883  fi
2884fi
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2886$as_echo "$cross_compiling" >&6; }
2887
2888rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2889ac_clean_files=$ac_clean_files_save
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2891$as_echo_n "checking for suffix of object files... " >&6; }
2892if ${ac_cv_objext+:} false; then :
2893  $as_echo_n "(cached) " >&6
2894else
2895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906rm -f conftest.o conftest.obj
2907if { { ac_try="$ac_compile"
2908case "(($ac_try" in
2909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910  *) ac_try_echo=$ac_try;;
2911esac
2912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2913$as_echo "$ac_try_echo"; } >&5
2914  (eval "$ac_compile") 2>&5
2915  ac_status=$?
2916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917  test $ac_status = 0; }; then :
2918  for ac_file in conftest.o conftest.obj conftest.*; do
2919  test -f "$ac_file" || continue;
2920  case $ac_file in
2921    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2922    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923       break;;
2924  esac
2925done
2926else
2927  $as_echo "$as_me: failed program was:" >&5
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
2930{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932as_fn_error $? "cannot compute suffix of object files: cannot compile
2933See \`config.log' for more details" "$LINENO" 5; }
2934fi
2935rm -f conftest.$ac_cv_objext conftest.$ac_ext
2936fi
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2938$as_echo "$ac_cv_objext" >&6; }
2939OBJEXT=$ac_cv_objext
2940ac_objext=$OBJEXT
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2942$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2943if ${ac_cv_c_compiler_gnu+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h.  */
2948
2949int
2950main ()
2951{
2952#ifndef __GNUC__
2953       choke me
2954#endif
2955
2956  ;
2957  return 0;
2958}
2959_ACEOF
2960if ac_fn_c_try_compile "$LINENO"; then :
2961  ac_compiler_gnu=yes
2962else
2963  ac_compiler_gnu=no
2964fi
2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966ac_cv_c_compiler_gnu=$ac_compiler_gnu
2967
2968fi
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2970$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2971if test $ac_compiler_gnu = yes; then
2972  GCC=yes
2973else
2974  GCC=
2975fi
2976ac_test_CFLAGS=${CFLAGS+set}
2977ac_save_CFLAGS=$CFLAGS
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2979$as_echo_n "checking whether $CC accepts -g... " >&6; }
2980if ${ac_cv_prog_cc_g+:} false; then :
2981  $as_echo_n "(cached) " >&6
2982else
2983  ac_save_c_werror_flag=$ac_c_werror_flag
2984   ac_c_werror_flag=yes
2985   ac_cv_prog_cc_g=no
2986   CFLAGS="-g"
2987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988/* end confdefs.h.  */
2989
2990int
2991main ()
2992{
2993
2994  ;
2995  return 0;
2996}
2997_ACEOF
2998if ac_fn_c_try_compile "$LINENO"; then :
2999  ac_cv_prog_cc_g=yes
3000else
3001  CFLAGS=""
3002      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003/* end confdefs.h.  */
3004
3005int
3006main ()
3007{
3008
3009  ;
3010  return 0;
3011}
3012_ACEOF
3013if ac_fn_c_try_compile "$LINENO"; then :
3014
3015else
3016  ac_c_werror_flag=$ac_save_c_werror_flag
3017	 CFLAGS="-g"
3018	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h.  */
3020
3021int
3022main ()
3023{
3024
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029if ac_fn_c_try_compile "$LINENO"; then :
3030  ac_cv_prog_cc_g=yes
3031fi
3032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033fi
3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035fi
3036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037   ac_c_werror_flag=$ac_save_c_werror_flag
3038fi
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3040$as_echo "$ac_cv_prog_cc_g" >&6; }
3041if test "$ac_test_CFLAGS" = set; then
3042  CFLAGS=$ac_save_CFLAGS
3043elif test $ac_cv_prog_cc_g = yes; then
3044  if test "$GCC" = yes; then
3045    CFLAGS="-g -O2"
3046  else
3047    CFLAGS="-g"
3048  fi
3049else
3050  if test "$GCC" = yes; then
3051    CFLAGS="-O2"
3052  else
3053    CFLAGS=
3054  fi
3055fi
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3057$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3058if ${ac_cv_prog_cc_c89+:} false; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  ac_cv_prog_cc_c89=no
3062ac_save_CC=$CC
3063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064/* end confdefs.h.  */
3065#include <stdarg.h>
3066#include <stdio.h>
3067struct stat;
3068/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3069struct buf { int x; };
3070FILE * (*rcsopen) (struct buf *, struct stat *, int);
3071static char *e (p, i)
3072     char **p;
3073     int i;
3074{
3075  return p[i];
3076}
3077static char *f (char * (*g) (char **, int), char **p, ...)
3078{
3079  char *s;
3080  va_list v;
3081  va_start (v,p);
3082  s = g (p, va_arg (v,int));
3083  va_end (v);
3084  return s;
3085}
3086
3087/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3088   function prototypes and stuff, but not '\xHH' hex character constants.
3089   These don't provoke an error unfortunately, instead are silently treated
3090   as 'x'.  The following induces an error, until -std is added to get
3091   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3092   array size at least.  It's necessary to write '\x00'==0 to get something
3093   that's true only with -std.  */
3094int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3095
3096/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3097   inside strings and character constants.  */
3098#define FOO(x) 'x'
3099int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3100
3101int test (int i, double x);
3102struct s1 {int (*f) (int a);};
3103struct s2 {int (*f) (double a);};
3104int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3105int argc;
3106char **argv;
3107int
3108main ()
3109{
3110return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3111  ;
3112  return 0;
3113}
3114_ACEOF
3115for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3116	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3117do
3118  CC="$ac_save_CC $ac_arg"
3119  if ac_fn_c_try_compile "$LINENO"; then :
3120  ac_cv_prog_cc_c89=$ac_arg
3121fi
3122rm -f core conftest.err conftest.$ac_objext
3123  test "x$ac_cv_prog_cc_c89" != "xno" && break
3124done
3125rm -f conftest.$ac_ext
3126CC=$ac_save_CC
3127
3128fi
3129# AC_CACHE_VAL
3130case "x$ac_cv_prog_cc_c89" in
3131  x)
3132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3133$as_echo "none needed" >&6; } ;;
3134  xno)
3135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3136$as_echo "unsupported" >&6; } ;;
3137  *)
3138    CC="$CC $ac_cv_prog_cc_c89"
3139    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3140$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3141esac
3142if test "x$ac_cv_prog_cc_c89" != xno; then :
3143
3144fi
3145
3146ac_ext=c
3147ac_cpp='$CPP $CPPFLAGS'
3148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151
3152ac_ext=c
3153ac_cpp='$CPP $CPPFLAGS'
3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3158$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3159if ${am_cv_prog_cc_c_o+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h.  */
3164
3165int
3166main ()
3167{
3168
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173  # Make sure it works both with $CC and with simple cc.
3174  # Following AC_PROG_CC_C_O, we do the test twice because some
3175  # compilers refuse to overwrite an existing .o file with -o,
3176  # though they will create one.
3177  am_cv_prog_cc_c_o=yes
3178  for am_i in 1 2; do
3179    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3180   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); } \
3184         && test -f conftest2.$ac_objext; then
3185      : OK
3186    else
3187      am_cv_prog_cc_c_o=no
3188      break
3189    fi
3190  done
3191  rm -f core conftest*
3192  unset am_i
3193fi
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3195$as_echo "$am_cv_prog_cc_c_o" >&6; }
3196if test "$am_cv_prog_cc_c_o" != yes; then
3197   # Losing compiler, so override with the script.
3198   # FIXME: It is wrong to rewrite CC.
3199   # But if we don't then we get into trouble of one sort or another.
3200   # A longer-term fix would be to have automake use am__CC in this case,
3201   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3202   CC="$am_aux_dir/compile $CC"
3203fi
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210
3211
3212ac_ext=c
3213ac_cpp='$CPP $CPPFLAGS'
3214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3218$as_echo_n "checking how to run the C preprocessor... " >&6; }
3219# On Suns, sometimes $CPP names a directory.
3220if test -n "$CPP" && test -d "$CPP"; then
3221  CPP=
3222fi
3223if test -z "$CPP"; then
3224  if ${ac_cv_prog_CPP+:} false; then :
3225  $as_echo_n "(cached) " >&6
3226else
3227      # Double quotes because CPP needs to be expanded
3228    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229    do
3230      ac_preproc_ok=false
3231for ac_c_preproc_warn_flag in '' yes
3232do
3233  # Use a header file that comes with gcc, so configuring glibc
3234  # with a fresh cross-compiler works.
3235  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236  # <limits.h> exists even on freestanding compilers.
3237  # On the NeXT, cc -E runs the code through the compiler's parser,
3238  # not just through cpp. "Syntax error" is here to catch this case.
3239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240/* end confdefs.h.  */
3241#ifdef __STDC__
3242# include <limits.h>
3243#else
3244# include <assert.h>
3245#endif
3246		     Syntax error
3247_ACEOF
3248if ac_fn_c_try_cpp "$LINENO"; then :
3249
3250else
3251  # Broken: fails on valid input.
3252continue
3253fi
3254rm -f conftest.err conftest.i conftest.$ac_ext
3255
3256  # OK, works on sane cases.  Now check whether nonexistent headers
3257  # can be detected and how.
3258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259/* end confdefs.h.  */
3260#include <ac_nonexistent.h>
3261_ACEOF
3262if ac_fn_c_try_cpp "$LINENO"; then :
3263  # Broken: success on invalid input.
3264continue
3265else
3266  # Passes both tests.
3267ac_preproc_ok=:
3268break
3269fi
3270rm -f conftest.err conftest.i conftest.$ac_ext
3271
3272done
3273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3274rm -f conftest.i conftest.err conftest.$ac_ext
3275if $ac_preproc_ok; then :
3276  break
3277fi
3278
3279    done
3280    ac_cv_prog_CPP=$CPP
3281
3282fi
3283  CPP=$ac_cv_prog_CPP
3284else
3285  ac_cv_prog_CPP=$CPP
3286fi
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3288$as_echo "$CPP" >&6; }
3289ac_preproc_ok=false
3290for ac_c_preproc_warn_flag in '' yes
3291do
3292  # Use a header file that comes with gcc, so configuring glibc
3293  # with a fresh cross-compiler works.
3294  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3295  # <limits.h> exists even on freestanding compilers.
3296  # On the NeXT, cc -E runs the code through the compiler's parser,
3297  # not just through cpp. "Syntax error" is here to catch this case.
3298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299/* end confdefs.h.  */
3300#ifdef __STDC__
3301# include <limits.h>
3302#else
3303# include <assert.h>
3304#endif
3305		     Syntax error
3306_ACEOF
3307if ac_fn_c_try_cpp "$LINENO"; then :
3308
3309else
3310  # Broken: fails on valid input.
3311continue
3312fi
3313rm -f conftest.err conftest.i conftest.$ac_ext
3314
3315  # OK, works on sane cases.  Now check whether nonexistent headers
3316  # can be detected and how.
3317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h.  */
3319#include <ac_nonexistent.h>
3320_ACEOF
3321if ac_fn_c_try_cpp "$LINENO"; then :
3322  # Broken: success on invalid input.
3323continue
3324else
3325  # Passes both tests.
3326ac_preproc_ok=:
3327break
3328fi
3329rm -f conftest.err conftest.i conftest.$ac_ext
3330
3331done
3332# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3333rm -f conftest.i conftest.err conftest.$ac_ext
3334if $ac_preproc_ok; then :
3335
3336else
3337  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3340See \`config.log' for more details" "$LINENO" 5; }
3341fi
3342
3343ac_ext=c
3344ac_cpp='$CPP $CPPFLAGS'
3345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348
3349
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3351$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3352if ${ac_cv_path_GREP+:} false; then :
3353  $as_echo_n "(cached) " >&6
3354else
3355  if test -z "$GREP"; then
3356  ac_path_GREP_found=false
3357  # Loop through the user's path and test for each of PROGNAME-LIST
3358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3360do
3361  IFS=$as_save_IFS
3362  test -z "$as_dir" && as_dir=.
3363    for ac_prog in grep ggrep; do
3364    for ac_exec_ext in '' $ac_executable_extensions; do
3365      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3366      as_fn_executable_p "$ac_path_GREP" || continue
3367# Check for GNU ac_path_GREP and select it if it is found.
3368  # Check for GNU $ac_path_GREP
3369case `"$ac_path_GREP" --version 2>&1` in
3370*GNU*)
3371  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3372*)
3373  ac_count=0
3374  $as_echo_n 0123456789 >"conftest.in"
3375  while :
3376  do
3377    cat "conftest.in" "conftest.in" >"conftest.tmp"
3378    mv "conftest.tmp" "conftest.in"
3379    cp "conftest.in" "conftest.nl"
3380    $as_echo 'GREP' >> "conftest.nl"
3381    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3382    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3383    as_fn_arith $ac_count + 1 && ac_count=$as_val
3384    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3385      # Best one so far, save it but keep looking for a better one
3386      ac_cv_path_GREP="$ac_path_GREP"
3387      ac_path_GREP_max=$ac_count
3388    fi
3389    # 10*(2^10) chars as input seems more than enough
3390    test $ac_count -gt 10 && break
3391  done
3392  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3393esac
3394
3395      $ac_path_GREP_found && break 3
3396    done
3397  done
3398  done
3399IFS=$as_save_IFS
3400  if test -z "$ac_cv_path_GREP"; then
3401    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3402  fi
3403else
3404  ac_cv_path_GREP=$GREP
3405fi
3406
3407fi
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3409$as_echo "$ac_cv_path_GREP" >&6; }
3410 GREP="$ac_cv_path_GREP"
3411
3412
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3414$as_echo_n "checking for egrep... " >&6; }
3415if ${ac_cv_path_EGREP+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3419   then ac_cv_path_EGREP="$GREP -E"
3420   else
3421     if test -z "$EGREP"; then
3422  ac_path_EGREP_found=false
3423  # Loop through the user's path and test for each of PROGNAME-LIST
3424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3426do
3427  IFS=$as_save_IFS
3428  test -z "$as_dir" && as_dir=.
3429    for ac_prog in egrep; do
3430    for ac_exec_ext in '' $ac_executable_extensions; do
3431      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3432      as_fn_executable_p "$ac_path_EGREP" || continue
3433# Check for GNU ac_path_EGREP and select it if it is found.
3434  # Check for GNU $ac_path_EGREP
3435case `"$ac_path_EGREP" --version 2>&1` in
3436*GNU*)
3437  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3438*)
3439  ac_count=0
3440  $as_echo_n 0123456789 >"conftest.in"
3441  while :
3442  do
3443    cat "conftest.in" "conftest.in" >"conftest.tmp"
3444    mv "conftest.tmp" "conftest.in"
3445    cp "conftest.in" "conftest.nl"
3446    $as_echo 'EGREP' >> "conftest.nl"
3447    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3448    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3449    as_fn_arith $ac_count + 1 && ac_count=$as_val
3450    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3451      # Best one so far, save it but keep looking for a better one
3452      ac_cv_path_EGREP="$ac_path_EGREP"
3453      ac_path_EGREP_max=$ac_count
3454    fi
3455    # 10*(2^10) chars as input seems more than enough
3456    test $ac_count -gt 10 && break
3457  done
3458  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3459esac
3460
3461      $ac_path_EGREP_found && break 3
3462    done
3463  done
3464  done
3465IFS=$as_save_IFS
3466  if test -z "$ac_cv_path_EGREP"; then
3467    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3468  fi
3469else
3470  ac_cv_path_EGREP=$EGREP
3471fi
3472
3473   fi
3474fi
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3476$as_echo "$ac_cv_path_EGREP" >&6; }
3477 EGREP="$ac_cv_path_EGREP"
3478
3479
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3481$as_echo_n "checking for ANSI C header files... " >&6; }
3482if ${ac_cv_header_stdc+:} false; then :
3483  $as_echo_n "(cached) " >&6
3484else
3485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h.  */
3487#include <stdlib.h>
3488#include <stdarg.h>
3489#include <string.h>
3490#include <float.h>
3491
3492int
3493main ()
3494{
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500if ac_fn_c_try_compile "$LINENO"; then :
3501  ac_cv_header_stdc=yes
3502else
3503  ac_cv_header_stdc=no
3504fi
3505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506
3507if test $ac_cv_header_stdc = yes; then
3508  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511#include <string.h>
3512
3513_ACEOF
3514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3515  $EGREP "memchr" >/dev/null 2>&1; then :
3516
3517else
3518  ac_cv_header_stdc=no
3519fi
3520rm -f conftest*
3521
3522fi
3523
3524if test $ac_cv_header_stdc = yes; then
3525  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528#include <stdlib.h>
3529
3530_ACEOF
3531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3532  $EGREP "free" >/dev/null 2>&1; then :
3533
3534else
3535  ac_cv_header_stdc=no
3536fi
3537rm -f conftest*
3538
3539fi
3540
3541if test $ac_cv_header_stdc = yes; then
3542  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3543  if test "$cross_compiling" = yes; then :
3544  :
3545else
3546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547/* end confdefs.h.  */
3548#include <ctype.h>
3549#include <stdlib.h>
3550#if ((' ' & 0x0FF) == 0x020)
3551# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3552# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3553#else
3554# define ISLOWER(c) \
3555		   (('a' <= (c) && (c) <= 'i') \
3556		     || ('j' <= (c) && (c) <= 'r') \
3557		     || ('s' <= (c) && (c) <= 'z'))
3558# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3559#endif
3560
3561#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3562int
3563main ()
3564{
3565  int i;
3566  for (i = 0; i < 256; i++)
3567    if (XOR (islower (i), ISLOWER (i))
3568	|| toupper (i) != TOUPPER (i))
3569      return 2;
3570  return 0;
3571}
3572_ACEOF
3573if ac_fn_c_try_run "$LINENO"; then :
3574
3575else
3576  ac_cv_header_stdc=no
3577fi
3578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3579  conftest.$ac_objext conftest.beam conftest.$ac_ext
3580fi
3581
3582fi
3583fi
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3585$as_echo "$ac_cv_header_stdc" >&6; }
3586if test $ac_cv_header_stdc = yes; then
3587
3588$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3589
3590fi
3591
3592# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3593for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3594		  inttypes.h stdint.h unistd.h
3595do :
3596  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3597ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3598"
3599if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3600  cat >>confdefs.h <<_ACEOF
3601#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3602_ACEOF
3603
3604fi
3605
3606done
3607
3608
3609
3610  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3611if test "x$ac_cv_header_minix_config_h" = xyes; then :
3612  MINIX=yes
3613else
3614  MINIX=
3615fi
3616
3617
3618  if test "$MINIX" = yes; then
3619
3620$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3621
3622
3623$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3624
3625
3626$as_echo "#define _MINIX 1" >>confdefs.h
3627
3628  fi
3629
3630
3631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3632$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3633if ${ac_cv_safe_to_define___extensions__+:} false; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637/* end confdefs.h.  */
3638
3639#         define __EXTENSIONS__ 1
3640          $ac_includes_default
3641int
3642main ()
3643{
3644
3645  ;
3646  return 0;
3647}
3648_ACEOF
3649if ac_fn_c_try_compile "$LINENO"; then :
3650  ac_cv_safe_to_define___extensions__=yes
3651else
3652  ac_cv_safe_to_define___extensions__=no
3653fi
3654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3657$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3658  test $ac_cv_safe_to_define___extensions__ = yes &&
3659    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3660
3661  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3662
3663  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3664
3665  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3666
3667  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3668
3669
3670
3671# Initialize Automake
3672am__api_version='1.15'
3673
3674# Find a good install program.  We prefer a C program (faster),
3675# so one script is as good as another.  But avoid the broken or
3676# incompatible versions:
3677# SysV /etc/install, /usr/sbin/install
3678# SunOS /usr/etc/install
3679# IRIX /sbin/install
3680# AIX /bin/install
3681# AmigaOS /C/install, which installs bootblocks on floppy discs
3682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685# OS/2's system install, which has a completely different semantic
3686# ./install, which can be erroneously created by make from ./install.sh.
3687# Reject install programs that cannot install multiple files.
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3689$as_echo_n "checking for a BSD-compatible install... " >&6; }
3690if test -z "$INSTALL"; then
3691if ${ac_cv_path_install+:} false; then :
3692  $as_echo_n "(cached) " >&6
3693else
3694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697  IFS=$as_save_IFS
3698  test -z "$as_dir" && as_dir=.
3699    # Account for people who put trailing slashes in PATH elements.
3700case $as_dir/ in #((
3701  ./ | .// | /[cC]/* | \
3702  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3704  /usr/ucb/* ) ;;
3705  *)
3706    # OSF1 and SCO ODT 3.0 have their own names for install.
3707    # Don't use installbsd from OSF since it installs stuff as root
3708    # by default.
3709    for ac_prog in ginstall scoinst install; do
3710      for ac_exec_ext in '' $ac_executable_extensions; do
3711	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3712	  if test $ac_prog = install &&
3713	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714	    # AIX install.  It has an incompatible calling convention.
3715	    :
3716	  elif test $ac_prog = install &&
3717	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718	    # program-specific install script used by HP pwplus--don't use.
3719	    :
3720	  else
3721	    rm -rf conftest.one conftest.two conftest.dir
3722	    echo one > conftest.one
3723	    echo two > conftest.two
3724	    mkdir conftest.dir
3725	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3726	      test -s conftest.one && test -s conftest.two &&
3727	      test -s conftest.dir/conftest.one &&
3728	      test -s conftest.dir/conftest.two
3729	    then
3730	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3731	      break 3
3732	    fi
3733	  fi
3734	fi
3735      done
3736    done
3737    ;;
3738esac
3739
3740  done
3741IFS=$as_save_IFS
3742
3743rm -rf conftest.one conftest.two conftest.dir
3744
3745fi
3746  if test "${ac_cv_path_install+set}" = set; then
3747    INSTALL=$ac_cv_path_install
3748  else
3749    # As a last resort, use the slow shell script.  Don't cache a
3750    # value for INSTALL within a source directory, because that will
3751    # break other packages using the cache if that directory is
3752    # removed, or if the value is a relative name.
3753    INSTALL=$ac_install_sh
3754  fi
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3757$as_echo "$INSTALL" >&6; }
3758
3759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3760# It thinks the first close brace ends the variable substitution.
3761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3762
3763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3764
3765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3766
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3768$as_echo_n "checking whether build environment is sane... " >&6; }
3769# Reject unsafe characters in $srcdir or the absolute working directory
3770# name.  Accept space and tab only in the latter.
3771am_lf='
3772'
3773case `pwd` in
3774  *[\\\"\#\$\&\'\`$am_lf]*)
3775    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3776esac
3777case $srcdir in
3778  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3779    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3780esac
3781
3782# Do 'set' in a subshell so we don't clobber the current shell's
3783# arguments.  Must try -L first in case configure is actually a
3784# symlink; some systems play weird games with the mod time of symlinks
3785# (eg FreeBSD returns the mod time of the symlink's containing
3786# directory).
3787if (
3788   am_has_slept=no
3789   for am_try in 1 2; do
3790     echo "timestamp, slept: $am_has_slept" > conftest.file
3791     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3792     if test "$*" = "X"; then
3793	# -L didn't work.
3794	set X `ls -t "$srcdir/configure" conftest.file`
3795     fi
3796     if test "$*" != "X $srcdir/configure conftest.file" \
3797	&& test "$*" != "X conftest.file $srcdir/configure"; then
3798
3799	# If neither matched, then we have a broken ls.  This can happen
3800	# if, for instance, CONFIG_SHELL is bash and it inherits a
3801	# broken ls alias from the environment.  This has actually
3802	# happened.  Such a system could not be considered "sane".
3803	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3804  alias in your environment" "$LINENO" 5
3805     fi
3806     if test "$2" = conftest.file || test $am_try -eq 2; then
3807       break
3808     fi
3809     # Just in case.
3810     sleep 1
3811     am_has_slept=yes
3812   done
3813   test "$2" = conftest.file
3814   )
3815then
3816   # Ok.
3817   :
3818else
3819   as_fn_error $? "newly created file is older than distributed files!
3820Check your system clock" "$LINENO" 5
3821fi
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3823$as_echo "yes" >&6; }
3824# If we didn't sleep, we still need to ensure time stamps of config.status and
3825# generated files are strictly newer.
3826am_sleep_pid=
3827if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3828  ( sleep 1 ) &
3829  am_sleep_pid=$!
3830fi
3831
3832rm -f conftest.file
3833
3834test "$program_prefix" != NONE &&
3835  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3836# Use a double $ so make ignores it.
3837test "$program_suffix" != NONE &&
3838  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3839# Double any \ or $.
3840# By default was `s,x,x', remove it if useless.
3841ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3842program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3843
3844if test x"${MISSING+set}" != xset; then
3845  case $am_aux_dir in
3846  *\ * | *\	*)
3847    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3848  *)
3849    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3850  esac
3851fi
3852# Use eval to expand $SHELL
3853if eval "$MISSING --is-lightweight"; then
3854  am_missing_run="$MISSING "
3855else
3856  am_missing_run=
3857  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3858$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3859fi
3860
3861if test x"${install_sh+set}" != xset; then
3862  case $am_aux_dir in
3863  *\ * | *\	*)
3864    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3865  *)
3866    install_sh="\${SHELL} $am_aux_dir/install-sh"
3867  esac
3868fi
3869
3870# Installed binaries are usually stripped using 'strip' when the user
3871# run "make install-strip".  However 'strip' might not be the right
3872# tool to use in cross-compilation environments, therefore Automake
3873# will honor the 'STRIP' environment variable to overrule this program.
3874if test "$cross_compiling" != no; then
3875  if test -n "$ac_tool_prefix"; then
3876  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3877set dummy ${ac_tool_prefix}strip; ac_word=$2
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879$as_echo_n "checking for $ac_word... " >&6; }
3880if ${ac_cv_prog_STRIP+:} false; then :
3881  $as_echo_n "(cached) " >&6
3882else
3883  if test -n "$STRIP"; then
3884  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3885else
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889  IFS=$as_save_IFS
3890  test -z "$as_dir" && as_dir=.
3891    for ac_exec_ext in '' $ac_executable_extensions; do
3892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895    break 2
3896  fi
3897done
3898  done
3899IFS=$as_save_IFS
3900
3901fi
3902fi
3903STRIP=$ac_cv_prog_STRIP
3904if test -n "$STRIP"; then
3905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3906$as_echo "$STRIP" >&6; }
3907else
3908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909$as_echo "no" >&6; }
3910fi
3911
3912
3913fi
3914if test -z "$ac_cv_prog_STRIP"; then
3915  ac_ct_STRIP=$STRIP
3916  # Extract the first word of "strip", so it can be a program name with args.
3917set dummy strip; ac_word=$2
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919$as_echo_n "checking for $ac_word... " >&6; }
3920if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3921  $as_echo_n "(cached) " >&6
3922else
3923  if test -n "$ac_ct_STRIP"; then
3924  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3925else
3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929  IFS=$as_save_IFS
3930  test -z "$as_dir" && as_dir=.
3931    for ac_exec_ext in '' $ac_executable_extensions; do
3932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933    ac_cv_prog_ac_ct_STRIP="strip"
3934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935    break 2
3936  fi
3937done
3938  done
3939IFS=$as_save_IFS
3940
3941fi
3942fi
3943ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3944if test -n "$ac_ct_STRIP"; then
3945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3946$as_echo "$ac_ct_STRIP" >&6; }
3947else
3948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949$as_echo "no" >&6; }
3950fi
3951
3952  if test "x$ac_ct_STRIP" = x; then
3953    STRIP=":"
3954  else
3955    case $cross_compiling:$ac_tool_warned in
3956yes:)
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3959ac_tool_warned=yes ;;
3960esac
3961    STRIP=$ac_ct_STRIP
3962  fi
3963else
3964  STRIP="$ac_cv_prog_STRIP"
3965fi
3966
3967fi
3968INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3969
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3971$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3972if test -z "$MKDIR_P"; then
3973  if ${ac_cv_path_mkdir+:} false; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3978do
3979  IFS=$as_save_IFS
3980  test -z "$as_dir" && as_dir=.
3981    for ac_prog in mkdir gmkdir; do
3982	 for ac_exec_ext in '' $ac_executable_extensions; do
3983	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3984	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3985	     'mkdir (GNU coreutils) '* | \
3986	     'mkdir (coreutils) '* | \
3987	     'mkdir (fileutils) '4.1*)
3988	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3989	       break 3;;
3990	   esac
3991	 done
3992       done
3993  done
3994IFS=$as_save_IFS
3995
3996fi
3997
3998  test -d ./--version && rmdir ./--version
3999  if test "${ac_cv_path_mkdir+set}" = set; then
4000    MKDIR_P="$ac_cv_path_mkdir -p"
4001  else
4002    # As a last resort, use the slow shell script.  Don't cache a
4003    # value for MKDIR_P within a source directory, because that will
4004    # break other packages using the cache if that directory is
4005    # removed, or if the value is a relative name.
4006    MKDIR_P="$ac_install_sh -d"
4007  fi
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4010$as_echo "$MKDIR_P" >&6; }
4011
4012for ac_prog in gawk mawk nawk awk
4013do
4014  # Extract the first word of "$ac_prog", so it can be a program name with args.
4015set dummy $ac_prog; ac_word=$2
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017$as_echo_n "checking for $ac_word... " >&6; }
4018if ${ac_cv_prog_AWK+:} false; then :
4019  $as_echo_n "(cached) " >&6
4020else
4021  if test -n "$AWK"; then
4022  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4023else
4024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH
4026do
4027  IFS=$as_save_IFS
4028  test -z "$as_dir" && as_dir=.
4029    for ac_exec_ext in '' $ac_executable_extensions; do
4030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031    ac_cv_prog_AWK="$ac_prog"
4032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033    break 2
4034  fi
4035done
4036  done
4037IFS=$as_save_IFS
4038
4039fi
4040fi
4041AWK=$ac_cv_prog_AWK
4042if test -n "$AWK"; then
4043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4044$as_echo "$AWK" >&6; }
4045else
4046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047$as_echo "no" >&6; }
4048fi
4049
4050
4051  test -n "$AWK" && break
4052done
4053
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4055$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4056set x ${MAKE-make}
4057ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4058if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4059  $as_echo_n "(cached) " >&6
4060else
4061  cat >conftest.make <<\_ACEOF
4062SHELL = /bin/sh
4063all:
4064	@echo '@@@%%%=$(MAKE)=@@@%%%'
4065_ACEOF
4066# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4067case `${MAKE-make} -f conftest.make 2>/dev/null` in
4068  *@@@%%%=?*=@@@%%%*)
4069    eval ac_cv_prog_make_${ac_make}_set=yes;;
4070  *)
4071    eval ac_cv_prog_make_${ac_make}_set=no;;
4072esac
4073rm -f conftest.make
4074fi
4075if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077$as_echo "yes" >&6; }
4078  SET_MAKE=
4079else
4080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081$as_echo "no" >&6; }
4082  SET_MAKE="MAKE=${MAKE-make}"
4083fi
4084
4085rm -rf .tst 2>/dev/null
4086mkdir .tst 2>/dev/null
4087if test -d .tst; then
4088  am__leading_dot=.
4089else
4090  am__leading_dot=_
4091fi
4092rmdir .tst 2>/dev/null
4093
4094DEPDIR="${am__leading_dot}deps"
4095
4096ac_config_commands="$ac_config_commands depfiles"
4097
4098
4099am_make=${MAKE-make}
4100cat > confinc << 'END'
4101am__doit:
4102	@echo this is the am__doit target
4103.PHONY: am__doit
4104END
4105# If we don't find an include directive, just comment out the code.
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4107$as_echo_n "checking for style of include used by $am_make... " >&6; }
4108am__include="#"
4109am__quote=
4110_am_result=none
4111# First try GNU make style include.
4112echo "include confinc" > confmf
4113# Ignore all kinds of additional output from 'make'.
4114case `$am_make -s -f confmf 2> /dev/null` in #(
4115*the\ am__doit\ target*)
4116  am__include=include
4117  am__quote=
4118  _am_result=GNU
4119  ;;
4120esac
4121# Now try BSD make style include.
4122if test "$am__include" = "#"; then
4123   echo '.include "confinc"' > confmf
4124   case `$am_make -s -f confmf 2> /dev/null` in #(
4125   *the\ am__doit\ target*)
4126     am__include=.include
4127     am__quote="\""
4128     _am_result=BSD
4129     ;;
4130   esac
4131fi
4132
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4135$as_echo "$_am_result" >&6; }
4136rm -f confinc confmf
4137
4138# Check whether --enable-dependency-tracking was given.
4139if test "${enable_dependency_tracking+set}" = set; then :
4140  enableval=$enable_dependency_tracking;
4141fi
4142
4143if test "x$enable_dependency_tracking" != xno; then
4144  am_depcomp="$ac_aux_dir/depcomp"
4145  AMDEPBACKSLASH='\'
4146  am__nodep='_no'
4147fi
4148 if test "x$enable_dependency_tracking" != xno; then
4149  AMDEP_TRUE=
4150  AMDEP_FALSE='#'
4151else
4152  AMDEP_TRUE='#'
4153  AMDEP_FALSE=
4154fi
4155
4156
4157# Check whether --enable-silent-rules was given.
4158if test "${enable_silent_rules+set}" = set; then :
4159  enableval=$enable_silent_rules;
4160fi
4161
4162case $enable_silent_rules in # (((
4163  yes) AM_DEFAULT_VERBOSITY=0;;
4164   no) AM_DEFAULT_VERBOSITY=1;;
4165    *) AM_DEFAULT_VERBOSITY=1;;
4166esac
4167am_make=${MAKE-make}
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4169$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4170if ${am_cv_make_support_nested_variables+:} false; then :
4171  $as_echo_n "(cached) " >&6
4172else
4173  if $as_echo 'TRUE=$(BAR$(V))
4174BAR0=false
4175BAR1=true
4176V=1
4177am__doit:
4178	@$(TRUE)
4179.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4180  am_cv_make_support_nested_variables=yes
4181else
4182  am_cv_make_support_nested_variables=no
4183fi
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4186$as_echo "$am_cv_make_support_nested_variables" >&6; }
4187if test $am_cv_make_support_nested_variables = yes; then
4188    AM_V='$(V)'
4189  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4190else
4191  AM_V=$AM_DEFAULT_VERBOSITY
4192  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4193fi
4194AM_BACKSLASH='\'
4195
4196if test "`cd $srcdir && pwd`" != "`pwd`"; then
4197  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4198  # is not polluted with repeated "-I."
4199  am__isrc=' -I$(srcdir)'
4200  # test to see if srcdir already configured
4201  if test -f $srcdir/config.status; then
4202    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4203  fi
4204fi
4205
4206# test whether we have cygpath
4207if test -z "$CYGPATH_W"; then
4208  if (cygpath --version) >/dev/null 2>/dev/null; then
4209    CYGPATH_W='cygpath -w'
4210  else
4211    CYGPATH_W=echo
4212  fi
4213fi
4214
4215
4216# Define the identity of the package.
4217 PACKAGE='libXcursor'
4218 VERSION='1.2.0'
4219
4220
4221cat >>confdefs.h <<_ACEOF
4222#define PACKAGE "$PACKAGE"
4223_ACEOF
4224
4225
4226cat >>confdefs.h <<_ACEOF
4227#define VERSION "$VERSION"
4228_ACEOF
4229
4230# Some tools Automake needs.
4231
4232ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4233
4234
4235AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4236
4237
4238AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4239
4240
4241AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4242
4243
4244MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4245
4246# For better backward compatibility.  To be removed once Automake 1.9.x
4247# dies out for good.  For more background, see:
4248# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4249# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4250mkdir_p='$(MKDIR_P)'
4251
4252# We need awk for the "check" target (and possibly the TAP driver).  The
4253# system "awk" is bad on some platforms.
4254# Always define AMTAR for backward compatibility.  Yes, it's still used
4255# in the wild :-(  We should find a proper way to deprecate it ...
4256AMTAR='$${TAR-tar}'
4257
4258
4259# We'll loop over all known methods to create a tar archive until one works.
4260_am_tools='gnutar  pax cpio none'
4261
4262am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4263
4264
4265
4266
4267
4268depcc="$CC"   am_compiler_list=
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4271$as_echo_n "checking dependency style of $depcc... " >&6; }
4272if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4276  # We make a subdir and do the tests there.  Otherwise we can end up
4277  # making bogus files that we don't know about and never remove.  For
4278  # instance it was reported that on HP-UX the gcc test will end up
4279  # making a dummy file named 'D' -- because '-MD' means "put the output
4280  # in D".
4281  rm -rf conftest.dir
4282  mkdir conftest.dir
4283  # Copy depcomp to subdir because otherwise we won't find it if we're
4284  # using a relative directory.
4285  cp "$am_depcomp" conftest.dir
4286  cd conftest.dir
4287  # We will build objects and dependencies in a subdirectory because
4288  # it helps to detect inapplicable dependency modes.  For instance
4289  # both Tru64's cc and ICC support -MD to output dependencies as a
4290  # side effect of compilation, but ICC will put the dependencies in
4291  # the current directory while Tru64 will put them in the object
4292  # directory.
4293  mkdir sub
4294
4295  am_cv_CC_dependencies_compiler_type=none
4296  if test "$am_compiler_list" = ""; then
4297     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4298  fi
4299  am__universal=false
4300  case " $depcc " in #(
4301     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4302     esac
4303
4304  for depmode in $am_compiler_list; do
4305    # Setup a source with many dependencies, because some compilers
4306    # like to wrap large dependency lists on column 80 (with \), and
4307    # we should not choose a depcomp mode which is confused by this.
4308    #
4309    # We need to recreate these files for each test, as the compiler may
4310    # overwrite some of them when testing with obscure command lines.
4311    # This happens at least with the AIX C compiler.
4312    : > sub/conftest.c
4313    for i in 1 2 3 4 5 6; do
4314      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4315      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4316      # Solaris 10 /bin/sh.
4317      echo '/* dummy */' > sub/conftst$i.h
4318    done
4319    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4320
4321    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4322    # mode.  It turns out that the SunPro C++ compiler does not properly
4323    # handle '-M -o', and we need to detect this.  Also, some Intel
4324    # versions had trouble with output in subdirs.
4325    am__obj=sub/conftest.${OBJEXT-o}
4326    am__minus_obj="-o $am__obj"
4327    case $depmode in
4328    gcc)
4329      # This depmode causes a compiler race in universal mode.
4330      test "$am__universal" = false || continue
4331      ;;
4332    nosideeffect)
4333      # After this tag, mechanisms are not by side-effect, so they'll
4334      # only be used when explicitly requested.
4335      if test "x$enable_dependency_tracking" = xyes; then
4336	continue
4337      else
4338	break
4339      fi
4340      ;;
4341    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4342      # This compiler won't grok '-c -o', but also, the minuso test has
4343      # not run yet.  These depmodes are late enough in the game, and
4344      # so weak that their functioning should not be impacted.
4345      am__obj=conftest.${OBJEXT-o}
4346      am__minus_obj=
4347      ;;
4348    none) break ;;
4349    esac
4350    if depmode=$depmode \
4351       source=sub/conftest.c object=$am__obj \
4352       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4353       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4354         >/dev/null 2>conftest.err &&
4355       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4356       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4357       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4358       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4359      # icc doesn't choke on unknown options, it will just issue warnings
4360      # or remarks (even with -Werror).  So we grep stderr for any message
4361      # that says an option was ignored or not supported.
4362      # When given -MP, icc 7.0 and 7.1 complain thusly:
4363      #   icc: Command line warning: ignoring option '-M'; no argument required
4364      # The diagnosis changed in icc 8.0:
4365      #   icc: Command line remark: option '-MP' not supported
4366      if (grep 'ignoring option' conftest.err ||
4367          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4368        am_cv_CC_dependencies_compiler_type=$depmode
4369        break
4370      fi
4371    fi
4372  done
4373
4374  cd ..
4375  rm -rf conftest.dir
4376else
4377  am_cv_CC_dependencies_compiler_type=none
4378fi
4379
4380fi
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4382$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4383CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4384
4385 if
4386  test "x$enable_dependency_tracking" != xno \
4387  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4388  am__fastdepCC_TRUE=
4389  am__fastdepCC_FALSE='#'
4390else
4391  am__fastdepCC_TRUE='#'
4392  am__fastdepCC_FALSE=
4393fi
4394
4395
4396
4397# POSIX will say in a future version that running "rm -f" with no argument
4398# is OK; and we want to be able to make that assumption in our Makefile
4399# recipes.  So use an aggressive probe to check that the usage we want is
4400# actually supported "in the wild" to an acceptable degree.
4401# See automake bug#10828.
4402# To make any issue more visible, cause the running configure to be aborted
4403# by default if the 'rm' program in use doesn't match our expectations; the
4404# user can still override this though.
4405if rm -f && rm -fr && rm -rf; then : OK; else
4406  cat >&2 <<'END'
4407Oops!
4408
4409Your 'rm' program seems unable to run without file operands specified
4410on the command line, even when the '-f' option is present.  This is contrary
4411to the behaviour of most rm programs out there, and not conforming with
4412the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4413
4414Please tell bug-automake@gnu.org about your system, including the value
4415of your $PATH and any error possibly output before this message.  This
4416can help us improve future automake versions.
4417
4418END
4419  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4420    echo 'Configuration will proceed anyway, since you have set the' >&2
4421    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4422    echo >&2
4423  else
4424    cat >&2 <<'END'
4425Aborting the configuration process, to ensure you take notice of the issue.
4426
4427You can download and install GNU coreutils to get an 'rm' implementation
4428that behaves properly: <http://www.gnu.org/software/coreutils/>.
4429
4430If you want to complete the configuration process using your problematic
4431'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4432to "yes", and re-run configure.
4433
4434END
4435    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4436  fi
4437fi
4438
4439
4440# Initialize libtool
4441case `pwd` in
4442  *\ * | *\	*)
4443    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4444$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4445esac
4446
4447
4448
4449macro_version='2.4.6'
4450macro_revision='2.4.6'
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464ltmain=$ac_aux_dir/ltmain.sh
4465
4466# Make sure we can run config.sub.
4467$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4468  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4469
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4471$as_echo_n "checking build system type... " >&6; }
4472if ${ac_cv_build+:} false; then :
4473  $as_echo_n "(cached) " >&6
4474else
4475  ac_build_alias=$build_alias
4476test "x$ac_build_alias" = x &&
4477  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4478test "x$ac_build_alias" = x &&
4479  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4480ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4481  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4482
4483fi
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4485$as_echo "$ac_cv_build" >&6; }
4486case $ac_cv_build in
4487*-*-*) ;;
4488*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4489esac
4490build=$ac_cv_build
4491ac_save_IFS=$IFS; IFS='-'
4492set x $ac_cv_build
4493shift
4494build_cpu=$1
4495build_vendor=$2
4496shift; shift
4497# Remember, the first character of IFS is used to create $*,
4498# except with old shells:
4499build_os=$*
4500IFS=$ac_save_IFS
4501case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4502
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4505$as_echo_n "checking host system type... " >&6; }
4506if ${ac_cv_host+:} false; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  if test "x$host_alias" = x; then
4510  ac_cv_host=$ac_cv_build
4511else
4512  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4513    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4514fi
4515
4516fi
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4518$as_echo "$ac_cv_host" >&6; }
4519case $ac_cv_host in
4520*-*-*) ;;
4521*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4522esac
4523host=$ac_cv_host
4524ac_save_IFS=$IFS; IFS='-'
4525set x $ac_cv_host
4526shift
4527host_cpu=$1
4528host_vendor=$2
4529shift; shift
4530# Remember, the first character of IFS is used to create $*,
4531# except with old shells:
4532host_os=$*
4533IFS=$ac_save_IFS
4534case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4535
4536
4537# Backslashify metacharacters that are still active within
4538# double-quoted strings.
4539sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4540
4541# Same as above, but do not quote variable references.
4542double_quote_subst='s/\(["`\\]\)/\\\1/g'
4543
4544# Sed substitution to delay expansion of an escaped shell variable in a
4545# double_quote_subst'ed string.
4546delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4547
4548# Sed substitution to delay expansion of an escaped single quote.
4549delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4550
4551# Sed substitution to avoid accidental globbing in evaled expressions
4552no_glob_subst='s/\*/\\\*/g'
4553
4554ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4555ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4556ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4557
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4559$as_echo_n "checking how to print strings... " >&6; }
4560# Test print first, because it will be a builtin if present.
4561if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4562   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4563  ECHO='print -r --'
4564elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4565  ECHO='printf %s\n'
4566else
4567  # Use this function as a fallback that always works.
4568  func_fallback_echo ()
4569  {
4570    eval 'cat <<_LTECHO_EOF
4571$1
4572_LTECHO_EOF'
4573  }
4574  ECHO='func_fallback_echo'
4575fi
4576
4577# func_echo_all arg...
4578# Invoke $ECHO with all args, space-separated.
4579func_echo_all ()
4580{
4581    $ECHO ""
4582}
4583
4584case $ECHO in
4585  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4586$as_echo "printf" >&6; } ;;
4587  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4588$as_echo "print -r" >&6; } ;;
4589  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4590$as_echo "cat" >&6; } ;;
4591esac
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4607$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4608if ${ac_cv_path_SED+:} false; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4612     for ac_i in 1 2 3 4 5 6 7; do
4613       ac_script="$ac_script$as_nl$ac_script"
4614     done
4615     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4616     { ac_script=; unset ac_script;}
4617     if test -z "$SED"; then
4618  ac_path_SED_found=false
4619  # Loop through the user's path and test for each of PROGNAME-LIST
4620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623  IFS=$as_save_IFS
4624  test -z "$as_dir" && as_dir=.
4625    for ac_prog in sed gsed; do
4626    for ac_exec_ext in '' $ac_executable_extensions; do
4627      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4628      as_fn_executable_p "$ac_path_SED" || continue
4629# Check for GNU ac_path_SED and select it if it is found.
4630  # Check for GNU $ac_path_SED
4631case `"$ac_path_SED" --version 2>&1` in
4632*GNU*)
4633  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4634*)
4635  ac_count=0
4636  $as_echo_n 0123456789 >"conftest.in"
4637  while :
4638  do
4639    cat "conftest.in" "conftest.in" >"conftest.tmp"
4640    mv "conftest.tmp" "conftest.in"
4641    cp "conftest.in" "conftest.nl"
4642    $as_echo '' >> "conftest.nl"
4643    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645    as_fn_arith $ac_count + 1 && ac_count=$as_val
4646    if test $ac_count -gt ${ac_path_SED_max-0}; then
4647      # Best one so far, save it but keep looking for a better one
4648      ac_cv_path_SED="$ac_path_SED"
4649      ac_path_SED_max=$ac_count
4650    fi
4651    # 10*(2^10) chars as input seems more than enough
4652    test $ac_count -gt 10 && break
4653  done
4654  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655esac
4656
4657      $ac_path_SED_found && break 3
4658    done
4659  done
4660  done
4661IFS=$as_save_IFS
4662  if test -z "$ac_cv_path_SED"; then
4663    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4664  fi
4665else
4666  ac_cv_path_SED=$SED
4667fi
4668
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4671$as_echo "$ac_cv_path_SED" >&6; }
4672 SED="$ac_cv_path_SED"
4673  rm -f conftest.sed
4674
4675test -z "$SED" && SED=sed
4676Xsed="$SED -e 1s/^X//"
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4689$as_echo_n "checking for fgrep... " >&6; }
4690if ${ac_cv_path_FGREP+:} false; then :
4691  $as_echo_n "(cached) " >&6
4692else
4693  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4694   then ac_cv_path_FGREP="$GREP -F"
4695   else
4696     if test -z "$FGREP"; then
4697  ac_path_FGREP_found=false
4698  # Loop through the user's path and test for each of PROGNAME-LIST
4699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4701do
4702  IFS=$as_save_IFS
4703  test -z "$as_dir" && as_dir=.
4704    for ac_prog in fgrep; do
4705    for ac_exec_ext in '' $ac_executable_extensions; do
4706      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4707      as_fn_executable_p "$ac_path_FGREP" || continue
4708# Check for GNU ac_path_FGREP and select it if it is found.
4709  # Check for GNU $ac_path_FGREP
4710case `"$ac_path_FGREP" --version 2>&1` in
4711*GNU*)
4712  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4713*)
4714  ac_count=0
4715  $as_echo_n 0123456789 >"conftest.in"
4716  while :
4717  do
4718    cat "conftest.in" "conftest.in" >"conftest.tmp"
4719    mv "conftest.tmp" "conftest.in"
4720    cp "conftest.in" "conftest.nl"
4721    $as_echo 'FGREP' >> "conftest.nl"
4722    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4723    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4724    as_fn_arith $ac_count + 1 && ac_count=$as_val
4725    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4726      # Best one so far, save it but keep looking for a better one
4727      ac_cv_path_FGREP="$ac_path_FGREP"
4728      ac_path_FGREP_max=$ac_count
4729    fi
4730    # 10*(2^10) chars as input seems more than enough
4731    test $ac_count -gt 10 && break
4732  done
4733  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4734esac
4735
4736      $ac_path_FGREP_found && break 3
4737    done
4738  done
4739  done
4740IFS=$as_save_IFS
4741  if test -z "$ac_cv_path_FGREP"; then
4742    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4743  fi
4744else
4745  ac_cv_path_FGREP=$FGREP
4746fi
4747
4748   fi
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4751$as_echo "$ac_cv_path_FGREP" >&6; }
4752 FGREP="$ac_cv_path_FGREP"
4753
4754
4755test -z "$GREP" && GREP=grep
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775# Check whether --with-gnu-ld was given.
4776if test "${with_gnu_ld+set}" = set; then :
4777  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4778else
4779  with_gnu_ld=no
4780fi
4781
4782ac_prog=ld
4783if test yes = "$GCC"; then
4784  # Check if gcc -print-prog-name=ld gives a path.
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4786$as_echo_n "checking for ld used by $CC... " >&6; }
4787  case $host in
4788  *-*-mingw*)
4789    # gcc leaves a trailing carriage return, which upsets mingw
4790    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4791  *)
4792    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4793  esac
4794  case $ac_prog in
4795    # Accept absolute paths.
4796    [\\/]* | ?:[\\/]*)
4797      re_direlt='/[^/][^/]*/\.\./'
4798      # Canonicalize the pathname of ld
4799      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4800      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4801	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4802      done
4803      test -z "$LD" && LD=$ac_prog
4804      ;;
4805  "")
4806    # If it fails, then pretend we aren't using GCC.
4807    ac_prog=ld
4808    ;;
4809  *)
4810    # If it is relative, then search for the first ld in PATH.
4811    with_gnu_ld=unknown
4812    ;;
4813  esac
4814elif test yes = "$with_gnu_ld"; then
4815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4816$as_echo_n "checking for GNU ld... " >&6; }
4817else
4818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4819$as_echo_n "checking for non-GNU ld... " >&6; }
4820fi
4821if ${lt_cv_path_LD+:} false; then :
4822  $as_echo_n "(cached) " >&6
4823else
4824  if test -z "$LD"; then
4825  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4826  for ac_dir in $PATH; do
4827    IFS=$lt_save_ifs
4828    test -z "$ac_dir" && ac_dir=.
4829    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4830      lt_cv_path_LD=$ac_dir/$ac_prog
4831      # Check to see if the program is GNU ld.  I'd rather use --version,
4832      # but apparently some variants of GNU ld only accept -v.
4833      # Break only if it was the GNU/non-GNU ld that we prefer.
4834      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4835      *GNU* | *'with BFD'*)
4836	test no != "$with_gnu_ld" && break
4837	;;
4838      *)
4839	test yes != "$with_gnu_ld" && break
4840	;;
4841      esac
4842    fi
4843  done
4844  IFS=$lt_save_ifs
4845else
4846  lt_cv_path_LD=$LD # Let the user override the test with a path.
4847fi
4848fi
4849
4850LD=$lt_cv_path_LD
4851if test -n "$LD"; then
4852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4853$as_echo "$LD" >&6; }
4854else
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856$as_echo "no" >&6; }
4857fi
4858test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4860$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4861if ${lt_cv_prog_gnu_ld+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4865case `$LD -v 2>&1 </dev/null` in
4866*GNU* | *'with BFD'*)
4867  lt_cv_prog_gnu_ld=yes
4868  ;;
4869*)
4870  lt_cv_prog_gnu_ld=no
4871  ;;
4872esac
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4875$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4876with_gnu_ld=$lt_cv_prog_gnu_ld
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4887$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4888if ${lt_cv_path_NM+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  if test -n "$NM"; then
4892  # Let the user override the test.
4893  lt_cv_path_NM=$NM
4894else
4895  lt_nm_to_check=${ac_tool_prefix}nm
4896  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4897    lt_nm_to_check="$lt_nm_to_check nm"
4898  fi
4899  for lt_tmp_nm in $lt_nm_to_check; do
4900    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4901    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4902      IFS=$lt_save_ifs
4903      test -z "$ac_dir" && ac_dir=.
4904      tmp_nm=$ac_dir/$lt_tmp_nm
4905      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4906	# Check to see if the nm accepts a BSD-compat flag.
4907	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4908	#   nm: unknown option "B" ignored
4909	# Tru64's nm complains that /dev/null is an invalid object file
4910	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4911	case $build_os in
4912	mingw*) lt_bad_file=conftest.nm/nofile ;;
4913	*) lt_bad_file=/dev/null ;;
4914	esac
4915	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4916	*$lt_bad_file* | *'Invalid file or object type'*)
4917	  lt_cv_path_NM="$tmp_nm -B"
4918	  break 2
4919	  ;;
4920	*)
4921	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4922	  */dev/null*)
4923	    lt_cv_path_NM="$tmp_nm -p"
4924	    break 2
4925	    ;;
4926	  *)
4927	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4928	    continue # so that we can try to find one that supports BSD flags
4929	    ;;
4930	  esac
4931	  ;;
4932	esac
4933      fi
4934    done
4935    IFS=$lt_save_ifs
4936  done
4937  : ${lt_cv_path_NM=no}
4938fi
4939fi
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4941$as_echo "$lt_cv_path_NM" >&6; }
4942if test no != "$lt_cv_path_NM"; then
4943  NM=$lt_cv_path_NM
4944else
4945  # Didn't find any BSD compatible name lister, look for dumpbin.
4946  if test -n "$DUMPBIN"; then :
4947    # Let the user override the test.
4948  else
4949    if test -n "$ac_tool_prefix"; then
4950  for ac_prog in dumpbin "link -dump"
4951  do
4952    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4953set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955$as_echo_n "checking for $ac_word... " >&6; }
4956if ${ac_cv_prog_DUMPBIN+:} false; then :
4957  $as_echo_n "(cached) " >&6
4958else
4959  if test -n "$DUMPBIN"; then
4960  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4961else
4962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965  IFS=$as_save_IFS
4966  test -z "$as_dir" && as_dir=.
4967    for ac_exec_ext in '' $ac_executable_extensions; do
4968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971    break 2
4972  fi
4973done
4974  done
4975IFS=$as_save_IFS
4976
4977fi
4978fi
4979DUMPBIN=$ac_cv_prog_DUMPBIN
4980if test -n "$DUMPBIN"; then
4981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4982$as_echo "$DUMPBIN" >&6; }
4983else
4984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985$as_echo "no" >&6; }
4986fi
4987
4988
4989    test -n "$DUMPBIN" && break
4990  done
4991fi
4992if test -z "$DUMPBIN"; then
4993  ac_ct_DUMPBIN=$DUMPBIN
4994  for ac_prog in dumpbin "link -dump"
4995do
4996  # Extract the first word of "$ac_prog", so it can be a program name with args.
4997set dummy $ac_prog; ac_word=$2
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999$as_echo_n "checking for $ac_word... " >&6; }
5000if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5001  $as_echo_n "(cached) " >&6
5002else
5003  if test -n "$ac_ct_DUMPBIN"; then
5004  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5005else
5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH
5008do
5009  IFS=$as_save_IFS
5010  test -z "$as_dir" && as_dir=.
5011    for ac_exec_ext in '' $ac_executable_extensions; do
5012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015    break 2
5016  fi
5017done
5018  done
5019IFS=$as_save_IFS
5020
5021fi
5022fi
5023ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5024if test -n "$ac_ct_DUMPBIN"; then
5025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5026$as_echo "$ac_ct_DUMPBIN" >&6; }
5027else
5028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029$as_echo "no" >&6; }
5030fi
5031
5032
5033  test -n "$ac_ct_DUMPBIN" && break
5034done
5035
5036  if test "x$ac_ct_DUMPBIN" = x; then
5037    DUMPBIN=":"
5038  else
5039    case $cross_compiling:$ac_tool_warned in
5040yes:)
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5043ac_tool_warned=yes ;;
5044esac
5045    DUMPBIN=$ac_ct_DUMPBIN
5046  fi
5047fi
5048
5049    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5050    *COFF*)
5051      DUMPBIN="$DUMPBIN -symbols -headers"
5052      ;;
5053    *)
5054      DUMPBIN=:
5055      ;;
5056    esac
5057  fi
5058
5059  if test : != "$DUMPBIN"; then
5060    NM=$DUMPBIN
5061  fi
5062fi
5063test -z "$NM" && NM=nm
5064
5065
5066
5067
5068
5069
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5071$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5072if ${lt_cv_nm_interface+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  lt_cv_nm_interface="BSD nm"
5076  echo "int some_variable = 0;" > conftest.$ac_ext
5077  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5078  (eval "$ac_compile" 2>conftest.err)
5079  cat conftest.err >&5
5080  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5081  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5082  cat conftest.err >&5
5083  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5084  cat conftest.out >&5
5085  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5086    lt_cv_nm_interface="MS dumpbin"
5087  fi
5088  rm -f conftest*
5089fi
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5091$as_echo "$lt_cv_nm_interface" >&6; }
5092
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5094$as_echo_n "checking whether ln -s works... " >&6; }
5095LN_S=$as_ln_s
5096if test "$LN_S" = "ln -s"; then
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098$as_echo "yes" >&6; }
5099else
5100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5101$as_echo "no, using $LN_S" >&6; }
5102fi
5103
5104# find the maximum length of command line arguments
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5106$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5107if ${lt_cv_sys_max_cmd_len+:} false; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110    i=0
5111  teststring=ABCD
5112
5113  case $build_os in
5114  msdosdjgpp*)
5115    # On DJGPP, this test can blow up pretty badly due to problems in libc
5116    # (any single argument exceeding 2000 bytes causes a buffer overrun
5117    # during glob expansion).  Even if it were fixed, the result of this
5118    # check would be larger than it should be.
5119    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5120    ;;
5121
5122  gnu*)
5123    # Under GNU Hurd, this test is not required because there is
5124    # no limit to the length of command line arguments.
5125    # Libtool will interpret -1 as no limit whatsoever
5126    lt_cv_sys_max_cmd_len=-1;
5127    ;;
5128
5129  cygwin* | mingw* | cegcc*)
5130    # On Win9x/ME, this test blows up -- it succeeds, but takes
5131    # about 5 minutes as the teststring grows exponentially.
5132    # Worse, since 9x/ME are not pre-emptively multitasking,
5133    # you end up with a "frozen" computer, even though with patience
5134    # the test eventually succeeds (with a max line length of 256k).
5135    # Instead, let's just punt: use the minimum linelength reported by
5136    # all of the supported platforms: 8192 (on NT/2K/XP).
5137    lt_cv_sys_max_cmd_len=8192;
5138    ;;
5139
5140  mint*)
5141    # On MiNT this can take a long time and run out of memory.
5142    lt_cv_sys_max_cmd_len=8192;
5143    ;;
5144
5145  amigaos*)
5146    # On AmigaOS with pdksh, this test takes hours, literally.
5147    # So we just punt and use a minimum line length of 8192.
5148    lt_cv_sys_max_cmd_len=8192;
5149    ;;
5150
5151  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5152    # This has been around since 386BSD, at least.  Likely further.
5153    if test -x /sbin/sysctl; then
5154      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5155    elif test -x /usr/sbin/sysctl; then
5156      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5157    else
5158      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5159    fi
5160    # And add a safety zone
5161    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5162    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5163    ;;
5164
5165  interix*)
5166    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5167    lt_cv_sys_max_cmd_len=196608
5168    ;;
5169
5170  os2*)
5171    # The test takes a long time on OS/2.
5172    lt_cv_sys_max_cmd_len=8192
5173    ;;
5174
5175  osf*)
5176    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5177    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5178    # nice to cause kernel panics so lets avoid the loop below.
5179    # First set a reasonable default.
5180    lt_cv_sys_max_cmd_len=16384
5181    #
5182    if test -x /sbin/sysconfig; then
5183      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5184        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5185      esac
5186    fi
5187    ;;
5188  sco3.2v5*)
5189    lt_cv_sys_max_cmd_len=102400
5190    ;;
5191  sysv5* | sco5v6* | sysv4.2uw2*)
5192    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5193    if test -n "$kargmax"; then
5194      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5195    else
5196      lt_cv_sys_max_cmd_len=32768
5197    fi
5198    ;;
5199  *)
5200    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5201    if test -n "$lt_cv_sys_max_cmd_len" && \
5202       test undefined != "$lt_cv_sys_max_cmd_len"; then
5203      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5204      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5205    else
5206      # Make teststring a little bigger before we do anything with it.
5207      # a 1K string should be a reasonable start.
5208      for i in 1 2 3 4 5 6 7 8; do
5209        teststring=$teststring$teststring
5210      done
5211      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5212      # If test is not a shell built-in, we'll probably end up computing a
5213      # maximum length that is only half of the actual maximum length, but
5214      # we can't tell.
5215      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5216	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5217	      test 17 != "$i" # 1/2 MB should be enough
5218      do
5219        i=`expr $i + 1`
5220        teststring=$teststring$teststring
5221      done
5222      # Only check the string length outside the loop.
5223      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5224      teststring=
5225      # Add a significant safety factor because C++ compilers can tack on
5226      # massive amounts of additional arguments before passing them to the
5227      # linker.  It appears as though 1/2 is a usable value.
5228      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5229    fi
5230    ;;
5231  esac
5232
5233fi
5234
5235if test -n "$lt_cv_sys_max_cmd_len"; then
5236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5237$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5238else
5239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5240$as_echo "none" >&6; }
5241fi
5242max_cmd_len=$lt_cv_sys_max_cmd_len
5243
5244
5245
5246
5247
5248
5249: ${CP="cp -f"}
5250: ${MV="mv -f"}
5251: ${RM="rm -f"}
5252
5253if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5254  lt_unset=unset
5255else
5256  lt_unset=false
5257fi
5258
5259
5260
5261
5262
5263# test EBCDIC or ASCII
5264case `echo X|tr X '\101'` in
5265 A) # ASCII based system
5266    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5267  lt_SP2NL='tr \040 \012'
5268  lt_NL2SP='tr \015\012 \040\040'
5269  ;;
5270 *) # EBCDIC based system
5271  lt_SP2NL='tr \100 \n'
5272  lt_NL2SP='tr \r\n \100\100'
5273  ;;
5274esac
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5285$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5286if ${lt_cv_to_host_file_cmd+:} false; then :
5287  $as_echo_n "(cached) " >&6
5288else
5289  case $host in
5290  *-*-mingw* )
5291    case $build in
5292      *-*-mingw* ) # actually msys
5293        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5294        ;;
5295      *-*-cygwin* )
5296        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5297        ;;
5298      * ) # otherwise, assume *nix
5299        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5300        ;;
5301    esac
5302    ;;
5303  *-*-cygwin* )
5304    case $build in
5305      *-*-mingw* ) # actually msys
5306        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5307        ;;
5308      *-*-cygwin* )
5309        lt_cv_to_host_file_cmd=func_convert_file_noop
5310        ;;
5311      * ) # otherwise, assume *nix
5312        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5313        ;;
5314    esac
5315    ;;
5316  * ) # unhandled hosts (and "normal" native builds)
5317    lt_cv_to_host_file_cmd=func_convert_file_noop
5318    ;;
5319esac
5320
5321fi
5322
5323to_host_file_cmd=$lt_cv_to_host_file_cmd
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5325$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5326
5327
5328
5329
5330
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5332$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5333if ${lt_cv_to_tool_file_cmd+:} false; then :
5334  $as_echo_n "(cached) " >&6
5335else
5336  #assume ordinary cross tools, or native build.
5337lt_cv_to_tool_file_cmd=func_convert_file_noop
5338case $host in
5339  *-*-mingw* )
5340    case $build in
5341      *-*-mingw* ) # actually msys
5342        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5343        ;;
5344    esac
5345    ;;
5346esac
5347
5348fi
5349
5350to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5352$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5353
5354
5355
5356
5357
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5359$as_echo_n "checking for $LD option to reload object files... " >&6; }
5360if ${lt_cv_ld_reload_flag+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  lt_cv_ld_reload_flag='-r'
5364fi
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5366$as_echo "$lt_cv_ld_reload_flag" >&6; }
5367reload_flag=$lt_cv_ld_reload_flag
5368case $reload_flag in
5369"" | " "*) ;;
5370*) reload_flag=" $reload_flag" ;;
5371esac
5372reload_cmds='$LD$reload_flag -o $output$reload_objs'
5373case $host_os in
5374  cygwin* | mingw* | pw32* | cegcc*)
5375    if test yes != "$GCC"; then
5376      reload_cmds=false
5377    fi
5378    ;;
5379  darwin*)
5380    if test yes = "$GCC"; then
5381      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5382    else
5383      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5384    fi
5385    ;;
5386esac
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396if test -n "$ac_tool_prefix"; then
5397  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5398set dummy ${ac_tool_prefix}objdump; ac_word=$2
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400$as_echo_n "checking for $ac_word... " >&6; }
5401if ${ac_cv_prog_OBJDUMP+:} false; then :
5402  $as_echo_n "(cached) " >&6
5403else
5404  if test -n "$OBJDUMP"; then
5405  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5406else
5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408for as_dir in $PATH
5409do
5410  IFS=$as_save_IFS
5411  test -z "$as_dir" && as_dir=.
5412    for ac_exec_ext in '' $ac_executable_extensions; do
5413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416    break 2
5417  fi
5418done
5419  done
5420IFS=$as_save_IFS
5421
5422fi
5423fi
5424OBJDUMP=$ac_cv_prog_OBJDUMP
5425if test -n "$OBJDUMP"; then
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5427$as_echo "$OBJDUMP" >&6; }
5428else
5429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430$as_echo "no" >&6; }
5431fi
5432
5433
5434fi
5435if test -z "$ac_cv_prog_OBJDUMP"; then
5436  ac_ct_OBJDUMP=$OBJDUMP
5437  # Extract the first word of "objdump", so it can be a program name with args.
5438set dummy objdump; ac_word=$2
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440$as_echo_n "checking for $ac_word... " >&6; }
5441if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  if test -n "$ac_ct_OBJDUMP"; then
5445  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5446else
5447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448for as_dir in $PATH
5449do
5450  IFS=$as_save_IFS
5451  test -z "$as_dir" && as_dir=.
5452    for ac_exec_ext in '' $ac_executable_extensions; do
5453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456    break 2
5457  fi
5458done
5459  done
5460IFS=$as_save_IFS
5461
5462fi
5463fi
5464ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5465if test -n "$ac_ct_OBJDUMP"; then
5466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5467$as_echo "$ac_ct_OBJDUMP" >&6; }
5468else
5469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470$as_echo "no" >&6; }
5471fi
5472
5473  if test "x$ac_ct_OBJDUMP" = x; then
5474    OBJDUMP="false"
5475  else
5476    case $cross_compiling:$ac_tool_warned in
5477yes:)
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5480ac_tool_warned=yes ;;
5481esac
5482    OBJDUMP=$ac_ct_OBJDUMP
5483  fi
5484else
5485  OBJDUMP="$ac_cv_prog_OBJDUMP"
5486fi
5487
5488test -z "$OBJDUMP" && OBJDUMP=objdump
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5499$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5500if ${lt_cv_deplibs_check_method+:} false; then :
5501  $as_echo_n "(cached) " >&6
5502else
5503  lt_cv_file_magic_cmd='$MAGIC_CMD'
5504lt_cv_file_magic_test_file=
5505lt_cv_deplibs_check_method='unknown'
5506# Need to set the preceding variable on all platforms that support
5507# interlibrary dependencies.
5508# 'none' -- dependencies not supported.
5509# 'unknown' -- same as none, but documents that we really don't know.
5510# 'pass_all' -- all dependencies passed with no checks.
5511# 'test_compile' -- check by making test program.
5512# 'file_magic [[regex]]' -- check by looking for files in library path
5513# that responds to the $file_magic_cmd with a given extended regex.
5514# If you have 'file' or equivalent on your system and you're not sure
5515# whether 'pass_all' will *always* work, you probably want this one.
5516
5517case $host_os in
5518aix[4-9]*)
5519  lt_cv_deplibs_check_method=pass_all
5520  ;;
5521
5522beos*)
5523  lt_cv_deplibs_check_method=pass_all
5524  ;;
5525
5526bsdi[45]*)
5527  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5528  lt_cv_file_magic_cmd='/usr/bin/file -L'
5529  lt_cv_file_magic_test_file=/shlib/libc.so
5530  ;;
5531
5532cygwin*)
5533  # func_win32_libid is a shell function defined in ltmain.sh
5534  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5535  lt_cv_file_magic_cmd='func_win32_libid'
5536  ;;
5537
5538mingw* | pw32*)
5539  # Base MSYS/MinGW do not provide the 'file' command needed by
5540  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5541  # unless we find 'file', for example because we are cross-compiling.
5542  if ( file / ) >/dev/null 2>&1; then
5543    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5544    lt_cv_file_magic_cmd='func_win32_libid'
5545  else
5546    # Keep this pattern in sync with the one in func_win32_libid.
5547    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5548    lt_cv_file_magic_cmd='$OBJDUMP -f'
5549  fi
5550  ;;
5551
5552cegcc*)
5553  # use the weaker test based on 'objdump'. See mingw*.
5554  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5555  lt_cv_file_magic_cmd='$OBJDUMP -f'
5556  ;;
5557
5558darwin* | rhapsody*)
5559  lt_cv_deplibs_check_method=pass_all
5560  ;;
5561
5562freebsd* | dragonfly*)
5563  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5564    case $host_cpu in
5565    i*86 )
5566      # Not sure whether the presence of OpenBSD here was a mistake.
5567      # Let's accept both of them until this is cleared up.
5568      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5569      lt_cv_file_magic_cmd=/usr/bin/file
5570      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5571      ;;
5572    esac
5573  else
5574    lt_cv_deplibs_check_method=pass_all
5575  fi
5576  ;;
5577
5578haiku*)
5579  lt_cv_deplibs_check_method=pass_all
5580  ;;
5581
5582hpux10.20* | hpux11*)
5583  lt_cv_file_magic_cmd=/usr/bin/file
5584  case $host_cpu in
5585  ia64*)
5586    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5587    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5588    ;;
5589  hppa*64*)
5590    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]'
5591    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5592    ;;
5593  *)
5594    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5595    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5596    ;;
5597  esac
5598  ;;
5599
5600interix[3-9]*)
5601  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5602  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5603  ;;
5604
5605irix5* | irix6* | nonstopux*)
5606  case $LD in
5607  *-32|*"-32 ") libmagic=32-bit;;
5608  *-n32|*"-n32 ") libmagic=N32;;
5609  *-64|*"-64 ") libmagic=64-bit;;
5610  *) libmagic=never-match;;
5611  esac
5612  lt_cv_deplibs_check_method=pass_all
5613  ;;
5614
5615# This must be glibc/ELF.
5616linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5617  lt_cv_deplibs_check_method=pass_all
5618  ;;
5619
5620netbsd*)
5621  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5622    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5623  else
5624    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5625  fi
5626  ;;
5627
5628newos6*)
5629  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5630  lt_cv_file_magic_cmd=/usr/bin/file
5631  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5632  ;;
5633
5634*nto* | *qnx*)
5635  lt_cv_deplibs_check_method=pass_all
5636  ;;
5637
5638openbsd* | bitrig*)
5639  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5640    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5641  else
5642    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5643  fi
5644  ;;
5645
5646osf3* | osf4* | osf5*)
5647  lt_cv_deplibs_check_method=pass_all
5648  ;;
5649
5650rdos*)
5651  lt_cv_deplibs_check_method=pass_all
5652  ;;
5653
5654solaris*)
5655  lt_cv_deplibs_check_method=pass_all
5656  ;;
5657
5658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5659  lt_cv_deplibs_check_method=pass_all
5660  ;;
5661
5662sysv4 | sysv4.3*)
5663  case $host_vendor in
5664  motorola)
5665    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]'
5666    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5667    ;;
5668  ncr)
5669    lt_cv_deplibs_check_method=pass_all
5670    ;;
5671  sequent)
5672    lt_cv_file_magic_cmd='/bin/file'
5673    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5674    ;;
5675  sni)
5676    lt_cv_file_magic_cmd='/bin/file'
5677    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5678    lt_cv_file_magic_test_file=/lib/libc.so
5679    ;;
5680  siemens)
5681    lt_cv_deplibs_check_method=pass_all
5682    ;;
5683  pc)
5684    lt_cv_deplibs_check_method=pass_all
5685    ;;
5686  esac
5687  ;;
5688
5689tpf*)
5690  lt_cv_deplibs_check_method=pass_all
5691  ;;
5692os2*)
5693  lt_cv_deplibs_check_method=pass_all
5694  ;;
5695esac
5696
5697fi
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5699$as_echo "$lt_cv_deplibs_check_method" >&6; }
5700
5701file_magic_glob=
5702want_nocaseglob=no
5703if test "$build" = "$host"; then
5704  case $host_os in
5705  mingw* | pw32*)
5706    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5707      want_nocaseglob=yes
5708    else
5709      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5710    fi
5711    ;;
5712  esac
5713fi
5714
5715file_magic_cmd=$lt_cv_file_magic_cmd
5716deplibs_check_method=$lt_cv_deplibs_check_method
5717test -z "$deplibs_check_method" && deplibs_check_method=unknown
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740if test -n "$ac_tool_prefix"; then
5741  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5742set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744$as_echo_n "checking for $ac_word... " >&6; }
5745if ${ac_cv_prog_DLLTOOL+:} false; then :
5746  $as_echo_n "(cached) " >&6
5747else
5748  if test -n "$DLLTOOL"; then
5749  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5750else
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754  IFS=$as_save_IFS
5755  test -z "$as_dir" && as_dir=.
5756    for ac_exec_ext in '' $ac_executable_extensions; do
5757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760    break 2
5761  fi
5762done
5763  done
5764IFS=$as_save_IFS
5765
5766fi
5767fi
5768DLLTOOL=$ac_cv_prog_DLLTOOL
5769if test -n "$DLLTOOL"; then
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5771$as_echo "$DLLTOOL" >&6; }
5772else
5773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }
5775fi
5776
5777
5778fi
5779if test -z "$ac_cv_prog_DLLTOOL"; then
5780  ac_ct_DLLTOOL=$DLLTOOL
5781  # Extract the first word of "dlltool", so it can be a program name with args.
5782set dummy dlltool; ac_word=$2
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784$as_echo_n "checking for $ac_word... " >&6; }
5785if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  if test -n "$ac_ct_DLLTOOL"; then
5789  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5790else
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794  IFS=$as_save_IFS
5795  test -z "$as_dir" && as_dir=.
5796    for ac_exec_ext in '' $ac_executable_extensions; do
5797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800    break 2
5801  fi
5802done
5803  done
5804IFS=$as_save_IFS
5805
5806fi
5807fi
5808ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5809if test -n "$ac_ct_DLLTOOL"; then
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5811$as_echo "$ac_ct_DLLTOOL" >&6; }
5812else
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814$as_echo "no" >&6; }
5815fi
5816
5817  if test "x$ac_ct_DLLTOOL" = x; then
5818    DLLTOOL="false"
5819  else
5820    case $cross_compiling:$ac_tool_warned in
5821yes:)
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5824ac_tool_warned=yes ;;
5825esac
5826    DLLTOOL=$ac_ct_DLLTOOL
5827  fi
5828else
5829  DLLTOOL="$ac_cv_prog_DLLTOOL"
5830fi
5831
5832test -z "$DLLTOOL" && DLLTOOL=dlltool
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5844$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5845if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5846  $as_echo_n "(cached) " >&6
5847else
5848  lt_cv_sharedlib_from_linklib_cmd='unknown'
5849
5850case $host_os in
5851cygwin* | mingw* | pw32* | cegcc*)
5852  # two different shell functions defined in ltmain.sh;
5853  # decide which one to use based on capabilities of $DLLTOOL
5854  case `$DLLTOOL --help 2>&1` in
5855  *--identify-strict*)
5856    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5857    ;;
5858  *)
5859    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5860    ;;
5861  esac
5862  ;;
5863*)
5864  # fallback: assume linklib IS sharedlib
5865  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5866  ;;
5867esac
5868
5869fi
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5871$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5872sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5873test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5874
5875
5876
5877
5878
5879
5880
5881if test -n "$ac_tool_prefix"; then
5882  for ac_prog in ar
5883  do
5884    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887$as_echo_n "checking for $ac_word... " >&6; }
5888if ${ac_cv_prog_AR+:} false; then :
5889  $as_echo_n "(cached) " >&6
5890else
5891  if test -n "$AR"; then
5892  ac_cv_prog_AR="$AR" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897  IFS=$as_save_IFS
5898  test -z "$as_dir" && as_dir=.
5899    for ac_exec_ext in '' $ac_executable_extensions; do
5900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903    break 2
5904  fi
5905done
5906  done
5907IFS=$as_save_IFS
5908
5909fi
5910fi
5911AR=$ac_cv_prog_AR
5912if test -n "$AR"; then
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5914$as_echo "$AR" >&6; }
5915else
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917$as_echo "no" >&6; }
5918fi
5919
5920
5921    test -n "$AR" && break
5922  done
5923fi
5924if test -z "$AR"; then
5925  ac_ct_AR=$AR
5926  for ac_prog in ar
5927do
5928  # Extract the first word of "$ac_prog", so it can be a program name with args.
5929set dummy $ac_prog; ac_word=$2
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931$as_echo_n "checking for $ac_word... " >&6; }
5932if ${ac_cv_prog_ac_ct_AR+:} false; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935  if test -n "$ac_ct_AR"; then
5936  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5937else
5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939for as_dir in $PATH
5940do
5941  IFS=$as_save_IFS
5942  test -z "$as_dir" && as_dir=.
5943    for ac_exec_ext in '' $ac_executable_extensions; do
5944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945    ac_cv_prog_ac_ct_AR="$ac_prog"
5946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947    break 2
5948  fi
5949done
5950  done
5951IFS=$as_save_IFS
5952
5953fi
5954fi
5955ac_ct_AR=$ac_cv_prog_ac_ct_AR
5956if test -n "$ac_ct_AR"; then
5957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5958$as_echo "$ac_ct_AR" >&6; }
5959else
5960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961$as_echo "no" >&6; }
5962fi
5963
5964
5965  test -n "$ac_ct_AR" && break
5966done
5967
5968  if test "x$ac_ct_AR" = x; then
5969    AR="false"
5970  else
5971    case $cross_compiling:$ac_tool_warned in
5972yes:)
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975ac_tool_warned=yes ;;
5976esac
5977    AR=$ac_ct_AR
5978  fi
5979fi
5980
5981: ${AR=ar}
5982: ${AR_FLAGS=cru}
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5995$as_echo_n "checking for archiver @FILE support... " >&6; }
5996if ${lt_cv_ar_at_file+:} false; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999  lt_cv_ar_at_file=no
6000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h.  */
6002
6003int
6004main ()
6005{
6006
6007  ;
6008  return 0;
6009}
6010_ACEOF
6011if ac_fn_c_try_compile "$LINENO"; then :
6012  echo conftest.$ac_objext > conftest.lst
6013      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6014      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6015  (eval $lt_ar_try) 2>&5
6016  ac_status=$?
6017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6018  test $ac_status = 0; }
6019      if test 0 -eq "$ac_status"; then
6020	# Ensure the archiver fails upon bogus file names.
6021	rm -f conftest.$ac_objext libconftest.a
6022	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6023  (eval $lt_ar_try) 2>&5
6024  ac_status=$?
6025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026  test $ac_status = 0; }
6027	if test 0 -ne "$ac_status"; then
6028          lt_cv_ar_at_file=@
6029        fi
6030      fi
6031      rm -f conftest.* libconftest.a
6032
6033fi
6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035
6036fi
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6038$as_echo "$lt_cv_ar_at_file" >&6; }
6039
6040if test no = "$lt_cv_ar_at_file"; then
6041  archiver_list_spec=
6042else
6043  archiver_list_spec=$lt_cv_ar_at_file
6044fi
6045
6046
6047
6048
6049
6050
6051
6052if test -n "$ac_tool_prefix"; then
6053  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6054set dummy ${ac_tool_prefix}strip; ac_word=$2
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056$as_echo_n "checking for $ac_word... " >&6; }
6057if ${ac_cv_prog_STRIP+:} false; then :
6058  $as_echo_n "(cached) " >&6
6059else
6060  if test -n "$STRIP"; then
6061  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066  IFS=$as_save_IFS
6067  test -z "$as_dir" && as_dir=.
6068    for ac_exec_ext in '' $ac_executable_extensions; do
6069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072    break 2
6073  fi
6074done
6075  done
6076IFS=$as_save_IFS
6077
6078fi
6079fi
6080STRIP=$ac_cv_prog_STRIP
6081if test -n "$STRIP"; then
6082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6083$as_echo "$STRIP" >&6; }
6084else
6085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086$as_echo "no" >&6; }
6087fi
6088
6089
6090fi
6091if test -z "$ac_cv_prog_STRIP"; then
6092  ac_ct_STRIP=$STRIP
6093  # Extract the first word of "strip", so it can be a program name with args.
6094set dummy strip; ac_word=$2
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096$as_echo_n "checking for $ac_word... " >&6; }
6097if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6098  $as_echo_n "(cached) " >&6
6099else
6100  if test -n "$ac_ct_STRIP"; then
6101  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6102else
6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106  IFS=$as_save_IFS
6107  test -z "$as_dir" && as_dir=.
6108    for ac_exec_ext in '' $ac_executable_extensions; do
6109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110    ac_cv_prog_ac_ct_STRIP="strip"
6111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112    break 2
6113  fi
6114done
6115  done
6116IFS=$as_save_IFS
6117
6118fi
6119fi
6120ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6121if test -n "$ac_ct_STRIP"; then
6122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6123$as_echo "$ac_ct_STRIP" >&6; }
6124else
6125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126$as_echo "no" >&6; }
6127fi
6128
6129  if test "x$ac_ct_STRIP" = x; then
6130    STRIP=":"
6131  else
6132    case $cross_compiling:$ac_tool_warned in
6133yes:)
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136ac_tool_warned=yes ;;
6137esac
6138    STRIP=$ac_ct_STRIP
6139  fi
6140else
6141  STRIP="$ac_cv_prog_STRIP"
6142fi
6143
6144test -z "$STRIP" && STRIP=:
6145
6146
6147
6148
6149
6150
6151if test -n "$ac_tool_prefix"; then
6152  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6153set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155$as_echo_n "checking for $ac_word... " >&6; }
6156if ${ac_cv_prog_RANLIB+:} false; then :
6157  $as_echo_n "(cached) " >&6
6158else
6159  if test -n "$RANLIB"; then
6160  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6161else
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165  IFS=$as_save_IFS
6166  test -z "$as_dir" && as_dir=.
6167    for ac_exec_ext in '' $ac_executable_extensions; do
6168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171    break 2
6172  fi
6173done
6174  done
6175IFS=$as_save_IFS
6176
6177fi
6178fi
6179RANLIB=$ac_cv_prog_RANLIB
6180if test -n "$RANLIB"; then
6181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6182$as_echo "$RANLIB" >&6; }
6183else
6184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185$as_echo "no" >&6; }
6186fi
6187
6188
6189fi
6190if test -z "$ac_cv_prog_RANLIB"; then
6191  ac_ct_RANLIB=$RANLIB
6192  # Extract the first word of "ranlib", so it can be a program name with args.
6193set dummy ranlib; ac_word=$2
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195$as_echo_n "checking for $ac_word... " >&6; }
6196if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6197  $as_echo_n "(cached) " >&6
6198else
6199  if test -n "$ac_ct_RANLIB"; then
6200  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205  IFS=$as_save_IFS
6206  test -z "$as_dir" && as_dir=.
6207    for ac_exec_ext in '' $ac_executable_extensions; do
6208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209    ac_cv_prog_ac_ct_RANLIB="ranlib"
6210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211    break 2
6212  fi
6213done
6214  done
6215IFS=$as_save_IFS
6216
6217fi
6218fi
6219ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6220if test -n "$ac_ct_RANLIB"; then
6221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6222$as_echo "$ac_ct_RANLIB" >&6; }
6223else
6224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225$as_echo "no" >&6; }
6226fi
6227
6228  if test "x$ac_ct_RANLIB" = x; then
6229    RANLIB=":"
6230  else
6231    case $cross_compiling:$ac_tool_warned in
6232yes:)
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6235ac_tool_warned=yes ;;
6236esac
6237    RANLIB=$ac_ct_RANLIB
6238  fi
6239else
6240  RANLIB="$ac_cv_prog_RANLIB"
6241fi
6242
6243test -z "$RANLIB" && RANLIB=:
6244
6245
6246
6247
6248
6249
6250# Determine commands to create old-style static archives.
6251old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6252old_postinstall_cmds='chmod 644 $oldlib'
6253old_postuninstall_cmds=
6254
6255if test -n "$RANLIB"; then
6256  case $host_os in
6257  bitrig* | openbsd*)
6258    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6259    ;;
6260  *)
6261    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6262    ;;
6263  esac
6264  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6265fi
6266
6267case $host_os in
6268  darwin*)
6269    lock_old_archive_extraction=yes ;;
6270  *)
6271    lock_old_archive_extraction=no ;;
6272esac
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312# If no C compiler was specified, use CC.
6313LTCC=${LTCC-"$CC"}
6314
6315# If no C compiler flags were specified, use CFLAGS.
6316LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6317
6318# Allow CC to be a program name with arguments.
6319compiler=$CC
6320
6321
6322# Check for command to grab the raw symbol name followed by C symbol from nm.
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6324$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6325if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328
6329# These are sane defaults that work on at least a few old systems.
6330# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6331
6332# Character class describing NM global symbol codes.
6333symcode='[BCDEGRST]'
6334
6335# Regexp to match symbols that can be accessed directly from C.
6336sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6337
6338# Define system-specific variables.
6339case $host_os in
6340aix*)
6341  symcode='[BCDT]'
6342  ;;
6343cygwin* | mingw* | pw32* | cegcc*)
6344  symcode='[ABCDGISTW]'
6345  ;;
6346hpux*)
6347  if test ia64 = "$host_cpu"; then
6348    symcode='[ABCDEGRST]'
6349  fi
6350  ;;
6351irix* | nonstopux*)
6352  symcode='[BCDEGRST]'
6353  ;;
6354osf*)
6355  symcode='[BCDEGQRST]'
6356  ;;
6357solaris*)
6358  symcode='[BDRT]'
6359  ;;
6360sco3.2v5*)
6361  symcode='[DT]'
6362  ;;
6363sysv4.2uw2*)
6364  symcode='[DT]'
6365  ;;
6366sysv5* | sco5v6* | unixware* | OpenUNIX*)
6367  symcode='[ABDT]'
6368  ;;
6369sysv4)
6370  symcode='[DFNSTU]'
6371  ;;
6372esac
6373
6374# If we're using GNU nm, then use its standard symbol codes.
6375case `$NM -V 2>&1` in
6376*GNU* | *'with BFD'*)
6377  symcode='[ABCDGIRSTW]' ;;
6378esac
6379
6380if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6381  # Gets list of data symbols to import.
6382  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6383  # Adjust the below global symbol transforms to fixup imported variables.
6384  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6385  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6386  lt_c_name_lib_hook="\
6387  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6388  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6389else
6390  # Disable hooks by default.
6391  lt_cv_sys_global_symbol_to_import=
6392  lt_cdecl_hook=
6393  lt_c_name_hook=
6394  lt_c_name_lib_hook=
6395fi
6396
6397# Transform an extracted symbol line into a proper C declaration.
6398# Some systems (esp. on ia64) link data and code symbols differently,
6399# so use this general approach.
6400lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6401$lt_cdecl_hook\
6402" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6403" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6404
6405# Transform an extracted symbol line into symbol name and symbol address
6406lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6407$lt_c_name_hook\
6408" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6409" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6410
6411# Transform an extracted symbol line into symbol name with lib prefix and
6412# symbol address.
6413lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6414$lt_c_name_lib_hook\
6415" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6416" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6417" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6418
6419# Handle CRLF in mingw tool chain
6420opt_cr=
6421case $build_os in
6422mingw*)
6423  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6424  ;;
6425esac
6426
6427# Try without a prefix underscore, then with it.
6428for ac_symprfx in "" "_"; do
6429
6430  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6431  symxfrm="\\1 $ac_symprfx\\2 \\2"
6432
6433  # Write the raw and C identifiers.
6434  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6435    # Fake it for dumpbin and say T for any non-static function,
6436    # D for any global variable and I for any imported variable.
6437    # Also find C++ and __fastcall symbols from MSVC++,
6438    # which start with @ or ?.
6439    lt_cv_sys_global_symbol_pipe="$AWK '"\
6440"     {last_section=section; section=\$ 3};"\
6441"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6442"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6443"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6444"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6445"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6446"     \$ 0!~/External *\|/{next};"\
6447"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6448"     {if(hide[section]) next};"\
6449"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6450"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6451"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6452"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6453"     ' prfx=^$ac_symprfx"
6454  else
6455    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6456  fi
6457  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6458
6459  # Check to see that the pipe works correctly.
6460  pipe_works=no
6461
6462  rm -f conftest*
6463  cat > conftest.$ac_ext <<_LT_EOF
6464#ifdef __cplusplus
6465extern "C" {
6466#endif
6467char nm_test_var;
6468void nm_test_func(void);
6469void nm_test_func(void){}
6470#ifdef __cplusplus
6471}
6472#endif
6473int main(){nm_test_var='a';nm_test_func();return(0);}
6474_LT_EOF
6475
6476  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6477  (eval $ac_compile) 2>&5
6478  ac_status=$?
6479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480  test $ac_status = 0; }; then
6481    # Now try to grab the symbols.
6482    nlist=conftest.nm
6483    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6484  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6485  ac_status=$?
6486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487  test $ac_status = 0; } && test -s "$nlist"; then
6488      # Try sorting and uniquifying the output.
6489      if sort "$nlist" | uniq > "$nlist"T; then
6490	mv -f "$nlist"T "$nlist"
6491      else
6492	rm -f "$nlist"T
6493      fi
6494
6495      # Make sure that we snagged all the symbols we need.
6496      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6497	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6498	  cat <<_LT_EOF > conftest.$ac_ext
6499/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6500#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6501/* DATA imports from DLLs on WIN32 can't be const, because runtime
6502   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6503# define LT_DLSYM_CONST
6504#elif defined __osf__
6505/* This system does not cope well with relocations in const data.  */
6506# define LT_DLSYM_CONST
6507#else
6508# define LT_DLSYM_CONST const
6509#endif
6510
6511#ifdef __cplusplus
6512extern "C" {
6513#endif
6514
6515_LT_EOF
6516	  # Now generate the symbol file.
6517	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6518
6519	  cat <<_LT_EOF >> conftest.$ac_ext
6520
6521/* The mapping between symbol names and symbols.  */
6522LT_DLSYM_CONST struct {
6523  const char *name;
6524  void       *address;
6525}
6526lt__PROGRAM__LTX_preloaded_symbols[] =
6527{
6528  { "@PROGRAM@", (void *) 0 },
6529_LT_EOF
6530	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6531	  cat <<\_LT_EOF >> conftest.$ac_ext
6532  {0, (void *) 0}
6533};
6534
6535/* This works around a problem in FreeBSD linker */
6536#ifdef FREEBSD_WORKAROUND
6537static const void *lt_preloaded_setup() {
6538  return lt__PROGRAM__LTX_preloaded_symbols;
6539}
6540#endif
6541
6542#ifdef __cplusplus
6543}
6544#endif
6545_LT_EOF
6546	  # Now try linking the two files.
6547	  mv conftest.$ac_objext conftstm.$ac_objext
6548	  lt_globsym_save_LIBS=$LIBS
6549	  lt_globsym_save_CFLAGS=$CFLAGS
6550	  LIBS=conftstm.$ac_objext
6551	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6552	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6553  (eval $ac_link) 2>&5
6554  ac_status=$?
6555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6556  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6557	    pipe_works=yes
6558	  fi
6559	  LIBS=$lt_globsym_save_LIBS
6560	  CFLAGS=$lt_globsym_save_CFLAGS
6561	else
6562	  echo "cannot find nm_test_func in $nlist" >&5
6563	fi
6564      else
6565	echo "cannot find nm_test_var in $nlist" >&5
6566      fi
6567    else
6568      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6569    fi
6570  else
6571    echo "$progname: failed program was:" >&5
6572    cat conftest.$ac_ext >&5
6573  fi
6574  rm -rf conftest* conftst*
6575
6576  # Do not use the global_symbol_pipe unless it works.
6577  if test yes = "$pipe_works"; then
6578    break
6579  else
6580    lt_cv_sys_global_symbol_pipe=
6581  fi
6582done
6583
6584fi
6585
6586if test -z "$lt_cv_sys_global_symbol_pipe"; then
6587  lt_cv_sys_global_symbol_to_cdecl=
6588fi
6589if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6591$as_echo "failed" >&6; }
6592else
6593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6594$as_echo "ok" >&6; }
6595fi
6596
6597# Response file support.
6598if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6599  nm_file_list_spec='@'
6600elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6601  nm_file_list_spec='@'
6602fi
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6641$as_echo_n "checking for sysroot... " >&6; }
6642
6643# Check whether --with-sysroot was given.
6644if test "${with_sysroot+set}" = set; then :
6645  withval=$with_sysroot;
6646else
6647  with_sysroot=no
6648fi
6649
6650
6651lt_sysroot=
6652case $with_sysroot in #(
6653 yes)
6654   if test yes = "$GCC"; then
6655     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6656   fi
6657   ;; #(
6658 /*)
6659   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6660   ;; #(
6661 no|'')
6662   ;; #(
6663 *)
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6665$as_echo "$with_sysroot" >&6; }
6666   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6667   ;;
6668esac
6669
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6671$as_echo "${lt_sysroot:-no}" >&6; }
6672
6673
6674
6675
6676
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6678$as_echo_n "checking for a working dd... " >&6; }
6679if ${ac_cv_path_lt_DD+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  printf 0123456789abcdef0123456789abcdef >conftest.i
6683cat conftest.i conftest.i >conftest2.i
6684: ${lt_DD:=$DD}
6685if test -z "$lt_DD"; then
6686  ac_path_lt_DD_found=false
6687  # Loop through the user's path and test for each of PROGNAME-LIST
6688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691  IFS=$as_save_IFS
6692  test -z "$as_dir" && as_dir=.
6693    for ac_prog in dd; do
6694    for ac_exec_ext in '' $ac_executable_extensions; do
6695      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6696      as_fn_executable_p "$ac_path_lt_DD" || continue
6697if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6698  cmp -s conftest.i conftest.out \
6699  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6700fi
6701      $ac_path_lt_DD_found && break 3
6702    done
6703  done
6704  done
6705IFS=$as_save_IFS
6706  if test -z "$ac_cv_path_lt_DD"; then
6707    :
6708  fi
6709else
6710  ac_cv_path_lt_DD=$lt_DD
6711fi
6712
6713rm -f conftest.i conftest2.i conftest.out
6714fi
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6716$as_echo "$ac_cv_path_lt_DD" >&6; }
6717
6718
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6720$as_echo_n "checking how to truncate binary pipes... " >&6; }
6721if ${lt_cv_truncate_bin+:} false; then :
6722  $as_echo_n "(cached) " >&6
6723else
6724  printf 0123456789abcdef0123456789abcdef >conftest.i
6725cat conftest.i conftest.i >conftest2.i
6726lt_cv_truncate_bin=
6727if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6728  cmp -s conftest.i conftest.out \
6729  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6730fi
6731rm -f conftest.i conftest2.i conftest.out
6732test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6733fi
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6735$as_echo "$lt_cv_truncate_bin" >&6; }
6736
6737
6738
6739
6740
6741
6742
6743# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6744func_cc_basename ()
6745{
6746    for cc_temp in $*""; do
6747      case $cc_temp in
6748        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6749        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6750        \-*) ;;
6751        *) break;;
6752      esac
6753    done
6754    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6755}
6756
6757# Check whether --enable-libtool-lock was given.
6758if test "${enable_libtool_lock+set}" = set; then :
6759  enableval=$enable_libtool_lock;
6760fi
6761
6762test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6763
6764# Some flags need to be propagated to the compiler or linker for good
6765# libtool support.
6766case $host in
6767ia64-*-hpux*)
6768  # Find out what ABI is being produced by ac_compile, and set mode
6769  # options accordingly.
6770  echo 'int i;' > conftest.$ac_ext
6771  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6772  (eval $ac_compile) 2>&5
6773  ac_status=$?
6774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6775  test $ac_status = 0; }; then
6776    case `/usr/bin/file conftest.$ac_objext` in
6777      *ELF-32*)
6778	HPUX_IA64_MODE=32
6779	;;
6780      *ELF-64*)
6781	HPUX_IA64_MODE=64
6782	;;
6783    esac
6784  fi
6785  rm -rf conftest*
6786  ;;
6787*-*-irix6*)
6788  # Find out what ABI is being produced by ac_compile, and set linker
6789  # options accordingly.
6790  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6791  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6792  (eval $ac_compile) 2>&5
6793  ac_status=$?
6794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795  test $ac_status = 0; }; then
6796    if test yes = "$lt_cv_prog_gnu_ld"; then
6797      case `/usr/bin/file conftest.$ac_objext` in
6798	*32-bit*)
6799	  LD="${LD-ld} -melf32bsmip"
6800	  ;;
6801	*N32*)
6802	  LD="${LD-ld} -melf32bmipn32"
6803	  ;;
6804	*64-bit*)
6805	  LD="${LD-ld} -melf64bmip"
6806	;;
6807      esac
6808    else
6809      case `/usr/bin/file conftest.$ac_objext` in
6810	*32-bit*)
6811	  LD="${LD-ld} -32"
6812	  ;;
6813	*N32*)
6814	  LD="${LD-ld} -n32"
6815	  ;;
6816	*64-bit*)
6817	  LD="${LD-ld} -64"
6818	  ;;
6819      esac
6820    fi
6821  fi
6822  rm -rf conftest*
6823  ;;
6824
6825mips64*-*linux*)
6826  # Find out what ABI is being produced by ac_compile, and set linker
6827  # options accordingly.
6828  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6829  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830  (eval $ac_compile) 2>&5
6831  ac_status=$?
6832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833  test $ac_status = 0; }; then
6834    emul=elf
6835    case `/usr/bin/file conftest.$ac_objext` in
6836      *32-bit*)
6837	emul="${emul}32"
6838	;;
6839      *64-bit*)
6840	emul="${emul}64"
6841	;;
6842    esac
6843    case `/usr/bin/file conftest.$ac_objext` in
6844      *MSB*)
6845	emul="${emul}btsmip"
6846	;;
6847      *LSB*)
6848	emul="${emul}ltsmip"
6849	;;
6850    esac
6851    case `/usr/bin/file conftest.$ac_objext` in
6852      *N32*)
6853	emul="${emul}n32"
6854	;;
6855    esac
6856    LD="${LD-ld} -m $emul"
6857  fi
6858  rm -rf conftest*
6859  ;;
6860
6861x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6862s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6863  # Find out what ABI is being produced by ac_compile, and set linker
6864  # options accordingly.  Note that the listed cases only cover the
6865  # situations where additional linker options are needed (such as when
6866  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6867  # vice versa); the common cases where no linker options are needed do
6868  # not appear in the list.
6869  echo 'int i;' > conftest.$ac_ext
6870  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6871  (eval $ac_compile) 2>&5
6872  ac_status=$?
6873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6874  test $ac_status = 0; }; then
6875    case `/usr/bin/file conftest.o` in
6876      *32-bit*)
6877	case $host in
6878	  x86_64-*kfreebsd*-gnu)
6879	    LD="${LD-ld} -m elf_i386_fbsd"
6880	    ;;
6881	  x86_64-*linux*)
6882	    case `/usr/bin/file conftest.o` in
6883	      *x86-64*)
6884		LD="${LD-ld} -m elf32_x86_64"
6885		;;
6886	      *)
6887		LD="${LD-ld} -m elf_i386"
6888		;;
6889	    esac
6890	    ;;
6891	  powerpc64le-*linux*)
6892	    LD="${LD-ld} -m elf32lppclinux"
6893	    ;;
6894	  powerpc64-*linux*)
6895	    LD="${LD-ld} -m elf32ppclinux"
6896	    ;;
6897	  s390x-*linux*)
6898	    LD="${LD-ld} -m elf_s390"
6899	    ;;
6900	  sparc64-*linux*)
6901	    LD="${LD-ld} -m elf32_sparc"
6902	    ;;
6903	esac
6904	;;
6905      *64-bit*)
6906	case $host in
6907	  x86_64-*kfreebsd*-gnu)
6908	    LD="${LD-ld} -m elf_x86_64_fbsd"
6909	    ;;
6910	  x86_64-*linux*)
6911	    LD="${LD-ld} -m elf_x86_64"
6912	    ;;
6913	  powerpcle-*linux*)
6914	    LD="${LD-ld} -m elf64lppc"
6915	    ;;
6916	  powerpc-*linux*)
6917	    LD="${LD-ld} -m elf64ppc"
6918	    ;;
6919	  s390*-*linux*|s390*-*tpf*)
6920	    LD="${LD-ld} -m elf64_s390"
6921	    ;;
6922	  sparc*-*linux*)
6923	    LD="${LD-ld} -m elf64_sparc"
6924	    ;;
6925	esac
6926	;;
6927    esac
6928  fi
6929  rm -rf conftest*
6930  ;;
6931
6932*-*-sco3.2v5*)
6933  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6934  SAVE_CFLAGS=$CFLAGS
6935  CFLAGS="$CFLAGS -belf"
6936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6937$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6938if ${lt_cv_cc_needs_belf+:} false; then :
6939  $as_echo_n "(cached) " >&6
6940else
6941  ac_ext=c
6942ac_cpp='$CPP $CPPFLAGS'
6943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945ac_compiler_gnu=$ac_cv_c_compiler_gnu
6946
6947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949
6950int
6951main ()
6952{
6953
6954  ;
6955  return 0;
6956}
6957_ACEOF
6958if ac_fn_c_try_link "$LINENO"; then :
6959  lt_cv_cc_needs_belf=yes
6960else
6961  lt_cv_cc_needs_belf=no
6962fi
6963rm -f core conftest.err conftest.$ac_objext \
6964    conftest$ac_exeext conftest.$ac_ext
6965     ac_ext=c
6966ac_cpp='$CPP $CPPFLAGS'
6967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969ac_compiler_gnu=$ac_cv_c_compiler_gnu
6970
6971fi
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6973$as_echo "$lt_cv_cc_needs_belf" >&6; }
6974  if test yes != "$lt_cv_cc_needs_belf"; then
6975    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6976    CFLAGS=$SAVE_CFLAGS
6977  fi
6978  ;;
6979*-*solaris*)
6980  # Find out what ABI is being produced by ac_compile, and set linker
6981  # options accordingly.
6982  echo 'int i;' > conftest.$ac_ext
6983  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6984  (eval $ac_compile) 2>&5
6985  ac_status=$?
6986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987  test $ac_status = 0; }; then
6988    case `/usr/bin/file conftest.o` in
6989    *64-bit*)
6990      case $lt_cv_prog_gnu_ld in
6991      yes*)
6992        case $host in
6993        i?86-*-solaris*|x86_64-*-solaris*)
6994          LD="${LD-ld} -m elf_x86_64"
6995          ;;
6996        sparc*-*-solaris*)
6997          LD="${LD-ld} -m elf64_sparc"
6998          ;;
6999        esac
7000        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7001        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7002          LD=${LD-ld}_sol2
7003        fi
7004        ;;
7005      *)
7006	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7007	  LD="${LD-ld} -64"
7008	fi
7009	;;
7010      esac
7011      ;;
7012    esac
7013  fi
7014  rm -rf conftest*
7015  ;;
7016esac
7017
7018need_locks=$enable_libtool_lock
7019
7020if test -n "$ac_tool_prefix"; then
7021  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7022set dummy ${ac_tool_prefix}mt; ac_word=$2
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024$as_echo_n "checking for $ac_word... " >&6; }
7025if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  if test -n "$MANIFEST_TOOL"; then
7029  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  test -z "$as_dir" && as_dir=.
7036    for ac_exec_ext in '' $ac_executable_extensions; do
7037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040    break 2
7041  fi
7042done
7043  done
7044IFS=$as_save_IFS
7045
7046fi
7047fi
7048MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7049if test -n "$MANIFEST_TOOL"; then
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7051$as_echo "$MANIFEST_TOOL" >&6; }
7052else
7053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054$as_echo "no" >&6; }
7055fi
7056
7057
7058fi
7059if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7060  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7061  # Extract the first word of "mt", so it can be a program name with args.
7062set dummy mt; ac_word=$2
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064$as_echo_n "checking for $ac_word... " >&6; }
7065if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7066  $as_echo_n "(cached) " >&6
7067else
7068  if test -n "$ac_ct_MANIFEST_TOOL"; then
7069  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074  IFS=$as_save_IFS
7075  test -z "$as_dir" && as_dir=.
7076    for ac_exec_ext in '' $ac_executable_extensions; do
7077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080    break 2
7081  fi
7082done
7083  done
7084IFS=$as_save_IFS
7085
7086fi
7087fi
7088ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7089if test -n "$ac_ct_MANIFEST_TOOL"; then
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7091$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7092else
7093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094$as_echo "no" >&6; }
7095fi
7096
7097  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7098    MANIFEST_TOOL=":"
7099  else
7100    case $cross_compiling:$ac_tool_warned in
7101yes:)
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7104ac_tool_warned=yes ;;
7105esac
7106    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7107  fi
7108else
7109  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7110fi
7111
7112test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7114$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7115if ${lt_cv_path_mainfest_tool+:} false; then :
7116  $as_echo_n "(cached) " >&6
7117else
7118  lt_cv_path_mainfest_tool=no
7119  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7120  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7121  cat conftest.err >&5
7122  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7123    lt_cv_path_mainfest_tool=yes
7124  fi
7125  rm -f conftest*
7126fi
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7128$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7129if test yes != "$lt_cv_path_mainfest_tool"; then
7130  MANIFEST_TOOL=:
7131fi
7132
7133
7134
7135
7136
7137
7138  case $host_os in
7139    rhapsody* | darwin*)
7140    if test -n "$ac_tool_prefix"; then
7141  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7142set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144$as_echo_n "checking for $ac_word... " >&6; }
7145if ${ac_cv_prog_DSYMUTIL+:} false; then :
7146  $as_echo_n "(cached) " >&6
7147else
7148  if test -n "$DSYMUTIL"; then
7149  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7150else
7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154  IFS=$as_save_IFS
7155  test -z "$as_dir" && as_dir=.
7156    for ac_exec_ext in '' $ac_executable_extensions; do
7157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160    break 2
7161  fi
7162done
7163  done
7164IFS=$as_save_IFS
7165
7166fi
7167fi
7168DSYMUTIL=$ac_cv_prog_DSYMUTIL
7169if test -n "$DSYMUTIL"; then
7170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7171$as_echo "$DSYMUTIL" >&6; }
7172else
7173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174$as_echo "no" >&6; }
7175fi
7176
7177
7178fi
7179if test -z "$ac_cv_prog_DSYMUTIL"; then
7180  ac_ct_DSYMUTIL=$DSYMUTIL
7181  # Extract the first word of "dsymutil", so it can be a program name with args.
7182set dummy dsymutil; ac_word=$2
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184$as_echo_n "checking for $ac_word... " >&6; }
7185if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  if test -n "$ac_ct_DSYMUTIL"; then
7189  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7190else
7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194  IFS=$as_save_IFS
7195  test -z "$as_dir" && as_dir=.
7196    for ac_exec_ext in '' $ac_executable_extensions; do
7197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200    break 2
7201  fi
7202done
7203  done
7204IFS=$as_save_IFS
7205
7206fi
7207fi
7208ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7209if test -n "$ac_ct_DSYMUTIL"; then
7210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7211$as_echo "$ac_ct_DSYMUTIL" >&6; }
7212else
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214$as_echo "no" >&6; }
7215fi
7216
7217  if test "x$ac_ct_DSYMUTIL" = x; then
7218    DSYMUTIL=":"
7219  else
7220    case $cross_compiling:$ac_tool_warned in
7221yes:)
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224ac_tool_warned=yes ;;
7225esac
7226    DSYMUTIL=$ac_ct_DSYMUTIL
7227  fi
7228else
7229  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7230fi
7231
7232    if test -n "$ac_tool_prefix"; then
7233  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7234set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236$as_echo_n "checking for $ac_word... " >&6; }
7237if ${ac_cv_prog_NMEDIT+:} false; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  if test -n "$NMEDIT"; then
7241  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  test -z "$as_dir" && as_dir=.
7248    for ac_exec_ext in '' $ac_executable_extensions; do
7249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252    break 2
7253  fi
7254done
7255  done
7256IFS=$as_save_IFS
7257
7258fi
7259fi
7260NMEDIT=$ac_cv_prog_NMEDIT
7261if test -n "$NMEDIT"; then
7262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7263$as_echo "$NMEDIT" >&6; }
7264else
7265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266$as_echo "no" >&6; }
7267fi
7268
7269
7270fi
7271if test -z "$ac_cv_prog_NMEDIT"; then
7272  ac_ct_NMEDIT=$NMEDIT
7273  # Extract the first word of "nmedit", so it can be a program name with args.
7274set dummy nmedit; ac_word=$2
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276$as_echo_n "checking for $ac_word... " >&6; }
7277if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  if test -n "$ac_ct_NMEDIT"; then
7281  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7282else
7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286  IFS=$as_save_IFS
7287  test -z "$as_dir" && as_dir=.
7288    for ac_exec_ext in '' $ac_executable_extensions; do
7289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292    break 2
7293  fi
7294done
7295  done
7296IFS=$as_save_IFS
7297
7298fi
7299fi
7300ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7301if test -n "$ac_ct_NMEDIT"; then
7302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7303$as_echo "$ac_ct_NMEDIT" >&6; }
7304else
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306$as_echo "no" >&6; }
7307fi
7308
7309  if test "x$ac_ct_NMEDIT" = x; then
7310    NMEDIT=":"
7311  else
7312    case $cross_compiling:$ac_tool_warned in
7313yes:)
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316ac_tool_warned=yes ;;
7317esac
7318    NMEDIT=$ac_ct_NMEDIT
7319  fi
7320else
7321  NMEDIT="$ac_cv_prog_NMEDIT"
7322fi
7323
7324    if test -n "$ac_tool_prefix"; then
7325  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7326set dummy ${ac_tool_prefix}lipo; ac_word=$2
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328$as_echo_n "checking for $ac_word... " >&6; }
7329if ${ac_cv_prog_LIPO+:} false; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  if test -n "$LIPO"; then
7333  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7334else
7335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338  IFS=$as_save_IFS
7339  test -z "$as_dir" && as_dir=.
7340    for ac_exec_ext in '' $ac_executable_extensions; do
7341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344    break 2
7345  fi
7346done
7347  done
7348IFS=$as_save_IFS
7349
7350fi
7351fi
7352LIPO=$ac_cv_prog_LIPO
7353if test -n "$LIPO"; then
7354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7355$as_echo "$LIPO" >&6; }
7356else
7357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358$as_echo "no" >&6; }
7359fi
7360
7361
7362fi
7363if test -z "$ac_cv_prog_LIPO"; then
7364  ac_ct_LIPO=$LIPO
7365  # Extract the first word of "lipo", so it can be a program name with args.
7366set dummy lipo; ac_word=$2
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368$as_echo_n "checking for $ac_word... " >&6; }
7369if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7370  $as_echo_n "(cached) " >&6
7371else
7372  if test -n "$ac_ct_LIPO"; then
7373  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7374else
7375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376for as_dir in $PATH
7377do
7378  IFS=$as_save_IFS
7379  test -z "$as_dir" && as_dir=.
7380    for ac_exec_ext in '' $ac_executable_extensions; do
7381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382    ac_cv_prog_ac_ct_LIPO="lipo"
7383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384    break 2
7385  fi
7386done
7387  done
7388IFS=$as_save_IFS
7389
7390fi
7391fi
7392ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7393if test -n "$ac_ct_LIPO"; then
7394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7395$as_echo "$ac_ct_LIPO" >&6; }
7396else
7397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398$as_echo "no" >&6; }
7399fi
7400
7401  if test "x$ac_ct_LIPO" = x; then
7402    LIPO=":"
7403  else
7404    case $cross_compiling:$ac_tool_warned in
7405yes:)
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408ac_tool_warned=yes ;;
7409esac
7410    LIPO=$ac_ct_LIPO
7411  fi
7412else
7413  LIPO="$ac_cv_prog_LIPO"
7414fi
7415
7416    if test -n "$ac_tool_prefix"; then
7417  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7418set dummy ${ac_tool_prefix}otool; ac_word=$2
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420$as_echo_n "checking for $ac_word... " >&6; }
7421if ${ac_cv_prog_OTOOL+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  if test -n "$OTOOL"; then
7425  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7426else
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432    for ac_exec_ext in '' $ac_executable_extensions; do
7433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436    break 2
7437  fi
7438done
7439  done
7440IFS=$as_save_IFS
7441
7442fi
7443fi
7444OTOOL=$ac_cv_prog_OTOOL
7445if test -n "$OTOOL"; then
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7447$as_echo "$OTOOL" >&6; }
7448else
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451fi
7452
7453
7454fi
7455if test -z "$ac_cv_prog_OTOOL"; then
7456  ac_ct_OTOOL=$OTOOL
7457  # Extract the first word of "otool", so it can be a program name with args.
7458set dummy otool; ac_word=$2
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460$as_echo_n "checking for $ac_word... " >&6; }
7461if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7462  $as_echo_n "(cached) " >&6
7463else
7464  if test -n "$ac_ct_OTOOL"; then
7465  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7466else
7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470  IFS=$as_save_IFS
7471  test -z "$as_dir" && as_dir=.
7472    for ac_exec_ext in '' $ac_executable_extensions; do
7473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474    ac_cv_prog_ac_ct_OTOOL="otool"
7475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476    break 2
7477  fi
7478done
7479  done
7480IFS=$as_save_IFS
7481
7482fi
7483fi
7484ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7485if test -n "$ac_ct_OTOOL"; then
7486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7487$as_echo "$ac_ct_OTOOL" >&6; }
7488else
7489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490$as_echo "no" >&6; }
7491fi
7492
7493  if test "x$ac_ct_OTOOL" = x; then
7494    OTOOL=":"
7495  else
7496    case $cross_compiling:$ac_tool_warned in
7497yes:)
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500ac_tool_warned=yes ;;
7501esac
7502    OTOOL=$ac_ct_OTOOL
7503  fi
7504else
7505  OTOOL="$ac_cv_prog_OTOOL"
7506fi
7507
7508    if test -n "$ac_tool_prefix"; then
7509  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7510set dummy ${ac_tool_prefix}otool64; ac_word=$2
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512$as_echo_n "checking for $ac_word... " >&6; }
7513if ${ac_cv_prog_OTOOL64+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  if test -n "$OTOOL64"; then
7517  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7518else
7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522  IFS=$as_save_IFS
7523  test -z "$as_dir" && as_dir=.
7524    for ac_exec_ext in '' $ac_executable_extensions; do
7525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528    break 2
7529  fi
7530done
7531  done
7532IFS=$as_save_IFS
7533
7534fi
7535fi
7536OTOOL64=$ac_cv_prog_OTOOL64
7537if test -n "$OTOOL64"; then
7538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7539$as_echo "$OTOOL64" >&6; }
7540else
7541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542$as_echo "no" >&6; }
7543fi
7544
7545
7546fi
7547if test -z "$ac_cv_prog_OTOOL64"; then
7548  ac_ct_OTOOL64=$OTOOL64
7549  # Extract the first word of "otool64", so it can be a program name with args.
7550set dummy otool64; ac_word=$2
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552$as_echo_n "checking for $ac_word... " >&6; }
7553if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  if test -n "$ac_ct_OTOOL64"; then
7557  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562  IFS=$as_save_IFS
7563  test -z "$as_dir" && as_dir=.
7564    for ac_exec_ext in '' $ac_executable_extensions; do
7565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566    ac_cv_prog_ac_ct_OTOOL64="otool64"
7567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568    break 2
7569  fi
7570done
7571  done
7572IFS=$as_save_IFS
7573
7574fi
7575fi
7576ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7577if test -n "$ac_ct_OTOOL64"; then
7578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7579$as_echo "$ac_ct_OTOOL64" >&6; }
7580else
7581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582$as_echo "no" >&6; }
7583fi
7584
7585  if test "x$ac_ct_OTOOL64" = x; then
7586    OTOOL64=":"
7587  else
7588    case $cross_compiling:$ac_tool_warned in
7589yes:)
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592ac_tool_warned=yes ;;
7593esac
7594    OTOOL64=$ac_ct_OTOOL64
7595  fi
7596else
7597  OTOOL64="$ac_cv_prog_OTOOL64"
7598fi
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7627$as_echo_n "checking for -single_module linker flag... " >&6; }
7628if ${lt_cv_apple_cc_single_mod+:} false; then :
7629  $as_echo_n "(cached) " >&6
7630else
7631  lt_cv_apple_cc_single_mod=no
7632      if test -z "$LT_MULTI_MODULE"; then
7633	# By default we will add the -single_module flag. You can override
7634	# by either setting the environment variable LT_MULTI_MODULE
7635	# non-empty at configure time, or by adding -multi_module to the
7636	# link flags.
7637	rm -rf libconftest.dylib*
7638	echo "int foo(void){return 1;}" > conftest.c
7639	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7640-dynamiclib -Wl,-single_module conftest.c" >&5
7641	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7642	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7643        _lt_result=$?
7644	# If there is a non-empty error log, and "single_module"
7645	# appears in it, assume the flag caused a linker warning
7646        if test -s conftest.err && $GREP single_module conftest.err; then
7647	  cat conftest.err >&5
7648	# Otherwise, if the output was created with a 0 exit code from
7649	# the compiler, it worked.
7650	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7651	  lt_cv_apple_cc_single_mod=yes
7652	else
7653	  cat conftest.err >&5
7654	fi
7655	rm -rf libconftest.dylib*
7656	rm -f conftest.*
7657      fi
7658fi
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7660$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7661
7662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7663$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7664if ${lt_cv_ld_exported_symbols_list+:} false; then :
7665  $as_echo_n "(cached) " >&6
7666else
7667  lt_cv_ld_exported_symbols_list=no
7668      save_LDFLAGS=$LDFLAGS
7669      echo "_main" > conftest.sym
7670      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7671      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672/* end confdefs.h.  */
7673
7674int
7675main ()
7676{
7677
7678  ;
7679  return 0;
7680}
7681_ACEOF
7682if ac_fn_c_try_link "$LINENO"; then :
7683  lt_cv_ld_exported_symbols_list=yes
7684else
7685  lt_cv_ld_exported_symbols_list=no
7686fi
7687rm -f core conftest.err conftest.$ac_objext \
7688    conftest$ac_exeext conftest.$ac_ext
7689	LDFLAGS=$save_LDFLAGS
7690
7691fi
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7693$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7694
7695    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7696$as_echo_n "checking for -force_load linker flag... " >&6; }
7697if ${lt_cv_ld_force_load+:} false; then :
7698  $as_echo_n "(cached) " >&6
7699else
7700  lt_cv_ld_force_load=no
7701      cat > conftest.c << _LT_EOF
7702int forced_loaded() { return 2;}
7703_LT_EOF
7704      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7705      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7706      echo "$AR cru libconftest.a conftest.o" >&5
7707      $AR cru libconftest.a conftest.o 2>&5
7708      echo "$RANLIB libconftest.a" >&5
7709      $RANLIB libconftest.a 2>&5
7710      cat > conftest.c << _LT_EOF
7711int main() { return 0;}
7712_LT_EOF
7713      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7714      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7715      _lt_result=$?
7716      if test -s conftest.err && $GREP force_load conftest.err; then
7717	cat conftest.err >&5
7718      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7719	lt_cv_ld_force_load=yes
7720      else
7721	cat conftest.err >&5
7722      fi
7723        rm -f conftest.err libconftest.a conftest conftest.c
7724        rm -rf conftest.dSYM
7725
7726fi
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7728$as_echo "$lt_cv_ld_force_load" >&6; }
7729    case $host_os in
7730    rhapsody* | darwin1.[012])
7731      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7732    darwin1.*)
7733      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7734    darwin*) # darwin 5.x on
7735      # if running on 10.5 or later, the deployment target defaults
7736      # to the OS version, if on x86, and 10.4, the deployment
7737      # target defaults to 10.4. Don't you love it?
7738      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7739	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7740	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7741	10.[012][,.]*)
7742	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7743	10.*)
7744	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7745      esac
7746    ;;
7747  esac
7748    if test yes = "$lt_cv_apple_cc_single_mod"; then
7749      _lt_dar_single_mod='$single_module'
7750    fi
7751    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7752      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7753    else
7754      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7755    fi
7756    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7757      _lt_dsymutil='~$DSYMUTIL $lib || :'
7758    else
7759      _lt_dsymutil=
7760    fi
7761    ;;
7762  esac
7763
7764# func_munge_path_list VARIABLE PATH
7765# -----------------------------------
7766# VARIABLE is name of variable containing _space_ separated list of
7767# directories to be munged by the contents of PATH, which is string
7768# having a format:
7769# "DIR[:DIR]:"
7770#       string "DIR[ DIR]" will be prepended to VARIABLE
7771# ":DIR[:DIR]"
7772#       string "DIR[ DIR]" will be appended to VARIABLE
7773# "DIRP[:DIRP]::[DIRA:]DIRA"
7774#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7775#       "DIRA[ DIRA]" will be appended to VARIABLE
7776# "DIR[:DIR]"
7777#       VARIABLE will be replaced by "DIR[ DIR]"
7778func_munge_path_list ()
7779{
7780    case x$2 in
7781    x)
7782        ;;
7783    *:)
7784        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7785        ;;
7786    x:*)
7787        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7788        ;;
7789    *::*)
7790        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7791        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7792        ;;
7793    *)
7794        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7795        ;;
7796    esac
7797}
7798
7799for ac_header in dlfcn.h
7800do :
7801  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7802"
7803if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7804  cat >>confdefs.h <<_ACEOF
7805#define HAVE_DLFCN_H 1
7806_ACEOF
7807
7808fi
7809
7810done
7811
7812
7813
7814
7815
7816# Set options
7817
7818
7819
7820        enable_dlopen=no
7821
7822
7823  enable_win32_dll=no
7824
7825
7826            # Check whether --enable-shared was given.
7827if test "${enable_shared+set}" = set; then :
7828  enableval=$enable_shared; p=${PACKAGE-default}
7829    case $enableval in
7830    yes) enable_shared=yes ;;
7831    no) enable_shared=no ;;
7832    *)
7833      enable_shared=no
7834      # Look at the argument we got.  We use all the common list separators.
7835      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7836      for pkg in $enableval; do
7837	IFS=$lt_save_ifs
7838	if test "X$pkg" = "X$p"; then
7839	  enable_shared=yes
7840	fi
7841      done
7842      IFS=$lt_save_ifs
7843      ;;
7844    esac
7845else
7846  enable_shared=yes
7847fi
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857  # Check whether --enable-static was given.
7858if test "${enable_static+set}" = set; then :
7859  enableval=$enable_static; p=${PACKAGE-default}
7860    case $enableval in
7861    yes) enable_static=yes ;;
7862    no) enable_static=no ;;
7863    *)
7864     enable_static=no
7865      # Look at the argument we got.  We use all the common list separators.
7866      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7867      for pkg in $enableval; do
7868	IFS=$lt_save_ifs
7869	if test "X$pkg" = "X$p"; then
7870	  enable_static=yes
7871	fi
7872      done
7873      IFS=$lt_save_ifs
7874      ;;
7875    esac
7876else
7877  enable_static=yes
7878fi
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889# Check whether --with-pic was given.
7890if test "${with_pic+set}" = set; then :
7891  withval=$with_pic; lt_p=${PACKAGE-default}
7892    case $withval in
7893    yes|no) pic_mode=$withval ;;
7894    *)
7895      pic_mode=default
7896      # Look at the argument we got.  We use all the common list separators.
7897      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7898      for lt_pkg in $withval; do
7899	IFS=$lt_save_ifs
7900	if test "X$lt_pkg" = "X$lt_p"; then
7901	  pic_mode=yes
7902	fi
7903      done
7904      IFS=$lt_save_ifs
7905      ;;
7906    esac
7907else
7908  pic_mode=default
7909fi
7910
7911
7912
7913
7914
7915
7916
7917
7918  # Check whether --enable-fast-install was given.
7919if test "${enable_fast_install+set}" = set; then :
7920  enableval=$enable_fast_install; p=${PACKAGE-default}
7921    case $enableval in
7922    yes) enable_fast_install=yes ;;
7923    no) enable_fast_install=no ;;
7924    *)
7925      enable_fast_install=no
7926      # Look at the argument we got.  We use all the common list separators.
7927      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7928      for pkg in $enableval; do
7929	IFS=$lt_save_ifs
7930	if test "X$pkg" = "X$p"; then
7931	  enable_fast_install=yes
7932	fi
7933      done
7934      IFS=$lt_save_ifs
7935      ;;
7936    esac
7937else
7938  enable_fast_install=yes
7939fi
7940
7941
7942
7943
7944
7945
7946
7947
7948  shared_archive_member_spec=
7949case $host,$enable_shared in
7950power*-*-aix[5-9]*,yes)
7951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7952$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7953
7954# Check whether --with-aix-soname was given.
7955if test "${with_aix_soname+set}" = set; then :
7956  withval=$with_aix_soname; case $withval in
7957    aix|svr4|both)
7958      ;;
7959    *)
7960      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7961      ;;
7962    esac
7963    lt_cv_with_aix_soname=$with_aix_soname
7964else
7965  if ${lt_cv_with_aix_soname+:} false; then :
7966  $as_echo_n "(cached) " >&6
7967else
7968  lt_cv_with_aix_soname=aix
7969fi
7970
7971    with_aix_soname=$lt_cv_with_aix_soname
7972fi
7973
7974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7975$as_echo "$with_aix_soname" >&6; }
7976  if test aix != "$with_aix_soname"; then
7977    # For the AIX way of multilib, we name the shared archive member
7978    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7979    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7980    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7981    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7982    if test 64 = "${OBJECT_MODE-32}"; then
7983      shared_archive_member_spec=shr_64
7984    else
7985      shared_archive_member_spec=shr
7986    fi
7987  fi
7988  ;;
7989*)
7990  with_aix_soname=aix
7991  ;;
7992esac
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003# This can be used to rebuild libtool when needed
8004LIBTOOL_DEPS=$ltmain
8005
8006# Always use our own libtool.
8007LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038test -z "$LN_S" && LN_S="ln -s"
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053if test -n "${ZSH_VERSION+set}"; then
8054   setopt NO_GLOB_SUBST
8055fi
8056
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8058$as_echo_n "checking for objdir... " >&6; }
8059if ${lt_cv_objdir+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  rm -f .libs 2>/dev/null
8063mkdir .libs 2>/dev/null
8064if test -d .libs; then
8065  lt_cv_objdir=.libs
8066else
8067  # MS-DOS does not allow filenames that begin with a dot.
8068  lt_cv_objdir=_libs
8069fi
8070rmdir .libs 2>/dev/null
8071fi
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8073$as_echo "$lt_cv_objdir" >&6; }
8074objdir=$lt_cv_objdir
8075
8076
8077
8078
8079
8080cat >>confdefs.h <<_ACEOF
8081#define LT_OBJDIR "$lt_cv_objdir/"
8082_ACEOF
8083
8084
8085
8086
8087case $host_os in
8088aix3*)
8089  # AIX sometimes has problems with the GCC collect2 program.  For some
8090  # reason, if we set the COLLECT_NAMES environment variable, the problems
8091  # vanish in a puff of smoke.
8092  if test set != "${COLLECT_NAMES+set}"; then
8093    COLLECT_NAMES=
8094    export COLLECT_NAMES
8095  fi
8096  ;;
8097esac
8098
8099# Global variables:
8100ofile=libtool
8101can_build_shared=yes
8102
8103# All known linkers require a '.a' archive for static linking (except MSVC,
8104# which needs '.lib').
8105libext=a
8106
8107with_gnu_ld=$lt_cv_prog_gnu_ld
8108
8109old_CC=$CC
8110old_CFLAGS=$CFLAGS
8111
8112# Set sane defaults for various variables
8113test -z "$CC" && CC=cc
8114test -z "$LTCC" && LTCC=$CC
8115test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8116test -z "$LD" && LD=ld
8117test -z "$ac_objext" && ac_objext=o
8118
8119func_cc_basename $compiler
8120cc_basename=$func_cc_basename_result
8121
8122
8123# Only perform the check for file, if the check method requires it
8124test -z "$MAGIC_CMD" && MAGIC_CMD=file
8125case $deplibs_check_method in
8126file_magic*)
8127  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8128    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8129$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8130if ${lt_cv_path_MAGIC_CMD+:} false; then :
8131  $as_echo_n "(cached) " >&6
8132else
8133  case $MAGIC_CMD in
8134[\\/*] |  ?:[\\/]*)
8135  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8136  ;;
8137*)
8138  lt_save_MAGIC_CMD=$MAGIC_CMD
8139  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8140  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8141  for ac_dir in $ac_dummy; do
8142    IFS=$lt_save_ifs
8143    test -z "$ac_dir" && ac_dir=.
8144    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8145      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8146      if test -n "$file_magic_test_file"; then
8147	case $deplibs_check_method in
8148	"file_magic "*)
8149	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8150	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8151	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8152	    $EGREP "$file_magic_regex" > /dev/null; then
8153	    :
8154	  else
8155	    cat <<_LT_EOF 1>&2
8156
8157*** Warning: the command libtool uses to detect shared libraries,
8158*** $file_magic_cmd, produces output that libtool cannot recognize.
8159*** The result is that libtool may fail to recognize shared libraries
8160*** as such.  This will affect the creation of libtool libraries that
8161*** depend on shared libraries, but programs linked with such libtool
8162*** libraries will work regardless of this problem.  Nevertheless, you
8163*** may want to report the problem to your system manager and/or to
8164*** bug-libtool@gnu.org
8165
8166_LT_EOF
8167	  fi ;;
8168	esac
8169      fi
8170      break
8171    fi
8172  done
8173  IFS=$lt_save_ifs
8174  MAGIC_CMD=$lt_save_MAGIC_CMD
8175  ;;
8176esac
8177fi
8178
8179MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8180if test -n "$MAGIC_CMD"; then
8181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8182$as_echo "$MAGIC_CMD" >&6; }
8183else
8184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185$as_echo "no" >&6; }
8186fi
8187
8188
8189
8190
8191
8192if test -z "$lt_cv_path_MAGIC_CMD"; then
8193  if test -n "$ac_tool_prefix"; then
8194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8195$as_echo_n "checking for file... " >&6; }
8196if ${lt_cv_path_MAGIC_CMD+:} false; then :
8197  $as_echo_n "(cached) " >&6
8198else
8199  case $MAGIC_CMD in
8200[\\/*] |  ?:[\\/]*)
8201  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8202  ;;
8203*)
8204  lt_save_MAGIC_CMD=$MAGIC_CMD
8205  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8206  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8207  for ac_dir in $ac_dummy; do
8208    IFS=$lt_save_ifs
8209    test -z "$ac_dir" && ac_dir=.
8210    if test -f "$ac_dir/file"; then
8211      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8212      if test -n "$file_magic_test_file"; then
8213	case $deplibs_check_method in
8214	"file_magic "*)
8215	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8216	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8217	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8218	    $EGREP "$file_magic_regex" > /dev/null; then
8219	    :
8220	  else
8221	    cat <<_LT_EOF 1>&2
8222
8223*** Warning: the command libtool uses to detect shared libraries,
8224*** $file_magic_cmd, produces output that libtool cannot recognize.
8225*** The result is that libtool may fail to recognize shared libraries
8226*** as such.  This will affect the creation of libtool libraries that
8227*** depend on shared libraries, but programs linked with such libtool
8228*** libraries will work regardless of this problem.  Nevertheless, you
8229*** may want to report the problem to your system manager and/or to
8230*** bug-libtool@gnu.org
8231
8232_LT_EOF
8233	  fi ;;
8234	esac
8235      fi
8236      break
8237    fi
8238  done
8239  IFS=$lt_save_ifs
8240  MAGIC_CMD=$lt_save_MAGIC_CMD
8241  ;;
8242esac
8243fi
8244
8245MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8246if test -n "$MAGIC_CMD"; then
8247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8248$as_echo "$MAGIC_CMD" >&6; }
8249else
8250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251$as_echo "no" >&6; }
8252fi
8253
8254
8255  else
8256    MAGIC_CMD=:
8257  fi
8258fi
8259
8260  fi
8261  ;;
8262esac
8263
8264# Use C for the default configuration in the libtool script
8265
8266lt_save_CC=$CC
8267ac_ext=c
8268ac_cpp='$CPP $CPPFLAGS'
8269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8271ac_compiler_gnu=$ac_cv_c_compiler_gnu
8272
8273
8274# Source file extension for C test sources.
8275ac_ext=c
8276
8277# Object file extension for compiled C test sources.
8278objext=o
8279objext=$objext
8280
8281# Code to be used in simple compile tests
8282lt_simple_compile_test_code="int some_variable = 0;"
8283
8284# Code to be used in simple link tests
8285lt_simple_link_test_code='int main(){return(0);}'
8286
8287
8288
8289
8290
8291
8292
8293# If no C compiler was specified, use CC.
8294LTCC=${LTCC-"$CC"}
8295
8296# If no C compiler flags were specified, use CFLAGS.
8297LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8298
8299# Allow CC to be a program name with arguments.
8300compiler=$CC
8301
8302# Save the default compiler, since it gets overwritten when the other
8303# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8304compiler_DEFAULT=$CC
8305
8306# save warnings/boilerplate of simple test code
8307ac_outfile=conftest.$ac_objext
8308echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8309eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8310_lt_compiler_boilerplate=`cat conftest.err`
8311$RM conftest*
8312
8313ac_outfile=conftest.$ac_objext
8314echo "$lt_simple_link_test_code" >conftest.$ac_ext
8315eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8316_lt_linker_boilerplate=`cat conftest.err`
8317$RM -r conftest*
8318
8319
8320if test -n "$compiler"; then
8321
8322lt_prog_compiler_no_builtin_flag=
8323
8324if test yes = "$GCC"; then
8325  case $cc_basename in
8326  nvcc*)
8327    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8328  *)
8329    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8330  esac
8331
8332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8333$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8334if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8335  $as_echo_n "(cached) " >&6
8336else
8337  lt_cv_prog_compiler_rtti_exceptions=no
8338   ac_outfile=conftest.$ac_objext
8339   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8340   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8341   # Insert the option either (1) after the last *FLAGS variable, or
8342   # (2) before a word containing "conftest.", or (3) at the end.
8343   # Note that $ac_compile itself does not contain backslashes and begins
8344   # with a dollar sign (not a hyphen), so the echo should work correctly.
8345   # The option is referenced via a variable to avoid confusing sed.
8346   lt_compile=`echo "$ac_compile" | $SED \
8347   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8348   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8349   -e 's:$: $lt_compiler_flag:'`
8350   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8351   (eval "$lt_compile" 2>conftest.err)
8352   ac_status=$?
8353   cat conftest.err >&5
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   if (exit $ac_status) && test -s "$ac_outfile"; then
8356     # The compiler can only warn and ignore the option if not recognized
8357     # So say no if there are warnings other than the usual output.
8358     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8359     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8360     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8361       lt_cv_prog_compiler_rtti_exceptions=yes
8362     fi
8363   fi
8364   $RM conftest*
8365
8366fi
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8368$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8369
8370if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8371    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8372else
8373    :
8374fi
8375
8376fi
8377
8378
8379
8380
8381
8382
8383  lt_prog_compiler_wl=
8384lt_prog_compiler_pic=
8385lt_prog_compiler_static=
8386
8387
8388  if test yes = "$GCC"; then
8389    lt_prog_compiler_wl='-Wl,'
8390    lt_prog_compiler_static='-static'
8391
8392    case $host_os in
8393      aix*)
8394      # All AIX code is PIC.
8395      if test ia64 = "$host_cpu"; then
8396	# AIX 5 now supports IA64 processor
8397	lt_prog_compiler_static='-Bstatic'
8398      fi
8399      lt_prog_compiler_pic='-fPIC'
8400      ;;
8401
8402    amigaos*)
8403      case $host_cpu in
8404      powerpc)
8405            # see comment about AmigaOS4 .so support
8406            lt_prog_compiler_pic='-fPIC'
8407        ;;
8408      m68k)
8409            # FIXME: we need at least 68020 code to build shared libraries, but
8410            # adding the '-m68020' flag to GCC prevents building anything better,
8411            # like '-m68040'.
8412            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8413        ;;
8414      esac
8415      ;;
8416
8417    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8418      # PIC is the default for these OSes.
8419      ;;
8420
8421    mingw* | cygwin* | pw32* | os2* | cegcc*)
8422      # This hack is so that the source file can tell whether it is being
8423      # built for inclusion in a dll (and should export symbols for example).
8424      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8425      # (--disable-auto-import) libraries
8426      lt_prog_compiler_pic='-DDLL_EXPORT'
8427      case $host_os in
8428      os2*)
8429	lt_prog_compiler_static='$wl-static'
8430	;;
8431      esac
8432      ;;
8433
8434    darwin* | rhapsody*)
8435      # PIC is the default on this platform
8436      # Common symbols not allowed in MH_DYLIB files
8437      lt_prog_compiler_pic='-fno-common'
8438      ;;
8439
8440    haiku*)
8441      # PIC is the default for Haiku.
8442      # The "-static" flag exists, but is broken.
8443      lt_prog_compiler_static=
8444      ;;
8445
8446    hpux*)
8447      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8448      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8449      # sets the default TLS model and affects inlining.
8450      case $host_cpu in
8451      hppa*64*)
8452	# +Z the default
8453	;;
8454      *)
8455	lt_prog_compiler_pic='-fPIC'
8456	;;
8457      esac
8458      ;;
8459
8460    interix[3-9]*)
8461      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8462      # Instead, we relocate shared libraries at runtime.
8463      ;;
8464
8465    msdosdjgpp*)
8466      # Just because we use GCC doesn't mean we suddenly get shared libraries
8467      # on systems that don't support them.
8468      lt_prog_compiler_can_build_shared=no
8469      enable_shared=no
8470      ;;
8471
8472    *nto* | *qnx*)
8473      # QNX uses GNU C++, but need to define -shared option too, otherwise
8474      # it will coredump.
8475      lt_prog_compiler_pic='-fPIC -shared'
8476      ;;
8477
8478    sysv4*MP*)
8479      if test -d /usr/nec; then
8480	lt_prog_compiler_pic=-Kconform_pic
8481      fi
8482      ;;
8483
8484    *)
8485      lt_prog_compiler_pic='-fPIC'
8486      ;;
8487    esac
8488
8489    case $cc_basename in
8490    nvcc*) # Cuda Compiler Driver 2.2
8491      lt_prog_compiler_wl='-Xlinker '
8492      if test -n "$lt_prog_compiler_pic"; then
8493        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8494      fi
8495      ;;
8496    esac
8497  else
8498    # PORTME Check for flag to pass linker flags through the system compiler.
8499    case $host_os in
8500    aix*)
8501      lt_prog_compiler_wl='-Wl,'
8502      if test ia64 = "$host_cpu"; then
8503	# AIX 5 now supports IA64 processor
8504	lt_prog_compiler_static='-Bstatic'
8505      else
8506	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8507      fi
8508      ;;
8509
8510    darwin* | rhapsody*)
8511      # PIC is the default on this platform
8512      # Common symbols not allowed in MH_DYLIB files
8513      lt_prog_compiler_pic='-fno-common'
8514      case $cc_basename in
8515      nagfor*)
8516        # NAG Fortran compiler
8517        lt_prog_compiler_wl='-Wl,-Wl,,'
8518        lt_prog_compiler_pic='-PIC'
8519        lt_prog_compiler_static='-Bstatic'
8520        ;;
8521      esac
8522      ;;
8523
8524    mingw* | cygwin* | pw32* | os2* | cegcc*)
8525      # This hack is so that the source file can tell whether it is being
8526      # built for inclusion in a dll (and should export symbols for example).
8527      lt_prog_compiler_pic='-DDLL_EXPORT'
8528      case $host_os in
8529      os2*)
8530	lt_prog_compiler_static='$wl-static'
8531	;;
8532      esac
8533      ;;
8534
8535    hpux9* | hpux10* | hpux11*)
8536      lt_prog_compiler_wl='-Wl,'
8537      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8538      # not for PA HP-UX.
8539      case $host_cpu in
8540      hppa*64*|ia64*)
8541	# +Z the default
8542	;;
8543      *)
8544	lt_prog_compiler_pic='+Z'
8545	;;
8546      esac
8547      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8548      lt_prog_compiler_static='$wl-a ${wl}archive'
8549      ;;
8550
8551    irix5* | irix6* | nonstopux*)
8552      lt_prog_compiler_wl='-Wl,'
8553      # PIC (with -KPIC) is the default.
8554      lt_prog_compiler_static='-non_shared'
8555      ;;
8556
8557    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8558      case $cc_basename in
8559      # old Intel for x86_64, which still supported -KPIC.
8560      ecc*)
8561	lt_prog_compiler_wl='-Wl,'
8562	lt_prog_compiler_pic='-KPIC'
8563	lt_prog_compiler_static='-static'
8564        ;;
8565      # icc used to be incompatible with GCC.
8566      # ICC 10 doesn't accept -KPIC any more.
8567      icc* | ifort*)
8568	lt_prog_compiler_wl='-Wl,'
8569	lt_prog_compiler_pic='-fPIC'
8570	lt_prog_compiler_static='-static'
8571        ;;
8572      # Lahey Fortran 8.1.
8573      lf95*)
8574	lt_prog_compiler_wl='-Wl,'
8575	lt_prog_compiler_pic='--shared'
8576	lt_prog_compiler_static='--static'
8577	;;
8578      nagfor*)
8579	# NAG Fortran compiler
8580	lt_prog_compiler_wl='-Wl,-Wl,,'
8581	lt_prog_compiler_pic='-PIC'
8582	lt_prog_compiler_static='-Bstatic'
8583	;;
8584      tcc*)
8585	# Fabrice Bellard et al's Tiny C Compiler
8586	lt_prog_compiler_wl='-Wl,'
8587	lt_prog_compiler_pic='-fPIC'
8588	lt_prog_compiler_static='-static'
8589	;;
8590      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8591        # Portland Group compilers (*not* the Pentium gcc compiler,
8592	# which looks to be a dead project)
8593	lt_prog_compiler_wl='-Wl,'
8594	lt_prog_compiler_pic='-fpic'
8595	lt_prog_compiler_static='-Bstatic'
8596        ;;
8597      ccc*)
8598        lt_prog_compiler_wl='-Wl,'
8599        # All Alpha code is PIC.
8600        lt_prog_compiler_static='-non_shared'
8601        ;;
8602      xl* | bgxl* | bgf* | mpixl*)
8603	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8604	lt_prog_compiler_wl='-Wl,'
8605	lt_prog_compiler_pic='-qpic'
8606	lt_prog_compiler_static='-qstaticlink'
8607	;;
8608      *)
8609	case `$CC -V 2>&1 | sed 5q` in
8610	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8611	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8612	  lt_prog_compiler_pic='-KPIC'
8613	  lt_prog_compiler_static='-Bstatic'
8614	  lt_prog_compiler_wl=''
8615	  ;;
8616	*Sun\ F* | *Sun*Fortran*)
8617	  lt_prog_compiler_pic='-KPIC'
8618	  lt_prog_compiler_static='-Bstatic'
8619	  lt_prog_compiler_wl='-Qoption ld '
8620	  ;;
8621	*Sun\ C*)
8622	  # Sun C 5.9
8623	  lt_prog_compiler_pic='-KPIC'
8624	  lt_prog_compiler_static='-Bstatic'
8625	  lt_prog_compiler_wl='-Wl,'
8626	  ;;
8627        *Intel*\ [CF]*Compiler*)
8628	  lt_prog_compiler_wl='-Wl,'
8629	  lt_prog_compiler_pic='-fPIC'
8630	  lt_prog_compiler_static='-static'
8631	  ;;
8632	*Portland\ Group*)
8633	  lt_prog_compiler_wl='-Wl,'
8634	  lt_prog_compiler_pic='-fpic'
8635	  lt_prog_compiler_static='-Bstatic'
8636	  ;;
8637	esac
8638	;;
8639      esac
8640      ;;
8641
8642    newsos6)
8643      lt_prog_compiler_pic='-KPIC'
8644      lt_prog_compiler_static='-Bstatic'
8645      ;;
8646
8647    *nto* | *qnx*)
8648      # QNX uses GNU C++, but need to define -shared option too, otherwise
8649      # it will coredump.
8650      lt_prog_compiler_pic='-fPIC -shared'
8651      ;;
8652
8653    osf3* | osf4* | osf5*)
8654      lt_prog_compiler_wl='-Wl,'
8655      # All OSF/1 code is PIC.
8656      lt_prog_compiler_static='-non_shared'
8657      ;;
8658
8659    rdos*)
8660      lt_prog_compiler_static='-non_shared'
8661      ;;
8662
8663    solaris*)
8664      lt_prog_compiler_pic='-KPIC'
8665      lt_prog_compiler_static='-Bstatic'
8666      case $cc_basename in
8667      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8668	lt_prog_compiler_wl='-Qoption ld ';;
8669      *)
8670	lt_prog_compiler_wl='-Wl,';;
8671      esac
8672      ;;
8673
8674    sunos4*)
8675      lt_prog_compiler_wl='-Qoption ld '
8676      lt_prog_compiler_pic='-PIC'
8677      lt_prog_compiler_static='-Bstatic'
8678      ;;
8679
8680    sysv4 | sysv4.2uw2* | sysv4.3*)
8681      lt_prog_compiler_wl='-Wl,'
8682      lt_prog_compiler_pic='-KPIC'
8683      lt_prog_compiler_static='-Bstatic'
8684      ;;
8685
8686    sysv4*MP*)
8687      if test -d /usr/nec; then
8688	lt_prog_compiler_pic='-Kconform_pic'
8689	lt_prog_compiler_static='-Bstatic'
8690      fi
8691      ;;
8692
8693    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8694      lt_prog_compiler_wl='-Wl,'
8695      lt_prog_compiler_pic='-KPIC'
8696      lt_prog_compiler_static='-Bstatic'
8697      ;;
8698
8699    unicos*)
8700      lt_prog_compiler_wl='-Wl,'
8701      lt_prog_compiler_can_build_shared=no
8702      ;;
8703
8704    uts4*)
8705      lt_prog_compiler_pic='-pic'
8706      lt_prog_compiler_static='-Bstatic'
8707      ;;
8708
8709    *)
8710      lt_prog_compiler_can_build_shared=no
8711      ;;
8712    esac
8713  fi
8714
8715case $host_os in
8716  # For platforms that do not support PIC, -DPIC is meaningless:
8717  *djgpp*)
8718    lt_prog_compiler_pic=
8719    ;;
8720  *)
8721    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8722    ;;
8723esac
8724
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8726$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8727if ${lt_cv_prog_compiler_pic+:} false; then :
8728  $as_echo_n "(cached) " >&6
8729else
8730  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8731fi
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8733$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8734lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8735
8736#
8737# Check to make sure the PIC flag actually works.
8738#
8739if test -n "$lt_prog_compiler_pic"; then
8740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8741$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8742if ${lt_cv_prog_compiler_pic_works+:} false; then :
8743  $as_echo_n "(cached) " >&6
8744else
8745  lt_cv_prog_compiler_pic_works=no
8746   ac_outfile=conftest.$ac_objext
8747   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8748   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8749   # Insert the option either (1) after the last *FLAGS variable, or
8750   # (2) before a word containing "conftest.", or (3) at the end.
8751   # Note that $ac_compile itself does not contain backslashes and begins
8752   # with a dollar sign (not a hyphen), so the echo should work correctly.
8753   # The option is referenced via a variable to avoid confusing sed.
8754   lt_compile=`echo "$ac_compile" | $SED \
8755   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8756   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8757   -e 's:$: $lt_compiler_flag:'`
8758   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8759   (eval "$lt_compile" 2>conftest.err)
8760   ac_status=$?
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   if (exit $ac_status) && test -s "$ac_outfile"; then
8764     # The compiler can only warn and ignore the option if not recognized
8765     # So say no if there are warnings other than the usual output.
8766     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8767     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8768     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8769       lt_cv_prog_compiler_pic_works=yes
8770     fi
8771   fi
8772   $RM conftest*
8773
8774fi
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8776$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8777
8778if test yes = "$lt_cv_prog_compiler_pic_works"; then
8779    case $lt_prog_compiler_pic in
8780     "" | " "*) ;;
8781     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8782     esac
8783else
8784    lt_prog_compiler_pic=
8785     lt_prog_compiler_can_build_shared=no
8786fi
8787
8788fi
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800#
8801# Check to make sure the static flag actually works.
8802#
8803wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8805$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8806if ${lt_cv_prog_compiler_static_works+:} false; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  lt_cv_prog_compiler_static_works=no
8810   save_LDFLAGS=$LDFLAGS
8811   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8812   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8813   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8814     # The linker can only warn and ignore the option if not recognized
8815     # So say no if there are warnings
8816     if test -s conftest.err; then
8817       # Append any errors to the config.log.
8818       cat conftest.err 1>&5
8819       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8820       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8821       if diff conftest.exp conftest.er2 >/dev/null; then
8822         lt_cv_prog_compiler_static_works=yes
8823       fi
8824     else
8825       lt_cv_prog_compiler_static_works=yes
8826     fi
8827   fi
8828   $RM -r conftest*
8829   LDFLAGS=$save_LDFLAGS
8830
8831fi
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8833$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8834
8835if test yes = "$lt_cv_prog_compiler_static_works"; then
8836    :
8837else
8838    lt_prog_compiler_static=
8839fi
8840
8841
8842
8843
8844
8845
8846
8847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8848$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8849if ${lt_cv_prog_compiler_c_o+:} false; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  lt_cv_prog_compiler_c_o=no
8853   $RM -r conftest 2>/dev/null
8854   mkdir conftest
8855   cd conftest
8856   mkdir out
8857   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8858
8859   lt_compiler_flag="-o out/conftest2.$ac_objext"
8860   # Insert the option either (1) after the last *FLAGS variable, or
8861   # (2) before a word containing "conftest.", or (3) at the end.
8862   # Note that $ac_compile itself does not contain backslashes and begins
8863   # with a dollar sign (not a hyphen), so the echo should work correctly.
8864   lt_compile=`echo "$ac_compile" | $SED \
8865   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8866   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8867   -e 's:$: $lt_compiler_flag:'`
8868   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8869   (eval "$lt_compile" 2>out/conftest.err)
8870   ac_status=$?
8871   cat out/conftest.err >&5
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8874   then
8875     # The compiler can only warn and ignore the option if not recognized
8876     # So say no if there are warnings
8877     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8878     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8879     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8880       lt_cv_prog_compiler_c_o=yes
8881     fi
8882   fi
8883   chmod u+w . 2>&5
8884   $RM conftest*
8885   # SGI C++ compiler will create directory out/ii_files/ for
8886   # template instantiation
8887   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8888   $RM out/* && rmdir out
8889   cd ..
8890   $RM -r conftest
8891   $RM conftest*
8892
8893fi
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8895$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8896
8897
8898
8899
8900
8901
8902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8903$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8904if ${lt_cv_prog_compiler_c_o+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  lt_cv_prog_compiler_c_o=no
8908   $RM -r conftest 2>/dev/null
8909   mkdir conftest
8910   cd conftest
8911   mkdir out
8912   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8913
8914   lt_compiler_flag="-o out/conftest2.$ac_objext"
8915   # Insert the option either (1) after the last *FLAGS variable, or
8916   # (2) before a word containing "conftest.", or (3) at the end.
8917   # Note that $ac_compile itself does not contain backslashes and begins
8918   # with a dollar sign (not a hyphen), so the echo should work correctly.
8919   lt_compile=`echo "$ac_compile" | $SED \
8920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8922   -e 's:$: $lt_compiler_flag:'`
8923   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8924   (eval "$lt_compile" 2>out/conftest.err)
8925   ac_status=$?
8926   cat out/conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8929   then
8930     # The compiler can only warn and ignore the option if not recognized
8931     # So say no if there are warnings
8932     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8933     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8934     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8935       lt_cv_prog_compiler_c_o=yes
8936     fi
8937   fi
8938   chmod u+w . 2>&5
8939   $RM conftest*
8940   # SGI C++ compiler will create directory out/ii_files/ for
8941   # template instantiation
8942   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8943   $RM out/* && rmdir out
8944   cd ..
8945   $RM -r conftest
8946   $RM conftest*
8947
8948fi
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8950$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8951
8952
8953
8954
8955hard_links=nottested
8956if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8957  # do not overwrite the value of need_locks provided by the user
8958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8959$as_echo_n "checking if we can lock with hard links... " >&6; }
8960  hard_links=yes
8961  $RM conftest*
8962  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8963  touch conftest.a
8964  ln conftest.a conftest.b 2>&5 || hard_links=no
8965  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8967$as_echo "$hard_links" >&6; }
8968  if test no = "$hard_links"; then
8969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8970$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8971    need_locks=warn
8972  fi
8973else
8974  need_locks=no
8975fi
8976
8977
8978
8979
8980
8981
8982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8983$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8984
8985  runpath_var=
8986  allow_undefined_flag=
8987  always_export_symbols=no
8988  archive_cmds=
8989  archive_expsym_cmds=
8990  compiler_needs_object=no
8991  enable_shared_with_static_runtimes=no
8992  export_dynamic_flag_spec=
8993  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8994  hardcode_automatic=no
8995  hardcode_direct=no
8996  hardcode_direct_absolute=no
8997  hardcode_libdir_flag_spec=
8998  hardcode_libdir_separator=
8999  hardcode_minus_L=no
9000  hardcode_shlibpath_var=unsupported
9001  inherit_rpath=no
9002  link_all_deplibs=unknown
9003  module_cmds=
9004  module_expsym_cmds=
9005  old_archive_from_new_cmds=
9006  old_archive_from_expsyms_cmds=
9007  thread_safe_flag_spec=
9008  whole_archive_flag_spec=
9009  # include_expsyms should be a list of space-separated symbols to be *always*
9010  # included in the symbol list
9011  include_expsyms=
9012  # exclude_expsyms can be an extended regexp of symbols to exclude
9013  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9014  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9015  # as well as any symbol that contains 'd'.
9016  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9017  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9018  # platforms (ab)use it in PIC code, but their linkers get confused if
9019  # the symbol is explicitly referenced.  Since portable code cannot
9020  # rely on this symbol name, it's probably fine to never include it in
9021  # preloaded symbol tables.
9022  # Exclude shared library initialization/finalization symbols.
9023  extract_expsyms_cmds=
9024
9025  case $host_os in
9026  cygwin* | mingw* | pw32* | cegcc*)
9027    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9028    # When not using gcc, we currently assume that we are using
9029    # Microsoft Visual C++.
9030    if test yes != "$GCC"; then
9031      with_gnu_ld=no
9032    fi
9033    ;;
9034  interix*)
9035    # we just hope/assume this is gcc and not c89 (= MSVC++)
9036    with_gnu_ld=yes
9037    ;;
9038  openbsd* | bitrig*)
9039    with_gnu_ld=no
9040    ;;
9041  esac
9042
9043  ld_shlibs=yes
9044
9045  # On some targets, GNU ld is compatible enough with the native linker
9046  # that we're better off using the native interface for both.
9047  lt_use_gnu_ld_interface=no
9048  if test yes = "$with_gnu_ld"; then
9049    case $host_os in
9050      aix*)
9051	# The AIX port of GNU ld has always aspired to compatibility
9052	# with the native linker.  However, as the warning in the GNU ld
9053	# block says, versions before 2.19.5* couldn't really create working
9054	# shared libraries, regardless of the interface used.
9055	case `$LD -v 2>&1` in
9056	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9057	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9058	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9059	  *)
9060	    lt_use_gnu_ld_interface=yes
9061	    ;;
9062	esac
9063	;;
9064      *)
9065	lt_use_gnu_ld_interface=yes
9066	;;
9067    esac
9068  fi
9069
9070  if test yes = "$lt_use_gnu_ld_interface"; then
9071    # If archive_cmds runs LD, not CC, wlarc should be empty
9072    wlarc='$wl'
9073
9074    # Set some defaults for GNU ld with shared library support. These
9075    # are reset later if shared libraries are not supported. Putting them
9076    # here allows them to be overridden if necessary.
9077    runpath_var=LD_RUN_PATH
9078    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9079    export_dynamic_flag_spec='$wl--export-dynamic'
9080    # ancient GNU ld didn't support --whole-archive et. al.
9081    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9082      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9083    else
9084      whole_archive_flag_spec=
9085    fi
9086    supports_anon_versioning=no
9087    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9088      *GNU\ gold*) supports_anon_versioning=yes ;;
9089      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9090      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9091      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9092      *\ 2.11.*) ;; # other 2.11 versions
9093      *) supports_anon_versioning=yes ;;
9094    esac
9095
9096    # See if GNU ld supports shared libraries.
9097    case $host_os in
9098    aix[3-9]*)
9099      # On AIX/PPC, the GNU linker is very broken
9100      if test ia64 != "$host_cpu"; then
9101	ld_shlibs=no
9102	cat <<_LT_EOF 1>&2
9103
9104*** Warning: the GNU linker, at least up to release 2.19, is reported
9105*** to be unable to reliably create shared libraries on AIX.
9106*** Therefore, libtool is disabling shared libraries support.  If you
9107*** really care for shared libraries, you may want to install binutils
9108*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9109*** You will then need to restart the configuration process.
9110
9111_LT_EOF
9112      fi
9113      ;;
9114
9115    amigaos*)
9116      case $host_cpu in
9117      powerpc)
9118            # see comment about AmigaOS4 .so support
9119            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9120            archive_expsym_cmds=''
9121        ;;
9122      m68k)
9123            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)'
9124            hardcode_libdir_flag_spec='-L$libdir'
9125            hardcode_minus_L=yes
9126        ;;
9127      esac
9128      ;;
9129
9130    beos*)
9131      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9132	allow_undefined_flag=unsupported
9133	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9134	# support --undefined.  This deserves some investigation.  FIXME
9135	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9136      else
9137	ld_shlibs=no
9138      fi
9139      ;;
9140
9141    cygwin* | mingw* | pw32* | cegcc*)
9142      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9143      # as there is no search path for DLLs.
9144      hardcode_libdir_flag_spec='-L$libdir'
9145      export_dynamic_flag_spec='$wl--export-all-symbols'
9146      allow_undefined_flag=unsupported
9147      always_export_symbols=no
9148      enable_shared_with_static_runtimes=yes
9149      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'
9150      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9151
9152      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9153        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9154	# If the export-symbols file already is a .def file, use it as
9155	# is; otherwise, prepend EXPORTS...
9156	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9157          cp $export_symbols $output_objdir/$soname.def;
9158        else
9159          echo EXPORTS > $output_objdir/$soname.def;
9160          cat $export_symbols >> $output_objdir/$soname.def;
9161        fi~
9162        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9163      else
9164	ld_shlibs=no
9165      fi
9166      ;;
9167
9168    haiku*)
9169      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9170      link_all_deplibs=yes
9171      ;;
9172
9173    os2*)
9174      hardcode_libdir_flag_spec='-L$libdir'
9175      hardcode_minus_L=yes
9176      allow_undefined_flag=unsupported
9177      shrext_cmds=.dll
9178      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9179	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9180	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9181	$ECHO EXPORTS >> $output_objdir/$libname.def~
9182	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9183	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9184	emximp -o $lib $output_objdir/$libname.def'
9185      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9186	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9187	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9188	$ECHO EXPORTS >> $output_objdir/$libname.def~
9189	prefix_cmds="$SED"~
9190	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9191	  prefix_cmds="$prefix_cmds -e 1d";
9192	fi~
9193	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9194	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9195	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9196	emximp -o $lib $output_objdir/$libname.def'
9197      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9198      enable_shared_with_static_runtimes=yes
9199      ;;
9200
9201    interix[3-9]*)
9202      hardcode_direct=no
9203      hardcode_shlibpath_var=no
9204      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9205      export_dynamic_flag_spec='$wl-E'
9206      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9207      # Instead, shared libraries are loaded at an image base (0x10000000 by
9208      # default) and relocated if they conflict, which is a slow very memory
9209      # consuming and fragmenting process.  To avoid this, we pick a random,
9210      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9211      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9212      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9213      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'
9214      ;;
9215
9216    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9217      tmp_diet=no
9218      if test linux-dietlibc = "$host_os"; then
9219	case $cc_basename in
9220	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9221	esac
9222      fi
9223      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9224	 && test no = "$tmp_diet"
9225      then
9226	tmp_addflag=' $pic_flag'
9227	tmp_sharedflag='-shared'
9228	case $cc_basename,$host_cpu in
9229        pgcc*)				# Portland Group C compiler
9230	  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'
9231	  tmp_addflag=' $pic_flag'
9232	  ;;
9233	pgf77* | pgf90* | pgf95* | pgfortran*)
9234					# Portland Group f77 and f90 compilers
9235	  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'
9236	  tmp_addflag=' $pic_flag -Mnomain' ;;
9237	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9238	  tmp_addflag=' -i_dynamic' ;;
9239	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9240	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9241	ifc* | ifort*)			# Intel Fortran compiler
9242	  tmp_addflag=' -nofor_main' ;;
9243	lf95*)				# Lahey Fortran 8.1
9244	  whole_archive_flag_spec=
9245	  tmp_sharedflag='--shared' ;;
9246        nagfor*)                        # NAGFOR 5.3
9247          tmp_sharedflag='-Wl,-shared' ;;
9248	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9249	  tmp_sharedflag='-qmkshrobj'
9250	  tmp_addflag= ;;
9251	nvcc*)	# Cuda Compiler Driver 2.2
9252	  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'
9253	  compiler_needs_object=yes
9254	  ;;
9255	esac
9256	case `$CC -V 2>&1 | sed 5q` in
9257	*Sun\ C*)			# Sun C 5.9
9258	  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'
9259	  compiler_needs_object=yes
9260	  tmp_sharedflag='-G' ;;
9261	*Sun\ F*)			# Sun Fortran 8.3
9262	  tmp_sharedflag='-G' ;;
9263	esac
9264	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9265
9266        if test yes = "$supports_anon_versioning"; then
9267          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9268            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9269            echo "local: *; };" >> $output_objdir/$libname.ver~
9270            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9271        fi
9272
9273	case $cc_basename in
9274	tcc*)
9275	  export_dynamic_flag_spec='-rdynamic'
9276	  ;;
9277	xlf* | bgf* | bgxlf* | mpixlf*)
9278	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9279	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9280	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9281	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9282	  if test yes = "$supports_anon_versioning"; then
9283	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9284              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9285              echo "local: *; };" >> $output_objdir/$libname.ver~
9286              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9287	  fi
9288	  ;;
9289	esac
9290      else
9291        ld_shlibs=no
9292      fi
9293      ;;
9294
9295    netbsd*)
9296      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9297	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9298	wlarc=
9299      else
9300	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9301	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9302      fi
9303      ;;
9304
9305    solaris*)
9306      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9307	ld_shlibs=no
9308	cat <<_LT_EOF 1>&2
9309
9310*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9311*** create shared libraries on Solaris systems.  Therefore, libtool
9312*** is disabling shared libraries support.  We urge you to upgrade GNU
9313*** binutils to release 2.9.1 or newer.  Another option is to modify
9314*** your PATH or compiler configuration so that the native linker is
9315*** used, and then restart.
9316
9317_LT_EOF
9318      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9319	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9320	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9321      else
9322	ld_shlibs=no
9323      fi
9324      ;;
9325
9326    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9327      case `$LD -v 2>&1` in
9328        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9329	ld_shlibs=no
9330	cat <<_LT_EOF 1>&2
9331
9332*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9333*** reliably create shared libraries on SCO systems.  Therefore, libtool
9334*** is disabling shared libraries support.  We urge you to upgrade GNU
9335*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9336*** your PATH or compiler configuration so that the native linker is
9337*** used, and then restart.
9338
9339_LT_EOF
9340	;;
9341	*)
9342	  # For security reasons, it is highly recommended that you always
9343	  # use absolute paths for naming shared libraries, and exclude the
9344	  # DT_RUNPATH tag from executables and libraries.  But doing so
9345	  # requires that you compile everything twice, which is a pain.
9346	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9347	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9348	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9349	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9350	  else
9351	    ld_shlibs=no
9352	  fi
9353	;;
9354      esac
9355      ;;
9356
9357    sunos4*)
9358      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9359      wlarc=
9360      hardcode_direct=yes
9361      hardcode_shlibpath_var=no
9362      ;;
9363
9364    *)
9365      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9366	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9367	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9368      else
9369	ld_shlibs=no
9370      fi
9371      ;;
9372    esac
9373
9374    if test no = "$ld_shlibs"; then
9375      runpath_var=
9376      hardcode_libdir_flag_spec=
9377      export_dynamic_flag_spec=
9378      whole_archive_flag_spec=
9379    fi
9380  else
9381    # PORTME fill in a description of your system's linker (not GNU ld)
9382    case $host_os in
9383    aix3*)
9384      allow_undefined_flag=unsupported
9385      always_export_symbols=yes
9386      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'
9387      # Note: this linker hardcodes the directories in LIBPATH if there
9388      # are no directories specified by -L.
9389      hardcode_minus_L=yes
9390      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9391	# Neither direct hardcoding nor static linking is supported with a
9392	# broken collect2.
9393	hardcode_direct=unsupported
9394      fi
9395      ;;
9396
9397    aix[4-9]*)
9398      if test ia64 = "$host_cpu"; then
9399	# On IA64, the linker does run time linking by default, so we don't
9400	# have to do anything special.
9401	aix_use_runtimelinking=no
9402	exp_sym_flag='-Bexport'
9403	no_entry_flag=
9404      else
9405	# If we're using GNU nm, then we don't want the "-C" option.
9406	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9407	# Without the "-l" option, or with the "-B" option, AIX nm treats
9408	# weak defined symbols like other global defined symbols, whereas
9409	# GNU nm marks them as "W".
9410	# While the 'weak' keyword is ignored in the Export File, we need
9411	# it in the Import File for the 'aix-soname' feature, so we have
9412	# to replace the "-B" option with "-P" for AIX nm.
9413	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9414	  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'
9415	else
9416	  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'
9417	fi
9418	aix_use_runtimelinking=no
9419
9420	# Test if we are trying to use run time linking or normal
9421	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9422	# have runtime linking enabled, and use it for executables.
9423	# For shared libraries, we enable/disable runtime linking
9424	# depending on the kind of the shared library created -
9425	# when "with_aix_soname,aix_use_runtimelinking" is:
9426	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9427	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9428	#            lib.a           static archive
9429	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9430	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9431	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9432	#            lib.a(lib.so.V) shared, rtl:no
9433	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9434	#            lib.a           static archive
9435	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9436	  for ld_flag in $LDFLAGS; do
9437	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9438	    aix_use_runtimelinking=yes
9439	    break
9440	  fi
9441	  done
9442	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9443	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9444	    # so we don't have lib.a shared libs to link our executables.
9445	    # We have to force runtime linking in this case.
9446	    aix_use_runtimelinking=yes
9447	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9448	  fi
9449	  ;;
9450	esac
9451
9452	exp_sym_flag='-bexport'
9453	no_entry_flag='-bnoentry'
9454      fi
9455
9456      # When large executables or shared objects are built, AIX ld can
9457      # have problems creating the table of contents.  If linking a library
9458      # or program results in "error TOC overflow" add -mminimal-toc to
9459      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9460      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9461
9462      archive_cmds=''
9463      hardcode_direct=yes
9464      hardcode_direct_absolute=yes
9465      hardcode_libdir_separator=':'
9466      link_all_deplibs=yes
9467      file_list_spec='$wl-f,'
9468      case $with_aix_soname,$aix_use_runtimelinking in
9469      aix,*) ;; # traditional, no import file
9470      svr4,* | *,yes) # use import file
9471	# The Import File defines what to hardcode.
9472	hardcode_direct=no
9473	hardcode_direct_absolute=no
9474	;;
9475      esac
9476
9477      if test yes = "$GCC"; then
9478	case $host_os in aix4.[012]|aix4.[012].*)
9479	# We only want to do this on AIX 4.2 and lower, the check
9480	# below for broken collect2 doesn't work under 4.3+
9481	  collect2name=`$CC -print-prog-name=collect2`
9482	  if test -f "$collect2name" &&
9483	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9484	  then
9485	  # We have reworked collect2
9486	  :
9487	  else
9488	  # We have old collect2
9489	  hardcode_direct=unsupported
9490	  # It fails to find uninstalled libraries when the uninstalled
9491	  # path is not listed in the libpath.  Setting hardcode_minus_L
9492	  # to unsupported forces relinking
9493	  hardcode_minus_L=yes
9494	  hardcode_libdir_flag_spec='-L$libdir'
9495	  hardcode_libdir_separator=
9496	  fi
9497	  ;;
9498	esac
9499	shared_flag='-shared'
9500	if test yes = "$aix_use_runtimelinking"; then
9501	  shared_flag="$shared_flag "'$wl-G'
9502	fi
9503	# Need to ensure runtime linking is disabled for the traditional
9504	# shared library, or the linker may eventually find shared libraries
9505	# /with/ Import File - we do not want to mix them.
9506	shared_flag_aix='-shared'
9507	shared_flag_svr4='-shared $wl-G'
9508      else
9509	# not using gcc
9510	if test ia64 = "$host_cpu"; then
9511	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9512	# chokes on -Wl,-G. The following line is correct:
9513	  shared_flag='-G'
9514	else
9515	  if test yes = "$aix_use_runtimelinking"; then
9516	    shared_flag='$wl-G'
9517	  else
9518	    shared_flag='$wl-bM:SRE'
9519	  fi
9520	  shared_flag_aix='$wl-bM:SRE'
9521	  shared_flag_svr4='$wl-G'
9522	fi
9523      fi
9524
9525      export_dynamic_flag_spec='$wl-bexpall'
9526      # It seems that -bexpall does not export symbols beginning with
9527      # underscore (_), so it is better to generate a list of symbols to export.
9528      always_export_symbols=yes
9529      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9530	# Warning - without using the other runtime loading flags (-brtl),
9531	# -berok will link without error, but may produce a broken library.
9532	allow_undefined_flag='-berok'
9533        # Determine the default libpath from the value encoded in an
9534        # empty executable.
9535        if test set = "${lt_cv_aix_libpath+set}"; then
9536  aix_libpath=$lt_cv_aix_libpath
9537else
9538  if ${lt_cv_aix_libpath_+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543
9544int
9545main ()
9546{
9547
9548  ;
9549  return 0;
9550}
9551_ACEOF
9552if ac_fn_c_try_link "$LINENO"; then :
9553
9554  lt_aix_libpath_sed='
9555      /Import File Strings/,/^$/ {
9556	  /^0/ {
9557	      s/^0  *\([^ ]*\) *$/\1/
9558	      p
9559	  }
9560      }'
9561  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562  # Check for a 64-bit object if we didn't find anything.
9563  if test -z "$lt_cv_aix_libpath_"; then
9564    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9565  fi
9566fi
9567rm -f core conftest.err conftest.$ac_objext \
9568    conftest$ac_exeext conftest.$ac_ext
9569  if test -z "$lt_cv_aix_libpath_"; then
9570    lt_cv_aix_libpath_=/usr/lib:/lib
9571  fi
9572
9573fi
9574
9575  aix_libpath=$lt_cv_aix_libpath_
9576fi
9577
9578        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9579        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
9580      else
9581	if test ia64 = "$host_cpu"; then
9582	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9583	  allow_undefined_flag="-z nodefs"
9584	  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"
9585	else
9586	 # Determine the default libpath from the value encoded in an
9587	 # empty executable.
9588	 if test set = "${lt_cv_aix_libpath+set}"; then
9589  aix_libpath=$lt_cv_aix_libpath
9590else
9591  if ${lt_cv_aix_libpath_+:} false; then :
9592  $as_echo_n "(cached) " >&6
9593else
9594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h.  */
9596
9597int
9598main ()
9599{
9600
9601  ;
9602  return 0;
9603}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606
9607  lt_aix_libpath_sed='
9608      /Import File Strings/,/^$/ {
9609	  /^0/ {
9610	      s/^0  *\([^ ]*\) *$/\1/
9611	      p
9612	  }
9613      }'
9614  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9615  # Check for a 64-bit object if we didn't find anything.
9616  if test -z "$lt_cv_aix_libpath_"; then
9617    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618  fi
9619fi
9620rm -f core conftest.err conftest.$ac_objext \
9621    conftest$ac_exeext conftest.$ac_ext
9622  if test -z "$lt_cv_aix_libpath_"; then
9623    lt_cv_aix_libpath_=/usr/lib:/lib
9624  fi
9625
9626fi
9627
9628  aix_libpath=$lt_cv_aix_libpath_
9629fi
9630
9631	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9632	  # Warning - without using the other run time loading flags,
9633	  # -berok will link without error, but may produce a broken library.
9634	  no_undefined_flag=' $wl-bernotok'
9635	  allow_undefined_flag=' $wl-berok'
9636	  if test yes = "$with_gnu_ld"; then
9637	    # We only use this code for GNU lds that support --whole-archive.
9638	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9639	  else
9640	    # Exported symbols can be pulled into shared objects from archives
9641	    whole_archive_flag_spec='$convenience'
9642	  fi
9643	  archive_cmds_need_lc=yes
9644	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9645	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9646	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9647	  if test svr4 != "$with_aix_soname"; then
9648	    # This is similar to how AIX traditionally builds its shared libraries.
9649	    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'
9650	  fi
9651	  if test aix != "$with_aix_soname"; then
9652	    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'
9653	  else
9654	    # used by -dlpreopen to get the symbols
9655	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9656	  fi
9657	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9658	fi
9659      fi
9660      ;;
9661
9662    amigaos*)
9663      case $host_cpu in
9664      powerpc)
9665            # see comment about AmigaOS4 .so support
9666            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9667            archive_expsym_cmds=''
9668        ;;
9669      m68k)
9670            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)'
9671            hardcode_libdir_flag_spec='-L$libdir'
9672            hardcode_minus_L=yes
9673        ;;
9674      esac
9675      ;;
9676
9677    bsdi[45]*)
9678      export_dynamic_flag_spec=-rdynamic
9679      ;;
9680
9681    cygwin* | mingw* | pw32* | cegcc*)
9682      # When not using gcc, we currently assume that we are using
9683      # Microsoft Visual C++.
9684      # hardcode_libdir_flag_spec is actually meaningless, as there is
9685      # no search path for DLLs.
9686      case $cc_basename in
9687      cl*)
9688	# Native MSVC
9689	hardcode_libdir_flag_spec=' '
9690	allow_undefined_flag=unsupported
9691	always_export_symbols=yes
9692	file_list_spec='@'
9693	# Tell ltmain to make .lib files, not .a files.
9694	libext=lib
9695	# Tell ltmain to make .dll files, not .so files.
9696	shrext_cmds=.dll
9697	# FIXME: Setting linknames here is a bad hack.
9698	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9699	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9700            cp "$export_symbols" "$output_objdir/$soname.def";
9701            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9702          else
9703            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9704          fi~
9705          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9706          linknames='
9707	# The linker will not automatically build a static lib if we build a DLL.
9708	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9709	enable_shared_with_static_runtimes=yes
9710	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9711	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9712	# Don't use ranlib
9713	old_postinstall_cmds='chmod 644 $oldlib'
9714	postlink_cmds='lt_outputfile="@OUTPUT@"~
9715          lt_tool_outputfile="@TOOL_OUTPUT@"~
9716          case $lt_outputfile in
9717            *.exe|*.EXE) ;;
9718            *)
9719              lt_outputfile=$lt_outputfile.exe
9720              lt_tool_outputfile=$lt_tool_outputfile.exe
9721              ;;
9722          esac~
9723          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9724            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9725            $RM "$lt_outputfile.manifest";
9726          fi'
9727	;;
9728      *)
9729	# Assume MSVC wrapper
9730	hardcode_libdir_flag_spec=' '
9731	allow_undefined_flag=unsupported
9732	# Tell ltmain to make .lib files, not .a files.
9733	libext=lib
9734	# Tell ltmain to make .dll files, not .so files.
9735	shrext_cmds=.dll
9736	# FIXME: Setting linknames here is a bad hack.
9737	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9738	# The linker will automatically build a .lib file if we build a DLL.
9739	old_archive_from_new_cmds='true'
9740	# FIXME: Should let the user specify the lib program.
9741	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9742	enable_shared_with_static_runtimes=yes
9743	;;
9744      esac
9745      ;;
9746
9747    darwin* | rhapsody*)
9748
9749
9750  archive_cmds_need_lc=no
9751  hardcode_direct=no
9752  hardcode_automatic=yes
9753  hardcode_shlibpath_var=unsupported
9754  if test yes = "$lt_cv_ld_force_load"; then
9755    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\"`'
9756
9757  else
9758    whole_archive_flag_spec=''
9759  fi
9760  link_all_deplibs=yes
9761  allow_undefined_flag=$_lt_dar_allow_undefined
9762  case $cc_basename in
9763     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9764     *) _lt_dar_can_shared=$GCC ;;
9765  esac
9766  if test yes = "$_lt_dar_can_shared"; then
9767    output_verbose_link_cmd=func_echo_all
9768    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9769    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9770    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"
9771    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"
9772
9773  else
9774  ld_shlibs=no
9775  fi
9776
9777      ;;
9778
9779    dgux*)
9780      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781      hardcode_libdir_flag_spec='-L$libdir'
9782      hardcode_shlibpath_var=no
9783      ;;
9784
9785    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9786    # support.  Future versions do this automatically, but an explicit c++rt0.o
9787    # does not break anything, and helps significantly (at the cost of a little
9788    # extra space).
9789    freebsd2.2*)
9790      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9791      hardcode_libdir_flag_spec='-R$libdir'
9792      hardcode_direct=yes
9793      hardcode_shlibpath_var=no
9794      ;;
9795
9796    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9797    freebsd2.*)
9798      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9799      hardcode_direct=yes
9800      hardcode_minus_L=yes
9801      hardcode_shlibpath_var=no
9802      ;;
9803
9804    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9805    freebsd* | dragonfly*)
9806      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9807      hardcode_libdir_flag_spec='-R$libdir'
9808      hardcode_direct=yes
9809      hardcode_shlibpath_var=no
9810      ;;
9811
9812    hpux9*)
9813      if test yes = "$GCC"; then
9814	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'
9815      else
9816	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'
9817      fi
9818      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9819      hardcode_libdir_separator=:
9820      hardcode_direct=yes
9821
9822      # hardcode_minus_L: Not really in the search PATH,
9823      # but as the default location of the library.
9824      hardcode_minus_L=yes
9825      export_dynamic_flag_spec='$wl-E'
9826      ;;
9827
9828    hpux10*)
9829      if test yes,no = "$GCC,$with_gnu_ld"; then
9830	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831      else
9832	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9833      fi
9834      if test no = "$with_gnu_ld"; then
9835	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9836	hardcode_libdir_separator=:
9837	hardcode_direct=yes
9838	hardcode_direct_absolute=yes
9839	export_dynamic_flag_spec='$wl-E'
9840	# hardcode_minus_L: Not really in the search PATH,
9841	# but as the default location of the library.
9842	hardcode_minus_L=yes
9843      fi
9844      ;;
9845
9846    hpux11*)
9847      if test yes,no = "$GCC,$with_gnu_ld"; then
9848	case $host_cpu in
9849	hppa*64*)
9850	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9851	  ;;
9852	ia64*)
9853	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854	  ;;
9855	*)
9856	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9857	  ;;
9858	esac
9859      else
9860	case $host_cpu in
9861	hppa*64*)
9862	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9863	  ;;
9864	ia64*)
9865	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9866	  ;;
9867	*)
9868
9869	  # Older versions of the 11.00 compiler do not understand -b yet
9870	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9871	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9872$as_echo_n "checking if $CC understands -b... " >&6; }
9873if ${lt_cv_prog_compiler__b+:} false; then :
9874  $as_echo_n "(cached) " >&6
9875else
9876  lt_cv_prog_compiler__b=no
9877   save_LDFLAGS=$LDFLAGS
9878   LDFLAGS="$LDFLAGS -b"
9879   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9880   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9881     # The linker can only warn and ignore the option if not recognized
9882     # So say no if there are warnings
9883     if test -s conftest.err; then
9884       # Append any errors to the config.log.
9885       cat conftest.err 1>&5
9886       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9887       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9888       if diff conftest.exp conftest.er2 >/dev/null; then
9889         lt_cv_prog_compiler__b=yes
9890       fi
9891     else
9892       lt_cv_prog_compiler__b=yes
9893     fi
9894   fi
9895   $RM -r conftest*
9896   LDFLAGS=$save_LDFLAGS
9897
9898fi
9899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9900$as_echo "$lt_cv_prog_compiler__b" >&6; }
9901
9902if test yes = "$lt_cv_prog_compiler__b"; then
9903    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904else
9905    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9906fi
9907
9908	  ;;
9909	esac
9910      fi
9911      if test no = "$with_gnu_ld"; then
9912	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9913	hardcode_libdir_separator=:
9914
9915	case $host_cpu in
9916	hppa*64*|ia64*)
9917	  hardcode_direct=no
9918	  hardcode_shlibpath_var=no
9919	  ;;
9920	*)
9921	  hardcode_direct=yes
9922	  hardcode_direct_absolute=yes
9923	  export_dynamic_flag_spec='$wl-E'
9924
9925	  # hardcode_minus_L: Not really in the search PATH,
9926	  # but as the default location of the library.
9927	  hardcode_minus_L=yes
9928	  ;;
9929	esac
9930      fi
9931      ;;
9932
9933    irix5* | irix6* | nonstopux*)
9934      if test yes = "$GCC"; then
9935	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'
9936	# Try to use the -exported_symbol ld option, if it does not
9937	# work, assume that -exports_file does not work either and
9938	# implicitly export all symbols.
9939	# This should be the same for all languages, so no per-tag cache variable.
9940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9941$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9942if ${lt_cv_irix_exported_symbol+:} false; then :
9943  $as_echo_n "(cached) " >&6
9944else
9945  save_LDFLAGS=$LDFLAGS
9946	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9947	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h.  */
9949int foo (void) { return 0; }
9950_ACEOF
9951if ac_fn_c_try_link "$LINENO"; then :
9952  lt_cv_irix_exported_symbol=yes
9953else
9954  lt_cv_irix_exported_symbol=no
9955fi
9956rm -f core conftest.err conftest.$ac_objext \
9957    conftest$ac_exeext conftest.$ac_ext
9958           LDFLAGS=$save_LDFLAGS
9959fi
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9961$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9962	if test yes = "$lt_cv_irix_exported_symbol"; then
9963          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'
9964	fi
9965      else
9966	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'
9967	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'
9968      fi
9969      archive_cmds_need_lc='no'
9970      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9971      hardcode_libdir_separator=:
9972      inherit_rpath=yes
9973      link_all_deplibs=yes
9974      ;;
9975
9976    linux*)
9977      case $cc_basename in
9978      tcc*)
9979	# Fabrice Bellard et al's Tiny C Compiler
9980	ld_shlibs=yes
9981	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9982	;;
9983      esac
9984      ;;
9985
9986    netbsd*)
9987      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9988	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9989      else
9990	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9991      fi
9992      hardcode_libdir_flag_spec='-R$libdir'
9993      hardcode_direct=yes
9994      hardcode_shlibpath_var=no
9995      ;;
9996
9997    newsos6)
9998      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999      hardcode_direct=yes
10000      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10001      hardcode_libdir_separator=:
10002      hardcode_shlibpath_var=no
10003      ;;
10004
10005    *nto* | *qnx*)
10006      ;;
10007
10008    openbsd* | bitrig*)
10009      if test -f /usr/libexec/ld.so; then
10010	hardcode_direct=yes
10011	hardcode_shlibpath_var=no
10012	hardcode_direct_absolute=yes
10013	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10014	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10015	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10016	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10017	  export_dynamic_flag_spec='$wl-E'
10018	else
10019	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10020	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10021	fi
10022      else
10023	ld_shlibs=no
10024      fi
10025      ;;
10026
10027    os2*)
10028      hardcode_libdir_flag_spec='-L$libdir'
10029      hardcode_minus_L=yes
10030      allow_undefined_flag=unsupported
10031      shrext_cmds=.dll
10032      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10033	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10034	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10035	$ECHO EXPORTS >> $output_objdir/$libname.def~
10036	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10037	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10038	emximp -o $lib $output_objdir/$libname.def'
10039      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10040	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10041	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10042	$ECHO EXPORTS >> $output_objdir/$libname.def~
10043	prefix_cmds="$SED"~
10044	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10045	  prefix_cmds="$prefix_cmds -e 1d";
10046	fi~
10047	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10048	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10049	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10050	emximp -o $lib $output_objdir/$libname.def'
10051      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10052      enable_shared_with_static_runtimes=yes
10053      ;;
10054
10055    osf3*)
10056      if test yes = "$GCC"; then
10057	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10058	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'
10059      else
10060	allow_undefined_flag=' -expect_unresolved \*'
10061	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'
10062      fi
10063      archive_cmds_need_lc='no'
10064      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10065      hardcode_libdir_separator=:
10066      ;;
10067
10068    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10069      if test yes = "$GCC"; then
10070	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10071	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'
10072	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10073      else
10074	allow_undefined_flag=' -expect_unresolved \*'
10075	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'
10076	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~
10077          $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'
10078
10079	# Both c and cxx compiler support -rpath directly
10080	hardcode_libdir_flag_spec='-rpath $libdir'
10081      fi
10082      archive_cmds_need_lc='no'
10083      hardcode_libdir_separator=:
10084      ;;
10085
10086    solaris*)
10087      no_undefined_flag=' -z defs'
10088      if test yes = "$GCC"; then
10089	wlarc='$wl'
10090	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10091	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10092          $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'
10093      else
10094	case `$CC -V 2>&1` in
10095	*"Compilers 5.0"*)
10096	  wlarc=''
10097	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10099            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10100	  ;;
10101	*)
10102	  wlarc='$wl'
10103	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10104	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10105            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10106	  ;;
10107	esac
10108      fi
10109      hardcode_libdir_flag_spec='-R$libdir'
10110      hardcode_shlibpath_var=no
10111      case $host_os in
10112      solaris2.[0-5] | solaris2.[0-5].*) ;;
10113      *)
10114	# The compiler driver will combine and reorder linker options,
10115	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10116	# but is careful enough not to reorder.
10117	# Supported since Solaris 2.6 (maybe 2.5.1?)
10118	if test yes = "$GCC"; then
10119	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10120	else
10121	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10122	fi
10123	;;
10124      esac
10125      link_all_deplibs=yes
10126      ;;
10127
10128    sunos4*)
10129      if test sequent = "$host_vendor"; then
10130	# Use $CC to link under sequent, because it throws in some extra .o
10131	# files that make .init and .fini sections work.
10132	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10133      else
10134	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10135      fi
10136      hardcode_libdir_flag_spec='-L$libdir'
10137      hardcode_direct=yes
10138      hardcode_minus_L=yes
10139      hardcode_shlibpath_var=no
10140      ;;
10141
10142    sysv4)
10143      case $host_vendor in
10144	sni)
10145	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146	  hardcode_direct=yes # is this really true???
10147	;;
10148	siemens)
10149	  ## LD is ld it makes a PLAMLIB
10150	  ## CC just makes a GrossModule.
10151	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10152	  reload_cmds='$CC -r -o $output$reload_objs'
10153	  hardcode_direct=no
10154        ;;
10155	motorola)
10156	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10158	;;
10159      esac
10160      runpath_var='LD_RUN_PATH'
10161      hardcode_shlibpath_var=no
10162      ;;
10163
10164    sysv4.3*)
10165      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166      hardcode_shlibpath_var=no
10167      export_dynamic_flag_spec='-Bexport'
10168      ;;
10169
10170    sysv4*MP*)
10171      if test -d /usr/nec; then
10172	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173	hardcode_shlibpath_var=no
10174	runpath_var=LD_RUN_PATH
10175	hardcode_runpath_var=yes
10176	ld_shlibs=yes
10177      fi
10178      ;;
10179
10180    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10181      no_undefined_flag='$wl-z,text'
10182      archive_cmds_need_lc=no
10183      hardcode_shlibpath_var=no
10184      runpath_var='LD_RUN_PATH'
10185
10186      if test yes = "$GCC"; then
10187	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189      else
10190	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192      fi
10193      ;;
10194
10195    sysv5* | sco3.2v5* | sco5v6*)
10196      # Note: We CANNOT use -z defs as we might desire, because we do not
10197      # link with -lc, and that would cause any symbols used from libc to
10198      # always be unresolved, which means just about no library would
10199      # ever link correctly.  If we're not using GNU ld we use -z text
10200      # though, which does catch some bad symbols but isn't as heavy-handed
10201      # as -z defs.
10202      no_undefined_flag='$wl-z,text'
10203      allow_undefined_flag='$wl-z,nodefs'
10204      archive_cmds_need_lc=no
10205      hardcode_shlibpath_var=no
10206      hardcode_libdir_flag_spec='$wl-R,$libdir'
10207      hardcode_libdir_separator=':'
10208      link_all_deplibs=yes
10209      export_dynamic_flag_spec='$wl-Bexport'
10210      runpath_var='LD_RUN_PATH'
10211
10212      if test yes = "$GCC"; then
10213	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215      else
10216	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218      fi
10219      ;;
10220
10221    uts4*)
10222      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223      hardcode_libdir_flag_spec='-L$libdir'
10224      hardcode_shlibpath_var=no
10225      ;;
10226
10227    *)
10228      ld_shlibs=no
10229      ;;
10230    esac
10231
10232    if test sni = "$host_vendor"; then
10233      case $host in
10234      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10235	export_dynamic_flag_spec='$wl-Blargedynsym'
10236	;;
10237      esac
10238    fi
10239  fi
10240
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10242$as_echo "$ld_shlibs" >&6; }
10243test no = "$ld_shlibs" && can_build_shared=no
10244
10245with_gnu_ld=$with_gnu_ld
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261#
10262# Do we need to explicitly link libc?
10263#
10264case "x$archive_cmds_need_lc" in
10265x|xyes)
10266  # Assume -lc should be added
10267  archive_cmds_need_lc=yes
10268
10269  if test yes,yes = "$GCC,$enable_shared"; then
10270    case $archive_cmds in
10271    *'~'*)
10272      # FIXME: we may have to deal with multi-command sequences.
10273      ;;
10274    '$CC '*)
10275      # Test whether the compiler implicitly links with -lc since on some
10276      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10277      # to ld, don't add -lc before -lgcc.
10278      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10279$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10280if ${lt_cv_archive_cmds_need_lc+:} false; then :
10281  $as_echo_n "(cached) " >&6
10282else
10283  $RM conftest*
10284	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10285
10286	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10287  (eval $ac_compile) 2>&5
10288  ac_status=$?
10289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10290  test $ac_status = 0; } 2>conftest.err; then
10291	  soname=conftest
10292	  lib=conftest
10293	  libobjs=conftest.$ac_objext
10294	  deplibs=
10295	  wl=$lt_prog_compiler_wl
10296	  pic_flag=$lt_prog_compiler_pic
10297	  compiler_flags=-v
10298	  linker_flags=-v
10299	  verstring=
10300	  output_objdir=.
10301	  libname=conftest
10302	  lt_save_allow_undefined_flag=$allow_undefined_flag
10303	  allow_undefined_flag=
10304	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10305  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10306  ac_status=$?
10307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10308  test $ac_status = 0; }
10309	  then
10310	    lt_cv_archive_cmds_need_lc=no
10311	  else
10312	    lt_cv_archive_cmds_need_lc=yes
10313	  fi
10314	  allow_undefined_flag=$lt_save_allow_undefined_flag
10315	else
10316	  cat conftest.err 1>&5
10317	fi
10318	$RM conftest*
10319
10320fi
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10322$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10323      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10324      ;;
10325    esac
10326  fi
10327  ;;
10328esac
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10482$as_echo_n "checking dynamic linker characteristics... " >&6; }
10483
10484if test yes = "$GCC"; then
10485  case $host_os in
10486    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10487    *) lt_awk_arg='/^libraries:/' ;;
10488  esac
10489  case $host_os in
10490    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10491    *) lt_sed_strip_eq='s|=/|/|g' ;;
10492  esac
10493  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10494  case $lt_search_path_spec in
10495  *\;*)
10496    # if the path contains ";" then we assume it to be the separator
10497    # otherwise default to the standard path separator (i.e. ":") - it is
10498    # assumed that no part of a normal pathname contains ";" but that should
10499    # okay in the real world where ";" in dirpaths is itself problematic.
10500    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10501    ;;
10502  *)
10503    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10504    ;;
10505  esac
10506  # Ok, now we have the path, separated by spaces, we can step through it
10507  # and add multilib dir if necessary...
10508  lt_tmp_lt_search_path_spec=
10509  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10510  # ...but if some path component already ends with the multilib dir we assume
10511  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10512  case "$lt_multi_os_dir; $lt_search_path_spec " in
10513  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10514    lt_multi_os_dir=
10515    ;;
10516  esac
10517  for lt_sys_path in $lt_search_path_spec; do
10518    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10519      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10520    elif test -n "$lt_multi_os_dir"; then
10521      test -d "$lt_sys_path" && \
10522	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10523    fi
10524  done
10525  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10526BEGIN {RS = " "; FS = "/|\n";} {
10527  lt_foo = "";
10528  lt_count = 0;
10529  for (lt_i = NF; lt_i > 0; lt_i--) {
10530    if ($lt_i != "" && $lt_i != ".") {
10531      if ($lt_i == "..") {
10532        lt_count++;
10533      } else {
10534        if (lt_count == 0) {
10535          lt_foo = "/" $lt_i lt_foo;
10536        } else {
10537          lt_count--;
10538        }
10539      }
10540    }
10541  }
10542  if (lt_foo != "") { lt_freq[lt_foo]++; }
10543  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10544}'`
10545  # AWK program above erroneously prepends '/' to C:/dos/paths
10546  # for these hosts.
10547  case $host_os in
10548    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10549      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10550  esac
10551  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10552else
10553  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10554fi
10555library_names_spec=
10556libname_spec='lib$name'
10557soname_spec=
10558shrext_cmds=.so
10559postinstall_cmds=
10560postuninstall_cmds=
10561finish_cmds=
10562finish_eval=
10563shlibpath_var=
10564shlibpath_overrides_runpath=unknown
10565version_type=none
10566dynamic_linker="$host_os ld.so"
10567sys_lib_dlsearch_path_spec="/lib /usr/lib"
10568need_lib_prefix=unknown
10569hardcode_into_libs=no
10570
10571# when you set need_version to no, make sure it does not cause -set_version
10572# flags to be left without arguments
10573need_version=unknown
10574
10575
10576
10577case $host_os in
10578aix3*)
10579  version_type=linux # correct to gnu/linux during the next big refactor
10580  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10581  shlibpath_var=LIBPATH
10582
10583  # AIX 3 has no versioning support, so we append a major version to the name.
10584  soname_spec='$libname$release$shared_ext$major'
10585  ;;
10586
10587aix[4-9]*)
10588  version_type=linux # correct to gnu/linux during the next big refactor
10589  need_lib_prefix=no
10590  need_version=no
10591  hardcode_into_libs=yes
10592  if test ia64 = "$host_cpu"; then
10593    # AIX 5 supports IA64
10594    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10595    shlibpath_var=LD_LIBRARY_PATH
10596  else
10597    # With GCC up to 2.95.x, collect2 would create an import file
10598    # for dependence libraries.  The import file would start with
10599    # the line '#! .'.  This would cause the generated library to
10600    # depend on '.', always an invalid library.  This was fixed in
10601    # development snapshots of GCC prior to 3.0.
10602    case $host_os in
10603      aix4 | aix4.[01] | aix4.[01].*)
10604      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10605	   echo ' yes '
10606	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10607	:
10608      else
10609	can_build_shared=no
10610      fi
10611      ;;
10612    esac
10613    # Using Import Files as archive members, it is possible to support
10614    # filename-based versioning of shared library archives on AIX. While
10615    # this would work for both with and without runtime linking, it will
10616    # prevent static linking of such archives. So we do filename-based
10617    # shared library versioning with .so extension only, which is used
10618    # when both runtime linking and shared linking is enabled.
10619    # Unfortunately, runtime linking may impact performance, so we do
10620    # not want this to be the default eventually. Also, we use the
10621    # versioned .so libs for executables only if there is the -brtl
10622    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10623    # To allow for filename-based versioning support, we need to create
10624    # libNAME.so.V as an archive file, containing:
10625    # *) an Import File, referring to the versioned filename of the
10626    #    archive as well as the shared archive member, telling the
10627    #    bitwidth (32 or 64) of that shared object, and providing the
10628    #    list of exported symbols of that shared object, eventually
10629    #    decorated with the 'weak' keyword
10630    # *) the shared object with the F_LOADONLY flag set, to really avoid
10631    #    it being seen by the linker.
10632    # At run time we better use the real file rather than another symlink,
10633    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10634
10635    case $with_aix_soname,$aix_use_runtimelinking in
10636    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10637    # soname into executable. Probably we can add versioning support to
10638    # collect2, so additional links can be useful in future.
10639    aix,yes) # traditional libtool
10640      dynamic_linker='AIX unversionable lib.so'
10641      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10642      # instead of lib<name>.a to let people know that these are not
10643      # typical AIX shared libraries.
10644      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10645      ;;
10646    aix,no) # traditional AIX only
10647      dynamic_linker='AIX lib.a(lib.so.V)'
10648      # We preserve .a as extension for shared libraries through AIX4.2
10649      # and later when we are not doing run time linking.
10650      library_names_spec='$libname$release.a $libname.a'
10651      soname_spec='$libname$release$shared_ext$major'
10652      ;;
10653    svr4,*) # full svr4 only
10654      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10655      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10656      # We do not specify a path in Import Files, so LIBPATH fires.
10657      shlibpath_overrides_runpath=yes
10658      ;;
10659    *,yes) # both, prefer svr4
10660      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10661      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10662      # unpreferred sharedlib libNAME.a needs extra handling
10663      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"'
10664      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"'
10665      # We do not specify a path in Import Files, so LIBPATH fires.
10666      shlibpath_overrides_runpath=yes
10667      ;;
10668    *,no) # both, prefer aix
10669      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10670      library_names_spec='$libname$release.a $libname.a'
10671      soname_spec='$libname$release$shared_ext$major'
10672      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10673      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)'
10674      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"'
10675      ;;
10676    esac
10677    shlibpath_var=LIBPATH
10678  fi
10679  ;;
10680
10681amigaos*)
10682  case $host_cpu in
10683  powerpc)
10684    # Since July 2007 AmigaOS4 officially supports .so libraries.
10685    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10686    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10687    ;;
10688  m68k)
10689    library_names_spec='$libname.ixlibrary $libname.a'
10690    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10691    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'
10692    ;;
10693  esac
10694  ;;
10695
10696beos*)
10697  library_names_spec='$libname$shared_ext'
10698  dynamic_linker="$host_os ld.so"
10699  shlibpath_var=LIBRARY_PATH
10700  ;;
10701
10702bsdi[45]*)
10703  version_type=linux # correct to gnu/linux during the next big refactor
10704  need_version=no
10705  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10706  soname_spec='$libname$release$shared_ext$major'
10707  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10708  shlibpath_var=LD_LIBRARY_PATH
10709  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10710  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10711  # the default ld.so.conf also contains /usr/contrib/lib and
10712  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10713  # libtool to hard-code these into programs
10714  ;;
10715
10716cygwin* | mingw* | pw32* | cegcc*)
10717  version_type=windows
10718  shrext_cmds=.dll
10719  need_version=no
10720  need_lib_prefix=no
10721
10722  case $GCC,$cc_basename in
10723  yes,*)
10724    # gcc
10725    library_names_spec='$libname.dll.a'
10726    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10727    postinstall_cmds='base_file=`basename \$file`~
10728      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10729      dldir=$destdir/`dirname \$dlpath`~
10730      test -d \$dldir || mkdir -p \$dldir~
10731      $install_prog $dir/$dlname \$dldir/$dlname~
10732      chmod a+x \$dldir/$dlname~
10733      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10734        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10735      fi'
10736    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10737      dlpath=$dir/\$dldll~
10738       $RM \$dlpath'
10739    shlibpath_overrides_runpath=yes
10740
10741    case $host_os in
10742    cygwin*)
10743      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10744      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10745
10746      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10747      ;;
10748    mingw* | cegcc*)
10749      # MinGW DLLs use traditional 'lib' prefix
10750      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10751      ;;
10752    pw32*)
10753      # pw32 DLLs use 'pw' prefix rather than 'lib'
10754      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10755      ;;
10756    esac
10757    dynamic_linker='Win32 ld.exe'
10758    ;;
10759
10760  *,cl*)
10761    # Native MSVC
10762    libname_spec='$name'
10763    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10764    library_names_spec='$libname.dll.lib'
10765
10766    case $build_os in
10767    mingw*)
10768      sys_lib_search_path_spec=
10769      lt_save_ifs=$IFS
10770      IFS=';'
10771      for lt_path in $LIB
10772      do
10773        IFS=$lt_save_ifs
10774        # Let DOS variable expansion print the short 8.3 style file name.
10775        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10776        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10777      done
10778      IFS=$lt_save_ifs
10779      # Convert to MSYS style.
10780      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10781      ;;
10782    cygwin*)
10783      # Convert to unix form, then to dos form, then back to unix form
10784      # but this time dos style (no spaces!) so that the unix form looks
10785      # like /cygdrive/c/PROGRA~1:/cygdr...
10786      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10787      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10788      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10789      ;;
10790    *)
10791      sys_lib_search_path_spec=$LIB
10792      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10793        # It is most probably a Windows format PATH.
10794        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10795      else
10796        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10797      fi
10798      # FIXME: find the short name or the path components, as spaces are
10799      # common. (e.g. "Program Files" -> "PROGRA~1")
10800      ;;
10801    esac
10802
10803    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10804    postinstall_cmds='base_file=`basename \$file`~
10805      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10806      dldir=$destdir/`dirname \$dlpath`~
10807      test -d \$dldir || mkdir -p \$dldir~
10808      $install_prog $dir/$dlname \$dldir/$dlname'
10809    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10810      dlpath=$dir/\$dldll~
10811       $RM \$dlpath'
10812    shlibpath_overrides_runpath=yes
10813    dynamic_linker='Win32 link.exe'
10814    ;;
10815
10816  *)
10817    # Assume MSVC wrapper
10818    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10819    dynamic_linker='Win32 ld.exe'
10820    ;;
10821  esac
10822  # FIXME: first we should search . and the directory the executable is in
10823  shlibpath_var=PATH
10824  ;;
10825
10826darwin* | rhapsody*)
10827  dynamic_linker="$host_os dyld"
10828  version_type=darwin
10829  need_lib_prefix=no
10830  need_version=no
10831  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10832  soname_spec='$libname$release$major$shared_ext'
10833  shlibpath_overrides_runpath=yes
10834  shlibpath_var=DYLD_LIBRARY_PATH
10835  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10836
10837  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10838  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10839  ;;
10840
10841dgux*)
10842  version_type=linux # correct to gnu/linux during the next big refactor
10843  need_lib_prefix=no
10844  need_version=no
10845  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10846  soname_spec='$libname$release$shared_ext$major'
10847  shlibpath_var=LD_LIBRARY_PATH
10848  ;;
10849
10850freebsd* | dragonfly*)
10851  # DragonFly does not have aout.  When/if they implement a new
10852  # versioning mechanism, adjust this.
10853  if test -x /usr/bin/objformat; then
10854    objformat=`/usr/bin/objformat`
10855  else
10856    case $host_os in
10857    freebsd[23].*) objformat=aout ;;
10858    *) objformat=elf ;;
10859    esac
10860  fi
10861  version_type=freebsd-$objformat
10862  case $version_type in
10863    freebsd-elf*)
10864      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10865      soname_spec='$libname$release$shared_ext$major'
10866      need_version=no
10867      need_lib_prefix=no
10868      ;;
10869    freebsd-*)
10870      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10871      need_version=yes
10872      ;;
10873  esac
10874  shlibpath_var=LD_LIBRARY_PATH
10875  case $host_os in
10876  freebsd2.*)
10877    shlibpath_overrides_runpath=yes
10878    ;;
10879  freebsd3.[01]* | freebsdelf3.[01]*)
10880    shlibpath_overrides_runpath=yes
10881    hardcode_into_libs=yes
10882    ;;
10883  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10884  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10885    shlibpath_overrides_runpath=no
10886    hardcode_into_libs=yes
10887    ;;
10888  *) # from 4.6 on, and DragonFly
10889    shlibpath_overrides_runpath=yes
10890    hardcode_into_libs=yes
10891    ;;
10892  esac
10893  ;;
10894
10895haiku*)
10896  version_type=linux # correct to gnu/linux during the next big refactor
10897  need_lib_prefix=no
10898  need_version=no
10899  dynamic_linker="$host_os runtime_loader"
10900  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10901  soname_spec='$libname$release$shared_ext$major'
10902  shlibpath_var=LIBRARY_PATH
10903  shlibpath_overrides_runpath=no
10904  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10905  hardcode_into_libs=yes
10906  ;;
10907
10908hpux9* | hpux10* | hpux11*)
10909  # Give a soname corresponding to the major version so that dld.sl refuses to
10910  # link against other versions.
10911  version_type=sunos
10912  need_lib_prefix=no
10913  need_version=no
10914  case $host_cpu in
10915  ia64*)
10916    shrext_cmds='.so'
10917    hardcode_into_libs=yes
10918    dynamic_linker="$host_os dld.so"
10919    shlibpath_var=LD_LIBRARY_PATH
10920    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10921    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10922    soname_spec='$libname$release$shared_ext$major'
10923    if test 32 = "$HPUX_IA64_MODE"; then
10924      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10925      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10926    else
10927      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10928      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10929    fi
10930    ;;
10931  hppa*64*)
10932    shrext_cmds='.sl'
10933    hardcode_into_libs=yes
10934    dynamic_linker="$host_os dld.sl"
10935    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10936    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10937    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10938    soname_spec='$libname$release$shared_ext$major'
10939    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10940    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10941    ;;
10942  *)
10943    shrext_cmds='.sl'
10944    dynamic_linker="$host_os dld.sl"
10945    shlibpath_var=SHLIB_PATH
10946    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10947    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10948    soname_spec='$libname$release$shared_ext$major'
10949    ;;
10950  esac
10951  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10952  postinstall_cmds='chmod 555 $lib'
10953  # or fails outright, so override atomically:
10954  install_override_mode=555
10955  ;;
10956
10957interix[3-9]*)
10958  version_type=linux # correct to gnu/linux during the next big refactor
10959  need_lib_prefix=no
10960  need_version=no
10961  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10962  soname_spec='$libname$release$shared_ext$major'
10963  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10964  shlibpath_var=LD_LIBRARY_PATH
10965  shlibpath_overrides_runpath=no
10966  hardcode_into_libs=yes
10967  ;;
10968
10969irix5* | irix6* | nonstopux*)
10970  case $host_os in
10971    nonstopux*) version_type=nonstopux ;;
10972    *)
10973	if test yes = "$lt_cv_prog_gnu_ld"; then
10974		version_type=linux # correct to gnu/linux during the next big refactor
10975	else
10976		version_type=irix
10977	fi ;;
10978  esac
10979  need_lib_prefix=no
10980  need_version=no
10981  soname_spec='$libname$release$shared_ext$major'
10982  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10983  case $host_os in
10984  irix5* | nonstopux*)
10985    libsuff= shlibsuff=
10986    ;;
10987  *)
10988    case $LD in # libtool.m4 will add one of these switches to LD
10989    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10990      libsuff= shlibsuff= libmagic=32-bit;;
10991    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10992      libsuff=32 shlibsuff=N32 libmagic=N32;;
10993    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10994      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10995    *) libsuff= shlibsuff= libmagic=never-match;;
10996    esac
10997    ;;
10998  esac
10999  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11000  shlibpath_overrides_runpath=no
11001  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11002  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11003  hardcode_into_libs=yes
11004  ;;
11005
11006# No shared lib support for Linux oldld, aout, or coff.
11007linux*oldld* | linux*aout* | linux*coff*)
11008  dynamic_linker=no
11009  ;;
11010
11011linux*android*)
11012  version_type=none # Android doesn't support versioned libraries.
11013  need_lib_prefix=no
11014  need_version=no
11015  library_names_spec='$libname$release$shared_ext'
11016  soname_spec='$libname$release$shared_ext'
11017  finish_cmds=
11018  shlibpath_var=LD_LIBRARY_PATH
11019  shlibpath_overrides_runpath=yes
11020
11021  # This implies no fast_install, which is unacceptable.
11022  # Some rework will be needed to allow for fast_install
11023  # before this can be enabled.
11024  hardcode_into_libs=yes
11025
11026  dynamic_linker='Android linker'
11027  # Don't embed -rpath directories since the linker doesn't support them.
11028  hardcode_libdir_flag_spec='-L$libdir'
11029  ;;
11030
11031# This must be glibc/ELF.
11032linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11033  version_type=linux # correct to gnu/linux during the next big refactor
11034  need_lib_prefix=no
11035  need_version=no
11036  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11037  soname_spec='$libname$release$shared_ext$major'
11038  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11039  shlibpath_var=LD_LIBRARY_PATH
11040  shlibpath_overrides_runpath=no
11041
11042  # Some binutils ld are patched to set DT_RUNPATH
11043  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11044  $as_echo_n "(cached) " >&6
11045else
11046  lt_cv_shlibpath_overrides_runpath=no
11047    save_LDFLAGS=$LDFLAGS
11048    save_libdir=$libdir
11049    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11050	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052/* end confdefs.h.  */
11053
11054int
11055main ()
11056{
11057
11058  ;
11059  return 0;
11060}
11061_ACEOF
11062if ac_fn_c_try_link "$LINENO"; then :
11063  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11064  lt_cv_shlibpath_overrides_runpath=yes
11065fi
11066fi
11067rm -f core conftest.err conftest.$ac_objext \
11068    conftest$ac_exeext conftest.$ac_ext
11069    LDFLAGS=$save_LDFLAGS
11070    libdir=$save_libdir
11071
11072fi
11073
11074  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11075
11076  # This implies no fast_install, which is unacceptable.
11077  # Some rework will be needed to allow for fast_install
11078  # before this can be enabled.
11079  hardcode_into_libs=yes
11080
11081  # Ideally, we could use ldconfig to report *all* directores which are
11082  # searched for libraries, however this is still not possible.  Aside from not
11083  # being certain /sbin/ldconfig is available, command
11084  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11085  # even though it is searched at run-time.  Try to do the best guess by
11086  # appending ld.so.conf contents (and includes) to the search path.
11087  if test -f /etc/ld.so.conf; then
11088    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' ' '`
11089    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11090  fi
11091
11092  # We used to test for /lib/ld.so.1 and disable shared libraries on
11093  # powerpc, because MkLinux only supported shared libraries with the
11094  # GNU dynamic linker.  Since this was broken with cross compilers,
11095  # most powerpc-linux boxes support dynamic linking these days and
11096  # people can always --disable-shared, the test was removed, and we
11097  # assume the GNU/Linux dynamic linker is in use.
11098  dynamic_linker='GNU/Linux ld.so'
11099  ;;
11100
11101netbsd*)
11102  version_type=sunos
11103  need_lib_prefix=no
11104  need_version=no
11105  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11106    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11107    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108    dynamic_linker='NetBSD (a.out) ld.so'
11109  else
11110    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11111    soname_spec='$libname$release$shared_ext$major'
11112    dynamic_linker='NetBSD ld.elf_so'
11113  fi
11114  shlibpath_var=LD_LIBRARY_PATH
11115  shlibpath_overrides_runpath=yes
11116  hardcode_into_libs=yes
11117  ;;
11118
11119newsos6)
11120  version_type=linux # correct to gnu/linux during the next big refactor
11121  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11122  shlibpath_var=LD_LIBRARY_PATH
11123  shlibpath_overrides_runpath=yes
11124  ;;
11125
11126*nto* | *qnx*)
11127  version_type=qnx
11128  need_lib_prefix=no
11129  need_version=no
11130  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11131  soname_spec='$libname$release$shared_ext$major'
11132  shlibpath_var=LD_LIBRARY_PATH
11133  shlibpath_overrides_runpath=no
11134  hardcode_into_libs=yes
11135  dynamic_linker='ldqnx.so'
11136  ;;
11137
11138openbsd* | bitrig*)
11139  version_type=sunos
11140  sys_lib_dlsearch_path_spec=/usr/lib
11141  need_lib_prefix=no
11142  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11143    need_version=no
11144  else
11145    need_version=yes
11146  fi
11147  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11148  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11149  shlibpath_var=LD_LIBRARY_PATH
11150  shlibpath_overrides_runpath=yes
11151  ;;
11152
11153os2*)
11154  libname_spec='$name'
11155  version_type=windows
11156  shrext_cmds=.dll
11157  need_version=no
11158  need_lib_prefix=no
11159  # OS/2 can only load a DLL with a base name of 8 characters or less.
11160  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11161    v=$($ECHO $release$versuffix | tr -d .-);
11162    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11163    $ECHO $n$v`$shared_ext'
11164  library_names_spec='${libname}_dll.$libext'
11165  dynamic_linker='OS/2 ld.exe'
11166  shlibpath_var=BEGINLIBPATH
11167  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11168  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11169  postinstall_cmds='base_file=`basename \$file`~
11170    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11171    dldir=$destdir/`dirname \$dlpath`~
11172    test -d \$dldir || mkdir -p \$dldir~
11173    $install_prog $dir/$dlname \$dldir/$dlname~
11174    chmod a+x \$dldir/$dlname~
11175    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11176      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11177    fi'
11178  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11179    dlpath=$dir/\$dldll~
11180    $RM \$dlpath'
11181  ;;
11182
11183osf3* | osf4* | osf5*)
11184  version_type=osf
11185  need_lib_prefix=no
11186  need_version=no
11187  soname_spec='$libname$release$shared_ext$major'
11188  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189  shlibpath_var=LD_LIBRARY_PATH
11190  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11191  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11192  ;;
11193
11194rdos*)
11195  dynamic_linker=no
11196  ;;
11197
11198solaris*)
11199  version_type=linux # correct to gnu/linux during the next big refactor
11200  need_lib_prefix=no
11201  need_version=no
11202  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11203  soname_spec='$libname$release$shared_ext$major'
11204  shlibpath_var=LD_LIBRARY_PATH
11205  shlibpath_overrides_runpath=yes
11206  hardcode_into_libs=yes
11207  # ldd complains unless libraries are executable
11208  postinstall_cmds='chmod +x $lib'
11209  ;;
11210
11211sunos4*)
11212  version_type=sunos
11213  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11214  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11215  shlibpath_var=LD_LIBRARY_PATH
11216  shlibpath_overrides_runpath=yes
11217  if test yes = "$with_gnu_ld"; then
11218    need_lib_prefix=no
11219  fi
11220  need_version=yes
11221  ;;
11222
11223sysv4 | sysv4.3*)
11224  version_type=linux # correct to gnu/linux during the next big refactor
11225  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11226  soname_spec='$libname$release$shared_ext$major'
11227  shlibpath_var=LD_LIBRARY_PATH
11228  case $host_vendor in
11229    sni)
11230      shlibpath_overrides_runpath=no
11231      need_lib_prefix=no
11232      runpath_var=LD_RUN_PATH
11233      ;;
11234    siemens)
11235      need_lib_prefix=no
11236      ;;
11237    motorola)
11238      need_lib_prefix=no
11239      need_version=no
11240      shlibpath_overrides_runpath=no
11241      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11242      ;;
11243  esac
11244  ;;
11245
11246sysv4*MP*)
11247  if test -d /usr/nec; then
11248    version_type=linux # correct to gnu/linux during the next big refactor
11249    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11250    soname_spec='$libname$shared_ext.$major'
11251    shlibpath_var=LD_LIBRARY_PATH
11252  fi
11253  ;;
11254
11255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11256  version_type=sco
11257  need_lib_prefix=no
11258  need_version=no
11259  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11260  soname_spec='$libname$release$shared_ext$major'
11261  shlibpath_var=LD_LIBRARY_PATH
11262  shlibpath_overrides_runpath=yes
11263  hardcode_into_libs=yes
11264  if test yes = "$with_gnu_ld"; then
11265    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11266  else
11267    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11268    case $host_os in
11269      sco3.2v5*)
11270        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11271	;;
11272    esac
11273  fi
11274  sys_lib_dlsearch_path_spec='/usr/lib'
11275  ;;
11276
11277tpf*)
11278  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11279  version_type=linux # correct to gnu/linux during the next big refactor
11280  need_lib_prefix=no
11281  need_version=no
11282  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11283  shlibpath_var=LD_LIBRARY_PATH
11284  shlibpath_overrides_runpath=no
11285  hardcode_into_libs=yes
11286  ;;
11287
11288uts4*)
11289  version_type=linux # correct to gnu/linux during the next big refactor
11290  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11291  soname_spec='$libname$release$shared_ext$major'
11292  shlibpath_var=LD_LIBRARY_PATH
11293  ;;
11294
11295*)
11296  dynamic_linker=no
11297  ;;
11298esac
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11300$as_echo "$dynamic_linker" >&6; }
11301test no = "$dynamic_linker" && can_build_shared=no
11302
11303variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11304if test yes = "$GCC"; then
11305  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11306fi
11307
11308if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11309  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11310fi
11311
11312if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11313  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11314fi
11315
11316# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11317configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11318
11319# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11320func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11321
11322# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11323configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11422$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11423hardcode_action=
11424if test -n "$hardcode_libdir_flag_spec" ||
11425   test -n "$runpath_var" ||
11426   test yes = "$hardcode_automatic"; then
11427
11428  # We can hardcode non-existent directories.
11429  if test no != "$hardcode_direct" &&
11430     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11431     # have to relink, otherwise we might link with an installed library
11432     # when we should be linking with a yet-to-be-installed one
11433     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11434     test no != "$hardcode_minus_L"; then
11435    # Linking always hardcodes the temporary library directory.
11436    hardcode_action=relink
11437  else
11438    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11439    hardcode_action=immediate
11440  fi
11441else
11442  # We cannot hardcode anything, or else we can only hardcode existing
11443  # directories.
11444  hardcode_action=unsupported
11445fi
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11447$as_echo "$hardcode_action" >&6; }
11448
11449if test relink = "$hardcode_action" ||
11450   test yes = "$inherit_rpath"; then
11451  # Fast installation is not supported
11452  enable_fast_install=no
11453elif test yes = "$shlibpath_overrides_runpath" ||
11454     test no = "$enable_shared"; then
11455  # Fast installation is not necessary
11456  enable_fast_install=needless
11457fi
11458
11459
11460
11461
11462
11463
11464  if test yes != "$enable_dlopen"; then
11465  enable_dlopen=unknown
11466  enable_dlopen_self=unknown
11467  enable_dlopen_self_static=unknown
11468else
11469  lt_cv_dlopen=no
11470  lt_cv_dlopen_libs=
11471
11472  case $host_os in
11473  beos*)
11474    lt_cv_dlopen=load_add_on
11475    lt_cv_dlopen_libs=
11476    lt_cv_dlopen_self=yes
11477    ;;
11478
11479  mingw* | pw32* | cegcc*)
11480    lt_cv_dlopen=LoadLibrary
11481    lt_cv_dlopen_libs=
11482    ;;
11483
11484  cygwin*)
11485    lt_cv_dlopen=dlopen
11486    lt_cv_dlopen_libs=
11487    ;;
11488
11489  darwin*)
11490    # if libdl is installed we need to link against it
11491    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11492$as_echo_n "checking for dlopen in -ldl... " >&6; }
11493if ${ac_cv_lib_dl_dlopen+:} false; then :
11494  $as_echo_n "(cached) " >&6
11495else
11496  ac_check_lib_save_LIBS=$LIBS
11497LIBS="-ldl  $LIBS"
11498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499/* end confdefs.h.  */
11500
11501/* Override any GCC internal prototype to avoid an error.
11502   Use char because int might match the return type of a GCC
11503   builtin and then its argument prototype would still apply.  */
11504#ifdef __cplusplus
11505extern "C"
11506#endif
11507char dlopen ();
11508int
11509main ()
11510{
11511return dlopen ();
11512  ;
11513  return 0;
11514}
11515_ACEOF
11516if ac_fn_c_try_link "$LINENO"; then :
11517  ac_cv_lib_dl_dlopen=yes
11518else
11519  ac_cv_lib_dl_dlopen=no
11520fi
11521rm -f core conftest.err conftest.$ac_objext \
11522    conftest$ac_exeext conftest.$ac_ext
11523LIBS=$ac_check_lib_save_LIBS
11524fi
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11526$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11527if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11528  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11529else
11530
11531    lt_cv_dlopen=dyld
11532    lt_cv_dlopen_libs=
11533    lt_cv_dlopen_self=yes
11534
11535fi
11536
11537    ;;
11538
11539  tpf*)
11540    # Don't try to run any link tests for TPF.  We know it's impossible
11541    # because TPF is a cross-compiler, and we know how we open DSOs.
11542    lt_cv_dlopen=dlopen
11543    lt_cv_dlopen_libs=
11544    lt_cv_dlopen_self=no
11545    ;;
11546
11547  *)
11548    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11549if test "x$ac_cv_func_shl_load" = xyes; then :
11550  lt_cv_dlopen=shl_load
11551else
11552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11553$as_echo_n "checking for shl_load in -ldld... " >&6; }
11554if ${ac_cv_lib_dld_shl_load+:} false; then :
11555  $as_echo_n "(cached) " >&6
11556else
11557  ac_check_lib_save_LIBS=$LIBS
11558LIBS="-ldld  $LIBS"
11559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560/* end confdefs.h.  */
11561
11562/* Override any GCC internal prototype to avoid an error.
11563   Use char because int might match the return type of a GCC
11564   builtin and then its argument prototype would still apply.  */
11565#ifdef __cplusplus
11566extern "C"
11567#endif
11568char shl_load ();
11569int
11570main ()
11571{
11572return shl_load ();
11573  ;
11574  return 0;
11575}
11576_ACEOF
11577if ac_fn_c_try_link "$LINENO"; then :
11578  ac_cv_lib_dld_shl_load=yes
11579else
11580  ac_cv_lib_dld_shl_load=no
11581fi
11582rm -f core conftest.err conftest.$ac_objext \
11583    conftest$ac_exeext conftest.$ac_ext
11584LIBS=$ac_check_lib_save_LIBS
11585fi
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11587$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11588if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11589  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11590else
11591  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11592if test "x$ac_cv_func_dlopen" = xyes; then :
11593  lt_cv_dlopen=dlopen
11594else
11595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11596$as_echo_n "checking for dlopen in -ldl... " >&6; }
11597if ${ac_cv_lib_dl_dlopen+:} false; then :
11598  $as_echo_n "(cached) " >&6
11599else
11600  ac_check_lib_save_LIBS=$LIBS
11601LIBS="-ldl  $LIBS"
11602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603/* end confdefs.h.  */
11604
11605/* Override any GCC internal prototype to avoid an error.
11606   Use char because int might match the return type of a GCC
11607   builtin and then its argument prototype would still apply.  */
11608#ifdef __cplusplus
11609extern "C"
11610#endif
11611char dlopen ();
11612int
11613main ()
11614{
11615return dlopen ();
11616  ;
11617  return 0;
11618}
11619_ACEOF
11620if ac_fn_c_try_link "$LINENO"; then :
11621  ac_cv_lib_dl_dlopen=yes
11622else
11623  ac_cv_lib_dl_dlopen=no
11624fi
11625rm -f core conftest.err conftest.$ac_objext \
11626    conftest$ac_exeext conftest.$ac_ext
11627LIBS=$ac_check_lib_save_LIBS
11628fi
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11630$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11631if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11632  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11633else
11634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11635$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11636if ${ac_cv_lib_svld_dlopen+:} false; then :
11637  $as_echo_n "(cached) " >&6
11638else
11639  ac_check_lib_save_LIBS=$LIBS
11640LIBS="-lsvld  $LIBS"
11641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642/* end confdefs.h.  */
11643
11644/* Override any GCC internal prototype to avoid an error.
11645   Use char because int might match the return type of a GCC
11646   builtin and then its argument prototype would still apply.  */
11647#ifdef __cplusplus
11648extern "C"
11649#endif
11650char dlopen ();
11651int
11652main ()
11653{
11654return dlopen ();
11655  ;
11656  return 0;
11657}
11658_ACEOF
11659if ac_fn_c_try_link "$LINENO"; then :
11660  ac_cv_lib_svld_dlopen=yes
11661else
11662  ac_cv_lib_svld_dlopen=no
11663fi
11664rm -f core conftest.err conftest.$ac_objext \
11665    conftest$ac_exeext conftest.$ac_ext
11666LIBS=$ac_check_lib_save_LIBS
11667fi
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11669$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11670if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11671  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11672else
11673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11674$as_echo_n "checking for dld_link in -ldld... " >&6; }
11675if ${ac_cv_lib_dld_dld_link+:} false; then :
11676  $as_echo_n "(cached) " >&6
11677else
11678  ac_check_lib_save_LIBS=$LIBS
11679LIBS="-ldld  $LIBS"
11680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681/* end confdefs.h.  */
11682
11683/* Override any GCC internal prototype to avoid an error.
11684   Use char because int might match the return type of a GCC
11685   builtin and then its argument prototype would still apply.  */
11686#ifdef __cplusplus
11687extern "C"
11688#endif
11689char dld_link ();
11690int
11691main ()
11692{
11693return dld_link ();
11694  ;
11695  return 0;
11696}
11697_ACEOF
11698if ac_fn_c_try_link "$LINENO"; then :
11699  ac_cv_lib_dld_dld_link=yes
11700else
11701  ac_cv_lib_dld_dld_link=no
11702fi
11703rm -f core conftest.err conftest.$ac_objext \
11704    conftest$ac_exeext conftest.$ac_ext
11705LIBS=$ac_check_lib_save_LIBS
11706fi
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11708$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11709if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11710  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11711fi
11712
11713
11714fi
11715
11716
11717fi
11718
11719
11720fi
11721
11722
11723fi
11724
11725
11726fi
11727
11728    ;;
11729  esac
11730
11731  if test no = "$lt_cv_dlopen"; then
11732    enable_dlopen=no
11733  else
11734    enable_dlopen=yes
11735  fi
11736
11737  case $lt_cv_dlopen in
11738  dlopen)
11739    save_CPPFLAGS=$CPPFLAGS
11740    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11741
11742    save_LDFLAGS=$LDFLAGS
11743    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11744
11745    save_LIBS=$LIBS
11746    LIBS="$lt_cv_dlopen_libs $LIBS"
11747
11748    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11749$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11750if ${lt_cv_dlopen_self+:} false; then :
11751  $as_echo_n "(cached) " >&6
11752else
11753  	  if test yes = "$cross_compiling"; then :
11754  lt_cv_dlopen_self=cross
11755else
11756  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11757  lt_status=$lt_dlunknown
11758  cat > conftest.$ac_ext <<_LT_EOF
11759#line $LINENO "configure"
11760#include "confdefs.h"
11761
11762#if HAVE_DLFCN_H
11763#include <dlfcn.h>
11764#endif
11765
11766#include <stdio.h>
11767
11768#ifdef RTLD_GLOBAL
11769#  define LT_DLGLOBAL		RTLD_GLOBAL
11770#else
11771#  ifdef DL_GLOBAL
11772#    define LT_DLGLOBAL		DL_GLOBAL
11773#  else
11774#    define LT_DLGLOBAL		0
11775#  endif
11776#endif
11777
11778/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11779   find out it does not work in some platform. */
11780#ifndef LT_DLLAZY_OR_NOW
11781#  ifdef RTLD_LAZY
11782#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11783#  else
11784#    ifdef DL_LAZY
11785#      define LT_DLLAZY_OR_NOW		DL_LAZY
11786#    else
11787#      ifdef RTLD_NOW
11788#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11789#      else
11790#        ifdef DL_NOW
11791#          define LT_DLLAZY_OR_NOW	DL_NOW
11792#        else
11793#          define LT_DLLAZY_OR_NOW	0
11794#        endif
11795#      endif
11796#    endif
11797#  endif
11798#endif
11799
11800/* When -fvisibility=hidden is used, assume the code has been annotated
11801   correspondingly for the symbols needed.  */
11802#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11803int fnord () __attribute__((visibility("default")));
11804#endif
11805
11806int fnord () { return 42; }
11807int main ()
11808{
11809  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11810  int status = $lt_dlunknown;
11811
11812  if (self)
11813    {
11814      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11815      else
11816        {
11817	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11818          else puts (dlerror ());
11819	}
11820      /* dlclose (self); */
11821    }
11822  else
11823    puts (dlerror ());
11824
11825  return status;
11826}
11827_LT_EOF
11828  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11829  (eval $ac_link) 2>&5
11830  ac_status=$?
11831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11832  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11833    (./conftest; exit; ) >&5 2>/dev/null
11834    lt_status=$?
11835    case x$lt_status in
11836      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11837      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11838      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11839    esac
11840  else :
11841    # compilation failed
11842    lt_cv_dlopen_self=no
11843  fi
11844fi
11845rm -fr conftest*
11846
11847
11848fi
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11850$as_echo "$lt_cv_dlopen_self" >&6; }
11851
11852    if test yes = "$lt_cv_dlopen_self"; then
11853      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11854      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11855$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11856if ${lt_cv_dlopen_self_static+:} false; then :
11857  $as_echo_n "(cached) " >&6
11858else
11859  	  if test yes = "$cross_compiling"; then :
11860  lt_cv_dlopen_self_static=cross
11861else
11862  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11863  lt_status=$lt_dlunknown
11864  cat > conftest.$ac_ext <<_LT_EOF
11865#line $LINENO "configure"
11866#include "confdefs.h"
11867
11868#if HAVE_DLFCN_H
11869#include <dlfcn.h>
11870#endif
11871
11872#include <stdio.h>
11873
11874#ifdef RTLD_GLOBAL
11875#  define LT_DLGLOBAL		RTLD_GLOBAL
11876#else
11877#  ifdef DL_GLOBAL
11878#    define LT_DLGLOBAL		DL_GLOBAL
11879#  else
11880#    define LT_DLGLOBAL		0
11881#  endif
11882#endif
11883
11884/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11885   find out it does not work in some platform. */
11886#ifndef LT_DLLAZY_OR_NOW
11887#  ifdef RTLD_LAZY
11888#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11889#  else
11890#    ifdef DL_LAZY
11891#      define LT_DLLAZY_OR_NOW		DL_LAZY
11892#    else
11893#      ifdef RTLD_NOW
11894#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11895#      else
11896#        ifdef DL_NOW
11897#          define LT_DLLAZY_OR_NOW	DL_NOW
11898#        else
11899#          define LT_DLLAZY_OR_NOW	0
11900#        endif
11901#      endif
11902#    endif
11903#  endif
11904#endif
11905
11906/* When -fvisibility=hidden is used, assume the code has been annotated
11907   correspondingly for the symbols needed.  */
11908#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11909int fnord () __attribute__((visibility("default")));
11910#endif
11911
11912int fnord () { return 42; }
11913int main ()
11914{
11915  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11916  int status = $lt_dlunknown;
11917
11918  if (self)
11919    {
11920      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11921      else
11922        {
11923	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11924          else puts (dlerror ());
11925	}
11926      /* dlclose (self); */
11927    }
11928  else
11929    puts (dlerror ());
11930
11931  return status;
11932}
11933_LT_EOF
11934  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11935  (eval $ac_link) 2>&5
11936  ac_status=$?
11937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11938  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11939    (./conftest; exit; ) >&5 2>/dev/null
11940    lt_status=$?
11941    case x$lt_status in
11942      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11943      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11944      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11945    esac
11946  else :
11947    # compilation failed
11948    lt_cv_dlopen_self_static=no
11949  fi
11950fi
11951rm -fr conftest*
11952
11953
11954fi
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11956$as_echo "$lt_cv_dlopen_self_static" >&6; }
11957    fi
11958
11959    CPPFLAGS=$save_CPPFLAGS
11960    LDFLAGS=$save_LDFLAGS
11961    LIBS=$save_LIBS
11962    ;;
11963  esac
11964
11965  case $lt_cv_dlopen_self in
11966  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11967  *) enable_dlopen_self=unknown ;;
11968  esac
11969
11970  case $lt_cv_dlopen_self_static in
11971  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11972  *) enable_dlopen_self_static=unknown ;;
11973  esac
11974fi
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992striplib=
11993old_striplib=
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11995$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11996if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11997  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11998  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12000$as_echo "yes" >&6; }
12001else
12002# FIXME - insert some real tests, host_os isn't really good enough
12003  case $host_os in
12004  darwin*)
12005    if test -n "$STRIP"; then
12006      striplib="$STRIP -x"
12007      old_striplib="$STRIP -S"
12008      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009$as_echo "yes" >&6; }
12010    else
12011      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012$as_echo "no" >&6; }
12013    fi
12014    ;;
12015  *)
12016    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
12018    ;;
12019  esac
12020fi
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033  # Report what library types will actually be built
12034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12035$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12037$as_echo "$can_build_shared" >&6; }
12038
12039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12040$as_echo_n "checking whether to build shared libraries... " >&6; }
12041  test no = "$can_build_shared" && enable_shared=no
12042
12043  # On AIX, shared libraries and static libraries use the same namespace, and
12044  # are all built from PIC.
12045  case $host_os in
12046  aix3*)
12047    test yes = "$enable_shared" && enable_static=no
12048    if test -n "$RANLIB"; then
12049      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12050      postinstall_cmds='$RANLIB $lib'
12051    fi
12052    ;;
12053
12054  aix[4-9]*)
12055    if test ia64 != "$host_cpu"; then
12056      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12057      yes,aix,yes) ;;			# shared object as lib.so file only
12058      yes,svr4,*) ;;			# shared object as lib.so archive member only
12059      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12060      esac
12061    fi
12062    ;;
12063  esac
12064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12065$as_echo "$enable_shared" >&6; }
12066
12067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12068$as_echo_n "checking whether to build static libraries... " >&6; }
12069  # Make sure either enable_shared or enable_static is yes.
12070  test yes = "$enable_shared" || enable_static=yes
12071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12072$as_echo "$enable_static" >&6; }
12073
12074
12075
12076
12077fi
12078ac_ext=c
12079ac_cpp='$CPP $CPPFLAGS'
12080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12082ac_compiler_gnu=$ac_cv_c_compiler_gnu
12083
12084CC=$lt_save_CC
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100        ac_config_commands="$ac_config_commands libtool"
12101
12102
12103
12104
12105# Only expand once:
12106
12107
12108
12109# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12122$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12123if ${ac_cv_prog_cc_c99+:} false; then :
12124  $as_echo_n "(cached) " >&6
12125else
12126  ac_cv_prog_cc_c99=no
12127ac_save_CC=$CC
12128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h.  */
12130#include <stdarg.h>
12131#include <stdbool.h>
12132#include <stdlib.h>
12133#include <wchar.h>
12134#include <stdio.h>
12135
12136// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12137#define debug(...) fprintf (stderr, __VA_ARGS__)
12138#define showlist(...) puts (#__VA_ARGS__)
12139#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12140static void
12141test_varargs_macros (void)
12142{
12143  int x = 1234;
12144  int y = 5678;
12145  debug ("Flag");
12146  debug ("X = %d\n", x);
12147  showlist (The first, second, and third items.);
12148  report (x>y, "x is %d but y is %d", x, y);
12149}
12150
12151// Check long long types.
12152#define BIG64 18446744073709551615ull
12153#define BIG32 4294967295ul
12154#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12155#if !BIG_OK
12156  your preprocessor is broken;
12157#endif
12158#if BIG_OK
12159#else
12160  your preprocessor is broken;
12161#endif
12162static long long int bignum = -9223372036854775807LL;
12163static unsigned long long int ubignum = BIG64;
12164
12165struct incomplete_array
12166{
12167  int datasize;
12168  double data[];
12169};
12170
12171struct named_init {
12172  int number;
12173  const wchar_t *name;
12174  double average;
12175};
12176
12177typedef const char *ccp;
12178
12179static inline int
12180test_restrict (ccp restrict text)
12181{
12182  // See if C++-style comments work.
12183  // Iterate through items via the restricted pointer.
12184  // Also check for declarations in for loops.
12185  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12186    continue;
12187  return 0;
12188}
12189
12190// Check varargs and va_copy.
12191static void
12192test_varargs (const char *format, ...)
12193{
12194  va_list args;
12195  va_start (args, format);
12196  va_list args_copy;
12197  va_copy (args_copy, args);
12198
12199  const char *str;
12200  int number;
12201  float fnumber;
12202
12203  while (*format)
12204    {
12205      switch (*format++)
12206	{
12207	case 's': // string
12208	  str = va_arg (args_copy, const char *);
12209	  break;
12210	case 'd': // int
12211	  number = va_arg (args_copy, int);
12212	  break;
12213	case 'f': // float
12214	  fnumber = va_arg (args_copy, double);
12215	  break;
12216	default:
12217	  break;
12218	}
12219    }
12220  va_end (args_copy);
12221  va_end (args);
12222}
12223
12224int
12225main ()
12226{
12227
12228  // Check bool.
12229  _Bool success = false;
12230
12231  // Check restrict.
12232  if (test_restrict ("String literal") == 0)
12233    success = true;
12234  char *restrict newvar = "Another string";
12235
12236  // Check varargs.
12237  test_varargs ("s, d' f .", "string", 65, 34.234);
12238  test_varargs_macros ();
12239
12240  // Check flexible array members.
12241  struct incomplete_array *ia =
12242    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12243  ia->datasize = 10;
12244  for (int i = 0; i < ia->datasize; ++i)
12245    ia->data[i] = i * 1.234;
12246
12247  // Check named initializers.
12248  struct named_init ni = {
12249    .number = 34,
12250    .name = L"Test wide string",
12251    .average = 543.34343,
12252  };
12253
12254  ni.number = 58;
12255
12256  int dynamic_array[ni.number];
12257  dynamic_array[ni.number - 1] = 543;
12258
12259  // work around unused variable warnings
12260  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12261	  || dynamic_array[ni.number - 1] != 543);
12262
12263  ;
12264  return 0;
12265}
12266_ACEOF
12267for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12268do
12269  CC="$ac_save_CC $ac_arg"
12270  if ac_fn_c_try_compile "$LINENO"; then :
12271  ac_cv_prog_cc_c99=$ac_arg
12272fi
12273rm -f core conftest.err conftest.$ac_objext
12274  test "x$ac_cv_prog_cc_c99" != "xno" && break
12275done
12276rm -f conftest.$ac_ext
12277CC=$ac_save_CC
12278
12279fi
12280# AC_CACHE_VAL
12281case "x$ac_cv_prog_cc_c99" in
12282  x)
12283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12284$as_echo "none needed" >&6; } ;;
12285  xno)
12286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12287$as_echo "unsupported" >&6; } ;;
12288  *)
12289    CC="$CC $ac_cv_prog_cc_c99"
12290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12291$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12292esac
12293if test "x$ac_cv_prog_cc_c99" != xno; then :
12294
12295fi
12296
12297
12298
12299
12300
12301
12302ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12303if test "x$ac_cv_have_decl___clang__" = xyes; then :
12304  CLANGCC="yes"
12305else
12306  CLANGCC="no"
12307fi
12308
12309ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12310if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12311  INTELCC="yes"
12312else
12313  INTELCC="no"
12314fi
12315
12316ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12317if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12318  SUNCC="yes"
12319else
12320  SUNCC="no"
12321fi
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12332	if test -n "$ac_tool_prefix"; then
12333  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12334set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336$as_echo_n "checking for $ac_word... " >&6; }
12337if ${ac_cv_path_PKG_CONFIG+:} false; then :
12338  $as_echo_n "(cached) " >&6
12339else
12340  case $PKG_CONFIG in
12341  [\\/]* | ?:[\\/]*)
12342  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12343  ;;
12344  *)
12345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346for as_dir in $PATH
12347do
12348  IFS=$as_save_IFS
12349  test -z "$as_dir" && as_dir=.
12350    for ac_exec_ext in '' $ac_executable_extensions; do
12351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354    break 2
12355  fi
12356done
12357  done
12358IFS=$as_save_IFS
12359
12360  ;;
12361esac
12362fi
12363PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12364if test -n "$PKG_CONFIG"; then
12365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12366$as_echo "$PKG_CONFIG" >&6; }
12367else
12368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369$as_echo "no" >&6; }
12370fi
12371
12372
12373fi
12374if test -z "$ac_cv_path_PKG_CONFIG"; then
12375  ac_pt_PKG_CONFIG=$PKG_CONFIG
12376  # Extract the first word of "pkg-config", so it can be a program name with args.
12377set dummy pkg-config; ac_word=$2
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379$as_echo_n "checking for $ac_word... " >&6; }
12380if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12381  $as_echo_n "(cached) " >&6
12382else
12383  case $ac_pt_PKG_CONFIG in
12384  [\\/]* | ?:[\\/]*)
12385  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12386  ;;
12387  *)
12388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389for as_dir in $PATH
12390do
12391  IFS=$as_save_IFS
12392  test -z "$as_dir" && as_dir=.
12393    for ac_exec_ext in '' $ac_executable_extensions; do
12394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12395    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397    break 2
12398  fi
12399done
12400  done
12401IFS=$as_save_IFS
12402
12403  ;;
12404esac
12405fi
12406ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12407if test -n "$ac_pt_PKG_CONFIG"; then
12408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12409$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12410else
12411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412$as_echo "no" >&6; }
12413fi
12414
12415  if test "x$ac_pt_PKG_CONFIG" = x; then
12416    PKG_CONFIG=""
12417  else
12418    case $cross_compiling:$ac_tool_warned in
12419yes:)
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12422ac_tool_warned=yes ;;
12423esac
12424    PKG_CONFIG=$ac_pt_PKG_CONFIG
12425  fi
12426else
12427  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12428fi
12429
12430fi
12431if test -n "$PKG_CONFIG"; then
12432	_pkg_min_version=0.9.0
12433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12434$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12435	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12437$as_echo "yes" >&6; }
12438	else
12439		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
12441		PKG_CONFIG=""
12442	fi
12443fi
12444
12445
12446
12447
12448
12449# Check whether --enable-selective-werror was given.
12450if test "${enable_selective_werror+set}" = set; then :
12451  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12452else
12453  SELECTIVE_WERROR=yes
12454fi
12455
12456
12457
12458
12459
12460# -v is too short to test reliably with XORG_TESTSET_CFLAG
12461if test "x$SUNCC" = "xyes"; then
12462    BASE_CFLAGS="-v"
12463else
12464    BASE_CFLAGS=""
12465fi
12466
12467# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481xorg_testset_save_CFLAGS="$CFLAGS"
12482
12483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12488  $as_echo_n "(cached) " >&6
12489else
12490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491/* end confdefs.h.  */
12492int i;
12493_ACEOF
12494if ac_fn_c_try_compile "$LINENO"; then :
12495  xorg_cv_cc_flag_unknown_warning_option=yes
12496else
12497  xorg_cv_cc_flag_unknown_warning_option=no
12498fi
12499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500fi
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12504	CFLAGS="$xorg_testset_save_CFLAGS"
12505fi
12506
12507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12510	fi
12511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12515  $as_echo_n "(cached) " >&6
12516else
12517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518/* end confdefs.h.  */
12519int i;
12520_ACEOF
12521if ac_fn_c_try_compile "$LINENO"; then :
12522  xorg_cv_cc_flag_unused_command_line_argument=yes
12523else
12524  xorg_cv_cc_flag_unused_command_line_argument=no
12525fi
12526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527fi
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12530	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12531	CFLAGS="$xorg_testset_save_CFLAGS"
12532fi
12533
12534found="no"
12535
12536	if test $found = "no" ; then
12537		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12538			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12539		fi
12540
12541		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12542			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12543		fi
12544
12545		CFLAGS="$CFLAGS -Wall"
12546
12547		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12548$as_echo_n "checking if $CC supports -Wall... " >&6; }
12549		cacheid=xorg_cv_cc_flag__Wall
12550		if eval \${$cacheid+:} false; then :
12551  $as_echo_n "(cached) " >&6
12552else
12553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554/* end confdefs.h.  */
12555int i;
12556int
12557main ()
12558{
12559
12560  ;
12561  return 0;
12562}
12563_ACEOF
12564if ac_fn_c_try_link "$LINENO"; then :
12565  eval $cacheid=yes
12566else
12567  eval $cacheid=no
12568fi
12569rm -f core conftest.err conftest.$ac_objext \
12570    conftest$ac_exeext conftest.$ac_ext
12571fi
12572
12573
12574		CFLAGS="$xorg_testset_save_CFLAGS"
12575
12576		eval supported=\$$cacheid
12577		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12578$as_echo "$supported" >&6; }
12579		if test "$supported" = "yes" ; then
12580			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12581			found="yes"
12582		fi
12583	fi
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599xorg_testset_save_CFLAGS="$CFLAGS"
12600
12601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12606  $as_echo_n "(cached) " >&6
12607else
12608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609/* end confdefs.h.  */
12610int i;
12611_ACEOF
12612if ac_fn_c_try_compile "$LINENO"; then :
12613  xorg_cv_cc_flag_unknown_warning_option=yes
12614else
12615  xorg_cv_cc_flag_unknown_warning_option=no
12616fi
12617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618fi
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12622	CFLAGS="$xorg_testset_save_CFLAGS"
12623fi
12624
12625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12628	fi
12629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12633  $as_echo_n "(cached) " >&6
12634else
12635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636/* end confdefs.h.  */
12637int i;
12638_ACEOF
12639if ac_fn_c_try_compile "$LINENO"; then :
12640  xorg_cv_cc_flag_unused_command_line_argument=yes
12641else
12642  xorg_cv_cc_flag_unused_command_line_argument=no
12643fi
12644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645fi
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12648	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12649	CFLAGS="$xorg_testset_save_CFLAGS"
12650fi
12651
12652found="no"
12653
12654	if test $found = "no" ; then
12655		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12656			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12657		fi
12658
12659		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12660			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12661		fi
12662
12663		CFLAGS="$CFLAGS -Wpointer-arith"
12664
12665		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12666$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12667		cacheid=xorg_cv_cc_flag__Wpointer_arith
12668		if eval \${$cacheid+:} false; then :
12669  $as_echo_n "(cached) " >&6
12670else
12671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672/* end confdefs.h.  */
12673int i;
12674int
12675main ()
12676{
12677
12678  ;
12679  return 0;
12680}
12681_ACEOF
12682if ac_fn_c_try_link "$LINENO"; then :
12683  eval $cacheid=yes
12684else
12685  eval $cacheid=no
12686fi
12687rm -f core conftest.err conftest.$ac_objext \
12688    conftest$ac_exeext conftest.$ac_ext
12689fi
12690
12691
12692		CFLAGS="$xorg_testset_save_CFLAGS"
12693
12694		eval supported=\$$cacheid
12695		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12696$as_echo "$supported" >&6; }
12697		if test "$supported" = "yes" ; then
12698			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12699			found="yes"
12700		fi
12701	fi
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717xorg_testset_save_CFLAGS="$CFLAGS"
12718
12719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12724  $as_echo_n "(cached) " >&6
12725else
12726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727/* end confdefs.h.  */
12728int i;
12729_ACEOF
12730if ac_fn_c_try_compile "$LINENO"; then :
12731  xorg_cv_cc_flag_unknown_warning_option=yes
12732else
12733  xorg_cv_cc_flag_unknown_warning_option=no
12734fi
12735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736fi
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12740	CFLAGS="$xorg_testset_save_CFLAGS"
12741fi
12742
12743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12746	fi
12747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12751  $as_echo_n "(cached) " >&6
12752else
12753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754/* end confdefs.h.  */
12755int i;
12756_ACEOF
12757if ac_fn_c_try_compile "$LINENO"; then :
12758  xorg_cv_cc_flag_unused_command_line_argument=yes
12759else
12760  xorg_cv_cc_flag_unused_command_line_argument=no
12761fi
12762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763fi
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12766	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12767	CFLAGS="$xorg_testset_save_CFLAGS"
12768fi
12769
12770found="no"
12771
12772	if test $found = "no" ; then
12773		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12774			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12775		fi
12776
12777		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12778			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12779		fi
12780
12781		CFLAGS="$CFLAGS -Wmissing-declarations"
12782
12783		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12784$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12785		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12786		if eval \${$cacheid+:} false; then :
12787  $as_echo_n "(cached) " >&6
12788else
12789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790/* end confdefs.h.  */
12791int i;
12792int
12793main ()
12794{
12795
12796  ;
12797  return 0;
12798}
12799_ACEOF
12800if ac_fn_c_try_link "$LINENO"; then :
12801  eval $cacheid=yes
12802else
12803  eval $cacheid=no
12804fi
12805rm -f core conftest.err conftest.$ac_objext \
12806    conftest$ac_exeext conftest.$ac_ext
12807fi
12808
12809
12810		CFLAGS="$xorg_testset_save_CFLAGS"
12811
12812		eval supported=\$$cacheid
12813		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12814$as_echo "$supported" >&6; }
12815		if test "$supported" = "yes" ; then
12816			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12817			found="yes"
12818		fi
12819	fi
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835xorg_testset_save_CFLAGS="$CFLAGS"
12836
12837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12838	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12842  $as_echo_n "(cached) " >&6
12843else
12844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845/* end confdefs.h.  */
12846int i;
12847_ACEOF
12848if ac_fn_c_try_compile "$LINENO"; then :
12849  xorg_cv_cc_flag_unknown_warning_option=yes
12850else
12851  xorg_cv_cc_flag_unknown_warning_option=no
12852fi
12853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854fi
12855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12858	CFLAGS="$xorg_testset_save_CFLAGS"
12859fi
12860
12861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12864	fi
12865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12869  $as_echo_n "(cached) " >&6
12870else
12871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872/* end confdefs.h.  */
12873int i;
12874_ACEOF
12875if ac_fn_c_try_compile "$LINENO"; then :
12876  xorg_cv_cc_flag_unused_command_line_argument=yes
12877else
12878  xorg_cv_cc_flag_unused_command_line_argument=no
12879fi
12880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12881fi
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12885	CFLAGS="$xorg_testset_save_CFLAGS"
12886fi
12887
12888found="no"
12889
12890	if test $found = "no" ; then
12891		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12893		fi
12894
12895		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12897		fi
12898
12899		CFLAGS="$CFLAGS -Wformat=2"
12900
12901		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12902$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12903		cacheid=xorg_cv_cc_flag__Wformat_2
12904		if eval \${$cacheid+:} false; then :
12905  $as_echo_n "(cached) " >&6
12906else
12907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908/* end confdefs.h.  */
12909int i;
12910int
12911main ()
12912{
12913
12914  ;
12915  return 0;
12916}
12917_ACEOF
12918if ac_fn_c_try_link "$LINENO"; then :
12919  eval $cacheid=yes
12920else
12921  eval $cacheid=no
12922fi
12923rm -f core conftest.err conftest.$ac_objext \
12924    conftest$ac_exeext conftest.$ac_ext
12925fi
12926
12927
12928		CFLAGS="$xorg_testset_save_CFLAGS"
12929
12930		eval supported=\$$cacheid
12931		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12932$as_echo "$supported" >&6; }
12933		if test "$supported" = "yes" ; then
12934			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12935			found="yes"
12936		fi
12937	fi
12938
12939	if test $found = "no" ; then
12940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12942		fi
12943
12944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12946		fi
12947
12948		CFLAGS="$CFLAGS -Wformat"
12949
12950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12951$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12952		cacheid=xorg_cv_cc_flag__Wformat
12953		if eval \${$cacheid+:} false; then :
12954  $as_echo_n "(cached) " >&6
12955else
12956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957/* end confdefs.h.  */
12958int i;
12959int
12960main ()
12961{
12962
12963  ;
12964  return 0;
12965}
12966_ACEOF
12967if ac_fn_c_try_link "$LINENO"; then :
12968  eval $cacheid=yes
12969else
12970  eval $cacheid=no
12971fi
12972rm -f core conftest.err conftest.$ac_objext \
12973    conftest$ac_exeext conftest.$ac_ext
12974fi
12975
12976
12977		CFLAGS="$xorg_testset_save_CFLAGS"
12978
12979		eval supported=\$$cacheid
12980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12981$as_echo "$supported" >&6; }
12982		if test "$supported" = "yes" ; then
12983			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12984			found="yes"
12985		fi
12986	fi
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004xorg_testset_save_CFLAGS="$CFLAGS"
13005
13006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13011  $as_echo_n "(cached) " >&6
13012else
13013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h.  */
13015int i;
13016_ACEOF
13017if ac_fn_c_try_compile "$LINENO"; then :
13018  xorg_cv_cc_flag_unknown_warning_option=yes
13019else
13020  xorg_cv_cc_flag_unknown_warning_option=no
13021fi
13022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023fi
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13026	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13027	CFLAGS="$xorg_testset_save_CFLAGS"
13028fi
13029
13030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13031	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13032		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13033	fi
13034	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13038  $as_echo_n "(cached) " >&6
13039else
13040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041/* end confdefs.h.  */
13042int i;
13043_ACEOF
13044if ac_fn_c_try_compile "$LINENO"; then :
13045  xorg_cv_cc_flag_unused_command_line_argument=yes
13046else
13047  xorg_cv_cc_flag_unused_command_line_argument=no
13048fi
13049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13050fi
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13053	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13054	CFLAGS="$xorg_testset_save_CFLAGS"
13055fi
13056
13057found="no"
13058
13059	if test $found = "no" ; then
13060		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13061			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13062		fi
13063
13064		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13065			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13066		fi
13067
13068		CFLAGS="$CFLAGS -Wstrict-prototypes"
13069
13070		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13071$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13072		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13073		if eval \${$cacheid+:} false; then :
13074  $as_echo_n "(cached) " >&6
13075else
13076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077/* end confdefs.h.  */
13078int i;
13079int
13080main ()
13081{
13082
13083  ;
13084  return 0;
13085}
13086_ACEOF
13087if ac_fn_c_try_link "$LINENO"; then :
13088  eval $cacheid=yes
13089else
13090  eval $cacheid=no
13091fi
13092rm -f core conftest.err conftest.$ac_objext \
13093    conftest$ac_exeext conftest.$ac_ext
13094fi
13095
13096
13097		CFLAGS="$xorg_testset_save_CFLAGS"
13098
13099		eval supported=\$$cacheid
13100		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13101$as_echo "$supported" >&6; }
13102		if test "$supported" = "yes" ; then
13103			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13104			found="yes"
13105		fi
13106	fi
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122xorg_testset_save_CFLAGS="$CFLAGS"
13123
13124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13125	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13129  $as_echo_n "(cached) " >&6
13130else
13131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132/* end confdefs.h.  */
13133int i;
13134_ACEOF
13135if ac_fn_c_try_compile "$LINENO"; then :
13136  xorg_cv_cc_flag_unknown_warning_option=yes
13137else
13138  xorg_cv_cc_flag_unknown_warning_option=no
13139fi
13140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13141fi
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13144	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13145	CFLAGS="$xorg_testset_save_CFLAGS"
13146fi
13147
13148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13149	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13150		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13151	fi
13152	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13156  $as_echo_n "(cached) " >&6
13157else
13158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h.  */
13160int i;
13161_ACEOF
13162if ac_fn_c_try_compile "$LINENO"; then :
13163  xorg_cv_cc_flag_unused_command_line_argument=yes
13164else
13165  xorg_cv_cc_flag_unused_command_line_argument=no
13166fi
13167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168fi
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13171	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13172	CFLAGS="$xorg_testset_save_CFLAGS"
13173fi
13174
13175found="no"
13176
13177	if test $found = "no" ; then
13178		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13180		fi
13181
13182		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13184		fi
13185
13186		CFLAGS="$CFLAGS -Wmissing-prototypes"
13187
13188		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13189$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13190		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13191		if eval \${$cacheid+:} false; then :
13192  $as_echo_n "(cached) " >&6
13193else
13194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195/* end confdefs.h.  */
13196int i;
13197int
13198main ()
13199{
13200
13201  ;
13202  return 0;
13203}
13204_ACEOF
13205if ac_fn_c_try_link "$LINENO"; then :
13206  eval $cacheid=yes
13207else
13208  eval $cacheid=no
13209fi
13210rm -f core conftest.err conftest.$ac_objext \
13211    conftest$ac_exeext conftest.$ac_ext
13212fi
13213
13214
13215		CFLAGS="$xorg_testset_save_CFLAGS"
13216
13217		eval supported=\$$cacheid
13218		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13219$as_echo "$supported" >&6; }
13220		if test "$supported" = "yes" ; then
13221			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13222			found="yes"
13223		fi
13224	fi
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240xorg_testset_save_CFLAGS="$CFLAGS"
13241
13242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13243	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13245$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13246if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13247  $as_echo_n "(cached) " >&6
13248else
13249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250/* end confdefs.h.  */
13251int i;
13252_ACEOF
13253if ac_fn_c_try_compile "$LINENO"; then :
13254  xorg_cv_cc_flag_unknown_warning_option=yes
13255else
13256  xorg_cv_cc_flag_unknown_warning_option=no
13257fi
13258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259fi
13260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13261$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13263	CFLAGS="$xorg_testset_save_CFLAGS"
13264fi
13265
13266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13269	fi
13270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13272$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13273if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13274  $as_echo_n "(cached) " >&6
13275else
13276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277/* end confdefs.h.  */
13278int i;
13279_ACEOF
13280if ac_fn_c_try_compile "$LINENO"; then :
13281  xorg_cv_cc_flag_unused_command_line_argument=yes
13282else
13283  xorg_cv_cc_flag_unused_command_line_argument=no
13284fi
13285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286fi
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13288$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13289	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13290	CFLAGS="$xorg_testset_save_CFLAGS"
13291fi
13292
13293found="no"
13294
13295	if test $found = "no" ; then
13296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13298		fi
13299
13300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13302		fi
13303
13304		CFLAGS="$CFLAGS -Wnested-externs"
13305
13306		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13307$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13308		cacheid=xorg_cv_cc_flag__Wnested_externs
13309		if eval \${$cacheid+:} false; then :
13310  $as_echo_n "(cached) " >&6
13311else
13312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313/* end confdefs.h.  */
13314int i;
13315int
13316main ()
13317{
13318
13319  ;
13320  return 0;
13321}
13322_ACEOF
13323if ac_fn_c_try_link "$LINENO"; then :
13324  eval $cacheid=yes
13325else
13326  eval $cacheid=no
13327fi
13328rm -f core conftest.err conftest.$ac_objext \
13329    conftest$ac_exeext conftest.$ac_ext
13330fi
13331
13332
13333		CFLAGS="$xorg_testset_save_CFLAGS"
13334
13335		eval supported=\$$cacheid
13336		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13337$as_echo "$supported" >&6; }
13338		if test "$supported" = "yes" ; then
13339			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13340			found="yes"
13341		fi
13342	fi
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358xorg_testset_save_CFLAGS="$CFLAGS"
13359
13360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13361	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13363$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13364if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13365  $as_echo_n "(cached) " >&6
13366else
13367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368/* end confdefs.h.  */
13369int i;
13370_ACEOF
13371if ac_fn_c_try_compile "$LINENO"; then :
13372  xorg_cv_cc_flag_unknown_warning_option=yes
13373else
13374  xorg_cv_cc_flag_unknown_warning_option=no
13375fi
13376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377fi
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13379$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13381	CFLAGS="$xorg_testset_save_CFLAGS"
13382fi
13383
13384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13387	fi
13388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13390$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13391if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13392  $as_echo_n "(cached) " >&6
13393else
13394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395/* end confdefs.h.  */
13396int i;
13397_ACEOF
13398if ac_fn_c_try_compile "$LINENO"; then :
13399  xorg_cv_cc_flag_unused_command_line_argument=yes
13400else
13401  xorg_cv_cc_flag_unused_command_line_argument=no
13402fi
13403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404fi
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13406$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13408	CFLAGS="$xorg_testset_save_CFLAGS"
13409fi
13410
13411found="no"
13412
13413	if test $found = "no" ; then
13414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13416		fi
13417
13418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13420		fi
13421
13422		CFLAGS="$CFLAGS -Wbad-function-cast"
13423
13424		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13425$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13426		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13427		if eval \${$cacheid+:} false; then :
13428  $as_echo_n "(cached) " >&6
13429else
13430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431/* end confdefs.h.  */
13432int i;
13433int
13434main ()
13435{
13436
13437  ;
13438  return 0;
13439}
13440_ACEOF
13441if ac_fn_c_try_link "$LINENO"; then :
13442  eval $cacheid=yes
13443else
13444  eval $cacheid=no
13445fi
13446rm -f core conftest.err conftest.$ac_objext \
13447    conftest$ac_exeext conftest.$ac_ext
13448fi
13449
13450
13451		CFLAGS="$xorg_testset_save_CFLAGS"
13452
13453		eval supported=\$$cacheid
13454		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13455$as_echo "$supported" >&6; }
13456		if test "$supported" = "yes" ; then
13457			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13458			found="yes"
13459		fi
13460	fi
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476xorg_testset_save_CFLAGS="$CFLAGS"
13477
13478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13479	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13481$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13482if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13483  $as_echo_n "(cached) " >&6
13484else
13485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486/* end confdefs.h.  */
13487int i;
13488_ACEOF
13489if ac_fn_c_try_compile "$LINENO"; then :
13490  xorg_cv_cc_flag_unknown_warning_option=yes
13491else
13492  xorg_cv_cc_flag_unknown_warning_option=no
13493fi
13494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495fi
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13497$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13498	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13499	CFLAGS="$xorg_testset_save_CFLAGS"
13500fi
13501
13502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13503	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13504		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13505	fi
13506	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13508$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13509if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13510  $as_echo_n "(cached) " >&6
13511else
13512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h.  */
13514int i;
13515_ACEOF
13516if ac_fn_c_try_compile "$LINENO"; then :
13517  xorg_cv_cc_flag_unused_command_line_argument=yes
13518else
13519  xorg_cv_cc_flag_unused_command_line_argument=no
13520fi
13521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522fi
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13524$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13525	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13526	CFLAGS="$xorg_testset_save_CFLAGS"
13527fi
13528
13529found="no"
13530
13531	if test $found = "no" ; then
13532		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13533			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13534		fi
13535
13536		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13537			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13538		fi
13539
13540		CFLAGS="$CFLAGS -Wold-style-definition"
13541
13542		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13543$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13544		cacheid=xorg_cv_cc_flag__Wold_style_definition
13545		if eval \${$cacheid+:} false; then :
13546  $as_echo_n "(cached) " >&6
13547else
13548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549/* end confdefs.h.  */
13550int i;
13551int
13552main ()
13553{
13554
13555  ;
13556  return 0;
13557}
13558_ACEOF
13559if ac_fn_c_try_link "$LINENO"; then :
13560  eval $cacheid=yes
13561else
13562  eval $cacheid=no
13563fi
13564rm -f core conftest.err conftest.$ac_objext \
13565    conftest$ac_exeext conftest.$ac_ext
13566fi
13567
13568
13569		CFLAGS="$xorg_testset_save_CFLAGS"
13570
13571		eval supported=\$$cacheid
13572		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13573$as_echo "$supported" >&6; }
13574		if test "$supported" = "yes" ; then
13575			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13576			found="yes"
13577		fi
13578	fi
13579
13580	if test $found = "no" ; then
13581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13583		fi
13584
13585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13587		fi
13588
13589		CFLAGS="$CFLAGS -fd"
13590
13591		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13592$as_echo_n "checking if $CC supports -fd... " >&6; }
13593		cacheid=xorg_cv_cc_flag__fd
13594		if eval \${$cacheid+:} false; then :
13595  $as_echo_n "(cached) " >&6
13596else
13597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598/* end confdefs.h.  */
13599int i;
13600int
13601main ()
13602{
13603
13604  ;
13605  return 0;
13606}
13607_ACEOF
13608if ac_fn_c_try_link "$LINENO"; then :
13609  eval $cacheid=yes
13610else
13611  eval $cacheid=no
13612fi
13613rm -f core conftest.err conftest.$ac_objext \
13614    conftest$ac_exeext conftest.$ac_ext
13615fi
13616
13617
13618		CFLAGS="$xorg_testset_save_CFLAGS"
13619
13620		eval supported=\$$cacheid
13621		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13622$as_echo "$supported" >&6; }
13623		if test "$supported" = "yes" ; then
13624			BASE_CFLAGS="$BASE_CFLAGS -fd"
13625			found="yes"
13626		fi
13627	fi
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643xorg_testset_save_CFLAGS="$CFLAGS"
13644
13645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13646	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13648$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13649if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13650  $as_echo_n "(cached) " >&6
13651else
13652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653/* end confdefs.h.  */
13654int i;
13655_ACEOF
13656if ac_fn_c_try_compile "$LINENO"; then :
13657  xorg_cv_cc_flag_unknown_warning_option=yes
13658else
13659  xorg_cv_cc_flag_unknown_warning_option=no
13660fi
13661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13662fi
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13664$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13665	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13666	CFLAGS="$xorg_testset_save_CFLAGS"
13667fi
13668
13669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13670	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13671		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13672	fi
13673	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13675$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13676if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13677  $as_echo_n "(cached) " >&6
13678else
13679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680/* end confdefs.h.  */
13681int i;
13682_ACEOF
13683if ac_fn_c_try_compile "$LINENO"; then :
13684  xorg_cv_cc_flag_unused_command_line_argument=yes
13685else
13686  xorg_cv_cc_flag_unused_command_line_argument=no
13687fi
13688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689fi
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13691$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13692	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13693	CFLAGS="$xorg_testset_save_CFLAGS"
13694fi
13695
13696found="no"
13697
13698	if test $found = "no" ; then
13699		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13700			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13701		fi
13702
13703		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13704			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13705		fi
13706
13707		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13708
13709		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13710$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13711		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13712		if eval \${$cacheid+:} false; then :
13713  $as_echo_n "(cached) " >&6
13714else
13715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716/* end confdefs.h.  */
13717int i;
13718int
13719main ()
13720{
13721
13722  ;
13723  return 0;
13724}
13725_ACEOF
13726if ac_fn_c_try_link "$LINENO"; then :
13727  eval $cacheid=yes
13728else
13729  eval $cacheid=no
13730fi
13731rm -f core conftest.err conftest.$ac_objext \
13732    conftest$ac_exeext conftest.$ac_ext
13733fi
13734
13735
13736		CFLAGS="$xorg_testset_save_CFLAGS"
13737
13738		eval supported=\$$cacheid
13739		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13740$as_echo "$supported" >&6; }
13741		if test "$supported" = "yes" ; then
13742			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13743			found="yes"
13744		fi
13745	fi
13746
13747
13748
13749
13750
13751# This chunk adds additional warnings that could catch undesired effects.
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765xorg_testset_save_CFLAGS="$CFLAGS"
13766
13767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13772  $as_echo_n "(cached) " >&6
13773else
13774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775/* end confdefs.h.  */
13776int i;
13777_ACEOF
13778if ac_fn_c_try_compile "$LINENO"; then :
13779  xorg_cv_cc_flag_unknown_warning_option=yes
13780else
13781  xorg_cv_cc_flag_unknown_warning_option=no
13782fi
13783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784fi
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13787	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13788	CFLAGS="$xorg_testset_save_CFLAGS"
13789fi
13790
13791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13792	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13793		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13794	fi
13795	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13799  $as_echo_n "(cached) " >&6
13800else
13801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802/* end confdefs.h.  */
13803int i;
13804_ACEOF
13805if ac_fn_c_try_compile "$LINENO"; then :
13806  xorg_cv_cc_flag_unused_command_line_argument=yes
13807else
13808  xorg_cv_cc_flag_unused_command_line_argument=no
13809fi
13810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811fi
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13814	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13815	CFLAGS="$xorg_testset_save_CFLAGS"
13816fi
13817
13818found="no"
13819
13820	if test $found = "no" ; then
13821		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13823		fi
13824
13825		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13827		fi
13828
13829		CFLAGS="$CFLAGS -Wunused"
13830
13831		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13832$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13833		cacheid=xorg_cv_cc_flag__Wunused
13834		if eval \${$cacheid+:} false; then :
13835  $as_echo_n "(cached) " >&6
13836else
13837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838/* end confdefs.h.  */
13839int i;
13840int
13841main ()
13842{
13843
13844  ;
13845  return 0;
13846}
13847_ACEOF
13848if ac_fn_c_try_link "$LINENO"; then :
13849  eval $cacheid=yes
13850else
13851  eval $cacheid=no
13852fi
13853rm -f core conftest.err conftest.$ac_objext \
13854    conftest$ac_exeext conftest.$ac_ext
13855fi
13856
13857
13858		CFLAGS="$xorg_testset_save_CFLAGS"
13859
13860		eval supported=\$$cacheid
13861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13862$as_echo "$supported" >&6; }
13863		if test "$supported" = "yes" ; then
13864			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13865			found="yes"
13866		fi
13867	fi
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883xorg_testset_save_CFLAGS="$CFLAGS"
13884
13885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13886	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13890  $as_echo_n "(cached) " >&6
13891else
13892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893/* end confdefs.h.  */
13894int i;
13895_ACEOF
13896if ac_fn_c_try_compile "$LINENO"; then :
13897  xorg_cv_cc_flag_unknown_warning_option=yes
13898else
13899  xorg_cv_cc_flag_unknown_warning_option=no
13900fi
13901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13902fi
13903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13906	CFLAGS="$xorg_testset_save_CFLAGS"
13907fi
13908
13909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13912	fi
13913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13917  $as_echo_n "(cached) " >&6
13918else
13919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920/* end confdefs.h.  */
13921int i;
13922_ACEOF
13923if ac_fn_c_try_compile "$LINENO"; then :
13924  xorg_cv_cc_flag_unused_command_line_argument=yes
13925else
13926  xorg_cv_cc_flag_unused_command_line_argument=no
13927fi
13928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13929fi
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13933	CFLAGS="$xorg_testset_save_CFLAGS"
13934fi
13935
13936found="no"
13937
13938	if test $found = "no" ; then
13939		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13941		fi
13942
13943		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13945		fi
13946
13947		CFLAGS="$CFLAGS -Wuninitialized"
13948
13949		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13950$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13951		cacheid=xorg_cv_cc_flag__Wuninitialized
13952		if eval \${$cacheid+:} false; then :
13953  $as_echo_n "(cached) " >&6
13954else
13955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956/* end confdefs.h.  */
13957int i;
13958int
13959main ()
13960{
13961
13962  ;
13963  return 0;
13964}
13965_ACEOF
13966if ac_fn_c_try_link "$LINENO"; then :
13967  eval $cacheid=yes
13968else
13969  eval $cacheid=no
13970fi
13971rm -f core conftest.err conftest.$ac_objext \
13972    conftest$ac_exeext conftest.$ac_ext
13973fi
13974
13975
13976		CFLAGS="$xorg_testset_save_CFLAGS"
13977
13978		eval supported=\$$cacheid
13979		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13980$as_echo "$supported" >&6; }
13981		if test "$supported" = "yes" ; then
13982			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13983			found="yes"
13984		fi
13985	fi
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001xorg_testset_save_CFLAGS="$CFLAGS"
14002
14003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14006$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14007if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14008  $as_echo_n "(cached) " >&6
14009else
14010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011/* end confdefs.h.  */
14012int i;
14013_ACEOF
14014if ac_fn_c_try_compile "$LINENO"; then :
14015  xorg_cv_cc_flag_unknown_warning_option=yes
14016else
14017  xorg_cv_cc_flag_unknown_warning_option=no
14018fi
14019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14020fi
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14022$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14023	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14024	CFLAGS="$xorg_testset_save_CFLAGS"
14025fi
14026
14027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14028	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14029		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14030	fi
14031	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14033$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14034if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14035  $as_echo_n "(cached) " >&6
14036else
14037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038/* end confdefs.h.  */
14039int i;
14040_ACEOF
14041if ac_fn_c_try_compile "$LINENO"; then :
14042  xorg_cv_cc_flag_unused_command_line_argument=yes
14043else
14044  xorg_cv_cc_flag_unused_command_line_argument=no
14045fi
14046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14047fi
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14049$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14051	CFLAGS="$xorg_testset_save_CFLAGS"
14052fi
14053
14054found="no"
14055
14056	if test $found = "no" ; then
14057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14059		fi
14060
14061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14063		fi
14064
14065		CFLAGS="$CFLAGS -Wshadow"
14066
14067		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14068$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14069		cacheid=xorg_cv_cc_flag__Wshadow
14070		if eval \${$cacheid+:} false; then :
14071  $as_echo_n "(cached) " >&6
14072else
14073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074/* end confdefs.h.  */
14075int i;
14076int
14077main ()
14078{
14079
14080  ;
14081  return 0;
14082}
14083_ACEOF
14084if ac_fn_c_try_link "$LINENO"; then :
14085  eval $cacheid=yes
14086else
14087  eval $cacheid=no
14088fi
14089rm -f core conftest.err conftest.$ac_objext \
14090    conftest$ac_exeext conftest.$ac_ext
14091fi
14092
14093
14094		CFLAGS="$xorg_testset_save_CFLAGS"
14095
14096		eval supported=\$$cacheid
14097		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14098$as_echo "$supported" >&6; }
14099		if test "$supported" = "yes" ; then
14100			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14101			found="yes"
14102		fi
14103	fi
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119xorg_testset_save_CFLAGS="$CFLAGS"
14120
14121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14122	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14126  $as_echo_n "(cached) " >&6
14127else
14128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129/* end confdefs.h.  */
14130int i;
14131_ACEOF
14132if ac_fn_c_try_compile "$LINENO"; then :
14133  xorg_cv_cc_flag_unknown_warning_option=yes
14134else
14135  xorg_cv_cc_flag_unknown_warning_option=no
14136fi
14137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138fi
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14142	CFLAGS="$xorg_testset_save_CFLAGS"
14143fi
14144
14145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14148	fi
14149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14153  $as_echo_n "(cached) " >&6
14154else
14155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156/* end confdefs.h.  */
14157int i;
14158_ACEOF
14159if ac_fn_c_try_compile "$LINENO"; then :
14160  xorg_cv_cc_flag_unused_command_line_argument=yes
14161else
14162  xorg_cv_cc_flag_unused_command_line_argument=no
14163fi
14164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165fi
14166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14168	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14169	CFLAGS="$xorg_testset_save_CFLAGS"
14170fi
14171
14172found="no"
14173
14174	if test $found = "no" ; then
14175		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14176			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14177		fi
14178
14179		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14180			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14181		fi
14182
14183		CFLAGS="$CFLAGS -Wmissing-noreturn"
14184
14185		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14186$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14187		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14188		if eval \${$cacheid+:} false; then :
14189  $as_echo_n "(cached) " >&6
14190else
14191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192/* end confdefs.h.  */
14193int i;
14194int
14195main ()
14196{
14197
14198  ;
14199  return 0;
14200}
14201_ACEOF
14202if ac_fn_c_try_link "$LINENO"; then :
14203  eval $cacheid=yes
14204else
14205  eval $cacheid=no
14206fi
14207rm -f core conftest.err conftest.$ac_objext \
14208    conftest$ac_exeext conftest.$ac_ext
14209fi
14210
14211
14212		CFLAGS="$xorg_testset_save_CFLAGS"
14213
14214		eval supported=\$$cacheid
14215		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14216$as_echo "$supported" >&6; }
14217		if test "$supported" = "yes" ; then
14218			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14219			found="yes"
14220		fi
14221	fi
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237xorg_testset_save_CFLAGS="$CFLAGS"
14238
14239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14244  $as_echo_n "(cached) " >&6
14245else
14246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247/* end confdefs.h.  */
14248int i;
14249_ACEOF
14250if ac_fn_c_try_compile "$LINENO"; then :
14251  xorg_cv_cc_flag_unknown_warning_option=yes
14252else
14253  xorg_cv_cc_flag_unknown_warning_option=no
14254fi
14255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14256fi
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14260	CFLAGS="$xorg_testset_save_CFLAGS"
14261fi
14262
14263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14266	fi
14267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14271  $as_echo_n "(cached) " >&6
14272else
14273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274/* end confdefs.h.  */
14275int i;
14276_ACEOF
14277if ac_fn_c_try_compile "$LINENO"; then :
14278  xorg_cv_cc_flag_unused_command_line_argument=yes
14279else
14280  xorg_cv_cc_flag_unused_command_line_argument=no
14281fi
14282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283fi
14284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14287	CFLAGS="$xorg_testset_save_CFLAGS"
14288fi
14289
14290found="no"
14291
14292	if test $found = "no" ; then
14293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14295		fi
14296
14297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14299		fi
14300
14301		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14302
14303		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14304$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14305		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14306		if eval \${$cacheid+:} false; then :
14307  $as_echo_n "(cached) " >&6
14308else
14309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310/* end confdefs.h.  */
14311int i;
14312int
14313main ()
14314{
14315
14316  ;
14317  return 0;
14318}
14319_ACEOF
14320if ac_fn_c_try_link "$LINENO"; then :
14321  eval $cacheid=yes
14322else
14323  eval $cacheid=no
14324fi
14325rm -f core conftest.err conftest.$ac_objext \
14326    conftest$ac_exeext conftest.$ac_ext
14327fi
14328
14329
14330		CFLAGS="$xorg_testset_save_CFLAGS"
14331
14332		eval supported=\$$cacheid
14333		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14334$as_echo "$supported" >&6; }
14335		if test "$supported" = "yes" ; then
14336			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14337			found="yes"
14338		fi
14339	fi
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355xorg_testset_save_CFLAGS="$CFLAGS"
14356
14357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14358	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14360$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14361if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14362  $as_echo_n "(cached) " >&6
14363else
14364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365/* end confdefs.h.  */
14366int i;
14367_ACEOF
14368if ac_fn_c_try_compile "$LINENO"; then :
14369  xorg_cv_cc_flag_unknown_warning_option=yes
14370else
14371  xorg_cv_cc_flag_unknown_warning_option=no
14372fi
14373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14374fi
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14376$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14377	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14378	CFLAGS="$xorg_testset_save_CFLAGS"
14379fi
14380
14381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14382	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14383		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14384	fi
14385	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14388if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14389  $as_echo_n "(cached) " >&6
14390else
14391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392/* end confdefs.h.  */
14393int i;
14394_ACEOF
14395if ac_fn_c_try_compile "$LINENO"; then :
14396  xorg_cv_cc_flag_unused_command_line_argument=yes
14397else
14398  xorg_cv_cc_flag_unused_command_line_argument=no
14399fi
14400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401fi
14402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14403$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14405	CFLAGS="$xorg_testset_save_CFLAGS"
14406fi
14407
14408found="no"
14409
14410	if test $found = "no" ; then
14411		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14413		fi
14414
14415		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14417		fi
14418
14419		CFLAGS="$CFLAGS -Wredundant-decls"
14420
14421		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14422$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14423		cacheid=xorg_cv_cc_flag__Wredundant_decls
14424		if eval \${$cacheid+:} false; then :
14425  $as_echo_n "(cached) " >&6
14426else
14427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428/* end confdefs.h.  */
14429int i;
14430int
14431main ()
14432{
14433
14434  ;
14435  return 0;
14436}
14437_ACEOF
14438if ac_fn_c_try_link "$LINENO"; then :
14439  eval $cacheid=yes
14440else
14441  eval $cacheid=no
14442fi
14443rm -f core conftest.err conftest.$ac_objext \
14444    conftest$ac_exeext conftest.$ac_ext
14445fi
14446
14447
14448		CFLAGS="$xorg_testset_save_CFLAGS"
14449
14450		eval supported=\$$cacheid
14451		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14452$as_echo "$supported" >&6; }
14453		if test "$supported" = "yes" ; then
14454			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14455			found="yes"
14456		fi
14457	fi
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473xorg_testset_save_CFLAGS="$CFLAGS"
14474
14475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14478$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14479if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14480  $as_echo_n "(cached) " >&6
14481else
14482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14483/* end confdefs.h.  */
14484int i;
14485_ACEOF
14486if ac_fn_c_try_compile "$LINENO"; then :
14487  xorg_cv_cc_flag_unknown_warning_option=yes
14488else
14489  xorg_cv_cc_flag_unknown_warning_option=no
14490fi
14491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492fi
14493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14494$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14495	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14496	CFLAGS="$xorg_testset_save_CFLAGS"
14497fi
14498
14499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14500	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14501		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14502	fi
14503	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14505$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14506if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14507  $as_echo_n "(cached) " >&6
14508else
14509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510/* end confdefs.h.  */
14511int i;
14512_ACEOF
14513if ac_fn_c_try_compile "$LINENO"; then :
14514  xorg_cv_cc_flag_unused_command_line_argument=yes
14515else
14516  xorg_cv_cc_flag_unused_command_line_argument=no
14517fi
14518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519fi
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14521$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14523	CFLAGS="$xorg_testset_save_CFLAGS"
14524fi
14525
14526found="no"
14527
14528	if test $found = "no" ; then
14529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14531		fi
14532
14533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14535		fi
14536
14537		CFLAGS="$CFLAGS -Wlogical-op"
14538
14539		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14540$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14541		cacheid=xorg_cv_cc_flag__Wlogical_op
14542		if eval \${$cacheid+:} false; then :
14543  $as_echo_n "(cached) " >&6
14544else
14545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546/* end confdefs.h.  */
14547int i;
14548int
14549main ()
14550{
14551
14552  ;
14553  return 0;
14554}
14555_ACEOF
14556if ac_fn_c_try_link "$LINENO"; then :
14557  eval $cacheid=yes
14558else
14559  eval $cacheid=no
14560fi
14561rm -f core conftest.err conftest.$ac_objext \
14562    conftest$ac_exeext conftest.$ac_ext
14563fi
14564
14565
14566		CFLAGS="$xorg_testset_save_CFLAGS"
14567
14568		eval supported=\$$cacheid
14569		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14570$as_echo "$supported" >&6; }
14571		if test "$supported" = "yes" ; then
14572			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14573			found="yes"
14574		fi
14575	fi
14576
14577
14578
14579# These are currently disabled because they are noisy.  They will be enabled
14580# in the future once the codebase is sufficiently modernized to silence
14581# them.  For now, I don't want them to drown out the other warnings.
14582# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14583# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14584# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14585
14586# Turn some warnings into errors, so we don't accidently get successful builds
14587# when there are problems that should be fixed.
14588
14589if test "x$SELECTIVE_WERROR" = "xyes" ; then
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603xorg_testset_save_CFLAGS="$CFLAGS"
14604
14605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14610  $as_echo_n "(cached) " >&6
14611else
14612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613/* end confdefs.h.  */
14614int i;
14615_ACEOF
14616if ac_fn_c_try_compile "$LINENO"; then :
14617  xorg_cv_cc_flag_unknown_warning_option=yes
14618else
14619  xorg_cv_cc_flag_unknown_warning_option=no
14620fi
14621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622fi
14623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14626	CFLAGS="$xorg_testset_save_CFLAGS"
14627fi
14628
14629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14632	fi
14633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14637  $as_echo_n "(cached) " >&6
14638else
14639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640/* end confdefs.h.  */
14641int i;
14642_ACEOF
14643if ac_fn_c_try_compile "$LINENO"; then :
14644  xorg_cv_cc_flag_unused_command_line_argument=yes
14645else
14646  xorg_cv_cc_flag_unused_command_line_argument=no
14647fi
14648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649fi
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14653	CFLAGS="$xorg_testset_save_CFLAGS"
14654fi
14655
14656found="no"
14657
14658	if test $found = "no" ; then
14659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14661		fi
14662
14663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14665		fi
14666
14667		CFLAGS="$CFLAGS -Werror=implicit"
14668
14669		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14670$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14671		cacheid=xorg_cv_cc_flag__Werror_implicit
14672		if eval \${$cacheid+:} false; then :
14673  $as_echo_n "(cached) " >&6
14674else
14675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676/* end confdefs.h.  */
14677int i;
14678int
14679main ()
14680{
14681
14682  ;
14683  return 0;
14684}
14685_ACEOF
14686if ac_fn_c_try_link "$LINENO"; then :
14687  eval $cacheid=yes
14688else
14689  eval $cacheid=no
14690fi
14691rm -f core conftest.err conftest.$ac_objext \
14692    conftest$ac_exeext conftest.$ac_ext
14693fi
14694
14695
14696		CFLAGS="$xorg_testset_save_CFLAGS"
14697
14698		eval supported=\$$cacheid
14699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14700$as_echo "$supported" >&6; }
14701		if test "$supported" = "yes" ; then
14702			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14703			found="yes"
14704		fi
14705	fi
14706
14707	if test $found = "no" ; then
14708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14710		fi
14711
14712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14714		fi
14715
14716		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14717
14718		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14719$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14720		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14721		if eval \${$cacheid+:} false; then :
14722  $as_echo_n "(cached) " >&6
14723else
14724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725/* end confdefs.h.  */
14726int i;
14727int
14728main ()
14729{
14730
14731  ;
14732  return 0;
14733}
14734_ACEOF
14735if ac_fn_c_try_link "$LINENO"; then :
14736  eval $cacheid=yes
14737else
14738  eval $cacheid=no
14739fi
14740rm -f core conftest.err conftest.$ac_objext \
14741    conftest$ac_exeext conftest.$ac_ext
14742fi
14743
14744
14745		CFLAGS="$xorg_testset_save_CFLAGS"
14746
14747		eval supported=\$$cacheid
14748		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14749$as_echo "$supported" >&6; }
14750		if test "$supported" = "yes" ; then
14751			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14752			found="yes"
14753		fi
14754	fi
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770xorg_testset_save_CFLAGS="$CFLAGS"
14771
14772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14773	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14777  $as_echo_n "(cached) " >&6
14778else
14779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780/* end confdefs.h.  */
14781int i;
14782_ACEOF
14783if ac_fn_c_try_compile "$LINENO"; then :
14784  xorg_cv_cc_flag_unknown_warning_option=yes
14785else
14786  xorg_cv_cc_flag_unknown_warning_option=no
14787fi
14788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789fi
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14793	CFLAGS="$xorg_testset_save_CFLAGS"
14794fi
14795
14796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14799	fi
14800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14804  $as_echo_n "(cached) " >&6
14805else
14806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807/* end confdefs.h.  */
14808int i;
14809_ACEOF
14810if ac_fn_c_try_compile "$LINENO"; then :
14811  xorg_cv_cc_flag_unused_command_line_argument=yes
14812else
14813  xorg_cv_cc_flag_unused_command_line_argument=no
14814fi
14815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14816fi
14817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14820	CFLAGS="$xorg_testset_save_CFLAGS"
14821fi
14822
14823found="no"
14824
14825	if test $found = "no" ; then
14826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14828		fi
14829
14830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14832		fi
14833
14834		CFLAGS="$CFLAGS -Werror=nonnull"
14835
14836		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14837$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14838		cacheid=xorg_cv_cc_flag__Werror_nonnull
14839		if eval \${$cacheid+:} false; then :
14840  $as_echo_n "(cached) " >&6
14841else
14842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843/* end confdefs.h.  */
14844int i;
14845int
14846main ()
14847{
14848
14849  ;
14850  return 0;
14851}
14852_ACEOF
14853if ac_fn_c_try_link "$LINENO"; then :
14854  eval $cacheid=yes
14855else
14856  eval $cacheid=no
14857fi
14858rm -f core conftest.err conftest.$ac_objext \
14859    conftest$ac_exeext conftest.$ac_ext
14860fi
14861
14862
14863		CFLAGS="$xorg_testset_save_CFLAGS"
14864
14865		eval supported=\$$cacheid
14866		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14867$as_echo "$supported" >&6; }
14868		if test "$supported" = "yes" ; then
14869			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14870			found="yes"
14871		fi
14872	fi
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888xorg_testset_save_CFLAGS="$CFLAGS"
14889
14890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14891	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14895  $as_echo_n "(cached) " >&6
14896else
14897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898/* end confdefs.h.  */
14899int i;
14900_ACEOF
14901if ac_fn_c_try_compile "$LINENO"; then :
14902  xorg_cv_cc_flag_unknown_warning_option=yes
14903else
14904  xorg_cv_cc_flag_unknown_warning_option=no
14905fi
14906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14907fi
14908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14910	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14911	CFLAGS="$xorg_testset_save_CFLAGS"
14912fi
14913
14914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14915	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14917	fi
14918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14922  $as_echo_n "(cached) " >&6
14923else
14924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925/* end confdefs.h.  */
14926int i;
14927_ACEOF
14928if ac_fn_c_try_compile "$LINENO"; then :
14929  xorg_cv_cc_flag_unused_command_line_argument=yes
14930else
14931  xorg_cv_cc_flag_unused_command_line_argument=no
14932fi
14933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14934fi
14935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14937	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14938	CFLAGS="$xorg_testset_save_CFLAGS"
14939fi
14940
14941found="no"
14942
14943	if test $found = "no" ; then
14944		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14946		fi
14947
14948		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14950		fi
14951
14952		CFLAGS="$CFLAGS -Werror=init-self"
14953
14954		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14955$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14956		cacheid=xorg_cv_cc_flag__Werror_init_self
14957		if eval \${$cacheid+:} false; then :
14958  $as_echo_n "(cached) " >&6
14959else
14960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961/* end confdefs.h.  */
14962int i;
14963int
14964main ()
14965{
14966
14967  ;
14968  return 0;
14969}
14970_ACEOF
14971if ac_fn_c_try_link "$LINENO"; then :
14972  eval $cacheid=yes
14973else
14974  eval $cacheid=no
14975fi
14976rm -f core conftest.err conftest.$ac_objext \
14977    conftest$ac_exeext conftest.$ac_ext
14978fi
14979
14980
14981		CFLAGS="$xorg_testset_save_CFLAGS"
14982
14983		eval supported=\$$cacheid
14984		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14985$as_echo "$supported" >&6; }
14986		if test "$supported" = "yes" ; then
14987			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14988			found="yes"
14989		fi
14990	fi
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006xorg_testset_save_CFLAGS="$CFLAGS"
15007
15008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15009	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15013  $as_echo_n "(cached) " >&6
15014else
15015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016/* end confdefs.h.  */
15017int i;
15018_ACEOF
15019if ac_fn_c_try_compile "$LINENO"; then :
15020  xorg_cv_cc_flag_unknown_warning_option=yes
15021else
15022  xorg_cv_cc_flag_unknown_warning_option=no
15023fi
15024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025fi
15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15028	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15029	CFLAGS="$xorg_testset_save_CFLAGS"
15030fi
15031
15032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15033	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15034		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15035	fi
15036	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15040  $as_echo_n "(cached) " >&6
15041else
15042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043/* end confdefs.h.  */
15044int i;
15045_ACEOF
15046if ac_fn_c_try_compile "$LINENO"; then :
15047  xorg_cv_cc_flag_unused_command_line_argument=yes
15048else
15049  xorg_cv_cc_flag_unused_command_line_argument=no
15050fi
15051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052fi
15053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15055	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15056	CFLAGS="$xorg_testset_save_CFLAGS"
15057fi
15058
15059found="no"
15060
15061	if test $found = "no" ; then
15062		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15063			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15064		fi
15065
15066		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15067			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15068		fi
15069
15070		CFLAGS="$CFLAGS -Werror=main"
15071
15072		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15073$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15074		cacheid=xorg_cv_cc_flag__Werror_main
15075		if eval \${$cacheid+:} false; then :
15076  $as_echo_n "(cached) " >&6
15077else
15078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079/* end confdefs.h.  */
15080int i;
15081int
15082main ()
15083{
15084
15085  ;
15086  return 0;
15087}
15088_ACEOF
15089if ac_fn_c_try_link "$LINENO"; then :
15090  eval $cacheid=yes
15091else
15092  eval $cacheid=no
15093fi
15094rm -f core conftest.err conftest.$ac_objext \
15095    conftest$ac_exeext conftest.$ac_ext
15096fi
15097
15098
15099		CFLAGS="$xorg_testset_save_CFLAGS"
15100
15101		eval supported=\$$cacheid
15102		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15103$as_echo "$supported" >&6; }
15104		if test "$supported" = "yes" ; then
15105			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15106			found="yes"
15107		fi
15108	fi
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124xorg_testset_save_CFLAGS="$CFLAGS"
15125
15126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15127	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15131  $as_echo_n "(cached) " >&6
15132else
15133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134/* end confdefs.h.  */
15135int i;
15136_ACEOF
15137if ac_fn_c_try_compile "$LINENO"; then :
15138  xorg_cv_cc_flag_unknown_warning_option=yes
15139else
15140  xorg_cv_cc_flag_unknown_warning_option=no
15141fi
15142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143fi
15144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15146	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15147	CFLAGS="$xorg_testset_save_CFLAGS"
15148fi
15149
15150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15151	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15152		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15153	fi
15154	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15158  $as_echo_n "(cached) " >&6
15159else
15160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161/* end confdefs.h.  */
15162int i;
15163_ACEOF
15164if ac_fn_c_try_compile "$LINENO"; then :
15165  xorg_cv_cc_flag_unused_command_line_argument=yes
15166else
15167  xorg_cv_cc_flag_unused_command_line_argument=no
15168fi
15169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170fi
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15173	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15174	CFLAGS="$xorg_testset_save_CFLAGS"
15175fi
15176
15177found="no"
15178
15179	if test $found = "no" ; then
15180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15182		fi
15183
15184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15186		fi
15187
15188		CFLAGS="$CFLAGS -Werror=missing-braces"
15189
15190		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15191$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15192		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15193		if eval \${$cacheid+:} false; then :
15194  $as_echo_n "(cached) " >&6
15195else
15196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197/* end confdefs.h.  */
15198int i;
15199int
15200main ()
15201{
15202
15203  ;
15204  return 0;
15205}
15206_ACEOF
15207if ac_fn_c_try_link "$LINENO"; then :
15208  eval $cacheid=yes
15209else
15210  eval $cacheid=no
15211fi
15212rm -f core conftest.err conftest.$ac_objext \
15213    conftest$ac_exeext conftest.$ac_ext
15214fi
15215
15216
15217		CFLAGS="$xorg_testset_save_CFLAGS"
15218
15219		eval supported=\$$cacheid
15220		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15221$as_echo "$supported" >&6; }
15222		if test "$supported" = "yes" ; then
15223			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15224			found="yes"
15225		fi
15226	fi
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242xorg_testset_save_CFLAGS="$CFLAGS"
15243
15244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15249  $as_echo_n "(cached) " >&6
15250else
15251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252/* end confdefs.h.  */
15253int i;
15254_ACEOF
15255if ac_fn_c_try_compile "$LINENO"; then :
15256  xorg_cv_cc_flag_unknown_warning_option=yes
15257else
15258  xorg_cv_cc_flag_unknown_warning_option=no
15259fi
15260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261fi
15262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15264	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15265	CFLAGS="$xorg_testset_save_CFLAGS"
15266fi
15267
15268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15269	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15270		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15271	fi
15272	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15276  $as_echo_n "(cached) " >&6
15277else
15278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279/* end confdefs.h.  */
15280int i;
15281_ACEOF
15282if ac_fn_c_try_compile "$LINENO"; then :
15283  xorg_cv_cc_flag_unused_command_line_argument=yes
15284else
15285  xorg_cv_cc_flag_unused_command_line_argument=no
15286fi
15287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288fi
15289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15292	CFLAGS="$xorg_testset_save_CFLAGS"
15293fi
15294
15295found="no"
15296
15297	if test $found = "no" ; then
15298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300		fi
15301
15302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15304		fi
15305
15306		CFLAGS="$CFLAGS -Werror=sequence-point"
15307
15308		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15309$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15310		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15311		if eval \${$cacheid+:} false; then :
15312  $as_echo_n "(cached) " >&6
15313else
15314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315/* end confdefs.h.  */
15316int i;
15317int
15318main ()
15319{
15320
15321  ;
15322  return 0;
15323}
15324_ACEOF
15325if ac_fn_c_try_link "$LINENO"; then :
15326  eval $cacheid=yes
15327else
15328  eval $cacheid=no
15329fi
15330rm -f core conftest.err conftest.$ac_objext \
15331    conftest$ac_exeext conftest.$ac_ext
15332fi
15333
15334
15335		CFLAGS="$xorg_testset_save_CFLAGS"
15336
15337		eval supported=\$$cacheid
15338		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15339$as_echo "$supported" >&6; }
15340		if test "$supported" = "yes" ; then
15341			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15342			found="yes"
15343		fi
15344	fi
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360xorg_testset_save_CFLAGS="$CFLAGS"
15361
15362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15367  $as_echo_n "(cached) " >&6
15368else
15369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370/* end confdefs.h.  */
15371int i;
15372_ACEOF
15373if ac_fn_c_try_compile "$LINENO"; then :
15374  xorg_cv_cc_flag_unknown_warning_option=yes
15375else
15376  xorg_cv_cc_flag_unknown_warning_option=no
15377fi
15378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379fi
15380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15383	CFLAGS="$xorg_testset_save_CFLAGS"
15384fi
15385
15386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15389	fi
15390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15394  $as_echo_n "(cached) " >&6
15395else
15396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397/* end confdefs.h.  */
15398int i;
15399_ACEOF
15400if ac_fn_c_try_compile "$LINENO"; then :
15401  xorg_cv_cc_flag_unused_command_line_argument=yes
15402else
15403  xorg_cv_cc_flag_unused_command_line_argument=no
15404fi
15405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406fi
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15410	CFLAGS="$xorg_testset_save_CFLAGS"
15411fi
15412
15413found="no"
15414
15415	if test $found = "no" ; then
15416		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15418		fi
15419
15420		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15422		fi
15423
15424		CFLAGS="$CFLAGS -Werror=return-type"
15425
15426		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15427$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15428		cacheid=xorg_cv_cc_flag__Werror_return_type
15429		if eval \${$cacheid+:} false; then :
15430  $as_echo_n "(cached) " >&6
15431else
15432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433/* end confdefs.h.  */
15434int i;
15435int
15436main ()
15437{
15438
15439  ;
15440  return 0;
15441}
15442_ACEOF
15443if ac_fn_c_try_link "$LINENO"; then :
15444  eval $cacheid=yes
15445else
15446  eval $cacheid=no
15447fi
15448rm -f core conftest.err conftest.$ac_objext \
15449    conftest$ac_exeext conftest.$ac_ext
15450fi
15451
15452
15453		CFLAGS="$xorg_testset_save_CFLAGS"
15454
15455		eval supported=\$$cacheid
15456		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15457$as_echo "$supported" >&6; }
15458		if test "$supported" = "yes" ; then
15459			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15460			found="yes"
15461		fi
15462	fi
15463
15464	if test $found = "no" ; then
15465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15467		fi
15468
15469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15471		fi
15472
15473		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15474
15475		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15476$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15477		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15478		if eval \${$cacheid+:} false; then :
15479  $as_echo_n "(cached) " >&6
15480else
15481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482/* end confdefs.h.  */
15483int i;
15484int
15485main ()
15486{
15487
15488  ;
15489  return 0;
15490}
15491_ACEOF
15492if ac_fn_c_try_link "$LINENO"; then :
15493  eval $cacheid=yes
15494else
15495  eval $cacheid=no
15496fi
15497rm -f core conftest.err conftest.$ac_objext \
15498    conftest$ac_exeext conftest.$ac_ext
15499fi
15500
15501
15502		CFLAGS="$xorg_testset_save_CFLAGS"
15503
15504		eval supported=\$$cacheid
15505		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15506$as_echo "$supported" >&6; }
15507		if test "$supported" = "yes" ; then
15508			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15509			found="yes"
15510		fi
15511	fi
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527xorg_testset_save_CFLAGS="$CFLAGS"
15528
15529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15534  $as_echo_n "(cached) " >&6
15535else
15536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537/* end confdefs.h.  */
15538int i;
15539_ACEOF
15540if ac_fn_c_try_compile "$LINENO"; then :
15541  xorg_cv_cc_flag_unknown_warning_option=yes
15542else
15543  xorg_cv_cc_flag_unknown_warning_option=no
15544fi
15545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15546fi
15547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15550	CFLAGS="$xorg_testset_save_CFLAGS"
15551fi
15552
15553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15556	fi
15557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15561  $as_echo_n "(cached) " >&6
15562else
15563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564/* end confdefs.h.  */
15565int i;
15566_ACEOF
15567if ac_fn_c_try_compile "$LINENO"; then :
15568  xorg_cv_cc_flag_unused_command_line_argument=yes
15569else
15570  xorg_cv_cc_flag_unused_command_line_argument=no
15571fi
15572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573fi
15574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15577	CFLAGS="$xorg_testset_save_CFLAGS"
15578fi
15579
15580found="no"
15581
15582	if test $found = "no" ; then
15583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585		fi
15586
15587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15589		fi
15590
15591		CFLAGS="$CFLAGS -Werror=trigraphs"
15592
15593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15594$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15595		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15596		if eval \${$cacheid+:} false; then :
15597  $as_echo_n "(cached) " >&6
15598else
15599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600/* end confdefs.h.  */
15601int i;
15602int
15603main ()
15604{
15605
15606  ;
15607  return 0;
15608}
15609_ACEOF
15610if ac_fn_c_try_link "$LINENO"; then :
15611  eval $cacheid=yes
15612else
15613  eval $cacheid=no
15614fi
15615rm -f core conftest.err conftest.$ac_objext \
15616    conftest$ac_exeext conftest.$ac_ext
15617fi
15618
15619
15620		CFLAGS="$xorg_testset_save_CFLAGS"
15621
15622		eval supported=\$$cacheid
15623		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15624$as_echo "$supported" >&6; }
15625		if test "$supported" = "yes" ; then
15626			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15627			found="yes"
15628		fi
15629	fi
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645xorg_testset_save_CFLAGS="$CFLAGS"
15646
15647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15652  $as_echo_n "(cached) " >&6
15653else
15654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655/* end confdefs.h.  */
15656int i;
15657_ACEOF
15658if ac_fn_c_try_compile "$LINENO"; then :
15659  xorg_cv_cc_flag_unknown_warning_option=yes
15660else
15661  xorg_cv_cc_flag_unknown_warning_option=no
15662fi
15663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15664fi
15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15668	CFLAGS="$xorg_testset_save_CFLAGS"
15669fi
15670
15671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15674	fi
15675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15679  $as_echo_n "(cached) " >&6
15680else
15681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682/* end confdefs.h.  */
15683int i;
15684_ACEOF
15685if ac_fn_c_try_compile "$LINENO"; then :
15686  xorg_cv_cc_flag_unused_command_line_argument=yes
15687else
15688  xorg_cv_cc_flag_unused_command_line_argument=no
15689fi
15690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15691fi
15692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15695	CFLAGS="$xorg_testset_save_CFLAGS"
15696fi
15697
15698found="no"
15699
15700	if test $found = "no" ; then
15701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703		fi
15704
15705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15707		fi
15708
15709		CFLAGS="$CFLAGS -Werror=array-bounds"
15710
15711		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15712$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15713		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15714		if eval \${$cacheid+:} false; then :
15715  $as_echo_n "(cached) " >&6
15716else
15717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718/* end confdefs.h.  */
15719int i;
15720int
15721main ()
15722{
15723
15724  ;
15725  return 0;
15726}
15727_ACEOF
15728if ac_fn_c_try_link "$LINENO"; then :
15729  eval $cacheid=yes
15730else
15731  eval $cacheid=no
15732fi
15733rm -f core conftest.err conftest.$ac_objext \
15734    conftest$ac_exeext conftest.$ac_ext
15735fi
15736
15737
15738		CFLAGS="$xorg_testset_save_CFLAGS"
15739
15740		eval supported=\$$cacheid
15741		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15742$as_echo "$supported" >&6; }
15743		if test "$supported" = "yes" ; then
15744			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15745			found="yes"
15746		fi
15747	fi
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763xorg_testset_save_CFLAGS="$CFLAGS"
15764
15765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15770  $as_echo_n "(cached) " >&6
15771else
15772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773/* end confdefs.h.  */
15774int i;
15775_ACEOF
15776if ac_fn_c_try_compile "$LINENO"; then :
15777  xorg_cv_cc_flag_unknown_warning_option=yes
15778else
15779  xorg_cv_cc_flag_unknown_warning_option=no
15780fi
15781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782fi
15783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15786	CFLAGS="$xorg_testset_save_CFLAGS"
15787fi
15788
15789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15792	fi
15793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15797  $as_echo_n "(cached) " >&6
15798else
15799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800/* end confdefs.h.  */
15801int i;
15802_ACEOF
15803if ac_fn_c_try_compile "$LINENO"; then :
15804  xorg_cv_cc_flag_unused_command_line_argument=yes
15805else
15806  xorg_cv_cc_flag_unused_command_line_argument=no
15807fi
15808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809fi
15810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15813	CFLAGS="$xorg_testset_save_CFLAGS"
15814fi
15815
15816found="no"
15817
15818	if test $found = "no" ; then
15819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821		fi
15822
15823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15825		fi
15826
15827		CFLAGS="$CFLAGS -Werror=write-strings"
15828
15829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15830$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15831		cacheid=xorg_cv_cc_flag__Werror_write_strings
15832		if eval \${$cacheid+:} false; then :
15833  $as_echo_n "(cached) " >&6
15834else
15835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836/* end confdefs.h.  */
15837int i;
15838int
15839main ()
15840{
15841
15842  ;
15843  return 0;
15844}
15845_ACEOF
15846if ac_fn_c_try_link "$LINENO"; then :
15847  eval $cacheid=yes
15848else
15849  eval $cacheid=no
15850fi
15851rm -f core conftest.err conftest.$ac_objext \
15852    conftest$ac_exeext conftest.$ac_ext
15853fi
15854
15855
15856		CFLAGS="$xorg_testset_save_CFLAGS"
15857
15858		eval supported=\$$cacheid
15859		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15860$as_echo "$supported" >&6; }
15861		if test "$supported" = "yes" ; then
15862			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15863			found="yes"
15864		fi
15865	fi
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881xorg_testset_save_CFLAGS="$CFLAGS"
15882
15883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15888  $as_echo_n "(cached) " >&6
15889else
15890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891/* end confdefs.h.  */
15892int i;
15893_ACEOF
15894if ac_fn_c_try_compile "$LINENO"; then :
15895  xorg_cv_cc_flag_unknown_warning_option=yes
15896else
15897  xorg_cv_cc_flag_unknown_warning_option=no
15898fi
15899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900fi
15901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15904	CFLAGS="$xorg_testset_save_CFLAGS"
15905fi
15906
15907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15910	fi
15911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15915  $as_echo_n "(cached) " >&6
15916else
15917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918/* end confdefs.h.  */
15919int i;
15920_ACEOF
15921if ac_fn_c_try_compile "$LINENO"; then :
15922  xorg_cv_cc_flag_unused_command_line_argument=yes
15923else
15924  xorg_cv_cc_flag_unused_command_line_argument=no
15925fi
15926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15927fi
15928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15931	CFLAGS="$xorg_testset_save_CFLAGS"
15932fi
15933
15934found="no"
15935
15936	if test $found = "no" ; then
15937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939		fi
15940
15941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15943		fi
15944
15945		CFLAGS="$CFLAGS -Werror=address"
15946
15947		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15948$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15949		cacheid=xorg_cv_cc_flag__Werror_address
15950		if eval \${$cacheid+:} false; then :
15951  $as_echo_n "(cached) " >&6
15952else
15953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954/* end confdefs.h.  */
15955int i;
15956int
15957main ()
15958{
15959
15960  ;
15961  return 0;
15962}
15963_ACEOF
15964if ac_fn_c_try_link "$LINENO"; then :
15965  eval $cacheid=yes
15966else
15967  eval $cacheid=no
15968fi
15969rm -f core conftest.err conftest.$ac_objext \
15970    conftest$ac_exeext conftest.$ac_ext
15971fi
15972
15973
15974		CFLAGS="$xorg_testset_save_CFLAGS"
15975
15976		eval supported=\$$cacheid
15977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15978$as_echo "$supported" >&6; }
15979		if test "$supported" = "yes" ; then
15980			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15981			found="yes"
15982		fi
15983	fi
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999xorg_testset_save_CFLAGS="$CFLAGS"
16000
16001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16002	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16004$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16005if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16006  $as_echo_n "(cached) " >&6
16007else
16008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009/* end confdefs.h.  */
16010int i;
16011_ACEOF
16012if ac_fn_c_try_compile "$LINENO"; then :
16013  xorg_cv_cc_flag_unknown_warning_option=yes
16014else
16015  xorg_cv_cc_flag_unknown_warning_option=no
16016fi
16017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018fi
16019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16020$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16022	CFLAGS="$xorg_testset_save_CFLAGS"
16023fi
16024
16025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16028	fi
16029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16031$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16032if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16033  $as_echo_n "(cached) " >&6
16034else
16035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036/* end confdefs.h.  */
16037int i;
16038_ACEOF
16039if ac_fn_c_try_compile "$LINENO"; then :
16040  xorg_cv_cc_flag_unused_command_line_argument=yes
16041else
16042  xorg_cv_cc_flag_unused_command_line_argument=no
16043fi
16044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045fi
16046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16047$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16049	CFLAGS="$xorg_testset_save_CFLAGS"
16050fi
16051
16052found="no"
16053
16054	if test $found = "no" ; then
16055		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057		fi
16058
16059		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16061		fi
16062
16063		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16064
16065		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16066$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16067		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16068		if eval \${$cacheid+:} false; then :
16069  $as_echo_n "(cached) " >&6
16070else
16071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072/* end confdefs.h.  */
16073int i;
16074int
16075main ()
16076{
16077
16078  ;
16079  return 0;
16080}
16081_ACEOF
16082if ac_fn_c_try_link "$LINENO"; then :
16083  eval $cacheid=yes
16084else
16085  eval $cacheid=no
16086fi
16087rm -f core conftest.err conftest.$ac_objext \
16088    conftest$ac_exeext conftest.$ac_ext
16089fi
16090
16091
16092		CFLAGS="$xorg_testset_save_CFLAGS"
16093
16094		eval supported=\$$cacheid
16095		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16096$as_echo "$supported" >&6; }
16097		if test "$supported" = "yes" ; then
16098			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16099			found="yes"
16100		fi
16101	fi
16102
16103	if test $found = "no" ; then
16104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16106		fi
16107
16108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16110		fi
16111
16112		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16113
16114		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16115$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16116		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16117		if eval \${$cacheid+:} false; then :
16118  $as_echo_n "(cached) " >&6
16119else
16120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121/* end confdefs.h.  */
16122int i;
16123int
16124main ()
16125{
16126
16127  ;
16128  return 0;
16129}
16130_ACEOF
16131if ac_fn_c_try_link "$LINENO"; then :
16132  eval $cacheid=yes
16133else
16134  eval $cacheid=no
16135fi
16136rm -f core conftest.err conftest.$ac_objext \
16137    conftest$ac_exeext conftest.$ac_ext
16138fi
16139
16140
16141		CFLAGS="$xorg_testset_save_CFLAGS"
16142
16143		eval supported=\$$cacheid
16144		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16145$as_echo "$supported" >&6; }
16146		if test "$supported" = "yes" ; then
16147			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16148			found="yes"
16149		fi
16150	fi
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166xorg_testset_save_CFLAGS="$CFLAGS"
16167
16168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16173  $as_echo_n "(cached) " >&6
16174else
16175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h.  */
16177int i;
16178_ACEOF
16179if ac_fn_c_try_compile "$LINENO"; then :
16180  xorg_cv_cc_flag_unknown_warning_option=yes
16181else
16182  xorg_cv_cc_flag_unknown_warning_option=no
16183fi
16184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16185fi
16186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16189	CFLAGS="$xorg_testset_save_CFLAGS"
16190fi
16191
16192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16195	fi
16196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16200  $as_echo_n "(cached) " >&6
16201else
16202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203/* end confdefs.h.  */
16204int i;
16205_ACEOF
16206if ac_fn_c_try_compile "$LINENO"; then :
16207  xorg_cv_cc_flag_unused_command_line_argument=yes
16208else
16209  xorg_cv_cc_flag_unused_command_line_argument=no
16210fi
16211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212fi
16213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16215	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16216	CFLAGS="$xorg_testset_save_CFLAGS"
16217fi
16218
16219found="no"
16220
16221	if test $found = "no" ; then
16222		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16224		fi
16225
16226		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16228		fi
16229
16230		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16231
16232		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16233$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16234		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16235		if eval \${$cacheid+:} false; then :
16236  $as_echo_n "(cached) " >&6
16237else
16238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239/* end confdefs.h.  */
16240int i;
16241int
16242main ()
16243{
16244
16245  ;
16246  return 0;
16247}
16248_ACEOF
16249if ac_fn_c_try_link "$LINENO"; then :
16250  eval $cacheid=yes
16251else
16252  eval $cacheid=no
16253fi
16254rm -f core conftest.err conftest.$ac_objext \
16255    conftest$ac_exeext conftest.$ac_ext
16256fi
16257
16258
16259		CFLAGS="$xorg_testset_save_CFLAGS"
16260
16261		eval supported=\$$cacheid
16262		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16263$as_echo "$supported" >&6; }
16264		if test "$supported" = "yes" ; then
16265			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16266			found="yes"
16267		fi
16268	fi
16269
16270 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16271else
16272{ $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
16273$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;}
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287xorg_testset_save_CFLAGS="$CFLAGS"
16288
16289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16294  $as_echo_n "(cached) " >&6
16295else
16296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297/* end confdefs.h.  */
16298int i;
16299_ACEOF
16300if ac_fn_c_try_compile "$LINENO"; then :
16301  xorg_cv_cc_flag_unknown_warning_option=yes
16302else
16303  xorg_cv_cc_flag_unknown_warning_option=no
16304fi
16305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16306fi
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16309	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16310	CFLAGS="$xorg_testset_save_CFLAGS"
16311fi
16312
16313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16314	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16315		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16316	fi
16317	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16321  $as_echo_n "(cached) " >&6
16322else
16323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324/* end confdefs.h.  */
16325int i;
16326_ACEOF
16327if ac_fn_c_try_compile "$LINENO"; then :
16328  xorg_cv_cc_flag_unused_command_line_argument=yes
16329else
16330  xorg_cv_cc_flag_unused_command_line_argument=no
16331fi
16332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333fi
16334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16336	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16337	CFLAGS="$xorg_testset_save_CFLAGS"
16338fi
16339
16340found="no"
16341
16342	if test $found = "no" ; then
16343		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16344			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16345		fi
16346
16347		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16348			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16349		fi
16350
16351		CFLAGS="$CFLAGS -Wimplicit"
16352
16353		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16354$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16355		cacheid=xorg_cv_cc_flag__Wimplicit
16356		if eval \${$cacheid+:} false; then :
16357  $as_echo_n "(cached) " >&6
16358else
16359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360/* end confdefs.h.  */
16361int i;
16362int
16363main ()
16364{
16365
16366  ;
16367  return 0;
16368}
16369_ACEOF
16370if ac_fn_c_try_link "$LINENO"; then :
16371  eval $cacheid=yes
16372else
16373  eval $cacheid=no
16374fi
16375rm -f core conftest.err conftest.$ac_objext \
16376    conftest$ac_exeext conftest.$ac_ext
16377fi
16378
16379
16380		CFLAGS="$xorg_testset_save_CFLAGS"
16381
16382		eval supported=\$$cacheid
16383		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16384$as_echo "$supported" >&6; }
16385		if test "$supported" = "yes" ; then
16386			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16387			found="yes"
16388		fi
16389	fi
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405xorg_testset_save_CFLAGS="$CFLAGS"
16406
16407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16408	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16412  $as_echo_n "(cached) " >&6
16413else
16414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415/* end confdefs.h.  */
16416int i;
16417_ACEOF
16418if ac_fn_c_try_compile "$LINENO"; then :
16419  xorg_cv_cc_flag_unknown_warning_option=yes
16420else
16421  xorg_cv_cc_flag_unknown_warning_option=no
16422fi
16423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16424fi
16425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16427	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16428	CFLAGS="$xorg_testset_save_CFLAGS"
16429fi
16430
16431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16432	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16433		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16434	fi
16435	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16439  $as_echo_n "(cached) " >&6
16440else
16441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442/* end confdefs.h.  */
16443int i;
16444_ACEOF
16445if ac_fn_c_try_compile "$LINENO"; then :
16446  xorg_cv_cc_flag_unused_command_line_argument=yes
16447else
16448  xorg_cv_cc_flag_unused_command_line_argument=no
16449fi
16450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451fi
16452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16454	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16455	CFLAGS="$xorg_testset_save_CFLAGS"
16456fi
16457
16458found="no"
16459
16460	if test $found = "no" ; then
16461		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16462			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16463		fi
16464
16465		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16466			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16467		fi
16468
16469		CFLAGS="$CFLAGS -Wnonnull"
16470
16471		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16472$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16473		cacheid=xorg_cv_cc_flag__Wnonnull
16474		if eval \${$cacheid+:} false; then :
16475  $as_echo_n "(cached) " >&6
16476else
16477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478/* end confdefs.h.  */
16479int i;
16480int
16481main ()
16482{
16483
16484  ;
16485  return 0;
16486}
16487_ACEOF
16488if ac_fn_c_try_link "$LINENO"; then :
16489  eval $cacheid=yes
16490else
16491  eval $cacheid=no
16492fi
16493rm -f core conftest.err conftest.$ac_objext \
16494    conftest$ac_exeext conftest.$ac_ext
16495fi
16496
16497
16498		CFLAGS="$xorg_testset_save_CFLAGS"
16499
16500		eval supported=\$$cacheid
16501		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16502$as_echo "$supported" >&6; }
16503		if test "$supported" = "yes" ; then
16504			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16505			found="yes"
16506		fi
16507	fi
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523xorg_testset_save_CFLAGS="$CFLAGS"
16524
16525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16530  $as_echo_n "(cached) " >&6
16531else
16532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533/* end confdefs.h.  */
16534int i;
16535_ACEOF
16536if ac_fn_c_try_compile "$LINENO"; then :
16537  xorg_cv_cc_flag_unknown_warning_option=yes
16538else
16539  xorg_cv_cc_flag_unknown_warning_option=no
16540fi
16541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542fi
16543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16546	CFLAGS="$xorg_testset_save_CFLAGS"
16547fi
16548
16549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16552	fi
16553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16557  $as_echo_n "(cached) " >&6
16558else
16559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560/* end confdefs.h.  */
16561int i;
16562_ACEOF
16563if ac_fn_c_try_compile "$LINENO"; then :
16564  xorg_cv_cc_flag_unused_command_line_argument=yes
16565else
16566  xorg_cv_cc_flag_unused_command_line_argument=no
16567fi
16568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569fi
16570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16573	CFLAGS="$xorg_testset_save_CFLAGS"
16574fi
16575
16576found="no"
16577
16578	if test $found = "no" ; then
16579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581		fi
16582
16583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16585		fi
16586
16587		CFLAGS="$CFLAGS -Winit-self"
16588
16589		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16590$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16591		cacheid=xorg_cv_cc_flag__Winit_self
16592		if eval \${$cacheid+:} false; then :
16593  $as_echo_n "(cached) " >&6
16594else
16595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596/* end confdefs.h.  */
16597int i;
16598int
16599main ()
16600{
16601
16602  ;
16603  return 0;
16604}
16605_ACEOF
16606if ac_fn_c_try_link "$LINENO"; then :
16607  eval $cacheid=yes
16608else
16609  eval $cacheid=no
16610fi
16611rm -f core conftest.err conftest.$ac_objext \
16612    conftest$ac_exeext conftest.$ac_ext
16613fi
16614
16615
16616		CFLAGS="$xorg_testset_save_CFLAGS"
16617
16618		eval supported=\$$cacheid
16619		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16620$as_echo "$supported" >&6; }
16621		if test "$supported" = "yes" ; then
16622			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16623			found="yes"
16624		fi
16625	fi
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641xorg_testset_save_CFLAGS="$CFLAGS"
16642
16643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16644	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16648  $as_echo_n "(cached) " >&6
16649else
16650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651/* end confdefs.h.  */
16652int i;
16653_ACEOF
16654if ac_fn_c_try_compile "$LINENO"; then :
16655  xorg_cv_cc_flag_unknown_warning_option=yes
16656else
16657  xorg_cv_cc_flag_unknown_warning_option=no
16658fi
16659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660fi
16661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16663	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16664	CFLAGS="$xorg_testset_save_CFLAGS"
16665fi
16666
16667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16668	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16669		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16670	fi
16671	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16675  $as_echo_n "(cached) " >&6
16676else
16677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678/* end confdefs.h.  */
16679int i;
16680_ACEOF
16681if ac_fn_c_try_compile "$LINENO"; then :
16682  xorg_cv_cc_flag_unused_command_line_argument=yes
16683else
16684  xorg_cv_cc_flag_unused_command_line_argument=no
16685fi
16686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687fi
16688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16691	CFLAGS="$xorg_testset_save_CFLAGS"
16692fi
16693
16694found="no"
16695
16696	if test $found = "no" ; then
16697		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699		fi
16700
16701		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16703		fi
16704
16705		CFLAGS="$CFLAGS -Wmain"
16706
16707		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16708$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16709		cacheid=xorg_cv_cc_flag__Wmain
16710		if eval \${$cacheid+:} false; then :
16711  $as_echo_n "(cached) " >&6
16712else
16713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714/* end confdefs.h.  */
16715int i;
16716int
16717main ()
16718{
16719
16720  ;
16721  return 0;
16722}
16723_ACEOF
16724if ac_fn_c_try_link "$LINENO"; then :
16725  eval $cacheid=yes
16726else
16727  eval $cacheid=no
16728fi
16729rm -f core conftest.err conftest.$ac_objext \
16730    conftest$ac_exeext conftest.$ac_ext
16731fi
16732
16733
16734		CFLAGS="$xorg_testset_save_CFLAGS"
16735
16736		eval supported=\$$cacheid
16737		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16738$as_echo "$supported" >&6; }
16739		if test "$supported" = "yes" ; then
16740			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16741			found="yes"
16742		fi
16743	fi
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759xorg_testset_save_CFLAGS="$CFLAGS"
16760
16761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16762	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16766  $as_echo_n "(cached) " >&6
16767else
16768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769/* end confdefs.h.  */
16770int i;
16771_ACEOF
16772if ac_fn_c_try_compile "$LINENO"; then :
16773  xorg_cv_cc_flag_unknown_warning_option=yes
16774else
16775  xorg_cv_cc_flag_unknown_warning_option=no
16776fi
16777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16778fi
16779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16782	CFLAGS="$xorg_testset_save_CFLAGS"
16783fi
16784
16785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16788	fi
16789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16793  $as_echo_n "(cached) " >&6
16794else
16795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796/* end confdefs.h.  */
16797int i;
16798_ACEOF
16799if ac_fn_c_try_compile "$LINENO"; then :
16800  xorg_cv_cc_flag_unused_command_line_argument=yes
16801else
16802  xorg_cv_cc_flag_unused_command_line_argument=no
16803fi
16804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16805fi
16806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16809	CFLAGS="$xorg_testset_save_CFLAGS"
16810fi
16811
16812found="no"
16813
16814	if test $found = "no" ; then
16815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16817		fi
16818
16819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16821		fi
16822
16823		CFLAGS="$CFLAGS -Wmissing-braces"
16824
16825		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16826$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16827		cacheid=xorg_cv_cc_flag__Wmissing_braces
16828		if eval \${$cacheid+:} false; then :
16829  $as_echo_n "(cached) " >&6
16830else
16831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832/* end confdefs.h.  */
16833int i;
16834int
16835main ()
16836{
16837
16838  ;
16839  return 0;
16840}
16841_ACEOF
16842if ac_fn_c_try_link "$LINENO"; then :
16843  eval $cacheid=yes
16844else
16845  eval $cacheid=no
16846fi
16847rm -f core conftest.err conftest.$ac_objext \
16848    conftest$ac_exeext conftest.$ac_ext
16849fi
16850
16851
16852		CFLAGS="$xorg_testset_save_CFLAGS"
16853
16854		eval supported=\$$cacheid
16855		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16856$as_echo "$supported" >&6; }
16857		if test "$supported" = "yes" ; then
16858			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16859			found="yes"
16860		fi
16861	fi
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877xorg_testset_save_CFLAGS="$CFLAGS"
16878
16879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16884  $as_echo_n "(cached) " >&6
16885else
16886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887/* end confdefs.h.  */
16888int i;
16889_ACEOF
16890if ac_fn_c_try_compile "$LINENO"; then :
16891  xorg_cv_cc_flag_unknown_warning_option=yes
16892else
16893  xorg_cv_cc_flag_unknown_warning_option=no
16894fi
16895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896fi
16897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16899	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16900	CFLAGS="$xorg_testset_save_CFLAGS"
16901fi
16902
16903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16904	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16906	fi
16907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16911  $as_echo_n "(cached) " >&6
16912else
16913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914/* end confdefs.h.  */
16915int i;
16916_ACEOF
16917if ac_fn_c_try_compile "$LINENO"; then :
16918  xorg_cv_cc_flag_unused_command_line_argument=yes
16919else
16920  xorg_cv_cc_flag_unused_command_line_argument=no
16921fi
16922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923fi
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16927	CFLAGS="$xorg_testset_save_CFLAGS"
16928fi
16929
16930found="no"
16931
16932	if test $found = "no" ; then
16933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16935		fi
16936
16937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16939		fi
16940
16941		CFLAGS="$CFLAGS -Wsequence-point"
16942
16943		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16944$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16945		cacheid=xorg_cv_cc_flag__Wsequence_point
16946		if eval \${$cacheid+:} false; then :
16947  $as_echo_n "(cached) " >&6
16948else
16949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950/* end confdefs.h.  */
16951int i;
16952int
16953main ()
16954{
16955
16956  ;
16957  return 0;
16958}
16959_ACEOF
16960if ac_fn_c_try_link "$LINENO"; then :
16961  eval $cacheid=yes
16962else
16963  eval $cacheid=no
16964fi
16965rm -f core conftest.err conftest.$ac_objext \
16966    conftest$ac_exeext conftest.$ac_ext
16967fi
16968
16969
16970		CFLAGS="$xorg_testset_save_CFLAGS"
16971
16972		eval supported=\$$cacheid
16973		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16974$as_echo "$supported" >&6; }
16975		if test "$supported" = "yes" ; then
16976			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16977			found="yes"
16978		fi
16979	fi
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995xorg_testset_save_CFLAGS="$CFLAGS"
16996
16997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17002  $as_echo_n "(cached) " >&6
17003else
17004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005/* end confdefs.h.  */
17006int i;
17007_ACEOF
17008if ac_fn_c_try_compile "$LINENO"; then :
17009  xorg_cv_cc_flag_unknown_warning_option=yes
17010else
17011  xorg_cv_cc_flag_unknown_warning_option=no
17012fi
17013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014fi
17015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17018	CFLAGS="$xorg_testset_save_CFLAGS"
17019fi
17020
17021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17024	fi
17025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17029  $as_echo_n "(cached) " >&6
17030else
17031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032/* end confdefs.h.  */
17033int i;
17034_ACEOF
17035if ac_fn_c_try_compile "$LINENO"; then :
17036  xorg_cv_cc_flag_unused_command_line_argument=yes
17037else
17038  xorg_cv_cc_flag_unused_command_line_argument=no
17039fi
17040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041fi
17042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17045	CFLAGS="$xorg_testset_save_CFLAGS"
17046fi
17047
17048found="no"
17049
17050	if test $found = "no" ; then
17051		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17053		fi
17054
17055		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17057		fi
17058
17059		CFLAGS="$CFLAGS -Wreturn-type"
17060
17061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17062$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17063		cacheid=xorg_cv_cc_flag__Wreturn_type
17064		if eval \${$cacheid+:} false; then :
17065  $as_echo_n "(cached) " >&6
17066else
17067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068/* end confdefs.h.  */
17069int i;
17070int
17071main ()
17072{
17073
17074  ;
17075  return 0;
17076}
17077_ACEOF
17078if ac_fn_c_try_link "$LINENO"; then :
17079  eval $cacheid=yes
17080else
17081  eval $cacheid=no
17082fi
17083rm -f core conftest.err conftest.$ac_objext \
17084    conftest$ac_exeext conftest.$ac_ext
17085fi
17086
17087
17088		CFLAGS="$xorg_testset_save_CFLAGS"
17089
17090		eval supported=\$$cacheid
17091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17092$as_echo "$supported" >&6; }
17093		if test "$supported" = "yes" ; then
17094			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17095			found="yes"
17096		fi
17097	fi
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113xorg_testset_save_CFLAGS="$CFLAGS"
17114
17115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17120  $as_echo_n "(cached) " >&6
17121else
17122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123/* end confdefs.h.  */
17124int i;
17125_ACEOF
17126if ac_fn_c_try_compile "$LINENO"; then :
17127  xorg_cv_cc_flag_unknown_warning_option=yes
17128else
17129  xorg_cv_cc_flag_unknown_warning_option=no
17130fi
17131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17132fi
17133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17136	CFLAGS="$xorg_testset_save_CFLAGS"
17137fi
17138
17139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17142	fi
17143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17147  $as_echo_n "(cached) " >&6
17148else
17149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150/* end confdefs.h.  */
17151int i;
17152_ACEOF
17153if ac_fn_c_try_compile "$LINENO"; then :
17154  xorg_cv_cc_flag_unused_command_line_argument=yes
17155else
17156  xorg_cv_cc_flag_unused_command_line_argument=no
17157fi
17158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17159fi
17160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17163	CFLAGS="$xorg_testset_save_CFLAGS"
17164fi
17165
17166found="no"
17167
17168	if test $found = "no" ; then
17169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17171		fi
17172
17173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17175		fi
17176
17177		CFLAGS="$CFLAGS -Wtrigraphs"
17178
17179		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17180$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17181		cacheid=xorg_cv_cc_flag__Wtrigraphs
17182		if eval \${$cacheid+:} false; then :
17183  $as_echo_n "(cached) " >&6
17184else
17185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186/* end confdefs.h.  */
17187int i;
17188int
17189main ()
17190{
17191
17192  ;
17193  return 0;
17194}
17195_ACEOF
17196if ac_fn_c_try_link "$LINENO"; then :
17197  eval $cacheid=yes
17198else
17199  eval $cacheid=no
17200fi
17201rm -f core conftest.err conftest.$ac_objext \
17202    conftest$ac_exeext conftest.$ac_ext
17203fi
17204
17205
17206		CFLAGS="$xorg_testset_save_CFLAGS"
17207
17208		eval supported=\$$cacheid
17209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17210$as_echo "$supported" >&6; }
17211		if test "$supported" = "yes" ; then
17212			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17213			found="yes"
17214		fi
17215	fi
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231xorg_testset_save_CFLAGS="$CFLAGS"
17232
17233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17234	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17238  $as_echo_n "(cached) " >&6
17239else
17240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17241/* end confdefs.h.  */
17242int i;
17243_ACEOF
17244if ac_fn_c_try_compile "$LINENO"; then :
17245  xorg_cv_cc_flag_unknown_warning_option=yes
17246else
17247  xorg_cv_cc_flag_unknown_warning_option=no
17248fi
17249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17250fi
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17253	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17254	CFLAGS="$xorg_testset_save_CFLAGS"
17255fi
17256
17257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17258	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17259		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17260	fi
17261	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17265  $as_echo_n "(cached) " >&6
17266else
17267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268/* end confdefs.h.  */
17269int i;
17270_ACEOF
17271if ac_fn_c_try_compile "$LINENO"; then :
17272  xorg_cv_cc_flag_unused_command_line_argument=yes
17273else
17274  xorg_cv_cc_flag_unused_command_line_argument=no
17275fi
17276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17277fi
17278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17281	CFLAGS="$xorg_testset_save_CFLAGS"
17282fi
17283
17284found="no"
17285
17286	if test $found = "no" ; then
17287		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17289		fi
17290
17291		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17293		fi
17294
17295		CFLAGS="$CFLAGS -Warray-bounds"
17296
17297		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17298$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17299		cacheid=xorg_cv_cc_flag__Warray_bounds
17300		if eval \${$cacheid+:} false; then :
17301  $as_echo_n "(cached) " >&6
17302else
17303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304/* end confdefs.h.  */
17305int i;
17306int
17307main ()
17308{
17309
17310  ;
17311  return 0;
17312}
17313_ACEOF
17314if ac_fn_c_try_link "$LINENO"; then :
17315  eval $cacheid=yes
17316else
17317  eval $cacheid=no
17318fi
17319rm -f core conftest.err conftest.$ac_objext \
17320    conftest$ac_exeext conftest.$ac_ext
17321fi
17322
17323
17324		CFLAGS="$xorg_testset_save_CFLAGS"
17325
17326		eval supported=\$$cacheid
17327		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17328$as_echo "$supported" >&6; }
17329		if test "$supported" = "yes" ; then
17330			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17331			found="yes"
17332		fi
17333	fi
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349xorg_testset_save_CFLAGS="$CFLAGS"
17350
17351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17352	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17354$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17355if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17356  $as_echo_n "(cached) " >&6
17357else
17358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359/* end confdefs.h.  */
17360int i;
17361_ACEOF
17362if ac_fn_c_try_compile "$LINENO"; then :
17363  xorg_cv_cc_flag_unknown_warning_option=yes
17364else
17365  xorg_cv_cc_flag_unknown_warning_option=no
17366fi
17367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17368fi
17369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17370$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17371	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17372	CFLAGS="$xorg_testset_save_CFLAGS"
17373fi
17374
17375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17376	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17377		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17378	fi
17379	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17381$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17382if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17383  $as_echo_n "(cached) " >&6
17384else
17385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386/* end confdefs.h.  */
17387int i;
17388_ACEOF
17389if ac_fn_c_try_compile "$LINENO"; then :
17390  xorg_cv_cc_flag_unused_command_line_argument=yes
17391else
17392  xorg_cv_cc_flag_unused_command_line_argument=no
17393fi
17394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395fi
17396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17397$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17398	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17399	CFLAGS="$xorg_testset_save_CFLAGS"
17400fi
17401
17402found="no"
17403
17404	if test $found = "no" ; then
17405		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17407		fi
17408
17409		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17411		fi
17412
17413		CFLAGS="$CFLAGS -Wwrite-strings"
17414
17415		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17416$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17417		cacheid=xorg_cv_cc_flag__Wwrite_strings
17418		if eval \${$cacheid+:} false; then :
17419  $as_echo_n "(cached) " >&6
17420else
17421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422/* end confdefs.h.  */
17423int i;
17424int
17425main ()
17426{
17427
17428  ;
17429  return 0;
17430}
17431_ACEOF
17432if ac_fn_c_try_link "$LINENO"; then :
17433  eval $cacheid=yes
17434else
17435  eval $cacheid=no
17436fi
17437rm -f core conftest.err conftest.$ac_objext \
17438    conftest$ac_exeext conftest.$ac_ext
17439fi
17440
17441
17442		CFLAGS="$xorg_testset_save_CFLAGS"
17443
17444		eval supported=\$$cacheid
17445		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17446$as_echo "$supported" >&6; }
17447		if test "$supported" = "yes" ; then
17448			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17449			found="yes"
17450		fi
17451	fi
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467xorg_testset_save_CFLAGS="$CFLAGS"
17468
17469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17470	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17471	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17474  $as_echo_n "(cached) " >&6
17475else
17476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477/* end confdefs.h.  */
17478int i;
17479_ACEOF
17480if ac_fn_c_try_compile "$LINENO"; then :
17481  xorg_cv_cc_flag_unknown_warning_option=yes
17482else
17483  xorg_cv_cc_flag_unknown_warning_option=no
17484fi
17485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17486fi
17487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17489	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17490	CFLAGS="$xorg_testset_save_CFLAGS"
17491fi
17492
17493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17494	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17495		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17496	fi
17497	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17501  $as_echo_n "(cached) " >&6
17502else
17503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504/* end confdefs.h.  */
17505int i;
17506_ACEOF
17507if ac_fn_c_try_compile "$LINENO"; then :
17508  xorg_cv_cc_flag_unused_command_line_argument=yes
17509else
17510  xorg_cv_cc_flag_unused_command_line_argument=no
17511fi
17512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17513fi
17514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17516	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17517	CFLAGS="$xorg_testset_save_CFLAGS"
17518fi
17519
17520found="no"
17521
17522	if test $found = "no" ; then
17523		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17524			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17525		fi
17526
17527		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17528			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17529		fi
17530
17531		CFLAGS="$CFLAGS -Waddress"
17532
17533		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17534$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17535		cacheid=xorg_cv_cc_flag__Waddress
17536		if eval \${$cacheid+:} false; then :
17537  $as_echo_n "(cached) " >&6
17538else
17539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540/* end confdefs.h.  */
17541int i;
17542int
17543main ()
17544{
17545
17546  ;
17547  return 0;
17548}
17549_ACEOF
17550if ac_fn_c_try_link "$LINENO"; then :
17551  eval $cacheid=yes
17552else
17553  eval $cacheid=no
17554fi
17555rm -f core conftest.err conftest.$ac_objext \
17556    conftest$ac_exeext conftest.$ac_ext
17557fi
17558
17559
17560		CFLAGS="$xorg_testset_save_CFLAGS"
17561
17562		eval supported=\$$cacheid
17563		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17564$as_echo "$supported" >&6; }
17565		if test "$supported" = "yes" ; then
17566			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17567			found="yes"
17568		fi
17569	fi
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585xorg_testset_save_CFLAGS="$CFLAGS"
17586
17587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17590$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17591if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17592  $as_echo_n "(cached) " >&6
17593else
17594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595/* end confdefs.h.  */
17596int i;
17597_ACEOF
17598if ac_fn_c_try_compile "$LINENO"; then :
17599  xorg_cv_cc_flag_unknown_warning_option=yes
17600else
17601  xorg_cv_cc_flag_unknown_warning_option=no
17602fi
17603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17604fi
17605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17606$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17608	CFLAGS="$xorg_testset_save_CFLAGS"
17609fi
17610
17611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17614	fi
17615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17617$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17618if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17619  $as_echo_n "(cached) " >&6
17620else
17621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17622/* end confdefs.h.  */
17623int i;
17624_ACEOF
17625if ac_fn_c_try_compile "$LINENO"; then :
17626  xorg_cv_cc_flag_unused_command_line_argument=yes
17627else
17628  xorg_cv_cc_flag_unused_command_line_argument=no
17629fi
17630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17631fi
17632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17633$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17635	CFLAGS="$xorg_testset_save_CFLAGS"
17636fi
17637
17638found="no"
17639
17640	if test $found = "no" ; then
17641		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17643		fi
17644
17645		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17647		fi
17648
17649		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17650
17651		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17652$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17653		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17654		if eval \${$cacheid+:} false; then :
17655  $as_echo_n "(cached) " >&6
17656else
17657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658/* end confdefs.h.  */
17659int i;
17660int
17661main ()
17662{
17663
17664  ;
17665  return 0;
17666}
17667_ACEOF
17668if ac_fn_c_try_link "$LINENO"; then :
17669  eval $cacheid=yes
17670else
17671  eval $cacheid=no
17672fi
17673rm -f core conftest.err conftest.$ac_objext \
17674    conftest$ac_exeext conftest.$ac_ext
17675fi
17676
17677
17678		CFLAGS="$xorg_testset_save_CFLAGS"
17679
17680		eval supported=\$$cacheid
17681		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17682$as_echo "$supported" >&6; }
17683		if test "$supported" = "yes" ; then
17684			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17685			found="yes"
17686		fi
17687	fi
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703xorg_testset_save_CFLAGS="$CFLAGS"
17704
17705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17706	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17710  $as_echo_n "(cached) " >&6
17711else
17712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713/* end confdefs.h.  */
17714int i;
17715_ACEOF
17716if ac_fn_c_try_compile "$LINENO"; then :
17717  xorg_cv_cc_flag_unknown_warning_option=yes
17718else
17719  xorg_cv_cc_flag_unknown_warning_option=no
17720fi
17721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17722fi
17723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17725	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17726	CFLAGS="$xorg_testset_save_CFLAGS"
17727fi
17728
17729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17730	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17731		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17732	fi
17733	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17737  $as_echo_n "(cached) " >&6
17738else
17739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740/* end confdefs.h.  */
17741int i;
17742_ACEOF
17743if ac_fn_c_try_compile "$LINENO"; then :
17744  xorg_cv_cc_flag_unused_command_line_argument=yes
17745else
17746  xorg_cv_cc_flag_unused_command_line_argument=no
17747fi
17748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749fi
17750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17753	CFLAGS="$xorg_testset_save_CFLAGS"
17754fi
17755
17756found="no"
17757
17758	if test $found = "no" ; then
17759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17761		fi
17762
17763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17765		fi
17766
17767		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17768
17769		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17770$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17771		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17772		if eval \${$cacheid+:} false; then :
17773  $as_echo_n "(cached) " >&6
17774else
17775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776/* end confdefs.h.  */
17777int i;
17778int
17779main ()
17780{
17781
17782  ;
17783  return 0;
17784}
17785_ACEOF
17786if ac_fn_c_try_link "$LINENO"; then :
17787  eval $cacheid=yes
17788else
17789  eval $cacheid=no
17790fi
17791rm -f core conftest.err conftest.$ac_objext \
17792    conftest$ac_exeext conftest.$ac_ext
17793fi
17794
17795
17796		CFLAGS="$xorg_testset_save_CFLAGS"
17797
17798		eval supported=\$$cacheid
17799		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17800$as_echo "$supported" >&6; }
17801		if test "$supported" = "yes" ; then
17802			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17803			found="yes"
17804		fi
17805	fi
17806
17807
17808fi
17809
17810
17811
17812
17813
17814
17815
17816		CWARNFLAGS="$BASE_CFLAGS"
17817		if  test "x$GCC" = xyes ; then
17818		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17819		fi
17820
17821
17822
17823
17824
17825
17826
17827
17828# Check whether --enable-strict-compilation was given.
17829if test "${enable_strict_compilation+set}" = set; then :
17830  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17831else
17832  STRICT_COMPILE=no
17833fi
17834
17835
17836
17837
17838
17839
17840STRICT_CFLAGS=""
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854xorg_testset_save_CFLAGS="$CFLAGS"
17855
17856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17857	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17861  $as_echo_n "(cached) " >&6
17862else
17863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17864/* end confdefs.h.  */
17865int i;
17866_ACEOF
17867if ac_fn_c_try_compile "$LINENO"; then :
17868  xorg_cv_cc_flag_unknown_warning_option=yes
17869else
17870  xorg_cv_cc_flag_unknown_warning_option=no
17871fi
17872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873fi
17874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17876	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17877	CFLAGS="$xorg_testset_save_CFLAGS"
17878fi
17879
17880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17881	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17882		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17883	fi
17884	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17888  $as_echo_n "(cached) " >&6
17889else
17890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891/* end confdefs.h.  */
17892int i;
17893_ACEOF
17894if ac_fn_c_try_compile "$LINENO"; then :
17895  xorg_cv_cc_flag_unused_command_line_argument=yes
17896else
17897  xorg_cv_cc_flag_unused_command_line_argument=no
17898fi
17899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17900fi
17901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17904	CFLAGS="$xorg_testset_save_CFLAGS"
17905fi
17906
17907found="no"
17908
17909	if test $found = "no" ; then
17910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17912		fi
17913
17914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17916		fi
17917
17918		CFLAGS="$CFLAGS -pedantic"
17919
17920		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17921$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17922		cacheid=xorg_cv_cc_flag__pedantic
17923		if eval \${$cacheid+:} false; then :
17924  $as_echo_n "(cached) " >&6
17925else
17926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927/* end confdefs.h.  */
17928int i;
17929int
17930main ()
17931{
17932
17933  ;
17934  return 0;
17935}
17936_ACEOF
17937if ac_fn_c_try_link "$LINENO"; then :
17938  eval $cacheid=yes
17939else
17940  eval $cacheid=no
17941fi
17942rm -f core conftest.err conftest.$ac_objext \
17943    conftest$ac_exeext conftest.$ac_ext
17944fi
17945
17946
17947		CFLAGS="$xorg_testset_save_CFLAGS"
17948
17949		eval supported=\$$cacheid
17950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17951$as_echo "$supported" >&6; }
17952		if test "$supported" = "yes" ; then
17953			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17954			found="yes"
17955		fi
17956	fi
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972xorg_testset_save_CFLAGS="$CFLAGS"
17973
17974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17979  $as_echo_n "(cached) " >&6
17980else
17981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17982/* end confdefs.h.  */
17983int i;
17984_ACEOF
17985if ac_fn_c_try_compile "$LINENO"; then :
17986  xorg_cv_cc_flag_unknown_warning_option=yes
17987else
17988  xorg_cv_cc_flag_unknown_warning_option=no
17989fi
17990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991fi
17992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17995	CFLAGS="$xorg_testset_save_CFLAGS"
17996fi
17997
17998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18001	fi
18002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18006  $as_echo_n "(cached) " >&6
18007else
18008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009/* end confdefs.h.  */
18010int i;
18011_ACEOF
18012if ac_fn_c_try_compile "$LINENO"; then :
18013  xorg_cv_cc_flag_unused_command_line_argument=yes
18014else
18015  xorg_cv_cc_flag_unused_command_line_argument=no
18016fi
18017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018fi
18019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18022	CFLAGS="$xorg_testset_save_CFLAGS"
18023fi
18024
18025found="no"
18026
18027	if test $found = "no" ; then
18028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18030		fi
18031
18032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18034		fi
18035
18036		CFLAGS="$CFLAGS -Werror"
18037
18038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18039$as_echo_n "checking if $CC supports -Werror... " >&6; }
18040		cacheid=xorg_cv_cc_flag__Werror
18041		if eval \${$cacheid+:} false; then :
18042  $as_echo_n "(cached) " >&6
18043else
18044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045/* end confdefs.h.  */
18046int i;
18047int
18048main ()
18049{
18050
18051  ;
18052  return 0;
18053}
18054_ACEOF
18055if ac_fn_c_try_link "$LINENO"; then :
18056  eval $cacheid=yes
18057else
18058  eval $cacheid=no
18059fi
18060rm -f core conftest.err conftest.$ac_objext \
18061    conftest$ac_exeext conftest.$ac_ext
18062fi
18063
18064
18065		CFLAGS="$xorg_testset_save_CFLAGS"
18066
18067		eval supported=\$$cacheid
18068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18069$as_echo "$supported" >&6; }
18070		if test "$supported" = "yes" ; then
18071			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18072			found="yes"
18073		fi
18074	fi
18075
18076	if test $found = "no" ; then
18077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18079		fi
18080
18081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18083		fi
18084
18085		CFLAGS="$CFLAGS -errwarn"
18086
18087		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18088$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18089		cacheid=xorg_cv_cc_flag__errwarn
18090		if eval \${$cacheid+:} false; then :
18091  $as_echo_n "(cached) " >&6
18092else
18093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094/* end confdefs.h.  */
18095int i;
18096int
18097main ()
18098{
18099
18100  ;
18101  return 0;
18102}
18103_ACEOF
18104if ac_fn_c_try_link "$LINENO"; then :
18105  eval $cacheid=yes
18106else
18107  eval $cacheid=no
18108fi
18109rm -f core conftest.err conftest.$ac_objext \
18110    conftest$ac_exeext conftest.$ac_ext
18111fi
18112
18113
18114		CFLAGS="$xorg_testset_save_CFLAGS"
18115
18116		eval supported=\$$cacheid
18117		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18118$as_echo "$supported" >&6; }
18119		if test "$supported" = "yes" ; then
18120			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18121			found="yes"
18122		fi
18123	fi
18124
18125
18126
18127# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18128# activate it with -Werror, so we add it here explicitly.
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142xorg_testset_save_CFLAGS="$CFLAGS"
18143
18144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18149  $as_echo_n "(cached) " >&6
18150else
18151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152/* end confdefs.h.  */
18153int i;
18154_ACEOF
18155if ac_fn_c_try_compile "$LINENO"; then :
18156  xorg_cv_cc_flag_unknown_warning_option=yes
18157else
18158  xorg_cv_cc_flag_unknown_warning_option=no
18159fi
18160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18161fi
18162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18165	CFLAGS="$xorg_testset_save_CFLAGS"
18166fi
18167
18168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18171	fi
18172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18176  $as_echo_n "(cached) " >&6
18177else
18178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179/* end confdefs.h.  */
18180int i;
18181_ACEOF
18182if ac_fn_c_try_compile "$LINENO"; then :
18183  xorg_cv_cc_flag_unused_command_line_argument=yes
18184else
18185  xorg_cv_cc_flag_unused_command_line_argument=no
18186fi
18187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18188fi
18189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18192	CFLAGS="$xorg_testset_save_CFLAGS"
18193fi
18194
18195found="no"
18196
18197	if test $found = "no" ; then
18198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18200		fi
18201
18202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18204		fi
18205
18206		CFLAGS="$CFLAGS -Werror=attributes"
18207
18208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18209$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18210		cacheid=xorg_cv_cc_flag__Werror_attributes
18211		if eval \${$cacheid+:} false; then :
18212  $as_echo_n "(cached) " >&6
18213else
18214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215/* end confdefs.h.  */
18216int i;
18217int
18218main ()
18219{
18220
18221  ;
18222  return 0;
18223}
18224_ACEOF
18225if ac_fn_c_try_link "$LINENO"; then :
18226  eval $cacheid=yes
18227else
18228  eval $cacheid=no
18229fi
18230rm -f core conftest.err conftest.$ac_objext \
18231    conftest$ac_exeext conftest.$ac_ext
18232fi
18233
18234
18235		CFLAGS="$xorg_testset_save_CFLAGS"
18236
18237		eval supported=\$$cacheid
18238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18239$as_echo "$supported" >&6; }
18240		if test "$supported" = "yes" ; then
18241			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18242			found="yes"
18243		fi
18244	fi
18245
18246
18247
18248if test "x$STRICT_COMPILE" = "xyes"; then
18249    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18250    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18251fi
18252
18253
18254
18255
18256
18257
18258cat >>confdefs.h <<_ACEOF
18259#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18260_ACEOF
18261
18262	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18263	if test "x$PVM" = "x"; then
18264		PVM="0"
18265	fi
18266
18267cat >>confdefs.h <<_ACEOF
18268#define PACKAGE_VERSION_MINOR $PVM
18269_ACEOF
18270
18271	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18272	if test "x$PVP" = "x"; then
18273		PVP="0"
18274	fi
18275
18276cat >>confdefs.h <<_ACEOF
18277#define PACKAGE_VERSION_PATCHLEVEL $PVP
18278_ACEOF
18279
18280
18281
18282CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18283mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18284|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18285echo 'git directory not found: installing possibly empty changelog.' >&2)"
18286
18287
18288
18289
18290macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18291INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18292mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18293|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18294echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18295
18296
18297
18298
18299
18300
18301if test x$APP_MAN_SUFFIX = x    ; then
18302    APP_MAN_SUFFIX=1
18303fi
18304if test x$APP_MAN_DIR = x    ; then
18305    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18306fi
18307
18308if test x$LIB_MAN_SUFFIX = x    ; then
18309    LIB_MAN_SUFFIX=3
18310fi
18311if test x$LIB_MAN_DIR = x    ; then
18312    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18313fi
18314
18315if test x$FILE_MAN_SUFFIX = x    ; then
18316    case $host_os in
18317	# Solaris 2.0 - 11 use SysV man page sections
18318	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
18319	*)				FILE_MAN_SUFFIX=5  ;;
18320    esac
18321fi
18322if test x$FILE_MAN_DIR = x    ; then
18323    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18324fi
18325
18326if test x$MISC_MAN_SUFFIX = x    ; then
18327    case $host_os in
18328	# Solaris 2.0 - 11 use SysV man page sections
18329	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
18330	*)				MISC_MAN_SUFFIX=7  ;;
18331    esac
18332fi
18333if test x$MISC_MAN_DIR = x    ; then
18334    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18335fi
18336
18337if test x$DRIVER_MAN_SUFFIX = x    ; then
18338    case $host_os in
18339	# Solaris 2.0 - 11 use SysV man page sections
18340	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
18341	*)				DRIVER_MAN_SUFFIX=4  ;;
18342    esac
18343fi
18344if test x$DRIVER_MAN_DIR = x    ; then
18345    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18346fi
18347
18348if test x$ADMIN_MAN_SUFFIX = x    ; then
18349    case $host_os in
18350	# Solaris 2.0 - 11 use SysV man page sections
18351	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
18352	*)				ADMIN_MAN_SUFFIX=8  ;;
18353    esac
18354fi
18355if test x$ADMIN_MAN_DIR = x    ; then
18356    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18357fi
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373XORG_MAN_PAGE="X Version 11"
18374
18375MAN_SUBSTS="\
18376	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18377	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18378	-e 's|__xservername__|Xorg|g' \
18379	-e 's|__xconfigfile__|xorg.conf|g' \
18380	-e 's|__projectroot__|\$(prefix)|g' \
18381	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18382	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18383	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18384	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18385	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18386	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18387	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18388
18389
18390
18391# Check whether --enable-silent-rules was given.
18392if test "${enable_silent_rules+set}" = set; then :
18393  enableval=$enable_silent_rules;
18394fi
18395
18396case $enable_silent_rules in # (((
18397  yes) AM_DEFAULT_VERBOSITY=0;;
18398   no) AM_DEFAULT_VERBOSITY=1;;
18399    *) AM_DEFAULT_VERBOSITY=0;;
18400esac
18401am_make=${MAKE-make}
18402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18403$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18404if ${am_cv_make_support_nested_variables+:} false; then :
18405  $as_echo_n "(cached) " >&6
18406else
18407  if $as_echo 'TRUE=$(BAR$(V))
18408BAR0=false
18409BAR1=true
18410V=1
18411am__doit:
18412	@$(TRUE)
18413.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18414  am_cv_make_support_nested_variables=yes
18415else
18416  am_cv_make_support_nested_variables=no
18417fi
18418fi
18419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18420$as_echo "$am_cv_make_support_nested_variables" >&6; }
18421if test $am_cv_make_support_nested_variables = yes; then
18422    AM_V='$(V)'
18423  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18424else
18425  AM_V=$AM_DEFAULT_VERBOSITY
18426  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18427fi
18428AM_BACKSLASH='\'
18429
18430
18431
18432# Set library version for Xcursor.h from package version set in AC_INIT
18433# copied from PACKAGE_VERSION_* settings in XORG_VERSION
18434
18435cat >>confdefs.h <<_ACEOF
18436#define XCURSOR_LIB_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18437_ACEOF
18438
18439
18440cat >>confdefs.h <<_ACEOF
18441#define XCURSOR_LIB_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18442_ACEOF
18443
18444
18445cat >>confdefs.h <<_ACEOF
18446#define XCURSOR_LIB_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18447_ACEOF
18448
18449
18450
18451
18452# Check whether --with-icondir was given.
18453if test "${with_icondir+set}" = set; then :
18454  withval=$with_icondir; ICONDIR="$withval"
18455else
18456  ICONDIR=${datadir}/icons
18457fi
18458
18459
18460
18461DEF_CURSORPATH="~/.local/share/icons:~/.icons:${datadir}/icons:${datadir}/pixmaps"
18462if test "x${ICONDIR}" != "x${datadir}/icons"; then
18463	DEF_CURSORPATH="${DEF_CURSORPATH}:${ICONDIR}"
18464fi
18465
18466# Check whether --with-cursorpath was given.
18467if test "${with_cursorpath+set}" = set; then :
18468  withval=$with_cursorpath; XCURSORPATH="$withval"
18469else
18470  XCURSORPATH=$DEF_CURSORPATH
18471fi
18472
18473
18474
18475# Obtain compiler/linker options for depedencies
18476
18477pkg_failed=no
18478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCURSOR" >&5
18479$as_echo_n "checking for XCURSOR... " >&6; }
18480
18481if test -n "$XCURSOR_CFLAGS"; then
18482    pkg_cv_XCURSOR_CFLAGS="$XCURSOR_CFLAGS"
18483 elif test -n "$PKG_CONFIG"; then
18484    if test -n "$PKG_CONFIG" && \
18485    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5
18486  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5
18487  ac_status=$?
18488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18489  test $ac_status = 0; }; then
18490  pkg_cv_XCURSOR_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null`
18491		      test "x$?" != "x0" && pkg_failed=yes
18492else
18493  pkg_failed=yes
18494fi
18495 else
18496    pkg_failed=untried
18497fi
18498if test -n "$XCURSOR_LIBS"; then
18499    pkg_cv_XCURSOR_LIBS="$XCURSOR_LIBS"
18500 elif test -n "$PKG_CONFIG"; then
18501    if test -n "$PKG_CONFIG" && \
18502    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5
18503  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5
18504  ac_status=$?
18505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18506  test $ac_status = 0; }; then
18507  pkg_cv_XCURSOR_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null`
18508		      test "x$?" != "x0" && pkg_failed=yes
18509else
18510  pkg_failed=yes
18511fi
18512 else
18513    pkg_failed=untried
18514fi
18515
18516
18517
18518if test $pkg_failed = yes; then
18519   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18520$as_echo "no" >&6; }
18521
18522if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18523        _pkg_short_errors_supported=yes
18524else
18525        _pkg_short_errors_supported=no
18526fi
18527        if test $_pkg_short_errors_supported = yes; then
18528	        XCURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1`
18529        else
18530	        XCURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1`
18531        fi
18532	# Put the nasty error message in config.log where it belongs
18533	echo "$XCURSOR_PKG_ERRORS" >&5
18534
18535	as_fn_error $? "Package requirements (xrender >= 0.8.2 xfixes x11 fixesproto) were not met:
18536
18537$XCURSOR_PKG_ERRORS
18538
18539Consider adjusting the PKG_CONFIG_PATH environment variable if you
18540installed software in a non-standard prefix.
18541
18542Alternatively, you may set the environment variables XCURSOR_CFLAGS
18543and XCURSOR_LIBS to avoid the need to call pkg-config.
18544See the pkg-config man page for more details." "$LINENO" 5
18545elif test $pkg_failed = untried; then
18546     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18547$as_echo "no" >&6; }
18548	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18550as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18551is in your PATH or set the PKG_CONFIG environment variable to the full
18552path to pkg-config.
18553
18554Alternatively, you may set the environment variables XCURSOR_CFLAGS
18555and XCURSOR_LIBS to avoid the need to call pkg-config.
18556See the pkg-config man page for more details.
18557
18558To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18559See \`config.log' for more details" "$LINENO" 5; }
18560else
18561	XCURSOR_CFLAGS=$pkg_cv_XCURSOR_CFLAGS
18562	XCURSOR_LIBS=$pkg_cv_XCURSOR_LIBS
18563        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18564$as_echo "yes" >&6; }
18565
18566fi
18567
18568$as_echo "#define HAVE_XFIXES 1" >>confdefs.h
18569
18570
18571# Allow checking code with lint, sparse, etc.
18572
18573
18574
18575
18576
18577# Check whether --with-lint was given.
18578if test "${with_lint+set}" = set; then :
18579  withval=$with_lint; use_lint=$withval
18580else
18581  use_lint=no
18582fi
18583
18584
18585# Obtain platform specific info like program name and options
18586# The lint program on FreeBSD and NetBSD is different from the one on Solaris
18587case $host_os in
18588  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18589	lint_name=splint
18590	lint_options="-badflag"
18591	;;
18592  *freebsd* | *netbsd*)
18593	lint_name=lint
18594	lint_options="-u -b"
18595	;;
18596  *solaris*)
18597	lint_name=lint
18598	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18599	;;
18600esac
18601
18602# Test for the presence of the program (either guessed by the code or spelled out by the user)
18603if test "x$use_lint" = x"yes" ; then
18604   # Extract the first word of "$lint_name", so it can be a program name with args.
18605set dummy $lint_name; ac_word=$2
18606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18607$as_echo_n "checking for $ac_word... " >&6; }
18608if ${ac_cv_path_LINT+:} false; then :
18609  $as_echo_n "(cached) " >&6
18610else
18611  case $LINT in
18612  [\\/]* | ?:[\\/]*)
18613  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18614  ;;
18615  *)
18616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18617for as_dir in $PATH
18618do
18619  IFS=$as_save_IFS
18620  test -z "$as_dir" && as_dir=.
18621    for ac_exec_ext in '' $ac_executable_extensions; do
18622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18623    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18625    break 2
18626  fi
18627done
18628  done
18629IFS=$as_save_IFS
18630
18631  ;;
18632esac
18633fi
18634LINT=$ac_cv_path_LINT
18635if test -n "$LINT"; then
18636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18637$as_echo "$LINT" >&6; }
18638else
18639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18640$as_echo "no" >&6; }
18641fi
18642
18643
18644   if test "x$LINT" = "x"; then
18645        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18646   fi
18647elif test "x$use_lint" = x"no" ; then
18648   if test "x$LINT" != "x"; then
18649      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18650$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18651   fi
18652else
18653   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18654fi
18655
18656# User supplied flags override default flags
18657if test "x$LINT_FLAGS" != "x"; then
18658   lint_options=$LINT_FLAGS
18659fi
18660
18661LINT_FLAGS=$lint_options
18662
18663 if test "x$LINT" != x; then
18664  LINT_TRUE=
18665  LINT_FALSE='#'
18666else
18667  LINT_TRUE='#'
18668  LINT_FALSE=
18669fi
18670
18671
18672
18673
18674ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcursor.pc"
18675
18676cat >confcache <<\_ACEOF
18677# This file is a shell script that caches the results of configure
18678# tests run on this system so they can be shared between configure
18679# scripts and configure runs, see configure's option --config-cache.
18680# It is not useful on other systems.  If it contains results you don't
18681# want to keep, you may remove or edit it.
18682#
18683# config.status only pays attention to the cache file if you give it
18684# the --recheck option to rerun configure.
18685#
18686# `ac_cv_env_foo' variables (set or unset) will be overridden when
18687# loading this file, other *unset* `ac_cv_foo' will be assigned the
18688# following values.
18689
18690_ACEOF
18691
18692# The following way of writing the cache mishandles newlines in values,
18693# but we know of no workaround that is simple, portable, and efficient.
18694# So, we kill variables containing newlines.
18695# Ultrix sh set writes to stderr and can't be redirected directly,
18696# and sets the high bit in the cache file unless we assign to the vars.
18697(
18698  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18699    eval ac_val=\$$ac_var
18700    case $ac_val in #(
18701    *${as_nl}*)
18702      case $ac_var in #(
18703      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18704$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18705      esac
18706      case $ac_var in #(
18707      _ | IFS | as_nl) ;; #(
18708      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18709      *) { eval $ac_var=; unset $ac_var;} ;;
18710      esac ;;
18711    esac
18712  done
18713
18714  (set) 2>&1 |
18715    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18716    *${as_nl}ac_space=\ *)
18717      # `set' does not quote correctly, so add quotes: double-quote
18718      # substitution turns \\\\ into \\, and sed turns \\ into \.
18719      sed -n \
18720	"s/'/'\\\\''/g;
18721	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18722      ;; #(
18723    *)
18724      # `set' quotes correctly as required by POSIX, so do not add quotes.
18725      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18726      ;;
18727    esac |
18728    sort
18729) |
18730  sed '
18731     /^ac_cv_env_/b end
18732     t clear
18733     :clear
18734     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18735     t end
18736     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18737     :end' >>confcache
18738if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18739  if test -w "$cache_file"; then
18740    if test "x$cache_file" != "x/dev/null"; then
18741      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18742$as_echo "$as_me: updating cache $cache_file" >&6;}
18743      if test ! -f "$cache_file" || test -h "$cache_file"; then
18744	cat confcache >"$cache_file"
18745      else
18746        case $cache_file in #(
18747        */* | ?:*)
18748	  mv -f confcache "$cache_file"$$ &&
18749	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18750        *)
18751	  mv -f confcache "$cache_file" ;;
18752	esac
18753      fi
18754    fi
18755  else
18756    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18757$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18758  fi
18759fi
18760rm -f confcache
18761
18762test "x$prefix" = xNONE && prefix=$ac_default_prefix
18763# Let make expand exec_prefix.
18764test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18765
18766DEFS=-DHAVE_CONFIG_H
18767
18768ac_libobjs=
18769ac_ltlibobjs=
18770U=
18771for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18772  # 1. Remove the extension, and $U if already installed.
18773  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18774  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18775  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18776  #    will be set to the directory where LIBOBJS objects are built.
18777  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18778  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18779done
18780LIBOBJS=$ac_libobjs
18781
18782LTLIBOBJS=$ac_ltlibobjs
18783
18784
18785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18786$as_echo_n "checking that generated files are newer than configure... " >&6; }
18787   if test -n "$am_sleep_pid"; then
18788     # Hide warnings about reused PIDs.
18789     wait $am_sleep_pid 2>/dev/null
18790   fi
18791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18792$as_echo "done" >&6; }
18793if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18794  as_fn_error $? "conditional \"AMDEP\" was never defined.
18795Usually this means the macro was only invoked conditionally." "$LINENO" 5
18796fi
18797if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18798  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18799Usually this means the macro was only invoked conditionally." "$LINENO" 5
18800fi
18801 if test -n "$EXEEXT"; then
18802  am__EXEEXT_TRUE=
18803  am__EXEEXT_FALSE='#'
18804else
18805  am__EXEEXT_TRUE='#'
18806  am__EXEEXT_FALSE=
18807fi
18808
18809if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18810  as_fn_error $? "conditional \"LINT\" was never defined.
18811Usually this means the macro was only invoked conditionally." "$LINENO" 5
18812fi
18813
18814: "${CONFIG_STATUS=./config.status}"
18815ac_write_fail=0
18816ac_clean_files_save=$ac_clean_files
18817ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18818{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18819$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18820as_write_fail=0
18821cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18822#! $SHELL
18823# Generated by $as_me.
18824# Run this file to recreate the current configuration.
18825# Compiler output produced by configure, useful for debugging
18826# configure, is in config.log if it exists.
18827
18828debug=false
18829ac_cs_recheck=false
18830ac_cs_silent=false
18831
18832SHELL=\${CONFIG_SHELL-$SHELL}
18833export SHELL
18834_ASEOF
18835cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18836## -------------------- ##
18837## M4sh Initialization. ##
18838## -------------------- ##
18839
18840# Be more Bourne compatible
18841DUALCASE=1; export DUALCASE # for MKS sh
18842if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18843  emulate sh
18844  NULLCMD=:
18845  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18846  # is contrary to our usage.  Disable this feature.
18847  alias -g '${1+"$@"}'='"$@"'
18848  setopt NO_GLOB_SUBST
18849else
18850  case `(set -o) 2>/dev/null` in #(
18851  *posix*) :
18852    set -o posix ;; #(
18853  *) :
18854     ;;
18855esac
18856fi
18857
18858
18859as_nl='
18860'
18861export as_nl
18862# Printing a long string crashes Solaris 7 /usr/bin/printf.
18863as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18864as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18865as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18866# Prefer a ksh shell builtin over an external printf program on Solaris,
18867# but without wasting forks for bash or zsh.
18868if test -z "$BASH_VERSION$ZSH_VERSION" \
18869    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18870  as_echo='print -r --'
18871  as_echo_n='print -rn --'
18872elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18873  as_echo='printf %s\n'
18874  as_echo_n='printf %s'
18875else
18876  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18877    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18878    as_echo_n='/usr/ucb/echo -n'
18879  else
18880    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18881    as_echo_n_body='eval
18882      arg=$1;
18883      case $arg in #(
18884      *"$as_nl"*)
18885	expr "X$arg" : "X\\(.*\\)$as_nl";
18886	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18887      esac;
18888      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18889    '
18890    export as_echo_n_body
18891    as_echo_n='sh -c $as_echo_n_body as_echo'
18892  fi
18893  export as_echo_body
18894  as_echo='sh -c $as_echo_body as_echo'
18895fi
18896
18897# The user is always right.
18898if test "${PATH_SEPARATOR+set}" != set; then
18899  PATH_SEPARATOR=:
18900  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18901    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18902      PATH_SEPARATOR=';'
18903  }
18904fi
18905
18906
18907# IFS
18908# We need space, tab and new line, in precisely that order.  Quoting is
18909# there to prevent editors from complaining about space-tab.
18910# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18911# splitting by setting IFS to empty value.)
18912IFS=" ""	$as_nl"
18913
18914# Find who we are.  Look in the path if we contain no directory separator.
18915as_myself=
18916case $0 in #((
18917  *[\\/]* ) as_myself=$0 ;;
18918  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18919for as_dir in $PATH
18920do
18921  IFS=$as_save_IFS
18922  test -z "$as_dir" && as_dir=.
18923    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18924  done
18925IFS=$as_save_IFS
18926
18927     ;;
18928esac
18929# We did not find ourselves, most probably we were run as `sh COMMAND'
18930# in which case we are not to be found in the path.
18931if test "x$as_myself" = x; then
18932  as_myself=$0
18933fi
18934if test ! -f "$as_myself"; then
18935  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18936  exit 1
18937fi
18938
18939# Unset variables that we do not need and which cause bugs (e.g. in
18940# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18941# suppresses any "Segmentation fault" message there.  '((' could
18942# trigger a bug in pdksh 5.2.14.
18943for as_var in BASH_ENV ENV MAIL MAILPATH
18944do eval test x\${$as_var+set} = xset \
18945  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18946done
18947PS1='$ '
18948PS2='> '
18949PS4='+ '
18950
18951# NLS nuisances.
18952LC_ALL=C
18953export LC_ALL
18954LANGUAGE=C
18955export LANGUAGE
18956
18957# CDPATH.
18958(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18959
18960
18961# as_fn_error STATUS ERROR [LINENO LOG_FD]
18962# ----------------------------------------
18963# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18964# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18965# script with STATUS, using 1 if that was 0.
18966as_fn_error ()
18967{
18968  as_status=$1; test $as_status -eq 0 && as_status=1
18969  if test "$4"; then
18970    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18971    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18972  fi
18973  $as_echo "$as_me: error: $2" >&2
18974  as_fn_exit $as_status
18975} # as_fn_error
18976
18977
18978# as_fn_set_status STATUS
18979# -----------------------
18980# Set $? to STATUS, without forking.
18981as_fn_set_status ()
18982{
18983  return $1
18984} # as_fn_set_status
18985
18986# as_fn_exit STATUS
18987# -----------------
18988# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18989as_fn_exit ()
18990{
18991  set +e
18992  as_fn_set_status $1
18993  exit $1
18994} # as_fn_exit
18995
18996# as_fn_unset VAR
18997# ---------------
18998# Portably unset VAR.
18999as_fn_unset ()
19000{
19001  { eval $1=; unset $1;}
19002}
19003as_unset=as_fn_unset
19004# as_fn_append VAR VALUE
19005# ----------------------
19006# Append the text in VALUE to the end of the definition contained in VAR. Take
19007# advantage of any shell optimizations that allow amortized linear growth over
19008# repeated appends, instead of the typical quadratic growth present in naive
19009# implementations.
19010if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19011  eval 'as_fn_append ()
19012  {
19013    eval $1+=\$2
19014  }'
19015else
19016  as_fn_append ()
19017  {
19018    eval $1=\$$1\$2
19019  }
19020fi # as_fn_append
19021
19022# as_fn_arith ARG...
19023# ------------------
19024# Perform arithmetic evaluation on the ARGs, and store the result in the
19025# global $as_val. Take advantage of shells that can avoid forks. The arguments
19026# must be portable across $(()) and expr.
19027if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19028  eval 'as_fn_arith ()
19029  {
19030    as_val=$(( $* ))
19031  }'
19032else
19033  as_fn_arith ()
19034  {
19035    as_val=`expr "$@" || test $? -eq 1`
19036  }
19037fi # as_fn_arith
19038
19039
19040if expr a : '\(a\)' >/dev/null 2>&1 &&
19041   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19042  as_expr=expr
19043else
19044  as_expr=false
19045fi
19046
19047if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19048  as_basename=basename
19049else
19050  as_basename=false
19051fi
19052
19053if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19054  as_dirname=dirname
19055else
19056  as_dirname=false
19057fi
19058
19059as_me=`$as_basename -- "$0" ||
19060$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19061	 X"$0" : 'X\(//\)$' \| \
19062	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19063$as_echo X/"$0" |
19064    sed '/^.*\/\([^/][^/]*\)\/*$/{
19065	    s//\1/
19066	    q
19067	  }
19068	  /^X\/\(\/\/\)$/{
19069	    s//\1/
19070	    q
19071	  }
19072	  /^X\/\(\/\).*/{
19073	    s//\1/
19074	    q
19075	  }
19076	  s/.*/./; q'`
19077
19078# Avoid depending upon Character Ranges.
19079as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19080as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19081as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19082as_cr_digits='0123456789'
19083as_cr_alnum=$as_cr_Letters$as_cr_digits
19084
19085ECHO_C= ECHO_N= ECHO_T=
19086case `echo -n x` in #(((((
19087-n*)
19088  case `echo 'xy\c'` in
19089  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19090  xy)  ECHO_C='\c';;
19091  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19092       ECHO_T='	';;
19093  esac;;
19094*)
19095  ECHO_N='-n';;
19096esac
19097
19098rm -f conf$$ conf$$.exe conf$$.file
19099if test -d conf$$.dir; then
19100  rm -f conf$$.dir/conf$$.file
19101else
19102  rm -f conf$$.dir
19103  mkdir conf$$.dir 2>/dev/null
19104fi
19105if (echo >conf$$.file) 2>/dev/null; then
19106  if ln -s conf$$.file conf$$ 2>/dev/null; then
19107    as_ln_s='ln -s'
19108    # ... but there are two gotchas:
19109    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19110    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19111    # In both cases, we have to default to `cp -pR'.
19112    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19113      as_ln_s='cp -pR'
19114  elif ln conf$$.file conf$$ 2>/dev/null; then
19115    as_ln_s=ln
19116  else
19117    as_ln_s='cp -pR'
19118  fi
19119else
19120  as_ln_s='cp -pR'
19121fi
19122rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19123rmdir conf$$.dir 2>/dev/null
19124
19125
19126# as_fn_mkdir_p
19127# -------------
19128# Create "$as_dir" as a directory, including parents if necessary.
19129as_fn_mkdir_p ()
19130{
19131
19132  case $as_dir in #(
19133  -*) as_dir=./$as_dir;;
19134  esac
19135  test -d "$as_dir" || eval $as_mkdir_p || {
19136    as_dirs=
19137    while :; do
19138      case $as_dir in #(
19139      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19140      *) as_qdir=$as_dir;;
19141      esac
19142      as_dirs="'$as_qdir' $as_dirs"
19143      as_dir=`$as_dirname -- "$as_dir" ||
19144$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19145	 X"$as_dir" : 'X\(//\)[^/]' \| \
19146	 X"$as_dir" : 'X\(//\)$' \| \
19147	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19148$as_echo X"$as_dir" |
19149    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19150	    s//\1/
19151	    q
19152	  }
19153	  /^X\(\/\/\)[^/].*/{
19154	    s//\1/
19155	    q
19156	  }
19157	  /^X\(\/\/\)$/{
19158	    s//\1/
19159	    q
19160	  }
19161	  /^X\(\/\).*/{
19162	    s//\1/
19163	    q
19164	  }
19165	  s/.*/./; q'`
19166      test -d "$as_dir" && break
19167    done
19168    test -z "$as_dirs" || eval "mkdir $as_dirs"
19169  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19170
19171
19172} # as_fn_mkdir_p
19173if mkdir -p . 2>/dev/null; then
19174  as_mkdir_p='mkdir -p "$as_dir"'
19175else
19176  test -d ./-p && rmdir ./-p
19177  as_mkdir_p=false
19178fi
19179
19180
19181# as_fn_executable_p FILE
19182# -----------------------
19183# Test if FILE is an executable regular file.
19184as_fn_executable_p ()
19185{
19186  test -f "$1" && test -x "$1"
19187} # as_fn_executable_p
19188as_test_x='test -x'
19189as_executable_p=as_fn_executable_p
19190
19191# Sed expression to map a string onto a valid CPP name.
19192as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19193
19194# Sed expression to map a string onto a valid variable name.
19195as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19196
19197
19198exec 6>&1
19199## ----------------------------------- ##
19200## Main body of $CONFIG_STATUS script. ##
19201## ----------------------------------- ##
19202_ASEOF
19203test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19204
19205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19206# Save the log message, to keep $0 and so on meaningful, and to
19207# report actual input values of CONFIG_FILES etc. instead of their
19208# values after options handling.
19209ac_log="
19210This file was extended by libXcursor $as_me 1.2.0, which was
19211generated by GNU Autoconf 2.69.  Invocation command line was
19212
19213  CONFIG_FILES    = $CONFIG_FILES
19214  CONFIG_HEADERS  = $CONFIG_HEADERS
19215  CONFIG_LINKS    = $CONFIG_LINKS
19216  CONFIG_COMMANDS = $CONFIG_COMMANDS
19217  $ $0 $@
19218
19219on `(hostname || uname -n) 2>/dev/null | sed 1q`
19220"
19221
19222_ACEOF
19223
19224case $ac_config_files in *"
19225"*) set x $ac_config_files; shift; ac_config_files=$*;;
19226esac
19227
19228case $ac_config_headers in *"
19229"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19230esac
19231
19232
19233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19234# Files that config.status was made for.
19235config_files="$ac_config_files"
19236config_headers="$ac_config_headers"
19237config_commands="$ac_config_commands"
19238
19239_ACEOF
19240
19241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19242ac_cs_usage="\
19243\`$as_me' instantiates files and other configuration actions
19244from templates according to the current configuration.  Unless the files
19245and actions are specified as TAGs, all are instantiated by default.
19246
19247Usage: $0 [OPTION]... [TAG]...
19248
19249  -h, --help       print this help, then exit
19250  -V, --version    print version number and configuration settings, then exit
19251      --config     print configuration, then exit
19252  -q, --quiet, --silent
19253                   do not print progress messages
19254  -d, --debug      don't remove temporary files
19255      --recheck    update $as_me by reconfiguring in the same conditions
19256      --file=FILE[:TEMPLATE]
19257                   instantiate the configuration file FILE
19258      --header=FILE[:TEMPLATE]
19259                   instantiate the configuration header FILE
19260
19261Configuration files:
19262$config_files
19263
19264Configuration headers:
19265$config_headers
19266
19267Configuration commands:
19268$config_commands
19269
19270Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXcursor/issues>."
19271
19272_ACEOF
19273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19274ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19275ac_cs_version="\\
19276libXcursor config.status 1.2.0
19277configured by $0, generated by GNU Autoconf 2.69,
19278  with options \\"\$ac_cs_config\\"
19279
19280Copyright (C) 2012 Free Software Foundation, Inc.
19281This config.status script is free software; the Free Software Foundation
19282gives unlimited permission to copy, distribute and modify it."
19283
19284ac_pwd='$ac_pwd'
19285srcdir='$srcdir'
19286INSTALL='$INSTALL'
19287MKDIR_P='$MKDIR_P'
19288AWK='$AWK'
19289test -n "\$AWK" || AWK=awk
19290_ACEOF
19291
19292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19293# The default lists apply if the user does not specify any file.
19294ac_need_defaults=:
19295while test $# != 0
19296do
19297  case $1 in
19298  --*=?*)
19299    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19300    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19301    ac_shift=:
19302    ;;
19303  --*=)
19304    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19305    ac_optarg=
19306    ac_shift=:
19307    ;;
19308  *)
19309    ac_option=$1
19310    ac_optarg=$2
19311    ac_shift=shift
19312    ;;
19313  esac
19314
19315  case $ac_option in
19316  # Handling of the options.
19317  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19318    ac_cs_recheck=: ;;
19319  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19320    $as_echo "$ac_cs_version"; exit ;;
19321  --config | --confi | --conf | --con | --co | --c )
19322    $as_echo "$ac_cs_config"; exit ;;
19323  --debug | --debu | --deb | --de | --d | -d )
19324    debug=: ;;
19325  --file | --fil | --fi | --f )
19326    $ac_shift
19327    case $ac_optarg in
19328    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19329    '') as_fn_error $? "missing file argument" ;;
19330    esac
19331    as_fn_append CONFIG_FILES " '$ac_optarg'"
19332    ac_need_defaults=false;;
19333  --header | --heade | --head | --hea )
19334    $ac_shift
19335    case $ac_optarg in
19336    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19337    esac
19338    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19339    ac_need_defaults=false;;
19340  --he | --h)
19341    # Conflict between --help and --header
19342    as_fn_error $? "ambiguous option: \`$1'
19343Try \`$0 --help' for more information.";;
19344  --help | --hel | -h )
19345    $as_echo "$ac_cs_usage"; exit ;;
19346  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19347  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19348    ac_cs_silent=: ;;
19349
19350  # This is an error.
19351  -*) as_fn_error $? "unrecognized option: \`$1'
19352Try \`$0 --help' for more information." ;;
19353
19354  *) as_fn_append ac_config_targets " $1"
19355     ac_need_defaults=false ;;
19356
19357  esac
19358  shift
19359done
19360
19361ac_configure_extra_args=
19362
19363if $ac_cs_silent; then
19364  exec 6>/dev/null
19365  ac_configure_extra_args="$ac_configure_extra_args --silent"
19366fi
19367
19368_ACEOF
19369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19370if \$ac_cs_recheck; then
19371  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19372  shift
19373  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19374  CONFIG_SHELL='$SHELL'
19375  export CONFIG_SHELL
19376  exec "\$@"
19377fi
19378
19379_ACEOF
19380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19381exec 5>>config.log
19382{
19383  echo
19384  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19385## Running $as_me. ##
19386_ASBOX
19387  $as_echo "$ac_log"
19388} >&5
19389
19390_ACEOF
19391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19392#
19393# INIT-COMMANDS
19394#
19395AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19396
19397
19398# The HP-UX ksh and POSIX shell print the target directory to stdout
19399# if CDPATH is set.
19400(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19401
19402sed_quote_subst='$sed_quote_subst'
19403double_quote_subst='$double_quote_subst'
19404delay_variable_subst='$delay_variable_subst'
19405macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19406macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19407enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19408enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19409pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19410enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19411shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19412SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19413ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19414PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19415host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19416host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19417host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19418build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19419build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19420build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19421SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19422Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19423GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19424EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19425FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19426LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19427NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19428LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19429max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19430ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19431exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19432lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19433lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19434lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19435lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19436lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19437reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19438reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19439OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19440deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19441file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19442file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19443want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19444DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19445sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19446AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19447AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19448archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19449STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19450RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19451old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19452old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19453old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19454lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19455CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19456CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19457compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19458GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19459lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19460lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19461lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19462lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19463lt_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"`'
19464lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19465nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19466lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19467lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19468objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19469MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19470lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19471lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19472lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19473lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19474lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19475need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19476MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19477DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19478NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19479LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19480OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19481OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19482libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19483shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19484extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19485archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19486enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19487export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19488whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19489compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19490old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19491old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19492archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19493archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19494module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19495module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19496with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19497allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19498no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19499hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19500hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19501hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19502hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19503hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19504hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19505hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19506inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19507link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19508always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19509export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19510exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19511include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19512prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19513postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19514file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19515variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19516need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19517need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19518version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19519runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19520shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19521shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19522libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19523library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19524soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19525install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19526postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19527postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19528finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19529finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19530hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19531sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19532configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19533configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19534hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19535enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19536enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19537enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19538old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19539striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19540
19541LTCC='$LTCC'
19542LTCFLAGS='$LTCFLAGS'
19543compiler='$compiler_DEFAULT'
19544
19545# A function that is used when there is no print builtin or printf.
19546func_fallback_echo ()
19547{
19548  eval 'cat <<_LTECHO_EOF
19549\$1
19550_LTECHO_EOF'
19551}
19552
19553# Quote evaled strings.
19554for var in SHELL \
19555ECHO \
19556PATH_SEPARATOR \
19557SED \
19558GREP \
19559EGREP \
19560FGREP \
19561LD \
19562NM \
19563LN_S \
19564lt_SP2NL \
19565lt_NL2SP \
19566reload_flag \
19567OBJDUMP \
19568deplibs_check_method \
19569file_magic_cmd \
19570file_magic_glob \
19571want_nocaseglob \
19572DLLTOOL \
19573sharedlib_from_linklib_cmd \
19574AR \
19575AR_FLAGS \
19576archiver_list_spec \
19577STRIP \
19578RANLIB \
19579CC \
19580CFLAGS \
19581compiler \
19582lt_cv_sys_global_symbol_pipe \
19583lt_cv_sys_global_symbol_to_cdecl \
19584lt_cv_sys_global_symbol_to_import \
19585lt_cv_sys_global_symbol_to_c_name_address \
19586lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19587lt_cv_nm_interface \
19588nm_file_list_spec \
19589lt_cv_truncate_bin \
19590lt_prog_compiler_no_builtin_flag \
19591lt_prog_compiler_pic \
19592lt_prog_compiler_wl \
19593lt_prog_compiler_static \
19594lt_cv_prog_compiler_c_o \
19595need_locks \
19596MANIFEST_TOOL \
19597DSYMUTIL \
19598NMEDIT \
19599LIPO \
19600OTOOL \
19601OTOOL64 \
19602shrext_cmds \
19603export_dynamic_flag_spec \
19604whole_archive_flag_spec \
19605compiler_needs_object \
19606with_gnu_ld \
19607allow_undefined_flag \
19608no_undefined_flag \
19609hardcode_libdir_flag_spec \
19610hardcode_libdir_separator \
19611exclude_expsyms \
19612include_expsyms \
19613file_list_spec \
19614variables_saved_for_relink \
19615libname_spec \
19616library_names_spec \
19617soname_spec \
19618install_override_mode \
19619finish_eval \
19620old_striplib \
19621striplib; do
19622    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19623    *[\\\\\\\`\\"\\\$]*)
19624      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19625      ;;
19626    *)
19627      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19628      ;;
19629    esac
19630done
19631
19632# Double-quote double-evaled strings.
19633for var in reload_cmds \
19634old_postinstall_cmds \
19635old_postuninstall_cmds \
19636old_archive_cmds \
19637extract_expsyms_cmds \
19638old_archive_from_new_cmds \
19639old_archive_from_expsyms_cmds \
19640archive_cmds \
19641archive_expsym_cmds \
19642module_cmds \
19643module_expsym_cmds \
19644export_symbols_cmds \
19645prelink_cmds \
19646postlink_cmds \
19647postinstall_cmds \
19648postuninstall_cmds \
19649finish_cmds \
19650sys_lib_search_path_spec \
19651configure_time_dlsearch_path \
19652configure_time_lt_sys_library_path; do
19653    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19654    *[\\\\\\\`\\"\\\$]*)
19655      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19656      ;;
19657    *)
19658      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19659      ;;
19660    esac
19661done
19662
19663ac_aux_dir='$ac_aux_dir'
19664
19665# See if we are running on zsh, and set the options that allow our
19666# commands through without removal of \ escapes INIT.
19667if test -n "\${ZSH_VERSION+set}"; then
19668   setopt NO_GLOB_SUBST
19669fi
19670
19671
19672    PACKAGE='$PACKAGE'
19673    VERSION='$VERSION'
19674    RM='$RM'
19675    ofile='$ofile'
19676
19677
19678
19679
19680_ACEOF
19681
19682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19683
19684# Handling of arguments.
19685for ac_config_target in $ac_config_targets
19686do
19687  case $ac_config_target in
19688    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19689    "include/X11/Xcursor/Xcursor.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xcursor/Xcursor.h" ;;
19690    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19691    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19692    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19693    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19694    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19695    "xcursor.pc") CONFIG_FILES="$CONFIG_FILES xcursor.pc" ;;
19696
19697  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19698  esac
19699done
19700
19701
19702# If the user did not use the arguments to specify the items to instantiate,
19703# then the envvar interface is used.  Set only those that are not.
19704# We use the long form for the default assignment because of an extremely
19705# bizarre bug on SunOS 4.1.3.
19706if $ac_need_defaults; then
19707  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19708  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19709  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19710fi
19711
19712# Have a temporary directory for convenience.  Make it in the build tree
19713# simply because there is no reason against having it here, and in addition,
19714# creating and moving files from /tmp can sometimes cause problems.
19715# Hook for its removal unless debugging.
19716# Note that there is a small window in which the directory will not be cleaned:
19717# after its creation but before its name has been assigned to `$tmp'.
19718$debug ||
19719{
19720  tmp= ac_tmp=
19721  trap 'exit_status=$?
19722  : "${ac_tmp:=$tmp}"
19723  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19724' 0
19725  trap 'as_fn_exit 1' 1 2 13 15
19726}
19727# Create a (secure) tmp directory for tmp files.
19728
19729{
19730  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19731  test -d "$tmp"
19732}  ||
19733{
19734  tmp=./conf$$-$RANDOM
19735  (umask 077 && mkdir "$tmp")
19736} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19737ac_tmp=$tmp
19738
19739# Set up the scripts for CONFIG_FILES section.
19740# No need to generate them if there are no CONFIG_FILES.
19741# This happens for instance with `./config.status config.h'.
19742if test -n "$CONFIG_FILES"; then
19743
19744
19745ac_cr=`echo X | tr X '\015'`
19746# On cygwin, bash can eat \r inside `` if the user requested igncr.
19747# But we know of no other shell where ac_cr would be empty at this
19748# point, so we can use a bashism as a fallback.
19749if test "x$ac_cr" = x; then
19750  eval ac_cr=\$\'\\r\'
19751fi
19752ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19753if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19754  ac_cs_awk_cr='\\r'
19755else
19756  ac_cs_awk_cr=$ac_cr
19757fi
19758
19759echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19760_ACEOF
19761
19762
19763{
19764  echo "cat >conf$$subs.awk <<_ACEOF" &&
19765  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19766  echo "_ACEOF"
19767} >conf$$subs.sh ||
19768  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19769ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19770ac_delim='%!_!# '
19771for ac_last_try in false false false false false :; do
19772  . ./conf$$subs.sh ||
19773    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19774
19775  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19776  if test $ac_delim_n = $ac_delim_num; then
19777    break
19778  elif $ac_last_try; then
19779    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19780  else
19781    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19782  fi
19783done
19784rm -f conf$$subs.sh
19785
19786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19787cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19788_ACEOF
19789sed -n '
19790h
19791s/^/S["/; s/!.*/"]=/
19792p
19793g
19794s/^[^!]*!//
19795:repl
19796t repl
19797s/'"$ac_delim"'$//
19798t delim
19799:nl
19800h
19801s/\(.\{148\}\)..*/\1/
19802t more1
19803s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19804p
19805n
19806b repl
19807:more1
19808s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19809p
19810g
19811s/.\{148\}//
19812t nl
19813:delim
19814h
19815s/\(.\{148\}\)..*/\1/
19816t more2
19817s/["\\]/\\&/g; s/^/"/; s/$/"/
19818p
19819b
19820:more2
19821s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19822p
19823g
19824s/.\{148\}//
19825t delim
19826' <conf$$subs.awk | sed '
19827/^[^""]/{
19828  N
19829  s/\n//
19830}
19831' >>$CONFIG_STATUS || ac_write_fail=1
19832rm -f conf$$subs.awk
19833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19834_ACAWK
19835cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19836  for (key in S) S_is_set[key] = 1
19837  FS = ""
19838
19839}
19840{
19841  line = $ 0
19842  nfields = split(line, field, "@")
19843  substed = 0
19844  len = length(field[1])
19845  for (i = 2; i < nfields; i++) {
19846    key = field[i]
19847    keylen = length(key)
19848    if (S_is_set[key]) {
19849      value = S[key]
19850      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19851      len += length(value) + length(field[++i])
19852      substed = 1
19853    } else
19854      len += 1 + keylen
19855  }
19856
19857  print line
19858}
19859
19860_ACAWK
19861_ACEOF
19862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19863if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19864  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19865else
19866  cat
19867fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19868  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19869_ACEOF
19870
19871# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19872# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19873# trailing colons and then remove the whole line if VPATH becomes empty
19874# (actually we leave an empty line to preserve line numbers).
19875if test "x$srcdir" = x.; then
19876  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19877h
19878s///
19879s/^/:/
19880s/[	 ]*$/:/
19881s/:\$(srcdir):/:/g
19882s/:\${srcdir}:/:/g
19883s/:@srcdir@:/:/g
19884s/^:*//
19885s/:*$//
19886x
19887s/\(=[	 ]*\).*/\1/
19888G
19889s/\n//
19890s/^[^=]*=[	 ]*$//
19891}'
19892fi
19893
19894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19895fi # test -n "$CONFIG_FILES"
19896
19897# Set up the scripts for CONFIG_HEADERS section.
19898# No need to generate them if there are no CONFIG_HEADERS.
19899# This happens for instance with `./config.status Makefile'.
19900if test -n "$CONFIG_HEADERS"; then
19901cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19902BEGIN {
19903_ACEOF
19904
19905# Transform confdefs.h into an awk script `defines.awk', embedded as
19906# here-document in config.status, that substitutes the proper values into
19907# config.h.in to produce config.h.
19908
19909# Create a delimiter string that does not exist in confdefs.h, to ease
19910# handling of long lines.
19911ac_delim='%!_!# '
19912for ac_last_try in false false :; do
19913  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19914  if test -z "$ac_tt"; then
19915    break
19916  elif $ac_last_try; then
19917    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19918  else
19919    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19920  fi
19921done
19922
19923# For the awk script, D is an array of macro values keyed by name,
19924# likewise P contains macro parameters if any.  Preserve backslash
19925# newline sequences.
19926
19927ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19928sed -n '
19929s/.\{148\}/&'"$ac_delim"'/g
19930t rset
19931:rset
19932s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19933t def
19934d
19935:def
19936s/\\$//
19937t bsnl
19938s/["\\]/\\&/g
19939s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19940D["\1"]=" \3"/p
19941s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19942d
19943:bsnl
19944s/["\\]/\\&/g
19945s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19946D["\1"]=" \3\\\\\\n"\\/p
19947t cont
19948s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19949t cont
19950d
19951:cont
19952n
19953s/.\{148\}/&'"$ac_delim"'/g
19954t clear
19955:clear
19956s/\\$//
19957t bsnlc
19958s/["\\]/\\&/g; s/^/"/; s/$/"/p
19959d
19960:bsnlc
19961s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19962b cont
19963' <confdefs.h | sed '
19964s/'"$ac_delim"'/"\\\
19965"/g' >>$CONFIG_STATUS || ac_write_fail=1
19966
19967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19968  for (key in D) D_is_set[key] = 1
19969  FS = ""
19970}
19971/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19972  line = \$ 0
19973  split(line, arg, " ")
19974  if (arg[1] == "#") {
19975    defundef = arg[2]
19976    mac1 = arg[3]
19977  } else {
19978    defundef = substr(arg[1], 2)
19979    mac1 = arg[2]
19980  }
19981  split(mac1, mac2, "(") #)
19982  macro = mac2[1]
19983  prefix = substr(line, 1, index(line, defundef) - 1)
19984  if (D_is_set[macro]) {
19985    # Preserve the white space surrounding the "#".
19986    print prefix "define", macro P[macro] D[macro]
19987    next
19988  } else {
19989    # Replace #undef with comments.  This is necessary, for example,
19990    # in the case of _POSIX_SOURCE, which is predefined and required
19991    # on some systems where configure will not decide to define it.
19992    if (defundef == "undef") {
19993      print "/*", prefix defundef, macro, "*/"
19994      next
19995    }
19996  }
19997}
19998{ print }
19999_ACAWK
20000_ACEOF
20001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20002  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20003fi # test -n "$CONFIG_HEADERS"
20004
20005
20006eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20007shift
20008for ac_tag
20009do
20010  case $ac_tag in
20011  :[FHLC]) ac_mode=$ac_tag; continue;;
20012  esac
20013  case $ac_mode$ac_tag in
20014  :[FHL]*:*);;
20015  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20016  :[FH]-) ac_tag=-:-;;
20017  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20018  esac
20019  ac_save_IFS=$IFS
20020  IFS=:
20021  set x $ac_tag
20022  IFS=$ac_save_IFS
20023  shift
20024  ac_file=$1
20025  shift
20026
20027  case $ac_mode in
20028  :L) ac_source=$1;;
20029  :[FH])
20030    ac_file_inputs=
20031    for ac_f
20032    do
20033      case $ac_f in
20034      -) ac_f="$ac_tmp/stdin";;
20035      *) # Look for the file first in the build tree, then in the source tree
20036	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20037	 # because $ac_f cannot contain `:'.
20038	 test -f "$ac_f" ||
20039	   case $ac_f in
20040	   [\\/$]*) false;;
20041	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20042	   esac ||
20043	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20044      esac
20045      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20046      as_fn_append ac_file_inputs " '$ac_f'"
20047    done
20048
20049    # Let's still pretend it is `configure' which instantiates (i.e., don't
20050    # use $as_me), people would be surprised to read:
20051    #    /* config.h.  Generated by config.status.  */
20052    configure_input='Generated from '`
20053	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20054	`' by configure.'
20055    if test x"$ac_file" != x-; then
20056      configure_input="$ac_file.  $configure_input"
20057      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20058$as_echo "$as_me: creating $ac_file" >&6;}
20059    fi
20060    # Neutralize special characters interpreted by sed in replacement strings.
20061    case $configure_input in #(
20062    *\&* | *\|* | *\\* )
20063       ac_sed_conf_input=`$as_echo "$configure_input" |
20064       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20065    *) ac_sed_conf_input=$configure_input;;
20066    esac
20067
20068    case $ac_tag in
20069    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20070      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20071    esac
20072    ;;
20073  esac
20074
20075  ac_dir=`$as_dirname -- "$ac_file" ||
20076$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20077	 X"$ac_file" : 'X\(//\)[^/]' \| \
20078	 X"$ac_file" : 'X\(//\)$' \| \
20079	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20080$as_echo X"$ac_file" |
20081    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20082	    s//\1/
20083	    q
20084	  }
20085	  /^X\(\/\/\)[^/].*/{
20086	    s//\1/
20087	    q
20088	  }
20089	  /^X\(\/\/\)$/{
20090	    s//\1/
20091	    q
20092	  }
20093	  /^X\(\/\).*/{
20094	    s//\1/
20095	    q
20096	  }
20097	  s/.*/./; q'`
20098  as_dir="$ac_dir"; as_fn_mkdir_p
20099  ac_builddir=.
20100
20101case "$ac_dir" in
20102.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20103*)
20104  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20105  # A ".." for each directory in $ac_dir_suffix.
20106  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20107  case $ac_top_builddir_sub in
20108  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20109  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20110  esac ;;
20111esac
20112ac_abs_top_builddir=$ac_pwd
20113ac_abs_builddir=$ac_pwd$ac_dir_suffix
20114# for backward compatibility:
20115ac_top_builddir=$ac_top_build_prefix
20116
20117case $srcdir in
20118  .)  # We are building in place.
20119    ac_srcdir=.
20120    ac_top_srcdir=$ac_top_builddir_sub
20121    ac_abs_top_srcdir=$ac_pwd ;;
20122  [\\/]* | ?:[\\/]* )  # Absolute name.
20123    ac_srcdir=$srcdir$ac_dir_suffix;
20124    ac_top_srcdir=$srcdir
20125    ac_abs_top_srcdir=$srcdir ;;
20126  *) # Relative name.
20127    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20128    ac_top_srcdir=$ac_top_build_prefix$srcdir
20129    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20130esac
20131ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20132
20133
20134  case $ac_mode in
20135  :F)
20136  #
20137  # CONFIG_FILE
20138  #
20139
20140  case $INSTALL in
20141  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20142  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20143  esac
20144  ac_MKDIR_P=$MKDIR_P
20145  case $MKDIR_P in
20146  [\\/$]* | ?:[\\/]* ) ;;
20147  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20148  esac
20149_ACEOF
20150
20151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20152# If the template does not know about datarootdir, expand it.
20153# FIXME: This hack should be removed a few years after 2.60.
20154ac_datarootdir_hack=; ac_datarootdir_seen=
20155ac_sed_dataroot='
20156/datarootdir/ {
20157  p
20158  q
20159}
20160/@datadir@/p
20161/@docdir@/p
20162/@infodir@/p
20163/@localedir@/p
20164/@mandir@/p'
20165case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20166*datarootdir*) ac_datarootdir_seen=yes;;
20167*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20168  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20169$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20170_ACEOF
20171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20172  ac_datarootdir_hack='
20173  s&@datadir@&$datadir&g
20174  s&@docdir@&$docdir&g
20175  s&@infodir@&$infodir&g
20176  s&@localedir@&$localedir&g
20177  s&@mandir@&$mandir&g
20178  s&\\\${datarootdir}&$datarootdir&g' ;;
20179esac
20180_ACEOF
20181
20182# Neutralize VPATH when `$srcdir' = `.'.
20183# Shell code in configure.ac might set extrasub.
20184# FIXME: do we really want to maintain this feature?
20185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20186ac_sed_extra="$ac_vpsub
20187$extrasub
20188_ACEOF
20189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20190:t
20191/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20192s|@configure_input@|$ac_sed_conf_input|;t t
20193s&@top_builddir@&$ac_top_builddir_sub&;t t
20194s&@top_build_prefix@&$ac_top_build_prefix&;t t
20195s&@srcdir@&$ac_srcdir&;t t
20196s&@abs_srcdir@&$ac_abs_srcdir&;t t
20197s&@top_srcdir@&$ac_top_srcdir&;t t
20198s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20199s&@builddir@&$ac_builddir&;t t
20200s&@abs_builddir@&$ac_abs_builddir&;t t
20201s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20202s&@INSTALL@&$ac_INSTALL&;t t
20203s&@MKDIR_P@&$ac_MKDIR_P&;t t
20204$ac_datarootdir_hack
20205"
20206eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20207  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20208
20209test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20210  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20211  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20212      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20213  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20214which seems to be undefined.  Please make sure it is defined" >&5
20215$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20216which seems to be undefined.  Please make sure it is defined" >&2;}
20217
20218  rm -f "$ac_tmp/stdin"
20219  case $ac_file in
20220  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20221  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20222  esac \
20223  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20224 ;;
20225  :H)
20226  #
20227  # CONFIG_HEADER
20228  #
20229  if test x"$ac_file" != x-; then
20230    {
20231      $as_echo "/* $configure_input  */" \
20232      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20233    } >"$ac_tmp/config.h" \
20234      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20235    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20236      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20237$as_echo "$as_me: $ac_file is unchanged" >&6;}
20238    else
20239      rm -f "$ac_file"
20240      mv "$ac_tmp/config.h" "$ac_file" \
20241	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20242    fi
20243  else
20244    $as_echo "/* $configure_input  */" \
20245      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20246      || as_fn_error $? "could not create -" "$LINENO" 5
20247  fi
20248# Compute "$ac_file"'s index in $config_headers.
20249_am_arg="$ac_file"
20250_am_stamp_count=1
20251for _am_header in $config_headers :; do
20252  case $_am_header in
20253    $_am_arg | $_am_arg:* )
20254      break ;;
20255    * )
20256      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20257  esac
20258done
20259echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20260$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20261	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20262	 X"$_am_arg" : 'X\(//\)$' \| \
20263	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20264$as_echo X"$_am_arg" |
20265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20266	    s//\1/
20267	    q
20268	  }
20269	  /^X\(\/\/\)[^/].*/{
20270	    s//\1/
20271	    q
20272	  }
20273	  /^X\(\/\/\)$/{
20274	    s//\1/
20275	    q
20276	  }
20277	  /^X\(\/\).*/{
20278	    s//\1/
20279	    q
20280	  }
20281	  s/.*/./; q'`/stamp-h$_am_stamp_count
20282 ;;
20283
20284  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20285$as_echo "$as_me: executing $ac_file commands" >&6;}
20286 ;;
20287  esac
20288
20289
20290  case $ac_file$ac_mode in
20291    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20292  # Older Autoconf quotes --file arguments for eval, but not when files
20293  # are listed without --file.  Let's play safe and only enable the eval
20294  # if we detect the quoting.
20295  case $CONFIG_FILES in
20296  *\'*) eval set x "$CONFIG_FILES" ;;
20297  *)   set x $CONFIG_FILES ;;
20298  esac
20299  shift
20300  for mf
20301  do
20302    # Strip MF so we end up with the name of the file.
20303    mf=`echo "$mf" | sed -e 's/:.*$//'`
20304    # Check whether this is an Automake generated Makefile or not.
20305    # We used to match only the files named 'Makefile.in', but
20306    # some people rename them; so instead we look at the file content.
20307    # Grep'ing the first line is not enough: some people post-process
20308    # each Makefile.in and add a new line on top of each file to say so.
20309    # Grep'ing the whole file is not good either: AIX grep has a line
20310    # limit of 2048, but all sed's we know have understand at least 4000.
20311    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20312      dirpart=`$as_dirname -- "$mf" ||
20313$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20314	 X"$mf" : 'X\(//\)[^/]' \| \
20315	 X"$mf" : 'X\(//\)$' \| \
20316	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20317$as_echo X"$mf" |
20318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20319	    s//\1/
20320	    q
20321	  }
20322	  /^X\(\/\/\)[^/].*/{
20323	    s//\1/
20324	    q
20325	  }
20326	  /^X\(\/\/\)$/{
20327	    s//\1/
20328	    q
20329	  }
20330	  /^X\(\/\).*/{
20331	    s//\1/
20332	    q
20333	  }
20334	  s/.*/./; q'`
20335    else
20336      continue
20337    fi
20338    # Extract the definition of DEPDIR, am__include, and am__quote
20339    # from the Makefile without running 'make'.
20340    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20341    test -z "$DEPDIR" && continue
20342    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20343    test -z "$am__include" && continue
20344    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20345    # Find all dependency output files, they are included files with
20346    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20347    # simplest approach to changing $(DEPDIR) to its actual value in the
20348    # expansion.
20349    for file in `sed -n "
20350      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20351	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20352      # Make sure the directory exists.
20353      test -f "$dirpart/$file" && continue
20354      fdir=`$as_dirname -- "$file" ||
20355$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20356	 X"$file" : 'X\(//\)[^/]' \| \
20357	 X"$file" : 'X\(//\)$' \| \
20358	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20359$as_echo X"$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=$dirpart/$fdir; as_fn_mkdir_p
20378      # echo "creating $dirpart/$file"
20379      echo '# dummy' > "$dirpart/$file"
20380    done
20381  done
20382}
20383 ;;
20384    "libtool":C)
20385
20386    # See if we are running on zsh, and set the options that allow our
20387    # commands through without removal of \ escapes.
20388    if test -n "${ZSH_VERSION+set}"; then
20389      setopt NO_GLOB_SUBST
20390    fi
20391
20392    cfgfile=${ofile}T
20393    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20394    $RM "$cfgfile"
20395
20396    cat <<_LT_EOF >> "$cfgfile"
20397#! $SHELL
20398# Generated automatically by $as_me ($PACKAGE) $VERSION
20399# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20400# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20401
20402# Provide generalized library-building support services.
20403# Written by Gordon Matzigkeit, 1996
20404
20405# Copyright (C) 2014 Free Software Foundation, Inc.
20406# This is free software; see the source for copying conditions.  There is NO
20407# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20408
20409# GNU Libtool is free software; you can redistribute it and/or modify
20410# it under the terms of the GNU General Public License as published by
20411# the Free Software Foundation; either version 2 of of the License, or
20412# (at your option) any later version.
20413#
20414# As a special exception to the GNU General Public License, if you
20415# distribute this file as part of a program or library that is built
20416# using GNU Libtool, you may include this file under the  same
20417# distribution terms that you use for the rest of that program.
20418#
20419# GNU Libtool is distributed in the hope that it will be useful, but
20420# WITHOUT ANY WARRANTY; without even the implied warranty of
20421# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20422# GNU General Public License for more details.
20423#
20424# You should have received a copy of the GNU General Public License
20425# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20426
20427
20428# The names of the tagged configurations supported by this script.
20429available_tags=''
20430
20431# Configured defaults for sys_lib_dlsearch_path munging.
20432: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20433
20434# ### BEGIN LIBTOOL CONFIG
20435
20436# Which release of libtool.m4 was used?
20437macro_version=$macro_version
20438macro_revision=$macro_revision
20439
20440# Whether or not to build shared libraries.
20441build_libtool_libs=$enable_shared
20442
20443# Whether or not to build static libraries.
20444build_old_libs=$enable_static
20445
20446# What type of objects to build.
20447pic_mode=$pic_mode
20448
20449# Whether or not to optimize for fast installation.
20450fast_install=$enable_fast_install
20451
20452# Shared archive member basename,for filename based shared library versioning on AIX.
20453shared_archive_member_spec=$shared_archive_member_spec
20454
20455# Shell to use when invoking shell scripts.
20456SHELL=$lt_SHELL
20457
20458# An echo program that protects backslashes.
20459ECHO=$lt_ECHO
20460
20461# The PATH separator for the build system.
20462PATH_SEPARATOR=$lt_PATH_SEPARATOR
20463
20464# The host system.
20465host_alias=$host_alias
20466host=$host
20467host_os=$host_os
20468
20469# The build system.
20470build_alias=$build_alias
20471build=$build
20472build_os=$build_os
20473
20474# A sed program that does not truncate output.
20475SED=$lt_SED
20476
20477# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20478Xsed="\$SED -e 1s/^X//"
20479
20480# A grep program that handles long lines.
20481GREP=$lt_GREP
20482
20483# An ERE matcher.
20484EGREP=$lt_EGREP
20485
20486# A literal string matcher.
20487FGREP=$lt_FGREP
20488
20489# A BSD- or MS-compatible name lister.
20490NM=$lt_NM
20491
20492# Whether we need soft or hard links.
20493LN_S=$lt_LN_S
20494
20495# What is the maximum length of a command?
20496max_cmd_len=$max_cmd_len
20497
20498# Object file suffix (normally "o").
20499objext=$ac_objext
20500
20501# Executable file suffix (normally "").
20502exeext=$exeext
20503
20504# whether the shell understands "unset".
20505lt_unset=$lt_unset
20506
20507# turn spaces into newlines.
20508SP2NL=$lt_lt_SP2NL
20509
20510# turn newlines into spaces.
20511NL2SP=$lt_lt_NL2SP
20512
20513# convert \$build file names to \$host format.
20514to_host_file_cmd=$lt_cv_to_host_file_cmd
20515
20516# convert \$build files to toolchain format.
20517to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20518
20519# An object symbol dumper.
20520OBJDUMP=$lt_OBJDUMP
20521
20522# Method to check whether dependent libraries are shared objects.
20523deplibs_check_method=$lt_deplibs_check_method
20524
20525# Command to use when deplibs_check_method = "file_magic".
20526file_magic_cmd=$lt_file_magic_cmd
20527
20528# How to find potential files when deplibs_check_method = "file_magic".
20529file_magic_glob=$lt_file_magic_glob
20530
20531# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20532want_nocaseglob=$lt_want_nocaseglob
20533
20534# DLL creation program.
20535DLLTOOL=$lt_DLLTOOL
20536
20537# Command to associate shared and link libraries.
20538sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20539
20540# The archiver.
20541AR=$lt_AR
20542
20543# Flags to create an archive.
20544AR_FLAGS=$lt_AR_FLAGS
20545
20546# How to feed a file listing to the archiver.
20547archiver_list_spec=$lt_archiver_list_spec
20548
20549# A symbol stripping program.
20550STRIP=$lt_STRIP
20551
20552# Commands used to install an old-style archive.
20553RANLIB=$lt_RANLIB
20554old_postinstall_cmds=$lt_old_postinstall_cmds
20555old_postuninstall_cmds=$lt_old_postuninstall_cmds
20556
20557# Whether to use a lock for old archive extraction.
20558lock_old_archive_extraction=$lock_old_archive_extraction
20559
20560# A C compiler.
20561LTCC=$lt_CC
20562
20563# LTCC compiler flags.
20564LTCFLAGS=$lt_CFLAGS
20565
20566# Take the output of nm and produce a listing of raw symbols and C names.
20567global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20568
20569# Transform the output of nm in a proper C declaration.
20570global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20571
20572# Transform the output of nm into a list of symbols to manually relocate.
20573global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20574
20575# Transform the output of nm in a C name address pair.
20576global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20577
20578# Transform the output of nm in a C name address pair when lib prefix is needed.
20579global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20580
20581# The name lister interface.
20582nm_interface=$lt_lt_cv_nm_interface
20583
20584# Specify filename containing input files for \$NM.
20585nm_file_list_spec=$lt_nm_file_list_spec
20586
20587# The root where to search for dependent libraries,and where our libraries should be installed.
20588lt_sysroot=$lt_sysroot
20589
20590# Command to truncate a binary pipe.
20591lt_truncate_bin=$lt_lt_cv_truncate_bin
20592
20593# The name of the directory that contains temporary libtool files.
20594objdir=$objdir
20595
20596# Used to examine libraries when file_magic_cmd begins with "file".
20597MAGIC_CMD=$MAGIC_CMD
20598
20599# Must we lock files when doing compilation?
20600need_locks=$lt_need_locks
20601
20602# Manifest tool.
20603MANIFEST_TOOL=$lt_MANIFEST_TOOL
20604
20605# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20606DSYMUTIL=$lt_DSYMUTIL
20607
20608# Tool to change global to local symbols on Mac OS X.
20609NMEDIT=$lt_NMEDIT
20610
20611# Tool to manipulate fat objects and archives on Mac OS X.
20612LIPO=$lt_LIPO
20613
20614# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20615OTOOL=$lt_OTOOL
20616
20617# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20618OTOOL64=$lt_OTOOL64
20619
20620# Old archive suffix (normally "a").
20621libext=$libext
20622
20623# Shared library suffix (normally ".so").
20624shrext_cmds=$lt_shrext_cmds
20625
20626# The commands to extract the exported symbol list from a shared archive.
20627extract_expsyms_cmds=$lt_extract_expsyms_cmds
20628
20629# Variables whose values should be saved in libtool wrapper scripts and
20630# restored at link time.
20631variables_saved_for_relink=$lt_variables_saved_for_relink
20632
20633# Do we need the "lib" prefix for modules?
20634need_lib_prefix=$need_lib_prefix
20635
20636# Do we need a version for libraries?
20637need_version=$need_version
20638
20639# Library versioning type.
20640version_type=$version_type
20641
20642# Shared library runtime path variable.
20643runpath_var=$runpath_var
20644
20645# Shared library path variable.
20646shlibpath_var=$shlibpath_var
20647
20648# Is shlibpath searched before the hard-coded library search path?
20649shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20650
20651# Format of library name prefix.
20652libname_spec=$lt_libname_spec
20653
20654# List of archive names.  First name is the real one, the rest are links.
20655# The last name is the one that the linker finds with -lNAME
20656library_names_spec=$lt_library_names_spec
20657
20658# The coded name of the library, if different from the real name.
20659soname_spec=$lt_soname_spec
20660
20661# Permission mode override for installation of shared libraries.
20662install_override_mode=$lt_install_override_mode
20663
20664# Command to use after installation of a shared archive.
20665postinstall_cmds=$lt_postinstall_cmds
20666
20667# Command to use after uninstallation of a shared archive.
20668postuninstall_cmds=$lt_postuninstall_cmds
20669
20670# Commands used to finish a libtool library installation in a directory.
20671finish_cmds=$lt_finish_cmds
20672
20673# As "finish_cmds", except a single script fragment to be evaled but
20674# not shown.
20675finish_eval=$lt_finish_eval
20676
20677# Whether we should hardcode library paths into libraries.
20678hardcode_into_libs=$hardcode_into_libs
20679
20680# Compile-time system search path for libraries.
20681sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20682
20683# Detected run-time system search path for libraries.
20684sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20685
20686# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20687configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20688
20689# Whether dlopen is supported.
20690dlopen_support=$enable_dlopen
20691
20692# Whether dlopen of programs is supported.
20693dlopen_self=$enable_dlopen_self
20694
20695# Whether dlopen of statically linked programs is supported.
20696dlopen_self_static=$enable_dlopen_self_static
20697
20698# Commands to strip libraries.
20699old_striplib=$lt_old_striplib
20700striplib=$lt_striplib
20701
20702
20703# The linker used to build libraries.
20704LD=$lt_LD
20705
20706# How to create reloadable object files.
20707reload_flag=$lt_reload_flag
20708reload_cmds=$lt_reload_cmds
20709
20710# Commands used to build an old-style archive.
20711old_archive_cmds=$lt_old_archive_cmds
20712
20713# A language specific compiler.
20714CC=$lt_compiler
20715
20716# Is the compiler the GNU compiler?
20717with_gcc=$GCC
20718
20719# Compiler flag to turn off builtin functions.
20720no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20721
20722# Additional compiler flags for building library objects.
20723pic_flag=$lt_lt_prog_compiler_pic
20724
20725# How to pass a linker flag through the compiler.
20726wl=$lt_lt_prog_compiler_wl
20727
20728# Compiler flag to prevent dynamic linking.
20729link_static_flag=$lt_lt_prog_compiler_static
20730
20731# Does compiler simultaneously support -c and -o options?
20732compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20733
20734# Whether or not to add -lc for building shared libraries.
20735build_libtool_need_lc=$archive_cmds_need_lc
20736
20737# Whether or not to disallow shared libs when runtime libs are static.
20738allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20739
20740# Compiler flag to allow reflexive dlopens.
20741export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20742
20743# Compiler flag to generate shared objects directly from archives.
20744whole_archive_flag_spec=$lt_whole_archive_flag_spec
20745
20746# Whether the compiler copes with passing no objects directly.
20747compiler_needs_object=$lt_compiler_needs_object
20748
20749# Create an old-style archive from a shared archive.
20750old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20751
20752# Create a temporary old-style archive to link instead of a shared archive.
20753old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20754
20755# Commands used to build a shared archive.
20756archive_cmds=$lt_archive_cmds
20757archive_expsym_cmds=$lt_archive_expsym_cmds
20758
20759# Commands used to build a loadable module if different from building
20760# a shared archive.
20761module_cmds=$lt_module_cmds
20762module_expsym_cmds=$lt_module_expsym_cmds
20763
20764# Whether we are building with GNU ld or not.
20765with_gnu_ld=$lt_with_gnu_ld
20766
20767# Flag that allows shared libraries with undefined symbols to be built.
20768allow_undefined_flag=$lt_allow_undefined_flag
20769
20770# Flag that enforces no undefined symbols.
20771no_undefined_flag=$lt_no_undefined_flag
20772
20773# Flag to hardcode \$libdir into a binary during linking.
20774# This must work even if \$libdir does not exist
20775hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20776
20777# Whether we need a single "-rpath" flag with a separated argument.
20778hardcode_libdir_separator=$lt_hardcode_libdir_separator
20779
20780# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20781# DIR into the resulting binary.
20782hardcode_direct=$hardcode_direct
20783
20784# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20785# DIR into the resulting binary and the resulting library dependency is
20786# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20787# library is relocated.
20788hardcode_direct_absolute=$hardcode_direct_absolute
20789
20790# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20791# into the resulting binary.
20792hardcode_minus_L=$hardcode_minus_L
20793
20794# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20795# into the resulting binary.
20796hardcode_shlibpath_var=$hardcode_shlibpath_var
20797
20798# Set to "yes" if building a shared library automatically hardcodes DIR
20799# into the library and all subsequent libraries and executables linked
20800# against it.
20801hardcode_automatic=$hardcode_automatic
20802
20803# Set to yes if linker adds runtime paths of dependent libraries
20804# to runtime path list.
20805inherit_rpath=$inherit_rpath
20806
20807# Whether libtool must link a program against all its dependency libraries.
20808link_all_deplibs=$link_all_deplibs
20809
20810# Set to "yes" if exported symbols are required.
20811always_export_symbols=$always_export_symbols
20812
20813# The commands to list exported symbols.
20814export_symbols_cmds=$lt_export_symbols_cmds
20815
20816# Symbols that should not be listed in the preloaded symbols.
20817exclude_expsyms=$lt_exclude_expsyms
20818
20819# Symbols that must always be exported.
20820include_expsyms=$lt_include_expsyms
20821
20822# Commands necessary for linking programs (against libraries) with templates.
20823prelink_cmds=$lt_prelink_cmds
20824
20825# Commands necessary for finishing linking programs.
20826postlink_cmds=$lt_postlink_cmds
20827
20828# Specify filename containing input files.
20829file_list_spec=$lt_file_list_spec
20830
20831# How to hardcode a shared library path into an executable.
20832hardcode_action=$hardcode_action
20833
20834# ### END LIBTOOL CONFIG
20835
20836_LT_EOF
20837
20838    cat <<'_LT_EOF' >> "$cfgfile"
20839
20840# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20841
20842# func_munge_path_list VARIABLE PATH
20843# -----------------------------------
20844# VARIABLE is name of variable containing _space_ separated list of
20845# directories to be munged by the contents of PATH, which is string
20846# having a format:
20847# "DIR[:DIR]:"
20848#       string "DIR[ DIR]" will be prepended to VARIABLE
20849# ":DIR[:DIR]"
20850#       string "DIR[ DIR]" will be appended to VARIABLE
20851# "DIRP[:DIRP]::[DIRA:]DIRA"
20852#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20853#       "DIRA[ DIRA]" will be appended to VARIABLE
20854# "DIR[:DIR]"
20855#       VARIABLE will be replaced by "DIR[ DIR]"
20856func_munge_path_list ()
20857{
20858    case x$2 in
20859    x)
20860        ;;
20861    *:)
20862        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20863        ;;
20864    x:*)
20865        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20866        ;;
20867    *::*)
20868        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20869        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20870        ;;
20871    *)
20872        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20873        ;;
20874    esac
20875}
20876
20877
20878# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20879func_cc_basename ()
20880{
20881    for cc_temp in $*""; do
20882      case $cc_temp in
20883        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20884        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20885        \-*) ;;
20886        *) break;;
20887      esac
20888    done
20889    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20890}
20891
20892
20893# ### END FUNCTIONS SHARED WITH CONFIGURE
20894
20895_LT_EOF
20896
20897  case $host_os in
20898  aix3*)
20899    cat <<\_LT_EOF >> "$cfgfile"
20900# AIX sometimes has problems with the GCC collect2 program.  For some
20901# reason, if we set the COLLECT_NAMES environment variable, the problems
20902# vanish in a puff of smoke.
20903if test set != "${COLLECT_NAMES+set}"; then
20904  COLLECT_NAMES=
20905  export COLLECT_NAMES
20906fi
20907_LT_EOF
20908    ;;
20909  esac
20910
20911
20912ltmain=$ac_aux_dir/ltmain.sh
20913
20914
20915  # We use sed instead of cat because bash on DJGPP gets confused if
20916  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20917  # text mode, it properly converts lines to CR/LF.  This bash problem
20918  # is reportedly fixed, but why not run on old versions too?
20919  sed '$q' "$ltmain" >> "$cfgfile" \
20920     || (rm -f "$cfgfile"; exit 1)
20921
20922   mv -f "$cfgfile" "$ofile" ||
20923    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20924  chmod +x "$ofile"
20925
20926 ;;
20927
20928  esac
20929done # for ac_tag
20930
20931
20932as_fn_exit 0
20933_ACEOF
20934ac_clean_files=$ac_clean_files_save
20935
20936test $ac_write_fail = 0 ||
20937  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20938
20939
20940# configure is writing to config.log, and then calls config.status.
20941# config.status does its own redirection, appending to config.log.
20942# Unfortunately, on DOS this fails, as config.log is still kept open
20943# by configure, so config.status won't be able to write to it; its
20944# output is simply discarded.  So we exec the FD to /dev/null,
20945# effectively closing config.log, so it can be properly (re)opened and
20946# appended to by config.status.  When coming back to configure, we
20947# need to make the FD available again.
20948if test "$no_create" != yes; then
20949  ac_cs_success=:
20950  ac_config_status_args=
20951  test "$silent" = yes &&
20952    ac_config_status_args="$ac_config_status_args --quiet"
20953  exec 5>/dev/null
20954  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20955  exec 5>>config.log
20956  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20957  # would make configure fail if this is the last instruction.
20958  $ac_cs_success || as_fn_exit 1
20959fi
20960if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20961  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20962$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20963fi
20964
20965