1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-input-wacom 0.39.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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
570as_awk_strverscmp='
571  # Use only awk features that work with 7th edition Unix awk (1978).
572  # My, what an old awk you have, Mr. Solaris!
573  END {
574    while (length(v1) && length(v2)) {
575      # Set d1 to be the next thing to compare from v1, and likewise for d2.
576      # Normally this is a single character, but if v1 and v2 contain digits,
577      # compare them as integers and fractions as strverscmp does.
578      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579	# Split v1 and v2 into their leading digit string components d1 and d2,
580	# and advance v1 and v2 past the leading digit strings.
581	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585	if (d1 ~ /^0/) {
586	  if (d2 ~ /^0/) {
587	    # Compare two fractions.
588	    while (d1 ~ /^0/ && d2 ~ /^0/) {
589	      d1 = substr(d1, 2); len1--
590	      d2 = substr(d2, 2); len2--
591	    }
592	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593	      # The two components differ in length, and the common prefix
594	      # contains only leading zeros.  Consider the longer to be less.
595	      d1 = -len1
596	      d2 = -len2
597	    } else {
598	      # Otherwise, compare as strings.
599	      d1 = "x" d1
600	      d2 = "x" d2
601	    }
602	  } else {
603	    # A fraction is less than an integer.
604	    exit 1
605	  }
606	} else {
607	  if (d2 ~ /^0/) {
608	    # An integer is greater than a fraction.
609	    exit 2
610	  } else {
611	    # Compare two integers.
612	    d1 += 0
613	    d2 += 0
614	  }
615	}
616      } else {
617	# The normal case, without worrying about digits.
618	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620      }
621      if (d1 < d2) exit 1
622      if (d1 > d2) exit 2
623    }
624    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625    # which mishandles some comparisons of empty strings to integers.
626    if (length(v2)) exit 1
627    if (length(v1)) exit 2
628  }
629'
630
631test -n "$DJDIR" || exec 7<&0 </dev/null
632exec 6>&1
633
634# Name of the host.
635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636# so uname gets run too.
637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639#
640# Initializations.
641#
642ac_default_prefix=/usr/local
643ac_clean_files=
644ac_config_libobj_dir=.
645LIBOBJS=
646cross_compiling=no
647subdirs=
648MFLAGS=
649MAKEFLAGS=
650
651# Identity of this package.
652PACKAGE_NAME='xf86-input-wacom'
653PACKAGE_TARNAME='xf86-input-wacom'
654PACKAGE_VERSION='0.39.0'
655PACKAGE_STRING='xf86-input-wacom 0.39.0'
656PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
657PACKAGE_URL=''
658
659ac_unique_file="Makefile.am"
660# Factoring default headers for most tests.
661ac_includes_default="\
662#include <stdio.h>
663#ifdef HAVE_SYS_TYPES_H
664# include <sys/types.h>
665#endif
666#ifdef HAVE_SYS_STAT_H
667# include <sys/stat.h>
668#endif
669#ifdef STDC_HEADERS
670# include <stdlib.h>
671# include <stddef.h>
672#else
673# ifdef HAVE_STDLIB_H
674#  include <stdlib.h>
675# endif
676#endif
677#ifdef HAVE_STRING_H
678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679#  include <memory.h>
680# endif
681# include <string.h>
682#endif
683#ifdef HAVE_STRINGS_H
684# include <strings.h>
685#endif
686#ifdef HAVE_INTTYPES_H
687# include <inttypes.h>
688#endif
689#ifdef HAVE_STDINT_H
690# include <stdint.h>
691#endif
692#ifdef HAVE_UNISTD_H
693# include <unistd.h>
694#endif"
695
696ac_subst_vars='am__EXEEXT_FALSE
697am__EXEEXT_TRUE
698LTLIBOBJS
699LIBOBJS
700HAVE_UDEV_RULES_DIR_FALSE
701HAVE_UDEV_RULES_DIR_TRUE
702UDEV_RULES_DIR
703HAVE_SYSTEMD_UNIT_DIR_FALSE
704HAVE_SYSTEMD_UNIT_DIR_TRUE
705SYSTEMD_UNIT_DIR
706UNITTESTS_FALSE
707UNITTESTS_TRUE
708FUZZINTERFACE_FALSE
709FUZZINTERFACE_TRUE
710USE_HAL_FDI_PREPROBE_QUIRK_FALSE
711USE_HAL_FDI_PREPROBE_QUIRK_TRUE
712HAL_SET_PROPERTY
713LSHAL
714HAS_XORG_CONF_DIR_FALSE
715HAS_XORG_CONF_DIR_TRUE
716configdir
717inputdir
718DRIVER_NAME
719sdkdir
720UDEV_LIBS
721UDEV_CFLAGS
722X11_LIBS
723X11_CFLAGS
724XORG_LIBS
725XORG_CFLAGS
726HAVE_DOXYGEN_FALSE
727HAVE_DOXYGEN_TRUE
728HAVE_DOT_FALSE
729HAVE_DOT_TRUE
730HAVE_DOT
731DOT
732DOXYGEN
733MAN_SUBSTS
734XORG_MAN_PAGE
735ADMIN_MAN_DIR
736DRIVER_MAN_DIR
737MISC_MAN_DIR
738FILE_MAN_DIR
739LIB_MAN_DIR
740APP_MAN_DIR
741ADMIN_MAN_SUFFIX
742DRIVER_MAN_SUFFIX
743MISC_MAN_SUFFIX
744FILE_MAN_SUFFIX
745LIB_MAN_SUFFIX
746APP_MAN_SUFFIX
747INSTALL_CMD
748PKG_CONFIG_LIBDIR
749PKG_CONFIG_PATH
750PKG_CONFIG
751CHANGELOG_CMD
752STRICT_CFLAGS
753CWARNFLAGS
754BASE_CFLAGS
755LT_SYS_LIBRARY_PATH
756OTOOL64
757OTOOL
758LIPO
759NMEDIT
760DSYMUTIL
761MANIFEST_TOOL
762RANLIB
763ac_ct_AR
764AR
765DLLTOOL
766OBJDUMP
767LN_S
768NM
769ac_ct_DUMPBIN
770DUMPBIN
771LD
772FGREP
773SED
774host_os
775host_vendor
776host_cpu
777host
778build_os
779build_vendor
780build_cpu
781build
782LIBTOOL
783EGREP
784GREP
785CPP
786am__fastdepCC_FALSE
787am__fastdepCC_TRUE
788CCDEPMODE
789am__nodep
790AMDEPBACKSLASH
791AMDEP_FALSE
792AMDEP_TRUE
793am__include
794DEPDIR
795OBJEXT
796EXEEXT
797ac_ct_CC
798CPPFLAGS
799LDFLAGS
800CFLAGS
801CC
802MAINT
803MAINTAINER_MODE_FALSE
804MAINTAINER_MODE_TRUE
805AM_BACKSLASH
806AM_DEFAULT_VERBOSITY
807AM_DEFAULT_V
808AM_V
809am__untar
810am__tar
811AMTAR
812am__leading_dot
813SET_MAKE
814AWK
815mkdir_p
816MKDIR_P
817INSTALL_STRIP_PROGRAM
818STRIP
819install_sh
820MAKEINFO
821AUTOHEADER
822AUTOMAKE
823AUTOCONF
824ACLOCAL
825VERSION
826PACKAGE
827CYGPATH_W
828am__isrc
829INSTALL_DATA
830INSTALL_SCRIPT
831INSTALL_PROGRAM
832target_alias
833host_alias
834build_alias
835LIBS
836ECHO_T
837ECHO_N
838ECHO_C
839DEFS
840mandir
841localedir
842libdir
843psdir
844pdfdir
845dvidir
846htmldir
847infodir
848docdir
849oldincludedir
850includedir
851localstatedir
852sharedstatedir
853sysconfdir
854datadir
855datarootdir
856libexecdir
857sbindir
858bindir
859program_transform_name
860prefix
861exec_prefix
862PACKAGE_URL
863PACKAGE_BUGREPORT
864PACKAGE_STRING
865PACKAGE_VERSION
866PACKAGE_TARNAME
867PACKAGE_NAME
868PATH_SEPARATOR
869SHELL
870am__quote'
871ac_subst_files=''
872ac_user_opts='
873enable_option_checking
874enable_silent_rules
875enable_maintainer_mode
876enable_dependency_tracking
877enable_static
878enable_shared
879with_pic
880enable_fast_install
881with_aix_soname
882with_gnu_ld
883with_sysroot
884enable_libtool_lock
885enable_selective_werror
886enable_strict_compilation
887with_doxygen
888with_sdkdir
889enable_debug
890with_xorg_module_dir
891with_xorg_conf_dir
892enable_hal_fdi_preprobe_quirk
893enable_fuzz_interface
894enable_unit_tests
895with_systemd_unit_dir
896with_udev_rules_dir
897'
898      ac_precious_vars='build_alias
899host_alias
900target_alias
901CC
902CFLAGS
903LDFLAGS
904LIBS
905CPPFLAGS
906CPP
907LT_SYS_LIBRARY_PATH
908PKG_CONFIG
909PKG_CONFIG_PATH
910PKG_CONFIG_LIBDIR
911DOXYGEN
912DOT
913XORG_CFLAGS
914XORG_LIBS
915X11_CFLAGS
916X11_LIBS
917UDEV_CFLAGS
918UDEV_LIBS'
919
920
921# Initialize some variables set by options.
922ac_init_help=
923ac_init_version=false
924ac_unrecognized_opts=
925ac_unrecognized_sep=
926# The variables have the same names as the options, with
927# dashes changed to underlines.
928cache_file=/dev/null
929exec_prefix=NONE
930no_create=
931no_recursion=
932prefix=NONE
933program_prefix=NONE
934program_suffix=NONE
935program_transform_name=s,x,x,
936silent=
937site=
938srcdir=
939verbose=
940x_includes=NONE
941x_libraries=NONE
942
943# Installation directory options.
944# These are left unexpanded so users can "make install exec_prefix=/foo"
945# and all the variables that are supposed to be based on exec_prefix
946# by default will actually change.
947# Use braces instead of parens because sh, perl, etc. also accept them.
948# (The list follows the same order as the GNU Coding Standards.)
949bindir='${exec_prefix}/bin'
950sbindir='${exec_prefix}/sbin'
951libexecdir='${exec_prefix}/libexec'
952datarootdir='${prefix}/share'
953datadir='${datarootdir}'
954sysconfdir='${prefix}/etc'
955sharedstatedir='${prefix}/com'
956localstatedir='${prefix}/var'
957includedir='${prefix}/include'
958oldincludedir='/usr/include'
959docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
960infodir='${datarootdir}/info'
961htmldir='${docdir}'
962dvidir='${docdir}'
963pdfdir='${docdir}'
964psdir='${docdir}'
965libdir='${exec_prefix}/lib'
966localedir='${datarootdir}/locale'
967mandir='${datarootdir}/man'
968
969ac_prev=
970ac_dashdash=
971for ac_option
972do
973  # If the previous option needs an argument, assign it.
974  if test -n "$ac_prev"; then
975    eval $ac_prev=\$ac_option
976    ac_prev=
977    continue
978  fi
979
980  case $ac_option in
981  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982  *=)   ac_optarg= ;;
983  *)    ac_optarg=yes ;;
984  esac
985
986  # Accept the important Cygnus configure options, so we can diagnose typos.
987
988  case $ac_dashdash$ac_option in
989  --)
990    ac_dashdash=yes ;;
991
992  -bindir | --bindir | --bindi | --bind | --bin | --bi)
993    ac_prev=bindir ;;
994  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995    bindir=$ac_optarg ;;
996
997  -build | --build | --buil | --bui | --bu)
998    ac_prev=build_alias ;;
999  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000    build_alias=$ac_optarg ;;
1001
1002  -cache-file | --cache-file | --cache-fil | --cache-fi \
1003  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004    ac_prev=cache_file ;;
1005  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007    cache_file=$ac_optarg ;;
1008
1009  --config-cache | -C)
1010    cache_file=config.cache ;;
1011
1012  -datadir | --datadir | --datadi | --datad)
1013    ac_prev=datadir ;;
1014  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015    datadir=$ac_optarg ;;
1016
1017  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018  | --dataroo | --dataro | --datar)
1019    ac_prev=datarootdir ;;
1020  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022    datarootdir=$ac_optarg ;;
1023
1024  -disable-* | --disable-*)
1025    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028      as_fn_error $? "invalid feature name: $ac_useropt"
1029    ac_useropt_orig=$ac_useropt
1030    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031    case $ac_user_opts in
1032      *"
1033"enable_$ac_useropt"
1034"*) ;;
1035      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036	 ac_unrecognized_sep=', ';;
1037    esac
1038    eval enable_$ac_useropt=no ;;
1039
1040  -docdir | --docdir | --docdi | --doc | --do)
1041    ac_prev=docdir ;;
1042  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043    docdir=$ac_optarg ;;
1044
1045  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046    ac_prev=dvidir ;;
1047  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048    dvidir=$ac_optarg ;;
1049
1050  -enable-* | --enable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error $? "invalid feature name: $ac_useropt"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=\$ac_optarg ;;
1065
1066  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068  | --exec | --exe | --ex)
1069    ac_prev=exec_prefix ;;
1070  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072  | --exec=* | --exe=* | --ex=*)
1073    exec_prefix=$ac_optarg ;;
1074
1075  -gas | --gas | --ga | --g)
1076    # Obsolete; use --with-gas.
1077    with_gas=yes ;;
1078
1079  -help | --help | --hel | --he | -h)
1080    ac_init_help=long ;;
1081  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082    ac_init_help=recursive ;;
1083  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084    ac_init_help=short ;;
1085
1086  -host | --host | --hos | --ho)
1087    ac_prev=host_alias ;;
1088  -host=* | --host=* | --hos=* | --ho=*)
1089    host_alias=$ac_optarg ;;
1090
1091  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092    ac_prev=htmldir ;;
1093  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094  | --ht=*)
1095    htmldir=$ac_optarg ;;
1096
1097  -includedir | --includedir | --includedi | --included | --include \
1098  | --includ | --inclu | --incl | --inc)
1099    ac_prev=includedir ;;
1100  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101  | --includ=* | --inclu=* | --incl=* | --inc=*)
1102    includedir=$ac_optarg ;;
1103
1104  -infodir | --infodir | --infodi | --infod | --info | --inf)
1105    ac_prev=infodir ;;
1106  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107    infodir=$ac_optarg ;;
1108
1109  -libdir | --libdir | --libdi | --libd)
1110    ac_prev=libdir ;;
1111  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112    libdir=$ac_optarg ;;
1113
1114  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115  | --libexe | --libex | --libe)
1116    ac_prev=libexecdir ;;
1117  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118  | --libexe=* | --libex=* | --libe=*)
1119    libexecdir=$ac_optarg ;;
1120
1121  -localedir | --localedir | --localedi | --localed | --locale)
1122    ac_prev=localedir ;;
1123  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124    localedir=$ac_optarg ;;
1125
1126  -localstatedir | --localstatedir | --localstatedi | --localstated \
1127  | --localstate | --localstat | --localsta | --localst | --locals)
1128    ac_prev=localstatedir ;;
1129  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131    localstatedir=$ac_optarg ;;
1132
1133  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134    ac_prev=mandir ;;
1135  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136    mandir=$ac_optarg ;;
1137
1138  -nfp | --nfp | --nf)
1139    # Obsolete; use --without-fp.
1140    with_fp=no ;;
1141
1142  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143  | --no-cr | --no-c | -n)
1144    no_create=yes ;;
1145
1146  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148    no_recursion=yes ;;
1149
1150  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152  | --oldin | --oldi | --old | --ol | --o)
1153    ac_prev=oldincludedir ;;
1154  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157    oldincludedir=$ac_optarg ;;
1158
1159  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160    ac_prev=prefix ;;
1161  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162    prefix=$ac_optarg ;;
1163
1164  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165  | --program-pre | --program-pr | --program-p)
1166    ac_prev=program_prefix ;;
1167  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169    program_prefix=$ac_optarg ;;
1170
1171  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172  | --program-suf | --program-su | --program-s)
1173    ac_prev=program_suffix ;;
1174  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176    program_suffix=$ac_optarg ;;
1177
1178  -program-transform-name | --program-transform-name \
1179  | --program-transform-nam | --program-transform-na \
1180  | --program-transform-n | --program-transform- \
1181  | --program-transform | --program-transfor \
1182  | --program-transfo | --program-transf \
1183  | --program-trans | --program-tran \
1184  | --progr-tra | --program-tr | --program-t)
1185    ac_prev=program_transform_name ;;
1186  -program-transform-name=* | --program-transform-name=* \
1187  | --program-transform-nam=* | --program-transform-na=* \
1188  | --program-transform-n=* | --program-transform-=* \
1189  | --program-transform=* | --program-transfor=* \
1190  | --program-transfo=* | --program-transf=* \
1191  | --program-trans=* | --program-tran=* \
1192  | --progr-tra=* | --program-tr=* | --program-t=*)
1193    program_transform_name=$ac_optarg ;;
1194
1195  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196    ac_prev=pdfdir ;;
1197  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198    pdfdir=$ac_optarg ;;
1199
1200  -psdir | --psdir | --psdi | --psd | --ps)
1201    ac_prev=psdir ;;
1202  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203    psdir=$ac_optarg ;;
1204
1205  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206  | -silent | --silent | --silen | --sile | --sil)
1207    silent=yes ;;
1208
1209  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210    ac_prev=sbindir ;;
1211  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212  | --sbi=* | --sb=*)
1213    sbindir=$ac_optarg ;;
1214
1215  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217  | --sharedst | --shareds | --shared | --share | --shar \
1218  | --sha | --sh)
1219    ac_prev=sharedstatedir ;;
1220  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223  | --sha=* | --sh=*)
1224    sharedstatedir=$ac_optarg ;;
1225
1226  -site | --site | --sit)
1227    ac_prev=site ;;
1228  -site=* | --site=* | --sit=*)
1229    site=$ac_optarg ;;
1230
1231  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232    ac_prev=srcdir ;;
1233  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234    srcdir=$ac_optarg ;;
1235
1236  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237  | --syscon | --sysco | --sysc | --sys | --sy)
1238    ac_prev=sysconfdir ;;
1239  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241    sysconfdir=$ac_optarg ;;
1242
1243  -target | --target | --targe | --targ | --tar | --ta | --t)
1244    ac_prev=target_alias ;;
1245  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246    target_alias=$ac_optarg ;;
1247
1248  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249    verbose=yes ;;
1250
1251  -version | --version | --versio | --versi | --vers | -V)
1252    ac_init_version=: ;;
1253
1254  -with-* | --with-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      as_fn_error $? "invalid package name: $ac_useropt"
1259    ac_useropt_orig=$ac_useropt
1260    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261    case $ac_user_opts in
1262      *"
1263"with_$ac_useropt"
1264"*) ;;
1265      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=\$ac_optarg ;;
1269
1270  -without-* | --without-*)
1271    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272    # Reject names that are not valid shell variable names.
1273    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274      as_fn_error $? "invalid package name: $ac_useropt"
1275    ac_useropt_orig=$ac_useropt
1276    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277    case $ac_user_opts in
1278      *"
1279"with_$ac_useropt"
1280"*) ;;
1281      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282	 ac_unrecognized_sep=', ';;
1283    esac
1284    eval with_$ac_useropt=no ;;
1285
1286  --x)
1287    # Obsolete; use --with-x.
1288    with_x=yes ;;
1289
1290  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291  | --x-incl | --x-inc | --x-in | --x-i)
1292    ac_prev=x_includes ;;
1293  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295    x_includes=$ac_optarg ;;
1296
1297  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299    ac_prev=x_libraries ;;
1300  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302    x_libraries=$ac_optarg ;;
1303
1304  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305Try \`$0 --help' for more information"
1306    ;;
1307
1308  *=*)
1309    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310    # Reject names that are not valid shell variable names.
1311    case $ac_envvar in #(
1312      '' | [0-9]* | *[!_$as_cr_alnum]* )
1313      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314    esac
1315    eval $ac_envvar=\$ac_optarg
1316    export $ac_envvar ;;
1317
1318  *)
1319    # FIXME: should be removed in autoconf 3.0.
1320    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1324    ;;
1325
1326  esac
1327done
1328
1329if test -n "$ac_prev"; then
1330  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331  as_fn_error $? "missing argument to $ac_option"
1332fi
1333
1334if test -n "$ac_unrecognized_opts"; then
1335  case $enable_option_checking in
1336    no) ;;
1337    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1338    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339  esac
1340fi
1341
1342# Check all directory arguments for consistency.
1343for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344		datadir sysconfdir sharedstatedir localstatedir includedir \
1345		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346		libdir localedir mandir
1347do
1348  eval ac_val=\$$ac_var
1349  # Remove trailing slashes.
1350  case $ac_val in
1351    */ )
1352      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353      eval $ac_var=\$ac_val;;
1354  esac
1355  # Be sure to have absolute directory names.
1356  case $ac_val in
1357    [\\/$]* | ?:[\\/]* )  continue;;
1358    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359  esac
1360  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372  if test "x$build_alias" = x; then
1373    cross_compiling=maybe
1374  elif test "x$build_alias" != "x$host_alias"; then
1375    cross_compiling=yes
1376  fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
1385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388  as_fn_error $? "working directory cannot be determined"
1389test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390  as_fn_error $? "pwd does not report name of working directory"
1391
1392
1393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395  ac_srcdir_defaulted=yes
1396  # Try the directory containing this script, then the parent directory.
1397  ac_confdir=`$as_dirname -- "$as_myself" ||
1398$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399	 X"$as_myself" : 'X\(//\)[^/]' \| \
1400	 X"$as_myself" : 'X\(//\)$' \| \
1401	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402$as_echo X"$as_myself" |
1403    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404	    s//\1/
1405	    q
1406	  }
1407	  /^X\(\/\/\)[^/].*/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\/\)$/{
1412	    s//\1/
1413	    q
1414	  }
1415	  /^X\(\/\).*/{
1416	    s//\1/
1417	    q
1418	  }
1419	  s/.*/./; q'`
1420  srcdir=$ac_confdir
1421  if test ! -r "$srcdir/$ac_unique_file"; then
1422    srcdir=..
1423  fi
1424else
1425  ac_srcdir_defaulted=no
1426fi
1427if test ! -r "$srcdir/$ac_unique_file"; then
1428  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430fi
1431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
1433	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434	pwd)`
1435# When building in place, set srcdir=.
1436if test "$ac_abs_confdir" = "$ac_pwd"; then
1437  srcdir=.
1438fi
1439# Remove unnecessary trailing slashes from srcdir.
1440# Double slashes in file names in object file debugging info
1441# mess up M-x gdb in Emacs.
1442case $srcdir in
1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444esac
1445for ac_var in $ac_precious_vars; do
1446  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447  eval ac_env_${ac_var}_value=\$${ac_var}
1448  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
1451
1452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456  # Omit some internal or obsolete options to make the list less imposing.
1457  # This message is too long to be a string in the A/UX 3.1 sh.
1458  cat <<_ACEOF
1459\`configure' configures xf86-input-wacom 0.39.0 to adapt to many kinds of systems.
1460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE.  See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469  -h, --help              display this help and exit
1470      --help=short        display options specific to this package
1471      --help=recursive    display the short help of all the included packages
1472  -V, --version           display version information and exit
1473  -q, --quiet, --silent   do not print \`checking ...' messages
1474      --cache-file=FILE   cache test results in FILE [disabled]
1475  -C, --config-cache      alias for \`--cache-file=config.cache'
1476  -n, --no-create         do not create output files
1477      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1478
1479Installation directories:
1480  --prefix=PREFIX         install architecture-independent files in PREFIX
1481                          [$ac_default_prefix]
1482  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1483                          [PREFIX]
1484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
1493  --bindir=DIR            user executables [EPREFIX/bin]
1494  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1495  --libexecdir=DIR        program executables [EPREFIX/libexec]
1496  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1497  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1498  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1499  --libdir=DIR            object code libraries [EPREFIX/lib]
1500  --includedir=DIR        C header files [PREFIX/include]
1501  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1502  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1503  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1504  --infodir=DIR           info documentation [DATAROOTDIR/info]
1505  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1506  --mandir=DIR            man documentation [DATAROOTDIR/man]
1507  --docdir=DIR            documentation root
1508                          [DATAROOTDIR/doc/xf86-input-wacom]
1509  --htmldir=DIR           html documentation [DOCDIR]
1510  --dvidir=DIR            dvi documentation [DOCDIR]
1511  --pdfdir=DIR            pdf documentation [DOCDIR]
1512  --psdir=DIR             ps documentation [DOCDIR]
1513_ACEOF
1514
1515  cat <<\_ACEOF
1516
1517Program names:
1518  --program-prefix=PREFIX            prepend PREFIX to installed program names
1519  --program-suffix=SUFFIX            append SUFFIX to installed program names
1520  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1521
1522System types:
1523  --build=BUILD     configure for building on BUILD [guessed]
1524  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1525_ACEOF
1526fi
1527
1528if test -n "$ac_init_help"; then
1529  case $ac_init_help in
1530     short | recursive ) echo "Configuration of xf86-input-wacom 0.39.0:";;
1531   esac
1532  cat <<\_ACEOF
1533
1534Optional Features:
1535  --disable-option-checking  ignore unrecognized --enable/--with options
1536  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1537  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1538  --enable-silent-rules   less verbose build output (undo: "make V=1")
1539  --disable-silent-rules  verbose build output (undo: "make V=0")
1540  --disable-maintainer-mode
1541                          disable make rules and dependencies not useful (and
1542                          sometimes confusing) to the casual installer
1543  --enable-dependency-tracking
1544                          do not reject slow dependency extractors
1545  --disable-dependency-tracking
1546                          speeds up one-time build
1547  --enable-static[=PKGS]  build static libraries [default=no]
1548  --enable-shared[=PKGS]  build shared libraries [default=yes]
1549  --enable-fast-install[=PKGS]
1550                          optimize for fast installation [default=yes]
1551  --disable-libtool-lock  avoid locking (might break parallel builds)
1552  --disable-selective-werror
1553                          Turn off selective compiler errors. (default:
1554                          enabled)
1555  --enable-strict-compilation
1556                          Enable all warnings from compiler and make them
1557                          errors (default: disabled)
1558  --disable-debug         Disable debugging (default: enabled)
1559  --enable-hal-fdi-preprobe-quirk
1560                          Install HAL workaround for devices with unsupported
1561                          EV_SW events (default: auto)
1562  --enable-fuzz-interface Enable xsetwacom to take NUL-separated commands from
1563                          stdin (default: no)
1564  --enable-unit-tests     Enable unit-tests (default: auto)
1565
1566Optional Packages:
1567  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1568  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1569  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1570                          both]
1571  --with-aix-soname=aix|svr4|both
1572                          shared library versioning (aka "SONAME") variant to
1573                          provide on AIX, [default=aix].
1574  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1575  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1576                          compiler's sysroot if not specified).
1577  --with-doxygen          Use doxygen to regenerate documentation (default:
1578                          auto)
1579
1580  --with-xorg-module-dir=DIR
1581                          Default xorg module directory
1582                          [[default=$libdir/xorg/modules]]
1583  --with-xorg-conf-dir=DIR
1584                          Default xorg.conf.d directory [[default=from
1585                          $PKG_CONFIG xorg-server]]
1586  --with-systemd-unit-dir=DIR
1587                          systemd unit directory
1588                          [[default=$libdir/systemd/system]]
1589  --with-udev-rules-dir=DIR
1590                          Directory where udev expects its rules files
1591                          [[default=$libdir/udev/rules.d]]
1592
1593Some influential environment variables:
1594  CC          C compiler command
1595  CFLAGS      C compiler flags
1596  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1597              nonstandard directory <lib dir>
1598  LIBS        libraries to pass to the linker, e.g. -l<library>
1599  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1600              you have headers in a nonstandard directory <include dir>
1601  CPP         C preprocessor
1602  LT_SYS_LIBRARY_PATH
1603              User-defined run-time library search path.
1604  PKG_CONFIG  path to pkg-config utility
1605  PKG_CONFIG_PATH
1606              directories to add to pkg-config's search path
1607  PKG_CONFIG_LIBDIR
1608              path overriding pkg-config's built-in search path
1609  DOXYGEN     Path to doxygen command
1610  DOT         Path to the dot graphics utility
1611  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1612  XORG_LIBS   linker flags for XORG, overriding pkg-config
1613  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1614  X11_LIBS    linker flags for X11, overriding pkg-config
1615  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1616  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1617
1618Use these variables to override the choices made by `configure' or to help
1619it to find libraries and programs with nonstandard names/locations.
1620
1621Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1622_ACEOF
1623ac_status=$?
1624fi
1625
1626if test "$ac_init_help" = "recursive"; then
1627  # If there are subdirs, report their specific --help.
1628  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1629    test -d "$ac_dir" ||
1630      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1631      continue
1632    ac_builddir=.
1633
1634case "$ac_dir" in
1635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636*)
1637  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1638  # A ".." for each directory in $ac_dir_suffix.
1639  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1640  case $ac_top_builddir_sub in
1641  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643  esac ;;
1644esac
1645ac_abs_top_builddir=$ac_pwd
1646ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647# for backward compatibility:
1648ac_top_builddir=$ac_top_build_prefix
1649
1650case $srcdir in
1651  .)  # We are building in place.
1652    ac_srcdir=.
1653    ac_top_srcdir=$ac_top_builddir_sub
1654    ac_abs_top_srcdir=$ac_pwd ;;
1655  [\\/]* | ?:[\\/]* )  # Absolute name.
1656    ac_srcdir=$srcdir$ac_dir_suffix;
1657    ac_top_srcdir=$srcdir
1658    ac_abs_top_srcdir=$srcdir ;;
1659  *) # Relative name.
1660    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661    ac_top_srcdir=$ac_top_build_prefix$srcdir
1662    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663esac
1664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665
1666    cd "$ac_dir" || { ac_status=$?; continue; }
1667    # Check for guested configure.
1668    if test -f "$ac_srcdir/configure.gnu"; then
1669      echo &&
1670      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671    elif test -f "$ac_srcdir/configure"; then
1672      echo &&
1673      $SHELL "$ac_srcdir/configure" --help=recursive
1674    else
1675      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676    fi || ac_status=$?
1677    cd "$ac_pwd" || { ac_status=$?; break; }
1678  done
1679fi
1680
1681test -n "$ac_init_help" && exit $ac_status
1682if $ac_init_version; then
1683  cat <<\_ACEOF
1684xf86-input-wacom configure 0.39.0
1685generated by GNU Autoconf 2.69
1686
1687Copyright (C) 2012 Free Software Foundation, Inc.
1688This configure script is free software; the Free Software Foundation
1689gives unlimited permission to copy, distribute and modify it.
1690_ACEOF
1691  exit
1692fi
1693
1694## ------------------------ ##
1695## Autoconf initialization. ##
1696## ------------------------ ##
1697
1698# ac_fn_c_try_compile LINENO
1699# --------------------------
1700# Try to compile conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_compile ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  rm -f conftest.$ac_objext
1705  if { { ac_try="$ac_compile"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_compile") 2>conftest.err
1713  ac_status=$?
1714  if test -s conftest.err; then
1715    grep -v '^ *+' conftest.err >conftest.er1
1716    cat conftest.er1 >&5
1717    mv -f conftest.er1 conftest.err
1718  fi
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } && {
1721	 test -z "$ac_c_werror_flag" ||
1722	 test ! -s conftest.err
1723       } && test -s conftest.$ac_objext; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729	ac_retval=1
1730fi
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_compile
1735
1736# ac_fn_c_try_cpp LINENO
1737# ----------------------
1738# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_cpp ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  if { { ac_try="$ac_cpp conftest.$ac_ext"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750  ac_status=$?
1751  if test -s conftest.err; then
1752    grep -v '^ *+' conftest.err >conftest.er1
1753    cat conftest.er1 >&5
1754    mv -f conftest.er1 conftest.err
1755  fi
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } > conftest.i && {
1758	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759	 test ! -s conftest.err
1760       }; then :
1761  ac_retval=0
1762else
1763  $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766    ac_retval=1
1767fi
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769  as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_cpp
1772
1773# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776# the include files in INCLUDES and setting the cache variable VAR
1777# accordingly.
1778ac_fn_c_check_header_mongrel ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  if eval \${$3+:} false; then :
1782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785  $as_echo_n "(cached) " >&6
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790else
1791  # Is the header compilable?
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793$as_echo_n "checking $2 usability... " >&6; }
1794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h.  */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800  ac_header_compiler=yes
1801else
1802  ac_header_compiler=no
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806$as_echo "$ac_header_compiler" >&6; }
1807
1808# Is the header present?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810$as_echo_n "checking $2 presence... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_cpp "$LINENO"; then :
1816  ac_header_preproc=yes
1817else
1818  ac_header_preproc=no
1819fi
1820rm -f conftest.err conftest.i conftest.$ac_ext
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822$as_echo "$ac_header_preproc" >&6; }
1823
1824# So?  What about this header?
1825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826  yes:no: )
1827    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831    ;;
1832  no:yes:* )
1833    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1836$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1837    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1840$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843( $as_echo "## ---------------------------------------------------------------------- ##
1844## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1845## ---------------------------------------------------------------------- ##"
1846     ) | sed "s/^/$as_me: WARNING:     /" >&2
1847    ;;
1848esac
1849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
1851if eval \${$3+:} false; then :
1852  $as_echo_n "(cached) " >&6
1853else
1854  eval "$3=\$ac_header_compiler"
1855fi
1856eval ac_res=\$$3
1857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859fi
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862} # ac_fn_c_check_header_mongrel
1863
1864# ac_fn_c_try_run LINENO
1865# ----------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867# that executables *can* be run.
1868ac_fn_c_try_run ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874  *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878  (eval "$ac_link") 2>&5
1879  ac_status=$?
1880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882  { { case "(($ac_try" in
1883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884  *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888  (eval "$ac_try") 2>&5
1889  ac_status=$?
1890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891  test $ac_status = 0; }; }; then :
1892  ac_retval=0
1893else
1894  $as_echo "$as_me: program exited with status $ac_status" >&5
1895       $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898       ac_retval=$ac_status
1899fi
1900  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902  as_fn_set_status $ac_retval
1903
1904} # ac_fn_c_try_run
1905
1906# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907# -------------------------------------------------------
1908# Tests whether HEADER exists and can be compiled using the include files in
1909# INCLUDES, setting the cache variable VAR accordingly.
1910ac_fn_c_check_header_compile ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916  $as_echo_n "(cached) " >&6
1917else
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920$4
1921#include <$2>
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924  eval "$3=yes"
1925else
1926  eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929fi
1930eval ac_res=\$$3
1931	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
1933  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935} # ac_fn_c_check_header_compile
1936
1937# ac_fn_c_try_link LINENO
1938# -----------------------
1939# Try to link conftest.$ac_ext, and return whether this succeeded.
1940ac_fn_c_try_link ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  rm -f conftest.$ac_objext conftest$ac_exeext
1944  if { { ac_try="$ac_link"
1945case "(($ac_try" in
1946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947  *) ac_try_echo=$ac_try;;
1948esac
1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950$as_echo "$ac_try_echo"; } >&5
1951  (eval "$ac_link") 2>conftest.err
1952  ac_status=$?
1953  if test -s conftest.err; then
1954    grep -v '^ *+' conftest.err >conftest.er1
1955    cat conftest.er1 >&5
1956    mv -f conftest.er1 conftest.err
1957  fi
1958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959  test $ac_status = 0; } && {
1960	 test -z "$ac_c_werror_flag" ||
1961	 test ! -s conftest.err
1962       } && test -s conftest$ac_exeext && {
1963	 test "$cross_compiling" = yes ||
1964	 test -x conftest$ac_exeext
1965       }; then :
1966  ac_retval=0
1967else
1968  $as_echo "$as_me: failed program was:" >&5
1969sed 's/^/| /' conftest.$ac_ext >&5
1970
1971	ac_retval=1
1972fi
1973  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975  # interfere with the next link command; also delete a directory that is
1976  # left behind by Apple's compiler.  We do this before executing the actions.
1977  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979  as_fn_set_status $ac_retval
1980
1981} # ac_fn_c_try_link
1982
1983# ac_fn_c_check_func LINENO FUNC VAR
1984# ----------------------------------
1985# Tests whether FUNC exists, setting the cache variable VAR accordingly
1986ac_fn_c_check_func ()
1987{
1988  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then :
1992  $as_echo_n "(cached) " >&6
1993else
1994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1997   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1998#define $2 innocuous_$2
1999
2000/* System header to define __stub macros and hopefully few prototypes,
2001    which can conflict with char $2 (); below.
2002    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2003    <limits.h> exists even on freestanding compilers.  */
2004
2005#ifdef __STDC__
2006# include <limits.h>
2007#else
2008# include <assert.h>
2009#endif
2010
2011#undef $2
2012
2013/* Override any GCC internal prototype to avoid an error.
2014   Use char because int might match the return type of a GCC
2015   builtin and then its argument prototype would still apply.  */
2016#ifdef __cplusplus
2017extern "C"
2018#endif
2019char $2 ();
2020/* The GNU C library defines this for functions which it implements
2021    to always fail with ENOSYS.  Some functions are actually named
2022    something starting with __ and the normal name is an alias.  */
2023#if defined __stub_$2 || defined __stub___$2
2024choke me
2025#endif
2026
2027int
2028main ()
2029{
2030return $2 ();
2031  ;
2032  return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_link "$LINENO"; then :
2036  eval "$3=yes"
2037else
2038  eval "$3=no"
2039fi
2040rm -f core conftest.err conftest.$ac_objext \
2041    conftest$ac_exeext conftest.$ac_ext
2042fi
2043eval ac_res=\$$3
2044	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045$as_echo "$ac_res" >&6; }
2046  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048} # ac_fn_c_check_func
2049
2050# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2051# ---------------------------------------------
2052# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2053# accordingly.
2054ac_fn_c_check_decl ()
2055{
2056  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057  as_decl_name=`echo $2|sed 's/ *(.*//'`
2058  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2060$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2061if eval \${$3+:} false; then :
2062  $as_echo_n "(cached) " >&6
2063else
2064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066$4
2067int
2068main ()
2069{
2070#ifndef $as_decl_name
2071#ifdef __cplusplus
2072  (void) $as_decl_use;
2073#else
2074  (void) $as_decl_name;
2075#endif
2076#endif
2077
2078  ;
2079  return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_compile "$LINENO"; then :
2083  eval "$3=yes"
2084else
2085  eval "$3=no"
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089eval ac_res=\$$3
2090	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093
2094} # ac_fn_c_check_decl
2095cat >config.log <<_ACEOF
2096This file contains any messages produced by compilers while
2097running configure, to aid debugging if configure makes a mistake.
2098
2099It was created by xf86-input-wacom $as_me 0.39.0, which was
2100generated by GNU Autoconf 2.69.  Invocation command line was
2101
2102  $ $0 $@
2103
2104_ACEOF
2105exec 5>>config.log
2106{
2107cat <<_ASUNAME
2108## --------- ##
2109## Platform. ##
2110## --------- ##
2111
2112hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2113uname -m = `(uname -m) 2>/dev/null || echo unknown`
2114uname -r = `(uname -r) 2>/dev/null || echo unknown`
2115uname -s = `(uname -s) 2>/dev/null || echo unknown`
2116uname -v = `(uname -v) 2>/dev/null || echo unknown`
2117
2118/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2119/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2120
2121/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2122/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2123/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2124/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2125/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2126/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2127/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2128
2129_ASUNAME
2130
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH
2133do
2134  IFS=$as_save_IFS
2135  test -z "$as_dir" && as_dir=.
2136    $as_echo "PATH: $as_dir"
2137  done
2138IFS=$as_save_IFS
2139
2140} >&5
2141
2142cat >&5 <<_ACEOF
2143
2144
2145## ----------- ##
2146## Core tests. ##
2147## ----------- ##
2148
2149_ACEOF
2150
2151
2152# Keep a trace of the command line.
2153# Strip out --no-create and --no-recursion so they do not pile up.
2154# Strip out --silent because we don't want to record it for future runs.
2155# Also quote any args containing shell meta-characters.
2156# Make two passes to allow for proper duplicate-argument suppression.
2157ac_configure_args=
2158ac_configure_args0=
2159ac_configure_args1=
2160ac_must_keep_next=false
2161for ac_pass in 1 2
2162do
2163  for ac_arg
2164  do
2165    case $ac_arg in
2166    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2167    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2168    | -silent | --silent | --silen | --sile | --sil)
2169      continue ;;
2170    *\'*)
2171      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2172    esac
2173    case $ac_pass in
2174    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2175    2)
2176      as_fn_append ac_configure_args1 " '$ac_arg'"
2177      if test $ac_must_keep_next = true; then
2178	ac_must_keep_next=false # Got value, back to normal.
2179      else
2180	case $ac_arg in
2181	  *=* | --config-cache | -C | -disable-* | --disable-* \
2182	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2183	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2184	  | -with-* | --with-* | -without-* | --without-* | --x)
2185	    case "$ac_configure_args0 " in
2186	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2187	    esac
2188	    ;;
2189	  -* ) ac_must_keep_next=true ;;
2190	esac
2191      fi
2192      as_fn_append ac_configure_args " '$ac_arg'"
2193      ;;
2194    esac
2195  done
2196done
2197{ ac_configure_args0=; unset ac_configure_args0;}
2198{ ac_configure_args1=; unset ac_configure_args1;}
2199
2200# When interrupted or exit'd, cleanup temporary files, and complete
2201# config.log.  We remove comments because anyway the quotes in there
2202# would cause problems or look ugly.
2203# WARNING: Use '\'' to represent an apostrophe within the trap.
2204# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2205trap 'exit_status=$?
2206  # Save into config.log some information that might help in debugging.
2207  {
2208    echo
2209
2210    $as_echo "## ---------------- ##
2211## Cache variables. ##
2212## ---------------- ##"
2213    echo
2214    # The following way of writing the cache mishandles newlines in values,
2215(
2216  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217    eval ac_val=\$$ac_var
2218    case $ac_val in #(
2219    *${as_nl}*)
2220      case $ac_var in #(
2221      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223      esac
2224      case $ac_var in #(
2225      _ | IFS | as_nl) ;; #(
2226      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227      *) { eval $ac_var=; unset $ac_var;} ;;
2228      esac ;;
2229    esac
2230  done
2231  (set) 2>&1 |
2232    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233    *${as_nl}ac_space=\ *)
2234      sed -n \
2235	"s/'\''/'\''\\\\'\'''\''/g;
2236	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237      ;; #(
2238    *)
2239      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2240      ;;
2241    esac |
2242    sort
2243)
2244    echo
2245
2246    $as_echo "## ----------------- ##
2247## Output variables. ##
2248## ----------------- ##"
2249    echo
2250    for ac_var in $ac_subst_vars
2251    do
2252      eval ac_val=\$$ac_var
2253      case $ac_val in
2254      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255      esac
2256      $as_echo "$ac_var='\''$ac_val'\''"
2257    done | sort
2258    echo
2259
2260    if test -n "$ac_subst_files"; then
2261      $as_echo "## ------------------- ##
2262## File substitutions. ##
2263## ------------------- ##"
2264      echo
2265      for ac_var in $ac_subst_files
2266      do
2267	eval ac_val=\$$ac_var
2268	case $ac_val in
2269	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270	esac
2271	$as_echo "$ac_var='\''$ac_val'\''"
2272      done | sort
2273      echo
2274    fi
2275
2276    if test -s confdefs.h; then
2277      $as_echo "## ----------- ##
2278## confdefs.h. ##
2279## ----------- ##"
2280      echo
2281      cat confdefs.h
2282      echo
2283    fi
2284    test "$ac_signal" != 0 &&
2285      $as_echo "$as_me: caught signal $ac_signal"
2286    $as_echo "$as_me: exit $exit_status"
2287  } >&5
2288  rm -f core *.core core.conftest.* &&
2289    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2290    exit $exit_status
2291' 0
2292for ac_signal in 1 2 13 15; do
2293  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2294done
2295ac_signal=0
2296
2297# confdefs.h avoids OS command line length limits that DEFS can exceed.
2298rm -f -r conftest* confdefs.h
2299
2300$as_echo "/* confdefs.h */" > confdefs.h
2301
2302# Predefined preprocessor variables.
2303
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_NAME "$PACKAGE_NAME"
2306_ACEOF
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2310_ACEOF
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_VERSION "$PACKAGE_VERSION"
2314_ACEOF
2315
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_STRING "$PACKAGE_STRING"
2318_ACEOF
2319
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2322_ACEOF
2323
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_URL "$PACKAGE_URL"
2326_ACEOF
2327
2328
2329# Let the site file select an alternate cache file if it wants to.
2330# Prefer an explicitly selected file to automatically selected ones.
2331ac_site_file1=NONE
2332ac_site_file2=NONE
2333if test -n "$CONFIG_SITE"; then
2334  # We do not want a PATH search for config.site.
2335  case $CONFIG_SITE in #((
2336    -*)  ac_site_file1=./$CONFIG_SITE;;
2337    */*) ac_site_file1=$CONFIG_SITE;;
2338    *)   ac_site_file1=./$CONFIG_SITE;;
2339  esac
2340elif test "x$prefix" != xNONE; then
2341  ac_site_file1=$prefix/share/config.site
2342  ac_site_file2=$prefix/etc/config.site
2343else
2344  ac_site_file1=$ac_default_prefix/share/config.site
2345  ac_site_file2=$ac_default_prefix/etc/config.site
2346fi
2347for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2348do
2349  test "x$ac_site_file" = xNONE && continue
2350  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2351    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2352$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2353    sed 's/^/| /' "$ac_site_file" >&5
2354    . "$ac_site_file" \
2355      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357as_fn_error $? "failed to load site script $ac_site_file
2358See \`config.log' for more details" "$LINENO" 5; }
2359  fi
2360done
2361
2362if test -r "$cache_file"; then
2363  # Some versions of bash will fail to source /dev/null (special files
2364  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2365  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2366    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2367$as_echo "$as_me: loading cache $cache_file" >&6;}
2368    case $cache_file in
2369      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2370      *)                      . "./$cache_file";;
2371    esac
2372  fi
2373else
2374  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2375$as_echo "$as_me: creating cache $cache_file" >&6;}
2376  >$cache_file
2377fi
2378
2379# Check that the precious variables saved in the cache have kept the same
2380# value.
2381ac_cache_corrupted=false
2382for ac_var in $ac_precious_vars; do
2383  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2384  eval ac_new_set=\$ac_env_${ac_var}_set
2385  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2386  eval ac_new_val=\$ac_env_${ac_var}_value
2387  case $ac_old_set,$ac_new_set in
2388    set,)
2389      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2390$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2391      ac_cache_corrupted=: ;;
2392    ,set)
2393      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2394$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2395      ac_cache_corrupted=: ;;
2396    ,);;
2397    *)
2398      if test "x$ac_old_val" != "x$ac_new_val"; then
2399	# differences in whitespace do not lead to failure.
2400	ac_old_val_w=`echo x $ac_old_val`
2401	ac_new_val_w=`echo x $ac_new_val`
2402	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2403	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2404$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2405	  ac_cache_corrupted=:
2406	else
2407	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2408$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2409	  eval $ac_var=\$ac_old_val
2410	fi
2411	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2412$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2413	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2414$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2415      fi;;
2416  esac
2417  # Pass precious variables to config.status.
2418  if test "$ac_new_set" = set; then
2419    case $ac_new_val in
2420    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2421    *) ac_arg=$ac_var=$ac_new_val ;;
2422    esac
2423    case " $ac_configure_args " in
2424      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2425      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2426    esac
2427  fi
2428done
2429if $ac_cache_corrupted; then
2430  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2433$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2434  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2435fi
2436## -------------------- ##
2437## Main body of script. ##
2438## -------------------- ##
2439
2440ac_ext=c
2441ac_cpp='$CPP $CPPFLAGS'
2442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445
2446
2447
2448
2449ac_config_headers="$ac_config_headers config.h"
2450
2451
2452
2453# Initialize Automake
2454am__api_version='1.16'
2455
2456ac_aux_dir=
2457for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2458  if test -f "$ac_dir/install-sh"; then
2459    ac_aux_dir=$ac_dir
2460    ac_install_sh="$ac_aux_dir/install-sh -c"
2461    break
2462  elif test -f "$ac_dir/install.sh"; then
2463    ac_aux_dir=$ac_dir
2464    ac_install_sh="$ac_aux_dir/install.sh -c"
2465    break
2466  elif test -f "$ac_dir/shtool"; then
2467    ac_aux_dir=$ac_dir
2468    ac_install_sh="$ac_aux_dir/shtool install -c"
2469    break
2470  fi
2471done
2472if test -z "$ac_aux_dir"; then
2473  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2474fi
2475
2476# These three variables are undocumented and unsupported,
2477# and are intended to be withdrawn in a future Autoconf release.
2478# They can cause serious problems if a builder's source tree is in a directory
2479# whose full name contains unusual characters.
2480ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2481ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2482ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2483
2484
2485# Find a good install program.  We prefer a C program (faster),
2486# so one script is as good as another.  But avoid the broken or
2487# incompatible versions:
2488# SysV /etc/install, /usr/sbin/install
2489# SunOS /usr/etc/install
2490# IRIX /sbin/install
2491# AIX /bin/install
2492# AmigaOS /C/install, which installs bootblocks on floppy discs
2493# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496# OS/2's system install, which has a completely different semantic
2497# ./install, which can be erroneously created by make from ./install.sh.
2498# Reject install programs that cannot install multiple files.
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2500$as_echo_n "checking for a BSD-compatible install... " >&6; }
2501if test -z "$INSTALL"; then
2502if ${ac_cv_path_install+:} false; then :
2503  $as_echo_n "(cached) " >&6
2504else
2505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508  IFS=$as_save_IFS
2509  test -z "$as_dir" && as_dir=.
2510    # Account for people who put trailing slashes in PATH elements.
2511case $as_dir/ in #((
2512  ./ | .// | /[cC]/* | \
2513  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2514  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2515  /usr/ucb/* ) ;;
2516  *)
2517    # OSF1 and SCO ODT 3.0 have their own names for install.
2518    # Don't use installbsd from OSF since it installs stuff as root
2519    # by default.
2520    for ac_prog in ginstall scoinst install; do
2521      for ac_exec_ext in '' $ac_executable_extensions; do
2522	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2523	  if test $ac_prog = install &&
2524	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525	    # AIX install.  It has an incompatible calling convention.
2526	    :
2527	  elif test $ac_prog = install &&
2528	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529	    # program-specific install script used by HP pwplus--don't use.
2530	    :
2531	  else
2532	    rm -rf conftest.one conftest.two conftest.dir
2533	    echo one > conftest.one
2534	    echo two > conftest.two
2535	    mkdir conftest.dir
2536	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2537	      test -s conftest.one && test -s conftest.two &&
2538	      test -s conftest.dir/conftest.one &&
2539	      test -s conftest.dir/conftest.two
2540	    then
2541	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542	      break 3
2543	    fi
2544	  fi
2545	fi
2546      done
2547    done
2548    ;;
2549esac
2550
2551  done
2552IFS=$as_save_IFS
2553
2554rm -rf conftest.one conftest.two conftest.dir
2555
2556fi
2557  if test "${ac_cv_path_install+set}" = set; then
2558    INSTALL=$ac_cv_path_install
2559  else
2560    # As a last resort, use the slow shell script.  Don't cache a
2561    # value for INSTALL within a source directory, because that will
2562    # break other packages using the cache if that directory is
2563    # removed, or if the value is a relative name.
2564    INSTALL=$ac_install_sh
2565  fi
2566fi
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2568$as_echo "$INSTALL" >&6; }
2569
2570# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2571# It thinks the first close brace ends the variable substitution.
2572test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2573
2574test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2575
2576test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2577
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2579$as_echo_n "checking whether build environment is sane... " >&6; }
2580# Reject unsafe characters in $srcdir or the absolute working directory
2581# name.  Accept space and tab only in the latter.
2582am_lf='
2583'
2584case `pwd` in
2585  *[\\\"\#\$\&\'\`$am_lf]*)
2586    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2587esac
2588case $srcdir in
2589  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2590    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2591esac
2592
2593# Do 'set' in a subshell so we don't clobber the current shell's
2594# arguments.  Must try -L first in case configure is actually a
2595# symlink; some systems play weird games with the mod time of symlinks
2596# (eg FreeBSD returns the mod time of the symlink's containing
2597# directory).
2598if (
2599   am_has_slept=no
2600   for am_try in 1 2; do
2601     echo "timestamp, slept: $am_has_slept" > conftest.file
2602     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2603     if test "$*" = "X"; then
2604	# -L didn't work.
2605	set X `ls -t "$srcdir/configure" conftest.file`
2606     fi
2607     if test "$*" != "X $srcdir/configure conftest.file" \
2608	&& test "$*" != "X conftest.file $srcdir/configure"; then
2609
2610	# If neither matched, then we have a broken ls.  This can happen
2611	# if, for instance, CONFIG_SHELL is bash and it inherits a
2612	# broken ls alias from the environment.  This has actually
2613	# happened.  Such a system could not be considered "sane".
2614	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2615  alias in your environment" "$LINENO" 5
2616     fi
2617     if test "$2" = conftest.file || test $am_try -eq 2; then
2618       break
2619     fi
2620     # Just in case.
2621     sleep 1
2622     am_has_slept=yes
2623   done
2624   test "$2" = conftest.file
2625   )
2626then
2627   # Ok.
2628   :
2629else
2630   as_fn_error $? "newly created file is older than distributed files!
2631Check your system clock" "$LINENO" 5
2632fi
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2634$as_echo "yes" >&6; }
2635# If we didn't sleep, we still need to ensure time stamps of config.status and
2636# generated files are strictly newer.
2637am_sleep_pid=
2638if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2639  ( sleep 1 ) &
2640  am_sleep_pid=$!
2641fi
2642
2643rm -f conftest.file
2644
2645test "$program_prefix" != NONE &&
2646  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2647# Use a double $ so make ignores it.
2648test "$program_suffix" != NONE &&
2649  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2650# Double any \ or $.
2651# By default was `s,x,x', remove it if useless.
2652ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2653program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2654
2655# Expand $ac_aux_dir to an absolute path.
2656am_aux_dir=`cd "$ac_aux_dir" && pwd`
2657
2658if test x"${MISSING+set}" != xset; then
2659  case $am_aux_dir in
2660  *\ * | *\	*)
2661    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2662  *)
2663    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2664  esac
2665fi
2666# Use eval to expand $SHELL
2667if eval "$MISSING --is-lightweight"; then
2668  am_missing_run="$MISSING "
2669else
2670  am_missing_run=
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2672$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2673fi
2674
2675if test x"${install_sh+set}" != xset; then
2676  case $am_aux_dir in
2677  *\ * | *\	*)
2678    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2679  *)
2680    install_sh="\${SHELL} $am_aux_dir/install-sh"
2681  esac
2682fi
2683
2684# Installed binaries are usually stripped using 'strip' when the user
2685# run "make install-strip".  However 'strip' might not be the right
2686# tool to use in cross-compilation environments, therefore Automake
2687# will honor the 'STRIP' environment variable to overrule this program.
2688if test "$cross_compiling" != no; then
2689  if test -n "$ac_tool_prefix"; then
2690  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2691set dummy ${ac_tool_prefix}strip; ac_word=$2
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693$as_echo_n "checking for $ac_word... " >&6; }
2694if ${ac_cv_prog_STRIP+:} false; then :
2695  $as_echo_n "(cached) " >&6
2696else
2697  if test -n "$STRIP"; then
2698  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2699else
2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703  IFS=$as_save_IFS
2704  test -z "$as_dir" && as_dir=.
2705    for ac_exec_ext in '' $ac_executable_extensions; do
2706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709    break 2
2710  fi
2711done
2712  done
2713IFS=$as_save_IFS
2714
2715fi
2716fi
2717STRIP=$ac_cv_prog_STRIP
2718if test -n "$STRIP"; then
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2720$as_echo "$STRIP" >&6; }
2721else
2722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723$as_echo "no" >&6; }
2724fi
2725
2726
2727fi
2728if test -z "$ac_cv_prog_STRIP"; then
2729  ac_ct_STRIP=$STRIP
2730  # Extract the first word of "strip", so it can be a program name with args.
2731set dummy strip; ac_word=$2
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733$as_echo_n "checking for $ac_word... " >&6; }
2734if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2735  $as_echo_n "(cached) " >&6
2736else
2737  if test -n "$ac_ct_STRIP"; then
2738  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2739else
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743  IFS=$as_save_IFS
2744  test -z "$as_dir" && as_dir=.
2745    for ac_exec_ext in '' $ac_executable_extensions; do
2746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747    ac_cv_prog_ac_ct_STRIP="strip"
2748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749    break 2
2750  fi
2751done
2752  done
2753IFS=$as_save_IFS
2754
2755fi
2756fi
2757ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2758if test -n "$ac_ct_STRIP"; then
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2760$as_echo "$ac_ct_STRIP" >&6; }
2761else
2762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763$as_echo "no" >&6; }
2764fi
2765
2766  if test "x$ac_ct_STRIP" = x; then
2767    STRIP=":"
2768  else
2769    case $cross_compiling:$ac_tool_warned in
2770yes:)
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773ac_tool_warned=yes ;;
2774esac
2775    STRIP=$ac_ct_STRIP
2776  fi
2777else
2778  STRIP="$ac_cv_prog_STRIP"
2779fi
2780
2781fi
2782INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2783
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2785$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2786if test -z "$MKDIR_P"; then
2787  if ${ac_cv_path_mkdir+:} false; then :
2788  $as_echo_n "(cached) " >&6
2789else
2790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2792do
2793  IFS=$as_save_IFS
2794  test -z "$as_dir" && as_dir=.
2795    for ac_prog in mkdir gmkdir; do
2796	 for ac_exec_ext in '' $ac_executable_extensions; do
2797	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2798	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2799	     'mkdir (GNU coreutils) '* | \
2800	     'mkdir (coreutils) '* | \
2801	     'mkdir (fileutils) '4.1*)
2802	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2803	       break 3;;
2804	   esac
2805	 done
2806       done
2807  done
2808IFS=$as_save_IFS
2809
2810fi
2811
2812  test -d ./--version && rmdir ./--version
2813  if test "${ac_cv_path_mkdir+set}" = set; then
2814    MKDIR_P="$ac_cv_path_mkdir -p"
2815  else
2816    # As a last resort, use the slow shell script.  Don't cache a
2817    # value for MKDIR_P within a source directory, because that will
2818    # break other packages using the cache if that directory is
2819    # removed, or if the value is a relative name.
2820    MKDIR_P="$ac_install_sh -d"
2821  fi
2822fi
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2824$as_echo "$MKDIR_P" >&6; }
2825
2826for ac_prog in gawk mawk nawk awk
2827do
2828  # Extract the first word of "$ac_prog", so it can be a program name with args.
2829set dummy $ac_prog; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if ${ac_cv_prog_AWK+:} false; then :
2833  $as_echo_n "(cached) " >&6
2834else
2835  if test -n "$AWK"; then
2836  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843    for ac_exec_ext in '' $ac_executable_extensions; do
2844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845    ac_cv_prog_AWK="$ac_prog"
2846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850  done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855AWK=$ac_cv_prog_AWK
2856if test -n "$AWK"; then
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2858$as_echo "$AWK" >&6; }
2859else
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861$as_echo "no" >&6; }
2862fi
2863
2864
2865  test -n "$AWK" && break
2866done
2867
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2869$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2870set x ${MAKE-make}
2871ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2872if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2873  $as_echo_n "(cached) " >&6
2874else
2875  cat >conftest.make <<\_ACEOF
2876SHELL = /bin/sh
2877all:
2878	@echo '@@@%%%=$(MAKE)=@@@%%%'
2879_ACEOF
2880# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2881case `${MAKE-make} -f conftest.make 2>/dev/null` in
2882  *@@@%%%=?*=@@@%%%*)
2883    eval ac_cv_prog_make_${ac_make}_set=yes;;
2884  *)
2885    eval ac_cv_prog_make_${ac_make}_set=no;;
2886esac
2887rm -f conftest.make
2888fi
2889if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891$as_echo "yes" >&6; }
2892  SET_MAKE=
2893else
2894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895$as_echo "no" >&6; }
2896  SET_MAKE="MAKE=${MAKE-make}"
2897fi
2898
2899rm -rf .tst 2>/dev/null
2900mkdir .tst 2>/dev/null
2901if test -d .tst; then
2902  am__leading_dot=.
2903else
2904  am__leading_dot=_
2905fi
2906rmdir .tst 2>/dev/null
2907
2908# Check whether --enable-silent-rules was given.
2909if test "${enable_silent_rules+set}" = set; then :
2910  enableval=$enable_silent_rules;
2911fi
2912
2913case $enable_silent_rules in # (((
2914  yes) AM_DEFAULT_VERBOSITY=0;;
2915   no) AM_DEFAULT_VERBOSITY=1;;
2916    *) AM_DEFAULT_VERBOSITY=1;;
2917esac
2918am_make=${MAKE-make}
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2920$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2921if ${am_cv_make_support_nested_variables+:} false; then :
2922  $as_echo_n "(cached) " >&6
2923else
2924  if $as_echo 'TRUE=$(BAR$(V))
2925BAR0=false
2926BAR1=true
2927V=1
2928am__doit:
2929	@$(TRUE)
2930.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2931  am_cv_make_support_nested_variables=yes
2932else
2933  am_cv_make_support_nested_variables=no
2934fi
2935fi
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2937$as_echo "$am_cv_make_support_nested_variables" >&6; }
2938if test $am_cv_make_support_nested_variables = yes; then
2939    AM_V='$(V)'
2940  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2941else
2942  AM_V=$AM_DEFAULT_VERBOSITY
2943  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2944fi
2945AM_BACKSLASH='\'
2946
2947if test "`cd $srcdir && pwd`" != "`pwd`"; then
2948  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2949  # is not polluted with repeated "-I."
2950  am__isrc=' -I$(srcdir)'
2951  # test to see if srcdir already configured
2952  if test -f $srcdir/config.status; then
2953    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2954  fi
2955fi
2956
2957# test whether we have cygpath
2958if test -z "$CYGPATH_W"; then
2959  if (cygpath --version) >/dev/null 2>/dev/null; then
2960    CYGPATH_W='cygpath -w'
2961  else
2962    CYGPATH_W=echo
2963  fi
2964fi
2965
2966
2967# Define the identity of the package.
2968 PACKAGE='xf86-input-wacom'
2969 VERSION='0.39.0'
2970
2971
2972cat >>confdefs.h <<_ACEOF
2973#define PACKAGE "$PACKAGE"
2974_ACEOF
2975
2976
2977cat >>confdefs.h <<_ACEOF
2978#define VERSION "$VERSION"
2979_ACEOF
2980
2981# Some tools Automake needs.
2982
2983ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2984
2985
2986AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2987
2988
2989AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2990
2991
2992AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2993
2994
2995MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2996
2997# For better backward compatibility.  To be removed once Automake 1.9.x
2998# dies out for good.  For more background, see:
2999# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3000# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3001mkdir_p='$(MKDIR_P)'
3002
3003# We need awk for the "check" target (and possibly the TAP driver).  The
3004# system "awk" is bad on some platforms.
3005# Always define AMTAR for backward compatibility.  Yes, it's still used
3006# in the wild :-(  We should find a proper way to deprecate it ...
3007AMTAR='$${TAR-tar}'
3008
3009
3010# We'll loop over all known methods to create a tar archive until one works.
3011_am_tools='gnutar  pax cpio none'
3012
3013am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3014
3015
3016
3017
3018
3019
3020# POSIX will say in a future version that running "rm -f" with no argument
3021# is OK; and we want to be able to make that assumption in our Makefile
3022# recipes.  So use an aggressive probe to check that the usage we want is
3023# actually supported "in the wild" to an acceptable degree.
3024# See automake bug#10828.
3025# To make any issue more visible, cause the running configure to be aborted
3026# by default if the 'rm' program in use doesn't match our expectations; the
3027# user can still override this though.
3028if rm -f && rm -fr && rm -rf; then : OK; else
3029  cat >&2 <<'END'
3030Oops!
3031
3032Your 'rm' program seems unable to run without file operands specified
3033on the command line, even when the '-f' option is present.  This is contrary
3034to the behaviour of most rm programs out there, and not conforming with
3035the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3036
3037Please tell bug-automake@gnu.org about your system, including the value
3038of your $PATH and any error possibly output before this message.  This
3039can help us improve future automake versions.
3040
3041END
3042  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3043    echo 'Configuration will proceed anyway, since you have set the' >&2
3044    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3045    echo >&2
3046  else
3047    cat >&2 <<'END'
3048Aborting the configuration process, to ensure you take notice of the issue.
3049
3050You can download and install GNU coreutils to get an 'rm' implementation
3051that behaves properly: <https://www.gnu.org/software/coreutils/>.
3052
3053If you want to complete the configuration process using your problematic
3054'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3055to "yes", and re-run configure.
3056
3057END
3058    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3059  fi
3060fi
3061
3062
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3064$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3065    # Check whether --enable-maintainer-mode was given.
3066if test "${enable_maintainer_mode+set}" = set; then :
3067  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3068else
3069  USE_MAINTAINER_MODE=yes
3070fi
3071
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3073$as_echo "$USE_MAINTAINER_MODE" >&6; }
3074   if test $USE_MAINTAINER_MODE = yes; then
3075  MAINTAINER_MODE_TRUE=
3076  MAINTAINER_MODE_FALSE='#'
3077else
3078  MAINTAINER_MODE_TRUE='#'
3079  MAINTAINER_MODE_FALSE=
3080fi
3081
3082  MAINT=$MAINTAINER_MODE_TRUE
3083
3084
3085DEPDIR="${am__leading_dot}deps"
3086
3087ac_config_commands="$ac_config_commands depfiles"
3088
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3090$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3091cat > confinc.mk << 'END'
3092am__doit:
3093	@echo this is the am__doit target >confinc.out
3094.PHONY: am__doit
3095END
3096am__include="#"
3097am__quote=
3098# BSD make does it like this.
3099echo '.include "confinc.mk" # ignored' > confmf.BSD
3100# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3101echo 'include confinc.mk # ignored' > confmf.GNU
3102_am_result=no
3103for s in GNU BSD; do
3104  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3105   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }
3109  case $?:`cat confinc.out 2>/dev/null` in #(
3110  '0:this is the am__doit target') :
3111    case $s in #(
3112  BSD) :
3113    am__include='.include' am__quote='"' ;; #(
3114  *) :
3115    am__include='include' am__quote='' ;;
3116esac ;; #(
3117  *) :
3118     ;;
3119esac
3120  if test "$am__include" != "#"; then
3121    _am_result="yes ($s style)"
3122    break
3123  fi
3124done
3125rm -f confinc.* confmf.*
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3127$as_echo "${_am_result}" >&6; }
3128
3129# Check whether --enable-dependency-tracking was given.
3130if test "${enable_dependency_tracking+set}" = set; then :
3131  enableval=$enable_dependency_tracking;
3132fi
3133
3134if test "x$enable_dependency_tracking" != xno; then
3135  am_depcomp="$ac_aux_dir/depcomp"
3136  AMDEPBACKSLASH='\'
3137  am__nodep='_no'
3138fi
3139 if test "x$enable_dependency_tracking" != xno; then
3140  AMDEP_TRUE=
3141  AMDEP_FALSE='#'
3142else
3143  AMDEP_TRUE='#'
3144  AMDEP_FALSE=
3145fi
3146
3147
3148ac_ext=c
3149ac_cpp='$CPP $CPPFLAGS'
3150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153if test -n "$ac_tool_prefix"; then
3154  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3155set dummy ${ac_tool_prefix}gcc; ac_word=$2
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157$as_echo_n "checking for $ac_word... " >&6; }
3158if ${ac_cv_prog_CC+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  if test -n "$CC"; then
3162  ac_cv_prog_CC="$CC" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167  IFS=$as_save_IFS
3168  test -z "$as_dir" && as_dir=.
3169    for ac_exec_ext in '' $ac_executable_extensions; do
3170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173    break 2
3174  fi
3175done
3176  done
3177IFS=$as_save_IFS
3178
3179fi
3180fi
3181CC=$ac_cv_prog_CC
3182if test -n "$CC"; then
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184$as_echo "$CC" >&6; }
3185else
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188fi
3189
3190
3191fi
3192if test -z "$ac_cv_prog_CC"; then
3193  ac_ct_CC=$CC
3194  # Extract the first word of "gcc", so it can be a program name with args.
3195set dummy gcc; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
3198if ${ac_cv_prog_ac_ct_CC+:} false; then :
3199  $as_echo_n "(cached) " >&6
3200else
3201  if test -n "$ac_ct_CC"; then
3202  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203else
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207  IFS=$as_save_IFS
3208  test -z "$as_dir" && as_dir=.
3209    for ac_exec_ext in '' $ac_executable_extensions; do
3210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211    ac_cv_prog_ac_ct_CC="gcc"
3212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213    break 2
3214  fi
3215done
3216  done
3217IFS=$as_save_IFS
3218
3219fi
3220fi
3221ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222if test -n "$ac_ct_CC"; then
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224$as_echo "$ac_ct_CC" >&6; }
3225else
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228fi
3229
3230  if test "x$ac_ct_CC" = x; then
3231    CC=""
3232  else
3233    case $cross_compiling:$ac_tool_warned in
3234yes:)
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237ac_tool_warned=yes ;;
3238esac
3239    CC=$ac_ct_CC
3240  fi
3241else
3242  CC="$ac_cv_prog_CC"
3243fi
3244
3245if test -z "$CC"; then
3246          if test -n "$ac_tool_prefix"; then
3247    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3248set dummy ${ac_tool_prefix}cc; ac_word=$2
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250$as_echo_n "checking for $ac_word... " >&6; }
3251if ${ac_cv_prog_CC+:} false; then :
3252  $as_echo_n "(cached) " >&6
3253else
3254  if test -n "$CC"; then
3255  ac_cv_prog_CC="$CC" # Let the user override the test.
3256else
3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260  IFS=$as_save_IFS
3261  test -z "$as_dir" && as_dir=.
3262    for ac_exec_ext in '' $ac_executable_extensions; do
3263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264    ac_cv_prog_CC="${ac_tool_prefix}cc"
3265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266    break 2
3267  fi
3268done
3269  done
3270IFS=$as_save_IFS
3271
3272fi
3273fi
3274CC=$ac_cv_prog_CC
3275if test -n "$CC"; then
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277$as_echo "$CC" >&6; }
3278else
3279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281fi
3282
3283
3284  fi
3285fi
3286if test -z "$CC"; then
3287  # Extract the first word of "cc", so it can be a program name with args.
3288set dummy cc; ac_word=$2
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290$as_echo_n "checking for $ac_word... " >&6; }
3291if ${ac_cv_prog_CC+:} false; then :
3292  $as_echo_n "(cached) " >&6
3293else
3294  if test -n "$CC"; then
3295  ac_cv_prog_CC="$CC" # Let the user override the test.
3296else
3297  ac_prog_rejected=no
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301  IFS=$as_save_IFS
3302  test -z "$as_dir" && as_dir=.
3303    for ac_exec_ext in '' $ac_executable_extensions; do
3304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3306       ac_prog_rejected=yes
3307       continue
3308     fi
3309    ac_cv_prog_CC="cc"
3310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311    break 2
3312  fi
3313done
3314  done
3315IFS=$as_save_IFS
3316
3317if test $ac_prog_rejected = yes; then
3318  # We found a bogon in the path, so make sure we never use it.
3319  set dummy $ac_cv_prog_CC
3320  shift
3321  if test $# != 0; then
3322    # We chose a different compiler from the bogus one.
3323    # However, it has the same basename, so the bogon will be chosen
3324    # first if we set CC to just the basename; use the full file name.
3325    shift
3326    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3327  fi
3328fi
3329fi
3330fi
3331CC=$ac_cv_prog_CC
3332if test -n "$CC"; then
3333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334$as_echo "$CC" >&6; }
3335else
3336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
3338fi
3339
3340
3341fi
3342if test -z "$CC"; then
3343  if test -n "$ac_tool_prefix"; then
3344  for ac_prog in cl.exe
3345  do
3346    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349$as_echo_n "checking for $ac_word... " >&6; }
3350if ${ac_cv_prog_CC+:} false; then :
3351  $as_echo_n "(cached) " >&6
3352else
3353  if test -n "$CC"; then
3354  ac_cv_prog_CC="$CC" # Let the user override the test.
3355else
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359  IFS=$as_save_IFS
3360  test -z "$as_dir" && as_dir=.
3361    for ac_exec_ext in '' $ac_executable_extensions; do
3362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365    break 2
3366  fi
3367done
3368  done
3369IFS=$as_save_IFS
3370
3371fi
3372fi
3373CC=$ac_cv_prog_CC
3374if test -n "$CC"; then
3375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376$as_echo "$CC" >&6; }
3377else
3378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379$as_echo "no" >&6; }
3380fi
3381
3382
3383    test -n "$CC" && break
3384  done
3385fi
3386if test -z "$CC"; then
3387  ac_ct_CC=$CC
3388  for ac_prog in cl.exe
3389do
3390  # Extract the first word of "$ac_prog", so it can be a program name with args.
3391set dummy $ac_prog; ac_word=$2
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393$as_echo_n "checking for $ac_word... " >&6; }
3394if ${ac_cv_prog_ac_ct_CC+:} false; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397  if test -n "$ac_ct_CC"; then
3398  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399else
3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403  IFS=$as_save_IFS
3404  test -z "$as_dir" && as_dir=.
3405    for ac_exec_ext in '' $ac_executable_extensions; do
3406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407    ac_cv_prog_ac_ct_CC="$ac_prog"
3408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409    break 2
3410  fi
3411done
3412  done
3413IFS=$as_save_IFS
3414
3415fi
3416fi
3417ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418if test -n "$ac_ct_CC"; then
3419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420$as_echo "$ac_ct_CC" >&6; }
3421else
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
3424fi
3425
3426
3427  test -n "$ac_ct_CC" && break
3428done
3429
3430  if test "x$ac_ct_CC" = x; then
3431    CC=""
3432  else
3433    case $cross_compiling:$ac_tool_warned in
3434yes:)
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437ac_tool_warned=yes ;;
3438esac
3439    CC=$ac_ct_CC
3440  fi
3441fi
3442
3443fi
3444
3445
3446test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448as_fn_error $? "no acceptable C compiler found in \$PATH
3449See \`config.log' for more details" "$LINENO" 5; }
3450
3451# Provide some information about the compiler.
3452$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3453set X $ac_compile
3454ac_compiler=$2
3455for ac_option in --version -v -V -qversion; do
3456  { { ac_try="$ac_compiler $ac_option >&5"
3457case "(($ac_try" in
3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459  *) ac_try_echo=$ac_try;;
3460esac
3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462$as_echo "$ac_try_echo"; } >&5
3463  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3464  ac_status=$?
3465  if test -s conftest.err; then
3466    sed '10a\
3467... rest of stderr output deleted ...
3468         10q' conftest.err >conftest.er1
3469    cat conftest.er1 >&5
3470  fi
3471  rm -f conftest.er1 conftest.err
3472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473  test $ac_status = 0; }
3474done
3475
3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h.  */
3478
3479int
3480main ()
3481{
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487ac_clean_files_save=$ac_clean_files
3488ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3489# Try to create an executable without -o first, disregard a.out.
3490# It will help us diagnose broken compilers, and finding out an intuition
3491# of exeext.
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3493$as_echo_n "checking whether the C compiler works... " >&6; }
3494ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3495
3496# The possible output files:
3497ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3498
3499ac_rmfiles=
3500for ac_file in $ac_files
3501do
3502  case $ac_file in
3503    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3504    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3505  esac
3506done
3507rm -f $ac_rmfiles
3508
3509if { { ac_try="$ac_link_default"
3510case "(($ac_try" in
3511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512  *) ac_try_echo=$ac_try;;
3513esac
3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515$as_echo "$ac_try_echo"; } >&5
3516  (eval "$ac_link_default") 2>&5
3517  ac_status=$?
3518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519  test $ac_status = 0; }; then :
3520  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3521# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3522# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3523# so that the user can short-circuit this test for compilers unknown to
3524# Autoconf.
3525for ac_file in $ac_files ''
3526do
3527  test -f "$ac_file" || continue
3528  case $ac_file in
3529    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3530	;;
3531    [ab].out )
3532	# We found the default executable, but exeext='' is most
3533	# certainly right.
3534	break;;
3535    *.* )
3536	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3537	then :; else
3538	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3539	fi
3540	# We set ac_cv_exeext here because the later test for it is not
3541	# safe: cross compilers may not add the suffix if given an `-o'
3542	# argument, so we may need to know it at that point already.
3543	# Even if this section looks crufty: it has the advantage of
3544	# actually working.
3545	break;;
3546    * )
3547	break;;
3548  esac
3549done
3550test "$ac_cv_exeext" = no && ac_cv_exeext=
3551
3552else
3553  ac_file=''
3554fi
3555if test -z "$ac_file"; then :
3556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557$as_echo "no" >&6; }
3558$as_echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563as_fn_error 77 "C compiler cannot create executables
3564See \`config.log' for more details" "$LINENO" 5; }
3565else
3566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3567$as_echo "yes" >&6; }
3568fi
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3570$as_echo_n "checking for C compiler default output file name... " >&6; }
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3572$as_echo "$ac_file" >&6; }
3573ac_exeext=$ac_cv_exeext
3574
3575rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3576ac_clean_files=$ac_clean_files_save
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3578$as_echo_n "checking for suffix of executables... " >&6; }
3579if { { ac_try="$ac_link"
3580case "(($ac_try" in
3581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582  *) ac_try_echo=$ac_try;;
3583esac
3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
3586  (eval "$ac_link") 2>&5
3587  ac_status=$?
3588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589  test $ac_status = 0; }; then :
3590  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3591# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3592# work properly (i.e., refer to `conftest.exe'), while it won't with
3593# `rm'.
3594for ac_file in conftest.exe conftest conftest.*; do
3595  test -f "$ac_file" || continue
3596  case $ac_file in
3597    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3598    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599	  break;;
3600    * ) break;;
3601  esac
3602done
3603else
3604  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3607See \`config.log' for more details" "$LINENO" 5; }
3608fi
3609rm -f conftest conftest$ac_cv_exeext
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3611$as_echo "$ac_cv_exeext" >&6; }
3612
3613rm -f conftest.$ac_ext
3614EXEEXT=$ac_cv_exeext
3615ac_exeext=$EXEEXT
3616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h.  */
3618#include <stdio.h>
3619int
3620main ()
3621{
3622FILE *f = fopen ("conftest.out", "w");
3623 return ferror (f) || fclose (f) != 0;
3624
3625  ;
3626  return 0;
3627}
3628_ACEOF
3629ac_clean_files="$ac_clean_files conftest.out"
3630# Check that the compiler produces executables we can run.  If not, either
3631# the compiler is broken, or we cross compile.
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3633$as_echo_n "checking whether we are cross compiling... " >&6; }
3634if test "$cross_compiling" != yes; then
3635  { { ac_try="$ac_link"
3636case "(($ac_try" in
3637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638  *) ac_try_echo=$ac_try;;
3639esac
3640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641$as_echo "$ac_try_echo"; } >&5
3642  (eval "$ac_link") 2>&5
3643  ac_status=$?
3644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645  test $ac_status = 0; }
3646  if { ac_try='./conftest$ac_cv_exeext'
3647  { { case "(($ac_try" in
3648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649  *) ac_try_echo=$ac_try;;
3650esac
3651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652$as_echo "$ac_try_echo"; } >&5
3653  (eval "$ac_try") 2>&5
3654  ac_status=$?
3655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656  test $ac_status = 0; }; }; then
3657    cross_compiling=no
3658  else
3659    if test "$cross_compiling" = maybe; then
3660	cross_compiling=yes
3661    else
3662	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664as_fn_error $? "cannot run C compiled programs.
3665If you meant to cross compile, use \`--host'.
3666See \`config.log' for more details" "$LINENO" 5; }
3667    fi
3668  fi
3669fi
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3671$as_echo "$cross_compiling" >&6; }
3672
3673rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3674ac_clean_files=$ac_clean_files_save
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3676$as_echo_n "checking for suffix of object files... " >&6; }
3677if ${ac_cv_objext+:} false; then :
3678  $as_echo_n "(cached) " >&6
3679else
3680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h.  */
3682
3683int
3684main ()
3685{
3686
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691rm -f conftest.o conftest.obj
3692if { { ac_try="$ac_compile"
3693case "(($ac_try" in
3694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695  *) ac_try_echo=$ac_try;;
3696esac
3697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698$as_echo "$ac_try_echo"; } >&5
3699  (eval "$ac_compile") 2>&5
3700  ac_status=$?
3701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702  test $ac_status = 0; }; then :
3703  for ac_file in conftest.o conftest.obj conftest.*; do
3704  test -f "$ac_file" || continue;
3705  case $ac_file in
3706    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3707    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3708       break;;
3709  esac
3710done
3711else
3712  $as_echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
3714
3715{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717as_fn_error $? "cannot compute suffix of object files: cannot compile
3718See \`config.log' for more details" "$LINENO" 5; }
3719fi
3720rm -f conftest.$ac_cv_objext conftest.$ac_ext
3721fi
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3723$as_echo "$ac_cv_objext" >&6; }
3724OBJEXT=$ac_cv_objext
3725ac_objext=$OBJEXT
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3727$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3728if ${ac_cv_c_compiler_gnu+:} false; then :
3729  $as_echo_n "(cached) " >&6
3730else
3731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732/* end confdefs.h.  */
3733
3734int
3735main ()
3736{
3737#ifndef __GNUC__
3738       choke me
3739#endif
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745if ac_fn_c_try_compile "$LINENO"; then :
3746  ac_compiler_gnu=yes
3747else
3748  ac_compiler_gnu=no
3749fi
3750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751ac_cv_c_compiler_gnu=$ac_compiler_gnu
3752
3753fi
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3755$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3756if test $ac_compiler_gnu = yes; then
3757  GCC=yes
3758else
3759  GCC=
3760fi
3761ac_test_CFLAGS=${CFLAGS+set}
3762ac_save_CFLAGS=$CFLAGS
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3764$as_echo_n "checking whether $CC accepts -g... " >&6; }
3765if ${ac_cv_prog_cc_g+:} false; then :
3766  $as_echo_n "(cached) " >&6
3767else
3768  ac_save_c_werror_flag=$ac_c_werror_flag
3769   ac_c_werror_flag=yes
3770   ac_cv_prog_cc_g=no
3771   CFLAGS="-g"
3772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h.  */
3774
3775int
3776main ()
3777{
3778
3779  ;
3780  return 0;
3781}
3782_ACEOF
3783if ac_fn_c_try_compile "$LINENO"; then :
3784  ac_cv_prog_cc_g=yes
3785else
3786  CFLAGS=""
3787      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h.  */
3789
3790int
3791main ()
3792{
3793
3794  ;
3795  return 0;
3796}
3797_ACEOF
3798if ac_fn_c_try_compile "$LINENO"; then :
3799
3800else
3801  ac_c_werror_flag=$ac_save_c_werror_flag
3802	 CFLAGS="-g"
3803	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805
3806int
3807main ()
3808{
3809
3810  ;
3811  return 0;
3812}
3813_ACEOF
3814if ac_fn_c_try_compile "$LINENO"; then :
3815  ac_cv_prog_cc_g=yes
3816fi
3817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818fi
3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820fi
3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822   ac_c_werror_flag=$ac_save_c_werror_flag
3823fi
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3825$as_echo "$ac_cv_prog_cc_g" >&6; }
3826if test "$ac_test_CFLAGS" = set; then
3827  CFLAGS=$ac_save_CFLAGS
3828elif test $ac_cv_prog_cc_g = yes; then
3829  if test "$GCC" = yes; then
3830    CFLAGS="-g -O2"
3831  else
3832    CFLAGS="-g"
3833  fi
3834else
3835  if test "$GCC" = yes; then
3836    CFLAGS="-O2"
3837  else
3838    CFLAGS=
3839  fi
3840fi
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3842$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3843if ${ac_cv_prog_cc_c89+:} false; then :
3844  $as_echo_n "(cached) " >&6
3845else
3846  ac_cv_prog_cc_c89=no
3847ac_save_CC=$CC
3848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850#include <stdarg.h>
3851#include <stdio.h>
3852struct stat;
3853/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3854struct buf { int x; };
3855FILE * (*rcsopen) (struct buf *, struct stat *, int);
3856static char *e (p, i)
3857     char **p;
3858     int i;
3859{
3860  return p[i];
3861}
3862static char *f (char * (*g) (char **, int), char **p, ...)
3863{
3864  char *s;
3865  va_list v;
3866  va_start (v,p);
3867  s = g (p, va_arg (v,int));
3868  va_end (v);
3869  return s;
3870}
3871
3872/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3873   function prototypes and stuff, but not '\xHH' hex character constants.
3874   These don't provoke an error unfortunately, instead are silently treated
3875   as 'x'.  The following induces an error, until -std is added to get
3876   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3877   array size at least.  It's necessary to write '\x00'==0 to get something
3878   that's true only with -std.  */
3879int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3880
3881/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3882   inside strings and character constants.  */
3883#define FOO(x) 'x'
3884int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3885
3886int test (int i, double x);
3887struct s1 {int (*f) (int a);};
3888struct s2 {int (*f) (double a);};
3889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3890int argc;
3891char **argv;
3892int
3893main ()
3894{
3895return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3896  ;
3897  return 0;
3898}
3899_ACEOF
3900for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3901	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3902do
3903  CC="$ac_save_CC $ac_arg"
3904  if ac_fn_c_try_compile "$LINENO"; then :
3905  ac_cv_prog_cc_c89=$ac_arg
3906fi
3907rm -f core conftest.err conftest.$ac_objext
3908  test "x$ac_cv_prog_cc_c89" != "xno" && break
3909done
3910rm -f conftest.$ac_ext
3911CC=$ac_save_CC
3912
3913fi
3914# AC_CACHE_VAL
3915case "x$ac_cv_prog_cc_c89" in
3916  x)
3917    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3918$as_echo "none needed" >&6; } ;;
3919  xno)
3920    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3921$as_echo "unsupported" >&6; } ;;
3922  *)
3923    CC="$CC $ac_cv_prog_cc_c89"
3924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3925$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3926esac
3927if test "x$ac_cv_prog_cc_c89" != xno; then :
3928
3929fi
3930
3931ac_ext=c
3932ac_cpp='$CPP $CPPFLAGS'
3933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936
3937ac_ext=c
3938ac_cpp='$CPP $CPPFLAGS'
3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3943$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3944if ${am_cv_prog_cc_c_o+:} false; then :
3945  $as_echo_n "(cached) " >&6
3946else
3947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948/* end confdefs.h.  */
3949
3950int
3951main ()
3952{
3953
3954  ;
3955  return 0;
3956}
3957_ACEOF
3958  # Make sure it works both with $CC and with simple cc.
3959  # Following AC_PROG_CC_C_O, we do the test twice because some
3960  # compilers refuse to overwrite an existing .o file with -o,
3961  # though they will create one.
3962  am_cv_prog_cc_c_o=yes
3963  for am_i in 1 2; do
3964    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3965   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3966   ac_status=$?
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } \
3969         && test -f conftest2.$ac_objext; then
3970      : OK
3971    else
3972      am_cv_prog_cc_c_o=no
3973      break
3974    fi
3975  done
3976  rm -f core conftest*
3977  unset am_i
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3980$as_echo "$am_cv_prog_cc_c_o" >&6; }
3981if test "$am_cv_prog_cc_c_o" != yes; then
3982   # Losing compiler, so override with the script.
3983   # FIXME: It is wrong to rewrite CC.
3984   # But if we don't then we get into trouble of one sort or another.
3985   # A longer-term fix would be to have automake use am__CC in this case,
3986   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3987   CC="$am_aux_dir/compile $CC"
3988fi
3989ac_ext=c
3990ac_cpp='$CPP $CPPFLAGS'
3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995
3996depcc="$CC"   am_compiler_list=
3997
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3999$as_echo_n "checking dependency style of $depcc... " >&6; }
4000if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4001  $as_echo_n "(cached) " >&6
4002else
4003  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4004  # We make a subdir and do the tests there.  Otherwise we can end up
4005  # making bogus files that we don't know about and never remove.  For
4006  # instance it was reported that on HP-UX the gcc test will end up
4007  # making a dummy file named 'D' -- because '-MD' means "put the output
4008  # in D".
4009  rm -rf conftest.dir
4010  mkdir conftest.dir
4011  # Copy depcomp to subdir because otherwise we won't find it if we're
4012  # using a relative directory.
4013  cp "$am_depcomp" conftest.dir
4014  cd conftest.dir
4015  # We will build objects and dependencies in a subdirectory because
4016  # it helps to detect inapplicable dependency modes.  For instance
4017  # both Tru64's cc and ICC support -MD to output dependencies as a
4018  # side effect of compilation, but ICC will put the dependencies in
4019  # the current directory while Tru64 will put them in the object
4020  # directory.
4021  mkdir sub
4022
4023  am_cv_CC_dependencies_compiler_type=none
4024  if test "$am_compiler_list" = ""; then
4025     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4026  fi
4027  am__universal=false
4028  case " $depcc " in #(
4029     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4030     esac
4031
4032  for depmode in $am_compiler_list; do
4033    # Setup a source with many dependencies, because some compilers
4034    # like to wrap large dependency lists on column 80 (with \), and
4035    # we should not choose a depcomp mode which is confused by this.
4036    #
4037    # We need to recreate these files for each test, as the compiler may
4038    # overwrite some of them when testing with obscure command lines.
4039    # This happens at least with the AIX C compiler.
4040    : > sub/conftest.c
4041    for i in 1 2 3 4 5 6; do
4042      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4043      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4044      # Solaris 10 /bin/sh.
4045      echo '/* dummy */' > sub/conftst$i.h
4046    done
4047    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4048
4049    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4050    # mode.  It turns out that the SunPro C++ compiler does not properly
4051    # handle '-M -o', and we need to detect this.  Also, some Intel
4052    # versions had trouble with output in subdirs.
4053    am__obj=sub/conftest.${OBJEXT-o}
4054    am__minus_obj="-o $am__obj"
4055    case $depmode in
4056    gcc)
4057      # This depmode causes a compiler race in universal mode.
4058      test "$am__universal" = false || continue
4059      ;;
4060    nosideeffect)
4061      # After this tag, mechanisms are not by side-effect, so they'll
4062      # only be used when explicitly requested.
4063      if test "x$enable_dependency_tracking" = xyes; then
4064	continue
4065      else
4066	break
4067      fi
4068      ;;
4069    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4070      # This compiler won't grok '-c -o', but also, the minuso test has
4071      # not run yet.  These depmodes are late enough in the game, and
4072      # so weak that their functioning should not be impacted.
4073      am__obj=conftest.${OBJEXT-o}
4074      am__minus_obj=
4075      ;;
4076    none) break ;;
4077    esac
4078    if depmode=$depmode \
4079       source=sub/conftest.c object=$am__obj \
4080       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4082         >/dev/null 2>conftest.err &&
4083       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4084       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4085       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4086       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4087      # icc doesn't choke on unknown options, it will just issue warnings
4088      # or remarks (even with -Werror).  So we grep stderr for any message
4089      # that says an option was ignored or not supported.
4090      # When given -MP, icc 7.0 and 7.1 complain thusly:
4091      #   icc: Command line warning: ignoring option '-M'; no argument required
4092      # The diagnosis changed in icc 8.0:
4093      #   icc: Command line remark: option '-MP' not supported
4094      if (grep 'ignoring option' conftest.err ||
4095          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4096        am_cv_CC_dependencies_compiler_type=$depmode
4097        break
4098      fi
4099    fi
4100  done
4101
4102  cd ..
4103  rm -rf conftest.dir
4104else
4105  am_cv_CC_dependencies_compiler_type=none
4106fi
4107
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4110$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4111CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4112
4113 if
4114  test "x$enable_dependency_tracking" != xno \
4115  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4116  am__fastdepCC_TRUE=
4117  am__fastdepCC_FALSE='#'
4118else
4119  am__fastdepCC_TRUE='#'
4120  am__fastdepCC_FALSE=
4121fi
4122
4123
4124
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4131$as_echo_n "checking how to run the C preprocessor... " >&6; }
4132# On Suns, sometimes $CPP names a directory.
4133if test -n "$CPP" && test -d "$CPP"; then
4134  CPP=
4135fi
4136if test -z "$CPP"; then
4137  if ${ac_cv_prog_CPP+:} false; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140      # Double quotes because CPP needs to be expanded
4141    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4142    do
4143      ac_preproc_ok=false
4144for ac_c_preproc_warn_flag in '' yes
4145do
4146  # Use a header file that comes with gcc, so configuring glibc
4147  # with a fresh cross-compiler works.
4148  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4149  # <limits.h> exists even on freestanding compilers.
4150  # On the NeXT, cc -E runs the code through the compiler's parser,
4151  # not just through cpp. "Syntax error" is here to catch this case.
4152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153/* end confdefs.h.  */
4154#ifdef __STDC__
4155# include <limits.h>
4156#else
4157# include <assert.h>
4158#endif
4159		     Syntax error
4160_ACEOF
4161if ac_fn_c_try_cpp "$LINENO"; then :
4162
4163else
4164  # Broken: fails on valid input.
4165continue
4166fi
4167rm -f conftest.err conftest.i conftest.$ac_ext
4168
4169  # OK, works on sane cases.  Now check whether nonexistent headers
4170  # can be detected and how.
4171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h.  */
4173#include <ac_nonexistent.h>
4174_ACEOF
4175if ac_fn_c_try_cpp "$LINENO"; then :
4176  # Broken: success on invalid input.
4177continue
4178else
4179  # Passes both tests.
4180ac_preproc_ok=:
4181break
4182fi
4183rm -f conftest.err conftest.i conftest.$ac_ext
4184
4185done
4186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4187rm -f conftest.i conftest.err conftest.$ac_ext
4188if $ac_preproc_ok; then :
4189  break
4190fi
4191
4192    done
4193    ac_cv_prog_CPP=$CPP
4194
4195fi
4196  CPP=$ac_cv_prog_CPP
4197else
4198  ac_cv_prog_CPP=$CPP
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4201$as_echo "$CPP" >&6; }
4202ac_preproc_ok=false
4203for ac_c_preproc_warn_flag in '' yes
4204do
4205  # Use a header file that comes with gcc, so configuring glibc
4206  # with a fresh cross-compiler works.
4207  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4208  # <limits.h> exists even on freestanding compilers.
4209  # On the NeXT, cc -E runs the code through the compiler's parser,
4210  # not just through cpp. "Syntax error" is here to catch this case.
4211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212/* end confdefs.h.  */
4213#ifdef __STDC__
4214# include <limits.h>
4215#else
4216# include <assert.h>
4217#endif
4218		     Syntax error
4219_ACEOF
4220if ac_fn_c_try_cpp "$LINENO"; then :
4221
4222else
4223  # Broken: fails on valid input.
4224continue
4225fi
4226rm -f conftest.err conftest.i conftest.$ac_ext
4227
4228  # OK, works on sane cases.  Now check whether nonexistent headers
4229  # can be detected and how.
4230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231/* end confdefs.h.  */
4232#include <ac_nonexistent.h>
4233_ACEOF
4234if ac_fn_c_try_cpp "$LINENO"; then :
4235  # Broken: success on invalid input.
4236continue
4237else
4238  # Passes both tests.
4239ac_preproc_ok=:
4240break
4241fi
4242rm -f conftest.err conftest.i conftest.$ac_ext
4243
4244done
4245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4246rm -f conftest.i conftest.err conftest.$ac_ext
4247if $ac_preproc_ok; then :
4248
4249else
4250  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4252as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4253See \`config.log' for more details" "$LINENO" 5; }
4254fi
4255
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4264$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4265if ${ac_cv_path_GREP+:} false; then :
4266  $as_echo_n "(cached) " >&6
4267else
4268  if test -z "$GREP"; then
4269  ac_path_GREP_found=false
4270  # Loop through the user's path and test for each of PROGNAME-LIST
4271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4273do
4274  IFS=$as_save_IFS
4275  test -z "$as_dir" && as_dir=.
4276    for ac_prog in grep ggrep; do
4277    for ac_exec_ext in '' $ac_executable_extensions; do
4278      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4279      as_fn_executable_p "$ac_path_GREP" || continue
4280# Check for GNU ac_path_GREP and select it if it is found.
4281  # Check for GNU $ac_path_GREP
4282case `"$ac_path_GREP" --version 2>&1` in
4283*GNU*)
4284  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4285*)
4286  ac_count=0
4287  $as_echo_n 0123456789 >"conftest.in"
4288  while :
4289  do
4290    cat "conftest.in" "conftest.in" >"conftest.tmp"
4291    mv "conftest.tmp" "conftest.in"
4292    cp "conftest.in" "conftest.nl"
4293    $as_echo 'GREP' >> "conftest.nl"
4294    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4295    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4296    as_fn_arith $ac_count + 1 && ac_count=$as_val
4297    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4298      # Best one so far, save it but keep looking for a better one
4299      ac_cv_path_GREP="$ac_path_GREP"
4300      ac_path_GREP_max=$ac_count
4301    fi
4302    # 10*(2^10) chars as input seems more than enough
4303    test $ac_count -gt 10 && break
4304  done
4305  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4306esac
4307
4308      $ac_path_GREP_found && break 3
4309    done
4310  done
4311  done
4312IFS=$as_save_IFS
4313  if test -z "$ac_cv_path_GREP"; then
4314    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4315  fi
4316else
4317  ac_cv_path_GREP=$GREP
4318fi
4319
4320fi
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4322$as_echo "$ac_cv_path_GREP" >&6; }
4323 GREP="$ac_cv_path_GREP"
4324
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4327$as_echo_n "checking for egrep... " >&6; }
4328if ${ac_cv_path_EGREP+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4332   then ac_cv_path_EGREP="$GREP -E"
4333   else
4334     if test -z "$EGREP"; then
4335  ac_path_EGREP_found=false
4336  # Loop through the user's path and test for each of PROGNAME-LIST
4337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4339do
4340  IFS=$as_save_IFS
4341  test -z "$as_dir" && as_dir=.
4342    for ac_prog in egrep; do
4343    for ac_exec_ext in '' $ac_executable_extensions; do
4344      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4345      as_fn_executable_p "$ac_path_EGREP" || continue
4346# Check for GNU ac_path_EGREP and select it if it is found.
4347  # Check for GNU $ac_path_EGREP
4348case `"$ac_path_EGREP" --version 2>&1` in
4349*GNU*)
4350  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4351*)
4352  ac_count=0
4353  $as_echo_n 0123456789 >"conftest.in"
4354  while :
4355  do
4356    cat "conftest.in" "conftest.in" >"conftest.tmp"
4357    mv "conftest.tmp" "conftest.in"
4358    cp "conftest.in" "conftest.nl"
4359    $as_echo 'EGREP' >> "conftest.nl"
4360    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362    as_fn_arith $ac_count + 1 && ac_count=$as_val
4363    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4364      # Best one so far, save it but keep looking for a better one
4365      ac_cv_path_EGREP="$ac_path_EGREP"
4366      ac_path_EGREP_max=$ac_count
4367    fi
4368    # 10*(2^10) chars as input seems more than enough
4369    test $ac_count -gt 10 && break
4370  done
4371  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4372esac
4373
4374      $ac_path_EGREP_found && break 3
4375    done
4376  done
4377  done
4378IFS=$as_save_IFS
4379  if test -z "$ac_cv_path_EGREP"; then
4380    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4381  fi
4382else
4383  ac_cv_path_EGREP=$EGREP
4384fi
4385
4386   fi
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4389$as_echo "$ac_cv_path_EGREP" >&6; }
4390 EGREP="$ac_cv_path_EGREP"
4391
4392
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4394$as_echo_n "checking for ANSI C header files... " >&6; }
4395if ${ac_cv_header_stdc+:} false; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h.  */
4400#include <stdlib.h>
4401#include <stdarg.h>
4402#include <string.h>
4403#include <float.h>
4404
4405int
4406main ()
4407{
4408
4409  ;
4410  return 0;
4411}
4412_ACEOF
4413if ac_fn_c_try_compile "$LINENO"; then :
4414  ac_cv_header_stdc=yes
4415else
4416  ac_cv_header_stdc=no
4417fi
4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419
4420if test $ac_cv_header_stdc = yes; then
4421  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423/* end confdefs.h.  */
4424#include <string.h>
4425
4426_ACEOF
4427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4428  $EGREP "memchr" >/dev/null 2>&1; then :
4429
4430else
4431  ac_cv_header_stdc=no
4432fi
4433rm -f conftest*
4434
4435fi
4436
4437if test $ac_cv_header_stdc = yes; then
4438  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440/* end confdefs.h.  */
4441#include <stdlib.h>
4442
4443_ACEOF
4444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445  $EGREP "free" >/dev/null 2>&1; then :
4446
4447else
4448  ac_cv_header_stdc=no
4449fi
4450rm -f conftest*
4451
4452fi
4453
4454if test $ac_cv_header_stdc = yes; then
4455  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4456  if test "$cross_compiling" = yes; then :
4457  :
4458else
4459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460/* end confdefs.h.  */
4461#include <ctype.h>
4462#include <stdlib.h>
4463#if ((' ' & 0x0FF) == 0x020)
4464# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4465# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4466#else
4467# define ISLOWER(c) \
4468		   (('a' <= (c) && (c) <= 'i') \
4469		     || ('j' <= (c) && (c) <= 'r') \
4470		     || ('s' <= (c) && (c) <= 'z'))
4471# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4472#endif
4473
4474#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4475int
4476main ()
4477{
4478  int i;
4479  for (i = 0; i < 256; i++)
4480    if (XOR (islower (i), ISLOWER (i))
4481	|| toupper (i) != TOUPPER (i))
4482      return 2;
4483  return 0;
4484}
4485_ACEOF
4486if ac_fn_c_try_run "$LINENO"; then :
4487
4488else
4489  ac_cv_header_stdc=no
4490fi
4491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4492  conftest.$ac_objext conftest.beam conftest.$ac_ext
4493fi
4494
4495fi
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4498$as_echo "$ac_cv_header_stdc" >&6; }
4499if test $ac_cv_header_stdc = yes; then
4500
4501$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4502
4503fi
4504
4505# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4506for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4507		  inttypes.h stdint.h unistd.h
4508do :
4509  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4510ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4511"
4512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4513  cat >>confdefs.h <<_ACEOF
4514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4515_ACEOF
4516
4517fi
4518
4519done
4520
4521
4522
4523  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4524if test "x$ac_cv_header_minix_config_h" = xyes; then :
4525  MINIX=yes
4526else
4527  MINIX=
4528fi
4529
4530
4531  if test "$MINIX" = yes; then
4532
4533$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4534
4535
4536$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4537
4538
4539$as_echo "#define _MINIX 1" >>confdefs.h
4540
4541  fi
4542
4543
4544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4545$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4546if ${ac_cv_safe_to_define___extensions__+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551
4552#         define __EXTENSIONS__ 1
4553          $ac_includes_default
4554int
4555main ()
4556{
4557
4558  ;
4559  return 0;
4560}
4561_ACEOF
4562if ac_fn_c_try_compile "$LINENO"; then :
4563  ac_cv_safe_to_define___extensions__=yes
4564else
4565  ac_cv_safe_to_define___extensions__=no
4566fi
4567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4570$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4571  test $ac_cv_safe_to_define___extensions__ = yes &&
4572    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4573
4574  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4575
4576  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4577
4578  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4579
4580  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4581
4582
4583
4584# Initialize libtool
4585# Check whether --enable-static was given.
4586if test "${enable_static+set}" = set; then :
4587  enableval=$enable_static; p=${PACKAGE-default}
4588    case $enableval in
4589    yes) enable_static=yes ;;
4590    no) enable_static=no ;;
4591    *)
4592     enable_static=no
4593      # Look at the argument we got.  We use all the common list separators.
4594      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4595      for pkg in $enableval; do
4596	IFS=$lt_save_ifs
4597	if test "X$pkg" = "X$p"; then
4598	  enable_static=yes
4599	fi
4600      done
4601      IFS=$lt_save_ifs
4602      ;;
4603    esac
4604else
4605  enable_static=no
4606fi
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616case `pwd` in
4617  *\ * | *\	*)
4618    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4619$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4620esac
4621
4622
4623
4624macro_version='2.4.6.42-b88ce'
4625macro_revision='2.4.6.42'
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639ltmain=$ac_aux_dir/ltmain.sh
4640
4641# Make sure we can run config.sub.
4642$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4643  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4644
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4646$as_echo_n "checking build system type... " >&6; }
4647if ${ac_cv_build+:} false; then :
4648  $as_echo_n "(cached) " >&6
4649else
4650  ac_build_alias=$build_alias
4651test "x$ac_build_alias" = x &&
4652  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4653test "x$ac_build_alias" = x &&
4654  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4655ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4656  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4657
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4660$as_echo "$ac_cv_build" >&6; }
4661case $ac_cv_build in
4662*-*-*) ;;
4663*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4664esac
4665build=$ac_cv_build
4666ac_save_IFS=$IFS; IFS='-'
4667set x $ac_cv_build
4668shift
4669build_cpu=$1
4670build_vendor=$2
4671shift; shift
4672# Remember, the first character of IFS is used to create $*,
4673# except with old shells:
4674build_os=$*
4675IFS=$ac_save_IFS
4676case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4677
4678
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4680$as_echo_n "checking host system type... " >&6; }
4681if ${ac_cv_host+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  if test "x$host_alias" = x; then
4685  ac_cv_host=$ac_cv_build
4686else
4687  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4688    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4689fi
4690
4691fi
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4693$as_echo "$ac_cv_host" >&6; }
4694case $ac_cv_host in
4695*-*-*) ;;
4696*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4697esac
4698host=$ac_cv_host
4699ac_save_IFS=$IFS; IFS='-'
4700set x $ac_cv_host
4701shift
4702host_cpu=$1
4703host_vendor=$2
4704shift; shift
4705# Remember, the first character of IFS is used to create $*,
4706# except with old shells:
4707host_os=$*
4708IFS=$ac_save_IFS
4709case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4710
4711
4712# Backslashify metacharacters that are still active within
4713# double-quoted strings.
4714sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4715
4716# Same as above, but do not quote variable references.
4717double_quote_subst='s/\(["`\\]\)/\\\1/g'
4718
4719# Sed substitution to delay expansion of an escaped shell variable in a
4720# double_quote_subst'ed string.
4721delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4722
4723# Sed substitution to delay expansion of an escaped single quote.
4724delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4725
4726# Sed substitution to avoid accidental globbing in evaled expressions
4727no_glob_subst='s/\*/\\\*/g'
4728
4729ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4730ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4731ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4732
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4734$as_echo_n "checking how to print strings... " >&6; }
4735# Test print first, because it will be a builtin if present.
4736if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4737   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4738  ECHO='print -r --'
4739elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4740  ECHO='printf %s\n'
4741else
4742  # Use this function as a fallback that always works.
4743  func_fallback_echo ()
4744  {
4745    eval 'cat <<_LTECHO_EOF
4746$1
4747_LTECHO_EOF'
4748  }
4749  ECHO='func_fallback_echo'
4750fi
4751
4752# func_echo_all arg...
4753# Invoke $ECHO with all args, space-separated.
4754func_echo_all ()
4755{
4756    $ECHO ""
4757}
4758
4759case $ECHO in
4760  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4761$as_echo "printf" >&6; } ;;
4762  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4763$as_echo "print -r" >&6; } ;;
4764  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4765$as_echo "cat" >&6; } ;;
4766esac
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4782$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4783if ${ac_cv_path_SED+:} false; then :
4784  $as_echo_n "(cached) " >&6
4785else
4786            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4787     for ac_i in 1 2 3 4 5 6 7; do
4788       ac_script="$ac_script$as_nl$ac_script"
4789     done
4790     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4791     { ac_script=; unset ac_script;}
4792     if test -z "$SED"; then
4793  ac_path_SED_found=false
4794  # Loop through the user's path and test for each of PROGNAME-LIST
4795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798  IFS=$as_save_IFS
4799  test -z "$as_dir" && as_dir=.
4800    for ac_prog in sed gsed; do
4801    for ac_exec_ext in '' $ac_executable_extensions; do
4802      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4803      as_fn_executable_p "$ac_path_SED" || continue
4804# Check for GNU ac_path_SED and select it if it is found.
4805  # Check for GNU $ac_path_SED
4806case `"$ac_path_SED" --version 2>&1` in
4807*GNU*)
4808  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4809*)
4810  ac_count=0
4811  $as_echo_n 0123456789 >"conftest.in"
4812  while :
4813  do
4814    cat "conftest.in" "conftest.in" >"conftest.tmp"
4815    mv "conftest.tmp" "conftest.in"
4816    cp "conftest.in" "conftest.nl"
4817    $as_echo '' >> "conftest.nl"
4818    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820    as_fn_arith $ac_count + 1 && ac_count=$as_val
4821    if test $ac_count -gt ${ac_path_SED_max-0}; then
4822      # Best one so far, save it but keep looking for a better one
4823      ac_cv_path_SED="$ac_path_SED"
4824      ac_path_SED_max=$ac_count
4825    fi
4826    # 10*(2^10) chars as input seems more than enough
4827    test $ac_count -gt 10 && break
4828  done
4829  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830esac
4831
4832      $ac_path_SED_found && break 3
4833    done
4834  done
4835  done
4836IFS=$as_save_IFS
4837  if test -z "$ac_cv_path_SED"; then
4838    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4839  fi
4840else
4841  ac_cv_path_SED=$SED
4842fi
4843
4844fi
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4846$as_echo "$ac_cv_path_SED" >&6; }
4847 SED="$ac_cv_path_SED"
4848  rm -f conftest.sed
4849
4850test -z "$SED" && SED=sed
4851Xsed="$SED -e 1s/^X//"
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4864$as_echo_n "checking for fgrep... " >&6; }
4865if ${ac_cv_path_FGREP+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4869   then ac_cv_path_FGREP="$GREP -F"
4870   else
4871     if test -z "$FGREP"; then
4872  ac_path_FGREP_found=false
4873  # Loop through the user's path and test for each of PROGNAME-LIST
4874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4876do
4877  IFS=$as_save_IFS
4878  test -z "$as_dir" && as_dir=.
4879    for ac_prog in fgrep; do
4880    for ac_exec_ext in '' $ac_executable_extensions; do
4881      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4882      as_fn_executable_p "$ac_path_FGREP" || continue
4883# Check for GNU ac_path_FGREP and select it if it is found.
4884  # Check for GNU $ac_path_FGREP
4885case `"$ac_path_FGREP" --version 2>&1` in
4886*GNU*)
4887  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4888*)
4889  ac_count=0
4890  $as_echo_n 0123456789 >"conftest.in"
4891  while :
4892  do
4893    cat "conftest.in" "conftest.in" >"conftest.tmp"
4894    mv "conftest.tmp" "conftest.in"
4895    cp "conftest.in" "conftest.nl"
4896    $as_echo 'FGREP' >> "conftest.nl"
4897    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899    as_fn_arith $ac_count + 1 && ac_count=$as_val
4900    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4901      # Best one so far, save it but keep looking for a better one
4902      ac_cv_path_FGREP="$ac_path_FGREP"
4903      ac_path_FGREP_max=$ac_count
4904    fi
4905    # 10*(2^10) chars as input seems more than enough
4906    test $ac_count -gt 10 && break
4907  done
4908  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909esac
4910
4911      $ac_path_FGREP_found && break 3
4912    done
4913  done
4914  done
4915IFS=$as_save_IFS
4916  if test -z "$ac_cv_path_FGREP"; then
4917    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918  fi
4919else
4920  ac_cv_path_FGREP=$FGREP
4921fi
4922
4923   fi
4924fi
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4926$as_echo "$ac_cv_path_FGREP" >&6; }
4927 FGREP="$ac_cv_path_FGREP"
4928
4929
4930test -z "$GREP" && GREP=grep
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950# Check whether --with-gnu-ld was given.
4951if test "${with_gnu_ld+set}" = set; then :
4952  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4953else
4954  with_gnu_ld=no
4955fi
4956
4957ac_prog=ld
4958if test yes = "$GCC"; then
4959  # Check if gcc -print-prog-name=ld gives a path.
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4961$as_echo_n "checking for ld used by $CC... " >&6; }
4962  case $host in
4963  *-*-mingw*)
4964    # gcc leaves a trailing carriage return, which upsets mingw
4965    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4966  *)
4967    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4968  esac
4969  case $ac_prog in
4970    # Accept absolute paths.
4971    [\\/]* | ?:[\\/]*)
4972      re_direlt='/[^/][^/]*/\.\./'
4973      # Canonicalize the pathname of ld
4974      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4975      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4976	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4977      done
4978      test -z "$LD" && LD=$ac_prog
4979      ;;
4980  "")
4981    # If it fails, then pretend we aren't using GCC.
4982    ac_prog=ld
4983    ;;
4984  *)
4985    # If it is relative, then search for the first ld in PATH.
4986    with_gnu_ld=unknown
4987    ;;
4988  esac
4989elif test yes = "$with_gnu_ld"; then
4990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4991$as_echo_n "checking for GNU ld... " >&6; }
4992else
4993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4994$as_echo_n "checking for non-GNU ld... " >&6; }
4995fi
4996if ${lt_cv_path_LD+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  if test -z "$LD"; then
5000  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5001  for ac_dir in $PATH; do
5002    IFS=$lt_save_ifs
5003    test -z "$ac_dir" && ac_dir=.
5004    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5005      lt_cv_path_LD=$ac_dir/$ac_prog
5006      # Check to see if the program is GNU ld.  I'd rather use --version,
5007      # but apparently some variants of GNU ld only accept -v.
5008      # Break only if it was the GNU/non-GNU ld that we prefer.
5009      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5010      *GNU* | *'with BFD'*)
5011	test no != "$with_gnu_ld" && break
5012	;;
5013      *)
5014	test yes != "$with_gnu_ld" && break
5015	;;
5016      esac
5017    fi
5018  done
5019  IFS=$lt_save_ifs
5020else
5021  lt_cv_path_LD=$LD # Let the user override the test with a path.
5022fi
5023fi
5024
5025LD=$lt_cv_path_LD
5026if test -n "$LD"; then
5027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5028$as_echo "$LD" >&6; }
5029else
5030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031$as_echo "no" >&6; }
5032fi
5033test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5035$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5036if ${lt_cv_prog_gnu_ld+:} false; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5040case `$LD -v 2>&1 </dev/null` in
5041*GNU* | *'with BFD'*)
5042  lt_cv_prog_gnu_ld=yes
5043  ;;
5044*)
5045  lt_cv_prog_gnu_ld=no
5046  ;;
5047esac
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5050$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5051with_gnu_ld=$lt_cv_prog_gnu_ld
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5062$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5063if ${lt_cv_path_NM+:} false; then :
5064  $as_echo_n "(cached) " >&6
5065else
5066  if test -n "$NM"; then
5067  # Let the user override the test.
5068  lt_cv_path_NM=$NM
5069else
5070  lt_nm_to_check=${ac_tool_prefix}nm
5071  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5072    lt_nm_to_check="$lt_nm_to_check nm"
5073  fi
5074  for lt_tmp_nm in $lt_nm_to_check; do
5075    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5076    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5077      IFS=$lt_save_ifs
5078      test -z "$ac_dir" && ac_dir=.
5079      tmp_nm=$ac_dir/$lt_tmp_nm
5080      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5081	# Check to see if the nm accepts a BSD-compat flag.
5082	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5083	#   nm: unknown option "B" ignored
5084	# Tru64's nm complains that /dev/null is an invalid object file
5085	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5086	case $build_os in
5087	mingw*) lt_bad_file=conftest.nm/nofile ;;
5088	*) lt_bad_file=/dev/null ;;
5089	esac
5090	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5091	*$lt_bad_file* | *'Invalid file or object type'*)
5092	  lt_cv_path_NM="$tmp_nm -B"
5093	  break 2
5094	  ;;
5095	*)
5096	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5097	  */dev/null*)
5098	    lt_cv_path_NM="$tmp_nm -p"
5099	    break 2
5100	    ;;
5101	  *)
5102	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5103	    continue # so that we can try to find one that supports BSD flags
5104	    ;;
5105	  esac
5106	  ;;
5107	esac
5108      fi
5109    done
5110    IFS=$lt_save_ifs
5111  done
5112  : ${lt_cv_path_NM=no}
5113fi
5114fi
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5116$as_echo "$lt_cv_path_NM" >&6; }
5117if test no != "$lt_cv_path_NM"; then
5118  NM=$lt_cv_path_NM
5119else
5120  # Didn't find any BSD compatible name lister, look for dumpbin.
5121  if test -n "$DUMPBIN"; then :
5122    # Let the user override the test.
5123  else
5124    if test -n "$ac_tool_prefix"; then
5125  for ac_prog in dumpbin "link -dump"
5126  do
5127    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5128set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130$as_echo_n "checking for $ac_word... " >&6; }
5131if ${ac_cv_prog_DUMPBIN+:} false; then :
5132  $as_echo_n "(cached) " >&6
5133else
5134  if test -n "$DUMPBIN"; then
5135  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5136else
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140  IFS=$as_save_IFS
5141  test -z "$as_dir" && as_dir=.
5142    for ac_exec_ext in '' $ac_executable_extensions; do
5143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146    break 2
5147  fi
5148done
5149  done
5150IFS=$as_save_IFS
5151
5152fi
5153fi
5154DUMPBIN=$ac_cv_prog_DUMPBIN
5155if test -n "$DUMPBIN"; then
5156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5157$as_echo "$DUMPBIN" >&6; }
5158else
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160$as_echo "no" >&6; }
5161fi
5162
5163
5164    test -n "$DUMPBIN" && break
5165  done
5166fi
5167if test -z "$DUMPBIN"; then
5168  ac_ct_DUMPBIN=$DUMPBIN
5169  for ac_prog in dumpbin "link -dump"
5170do
5171  # Extract the first word of "$ac_prog", so it can be a program name with args.
5172set dummy $ac_prog; ac_word=$2
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174$as_echo_n "checking for $ac_word... " >&6; }
5175if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  if test -n "$ac_ct_DUMPBIN"; then
5179  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186    for ac_exec_ext in '' $ac_executable_extensions; do
5187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190    break 2
5191  fi
5192done
5193  done
5194IFS=$as_save_IFS
5195
5196fi
5197fi
5198ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5199if test -n "$ac_ct_DUMPBIN"; then
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5201$as_echo "$ac_ct_DUMPBIN" >&6; }
5202else
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204$as_echo "no" >&6; }
5205fi
5206
5207
5208  test -n "$ac_ct_DUMPBIN" && break
5209done
5210
5211  if test "x$ac_ct_DUMPBIN" = x; then
5212    DUMPBIN=":"
5213  else
5214    case $cross_compiling:$ac_tool_warned in
5215yes:)
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218ac_tool_warned=yes ;;
5219esac
5220    DUMPBIN=$ac_ct_DUMPBIN
5221  fi
5222fi
5223
5224    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5225    *COFF*)
5226      DUMPBIN="$DUMPBIN -symbols -headers"
5227      ;;
5228    *)
5229      DUMPBIN=:
5230      ;;
5231    esac
5232  fi
5233
5234  if test : != "$DUMPBIN"; then
5235    NM=$DUMPBIN
5236  fi
5237fi
5238test -z "$NM" && NM=nm
5239
5240
5241
5242
5243
5244
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5246$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5247if ${lt_cv_nm_interface+:} false; then :
5248  $as_echo_n "(cached) " >&6
5249else
5250  lt_cv_nm_interface="BSD nm"
5251  echo "int some_variable = 0;" > conftest.$ac_ext
5252  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5253  (eval "$ac_compile" 2>conftest.err)
5254  cat conftest.err >&5
5255  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5256  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5257  cat conftest.err >&5
5258  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5259  cat conftest.out >&5
5260  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5261    lt_cv_nm_interface="MS dumpbin"
5262  fi
5263  rm -f conftest*
5264fi
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5266$as_echo "$lt_cv_nm_interface" >&6; }
5267
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5269$as_echo_n "checking whether ln -s works... " >&6; }
5270LN_S=$as_ln_s
5271if test "$LN_S" = "ln -s"; then
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273$as_echo "yes" >&6; }
5274else
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5276$as_echo "no, using $LN_S" >&6; }
5277fi
5278
5279# find the maximum length of command line arguments
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5281$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5282if ${lt_cv_sys_max_cmd_len+:} false; then :
5283  $as_echo_n "(cached) " >&6
5284else
5285    i=0
5286  teststring=ABCD
5287
5288  case $build_os in
5289  msdosdjgpp*)
5290    # On DJGPP, this test can blow up pretty badly due to problems in libc
5291    # (any single argument exceeding 2000 bytes causes a buffer overrun
5292    # during glob expansion).  Even if it were fixed, the result of this
5293    # check would be larger than it should be.
5294    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5295    ;;
5296
5297  gnu*)
5298    # Under GNU Hurd, this test is not required because there is
5299    # no limit to the length of command line arguments.
5300    # Libtool will interpret -1 as no limit whatsoever
5301    lt_cv_sys_max_cmd_len=-1;
5302    ;;
5303
5304  cygwin* | mingw* | cegcc*)
5305    # On Win9x/ME, this test blows up -- it succeeds, but takes
5306    # about 5 minutes as the teststring grows exponentially.
5307    # Worse, since 9x/ME are not pre-emptively multitasking,
5308    # you end up with a "frozen" computer, even though with patience
5309    # the test eventually succeeds (with a max line length of 256k).
5310    # Instead, let's just punt: use the minimum linelength reported by
5311    # all of the supported platforms: 8192 (on NT/2K/XP).
5312    lt_cv_sys_max_cmd_len=8192;
5313    ;;
5314
5315  mint*)
5316    # On MiNT this can take a long time and run out of memory.
5317    lt_cv_sys_max_cmd_len=8192;
5318    ;;
5319
5320  amigaos*)
5321    # On AmigaOS with pdksh, this test takes hours, literally.
5322    # So we just punt and use a minimum line length of 8192.
5323    lt_cv_sys_max_cmd_len=8192;
5324    ;;
5325
5326  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5327    # This has been around since 386BSD, at least.  Likely further.
5328    if test -x /sbin/sysctl; then
5329      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5330    elif test -x /usr/sbin/sysctl; then
5331      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5332    else
5333      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5334    fi
5335    # And add a safety zone
5336    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5337    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5338    ;;
5339
5340  interix*)
5341    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5342    lt_cv_sys_max_cmd_len=196608
5343    ;;
5344
5345  os2*)
5346    # The test takes a long time on OS/2.
5347    lt_cv_sys_max_cmd_len=8192
5348    ;;
5349
5350  osf*)
5351    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5352    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5353    # nice to cause kernel panics so lets avoid the loop below.
5354    # First set a reasonable default.
5355    lt_cv_sys_max_cmd_len=16384
5356    #
5357    if test -x /sbin/sysconfig; then
5358      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5359        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5360      esac
5361    fi
5362    ;;
5363  sco3.2v5*)
5364    lt_cv_sys_max_cmd_len=102400
5365    ;;
5366  sysv5* | sco5v6* | sysv4.2uw2*)
5367    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5368    if test -n "$kargmax"; then
5369      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5370    else
5371      lt_cv_sys_max_cmd_len=32768
5372    fi
5373    ;;
5374  *)
5375    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5376    if test -n "$lt_cv_sys_max_cmd_len" && \
5377       test undefined != "$lt_cv_sys_max_cmd_len"; then
5378      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5379      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5380    else
5381      # Make teststring a little bigger before we do anything with it.
5382      # a 1K string should be a reasonable start.
5383      for i in 1 2 3 4 5 6 7 8; do
5384        teststring=$teststring$teststring
5385      done
5386      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5387      # If test is not a shell built-in, we'll probably end up computing a
5388      # maximum length that is only half of the actual maximum length, but
5389      # we can't tell.
5390      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5391	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5392	      test 17 != "$i" # 1/2 MB should be enough
5393      do
5394        i=`expr $i + 1`
5395        teststring=$teststring$teststring
5396      done
5397      # Only check the string length outside the loop.
5398      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5399      teststring=
5400      # Add a significant safety factor because C++ compilers can tack on
5401      # massive amounts of additional arguments before passing them to the
5402      # linker.  It appears as though 1/2 is a usable value.
5403      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5404    fi
5405    ;;
5406  esac
5407
5408fi
5409
5410if test -n "$lt_cv_sys_max_cmd_len"; then
5411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5412$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5413else
5414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5415$as_echo "none" >&6; }
5416fi
5417max_cmd_len=$lt_cv_sys_max_cmd_len
5418
5419
5420
5421
5422
5423
5424: ${CP="cp -f"}
5425: ${MV="mv -f"}
5426: ${RM="rm -f"}
5427
5428if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5429  lt_unset=unset
5430else
5431  lt_unset=false
5432fi
5433
5434
5435
5436
5437
5438# test EBCDIC or ASCII
5439case `echo X|tr X '\101'` in
5440 A) # ASCII based system
5441    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5442  lt_SP2NL='tr \040 \012'
5443  lt_NL2SP='tr \015\012 \040\040'
5444  ;;
5445 *) # EBCDIC based system
5446  lt_SP2NL='tr \100 \n'
5447  lt_NL2SP='tr \r\n \100\100'
5448  ;;
5449esac
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5460$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5461if ${lt_cv_to_host_file_cmd+:} false; then :
5462  $as_echo_n "(cached) " >&6
5463else
5464  case $host in
5465  *-*-mingw* )
5466    case $build in
5467      *-*-mingw* ) # actually msys
5468        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5469        ;;
5470      *-*-cygwin* )
5471        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5472        ;;
5473      * ) # otherwise, assume *nix
5474        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5475        ;;
5476    esac
5477    ;;
5478  *-*-cygwin* )
5479    case $build in
5480      *-*-mingw* ) # actually msys
5481        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5482        ;;
5483      *-*-cygwin* )
5484        lt_cv_to_host_file_cmd=func_convert_file_noop
5485        ;;
5486      * ) # otherwise, assume *nix
5487        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5488        ;;
5489    esac
5490    ;;
5491  * ) # unhandled hosts (and "normal" native builds)
5492    lt_cv_to_host_file_cmd=func_convert_file_noop
5493    ;;
5494esac
5495
5496fi
5497
5498to_host_file_cmd=$lt_cv_to_host_file_cmd
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5500$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5501
5502
5503
5504
5505
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5507$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5508if ${lt_cv_to_tool_file_cmd+:} false; then :
5509  $as_echo_n "(cached) " >&6
5510else
5511  #assume ordinary cross tools, or native build.
5512lt_cv_to_tool_file_cmd=func_convert_file_noop
5513case $host in
5514  *-*-mingw* )
5515    case $build in
5516      *-*-mingw* ) # actually msys
5517        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5518        ;;
5519    esac
5520    ;;
5521esac
5522
5523fi
5524
5525to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5527$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5528
5529
5530
5531
5532
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5534$as_echo_n "checking for $LD option to reload object files... " >&6; }
5535if ${lt_cv_ld_reload_flag+:} false; then :
5536  $as_echo_n "(cached) " >&6
5537else
5538  lt_cv_ld_reload_flag='-r'
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5541$as_echo "$lt_cv_ld_reload_flag" >&6; }
5542reload_flag=$lt_cv_ld_reload_flag
5543case $reload_flag in
5544"" | " "*) ;;
5545*) reload_flag=" $reload_flag" ;;
5546esac
5547reload_cmds='$LD$reload_flag -o $output$reload_objs'
5548case $host_os in
5549  cygwin* | mingw* | pw32* | cegcc*)
5550    if test yes != "$GCC"; then
5551      reload_cmds=false
5552    fi
5553    ;;
5554  darwin*)
5555    if test yes = "$GCC"; then
5556      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5557    else
5558      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5559    fi
5560    ;;
5561esac
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571if test -n "$ac_tool_prefix"; then
5572  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5573set dummy ${ac_tool_prefix}objdump; ac_word=$2
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575$as_echo_n "checking for $ac_word... " >&6; }
5576if ${ac_cv_prog_OBJDUMP+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  if test -n "$OBJDUMP"; then
5580  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5581else
5582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583for as_dir in $PATH
5584do
5585  IFS=$as_save_IFS
5586  test -z "$as_dir" && as_dir=.
5587    for ac_exec_ext in '' $ac_executable_extensions; do
5588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591    break 2
5592  fi
5593done
5594  done
5595IFS=$as_save_IFS
5596
5597fi
5598fi
5599OBJDUMP=$ac_cv_prog_OBJDUMP
5600if test -n "$OBJDUMP"; then
5601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5602$as_echo "$OBJDUMP" >&6; }
5603else
5604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605$as_echo "no" >&6; }
5606fi
5607
5608
5609fi
5610if test -z "$ac_cv_prog_OBJDUMP"; then
5611  ac_ct_OBJDUMP=$OBJDUMP
5612  # Extract the first word of "objdump", so it can be a program name with args.
5613set dummy objdump; ac_word=$2
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615$as_echo_n "checking for $ac_word... " >&6; }
5616if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5617  $as_echo_n "(cached) " >&6
5618else
5619  if test -n "$ac_ct_OBJDUMP"; then
5620  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5621else
5622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623for as_dir in $PATH
5624do
5625  IFS=$as_save_IFS
5626  test -z "$as_dir" && as_dir=.
5627    for ac_exec_ext in '' $ac_executable_extensions; do
5628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631    break 2
5632  fi
5633done
5634  done
5635IFS=$as_save_IFS
5636
5637fi
5638fi
5639ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5640if test -n "$ac_ct_OBJDUMP"; then
5641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5642$as_echo "$ac_ct_OBJDUMP" >&6; }
5643else
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645$as_echo "no" >&6; }
5646fi
5647
5648  if test "x$ac_ct_OBJDUMP" = x; then
5649    OBJDUMP="false"
5650  else
5651    case $cross_compiling:$ac_tool_warned in
5652yes:)
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655ac_tool_warned=yes ;;
5656esac
5657    OBJDUMP=$ac_ct_OBJDUMP
5658  fi
5659else
5660  OBJDUMP="$ac_cv_prog_OBJDUMP"
5661fi
5662
5663test -z "$OBJDUMP" && OBJDUMP=objdump
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5674$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5675if ${lt_cv_deplibs_check_method+:} false; then :
5676  $as_echo_n "(cached) " >&6
5677else
5678  lt_cv_file_magic_cmd='$MAGIC_CMD'
5679lt_cv_file_magic_test_file=
5680lt_cv_deplibs_check_method='unknown'
5681# Need to set the preceding variable on all platforms that support
5682# interlibrary dependencies.
5683# 'none' -- dependencies not supported.
5684# 'unknown' -- same as none, but documents that we really don't know.
5685# 'pass_all' -- all dependencies passed with no checks.
5686# 'test_compile' -- check by making test program.
5687# 'file_magic [[regex]]' -- check by looking for files in library path
5688# that responds to the $file_magic_cmd with a given extended regex.
5689# If you have 'file' or equivalent on your system and you're not sure
5690# whether 'pass_all' will *always* work, you probably want this one.
5691
5692case $host_os in
5693aix[4-9]*)
5694  lt_cv_deplibs_check_method=pass_all
5695  ;;
5696
5697beos*)
5698  lt_cv_deplibs_check_method=pass_all
5699  ;;
5700
5701bsdi[45]*)
5702  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5703  lt_cv_file_magic_cmd='/usr/bin/file -L'
5704  lt_cv_file_magic_test_file=/shlib/libc.so
5705  ;;
5706
5707cygwin*)
5708  # func_win32_libid is a shell function defined in ltmain.sh
5709  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5710  lt_cv_file_magic_cmd='func_win32_libid'
5711  ;;
5712
5713mingw* | pw32*)
5714  # Base MSYS/MinGW do not provide the 'file' command needed by
5715  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5716  # unless we find 'file', for example because we are cross-compiling.
5717  if ( file / ) >/dev/null 2>&1; then
5718    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5719    lt_cv_file_magic_cmd='func_win32_libid'
5720  else
5721    # Keep this pattern in sync with the one in func_win32_libid.
5722    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5723    lt_cv_file_magic_cmd='$OBJDUMP -f'
5724  fi
5725  ;;
5726
5727cegcc*)
5728  # use the weaker test based on 'objdump'. See mingw*.
5729  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5730  lt_cv_file_magic_cmd='$OBJDUMP -f'
5731  ;;
5732
5733darwin* | rhapsody*)
5734  lt_cv_deplibs_check_method=pass_all
5735  ;;
5736
5737freebsd* | dragonfly*)
5738  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5739    case $host_cpu in
5740    i*86 )
5741      # Not sure whether the presence of OpenBSD here was a mistake.
5742      # Let's accept both of them until this is cleared up.
5743      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5744      lt_cv_file_magic_cmd=/usr/bin/file
5745      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5746      ;;
5747    esac
5748  else
5749    lt_cv_deplibs_check_method=pass_all
5750  fi
5751  ;;
5752
5753haiku*)
5754  lt_cv_deplibs_check_method=pass_all
5755  ;;
5756
5757hpux10.20* | hpux11*)
5758  lt_cv_file_magic_cmd=/usr/bin/file
5759  case $host_cpu in
5760  ia64*)
5761    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5762    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5763    ;;
5764  hppa*64*)
5765    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]'
5766    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5767    ;;
5768  *)
5769    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5770    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5771    ;;
5772  esac
5773  ;;
5774
5775interix[3-9]*)
5776  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5777  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5778  ;;
5779
5780irix5* | irix6* | nonstopux*)
5781  case $LD in
5782  *-32|*"-32 ") libmagic=32-bit;;
5783  *-n32|*"-n32 ") libmagic=N32;;
5784  *-64|*"-64 ") libmagic=64-bit;;
5785  *) libmagic=never-match;;
5786  esac
5787  lt_cv_deplibs_check_method=pass_all
5788  ;;
5789
5790# This must be glibc/ELF.
5791linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5792  lt_cv_deplibs_check_method=pass_all
5793  ;;
5794
5795netbsd*)
5796  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5797    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5798  else
5799    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5800  fi
5801  ;;
5802
5803newos6*)
5804  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5805  lt_cv_file_magic_cmd=/usr/bin/file
5806  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5807  ;;
5808
5809*nto* | *qnx*)
5810  lt_cv_deplibs_check_method=pass_all
5811  ;;
5812
5813openbsd* | bitrig*)
5814  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5815    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5816  else
5817    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5818  fi
5819  ;;
5820
5821osf3* | osf4* | osf5*)
5822  lt_cv_deplibs_check_method=pass_all
5823  ;;
5824
5825rdos*)
5826  lt_cv_deplibs_check_method=pass_all
5827  ;;
5828
5829solaris*)
5830  lt_cv_deplibs_check_method=pass_all
5831  ;;
5832
5833sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5834  lt_cv_deplibs_check_method=pass_all
5835  ;;
5836
5837sysv4 | sysv4.3*)
5838  case $host_vendor in
5839  motorola)
5840    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]'
5841    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5842    ;;
5843  ncr)
5844    lt_cv_deplibs_check_method=pass_all
5845    ;;
5846  sequent)
5847    lt_cv_file_magic_cmd='/bin/file'
5848    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5849    ;;
5850  sni)
5851    lt_cv_file_magic_cmd='/bin/file'
5852    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5853    lt_cv_file_magic_test_file=/lib/libc.so
5854    ;;
5855  siemens)
5856    lt_cv_deplibs_check_method=pass_all
5857    ;;
5858  pc)
5859    lt_cv_deplibs_check_method=pass_all
5860    ;;
5861  esac
5862  ;;
5863
5864tpf*)
5865  lt_cv_deplibs_check_method=pass_all
5866  ;;
5867os2*)
5868  lt_cv_deplibs_check_method=pass_all
5869  ;;
5870esac
5871
5872fi
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5874$as_echo "$lt_cv_deplibs_check_method" >&6; }
5875
5876file_magic_glob=
5877want_nocaseglob=no
5878if test "$build" = "$host"; then
5879  case $host_os in
5880  mingw* | pw32*)
5881    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5882      want_nocaseglob=yes
5883    else
5884      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5885    fi
5886    ;;
5887  esac
5888fi
5889
5890file_magic_cmd=$lt_cv_file_magic_cmd
5891deplibs_check_method=$lt_cv_deplibs_check_method
5892test -z "$deplibs_check_method" && deplibs_check_method=unknown
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915if test -n "$ac_tool_prefix"; then
5916  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5917set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919$as_echo_n "checking for $ac_word... " >&6; }
5920if ${ac_cv_prog_DLLTOOL+:} false; then :
5921  $as_echo_n "(cached) " >&6
5922else
5923  if test -n "$DLLTOOL"; then
5924  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929  IFS=$as_save_IFS
5930  test -z "$as_dir" && as_dir=.
5931    for ac_exec_ext in '' $ac_executable_extensions; do
5932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935    break 2
5936  fi
5937done
5938  done
5939IFS=$as_save_IFS
5940
5941fi
5942fi
5943DLLTOOL=$ac_cv_prog_DLLTOOL
5944if test -n "$DLLTOOL"; then
5945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5946$as_echo "$DLLTOOL" >&6; }
5947else
5948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949$as_echo "no" >&6; }
5950fi
5951
5952
5953fi
5954if test -z "$ac_cv_prog_DLLTOOL"; then
5955  ac_ct_DLLTOOL=$DLLTOOL
5956  # Extract the first word of "dlltool", so it can be a program name with args.
5957set dummy dlltool; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5961  $as_echo_n "(cached) " >&6
5962else
5963  if test -n "$ac_ct_DLLTOOL"; then
5964  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969  IFS=$as_save_IFS
5970  test -z "$as_dir" && as_dir=.
5971    for ac_exec_ext in '' $ac_executable_extensions; do
5972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975    break 2
5976  fi
5977done
5978  done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5984if test -n "$ac_ct_DLLTOOL"; then
5985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5986$as_echo "$ac_ct_DLLTOOL" >&6; }
5987else
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992  if test "x$ac_ct_DLLTOOL" = x; then
5993    DLLTOOL="false"
5994  else
5995    case $cross_compiling:$ac_tool_warned in
5996yes:)
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999ac_tool_warned=yes ;;
6000esac
6001    DLLTOOL=$ac_ct_DLLTOOL
6002  fi
6003else
6004  DLLTOOL="$ac_cv_prog_DLLTOOL"
6005fi
6006
6007test -z "$DLLTOOL" && DLLTOOL=dlltool
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6019$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6020if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6021  $as_echo_n "(cached) " >&6
6022else
6023  lt_cv_sharedlib_from_linklib_cmd='unknown'
6024
6025case $host_os in
6026cygwin* | mingw* | pw32* | cegcc*)
6027  # two different shell functions defined in ltmain.sh;
6028  # decide which one to use based on capabilities of $DLLTOOL
6029  case `$DLLTOOL --help 2>&1` in
6030  *--identify-strict*)
6031    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6032    ;;
6033  *)
6034    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6035    ;;
6036  esac
6037  ;;
6038*)
6039  # fallback: assume linklib IS sharedlib
6040  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6041  ;;
6042esac
6043
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6046$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6047sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6048test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6049
6050
6051
6052
6053
6054
6055
6056if test -n "$ac_tool_prefix"; then
6057  for ac_prog in ar
6058  do
6059    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062$as_echo_n "checking for $ac_word... " >&6; }
6063if ${ac_cv_prog_AR+:} false; then :
6064  $as_echo_n "(cached) " >&6
6065else
6066  if test -n "$AR"; then
6067  ac_cv_prog_AR="$AR" # Let the user override the test.
6068else
6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070for as_dir in $PATH
6071do
6072  IFS=$as_save_IFS
6073  test -z "$as_dir" && as_dir=.
6074    for ac_exec_ext in '' $ac_executable_extensions; do
6075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6076    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078    break 2
6079  fi
6080done
6081  done
6082IFS=$as_save_IFS
6083
6084fi
6085fi
6086AR=$ac_cv_prog_AR
6087if test -n "$AR"; then
6088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6089$as_echo "$AR" >&6; }
6090else
6091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092$as_echo "no" >&6; }
6093fi
6094
6095
6096    test -n "$AR" && break
6097  done
6098fi
6099if test -z "$AR"; then
6100  ac_ct_AR=$AR
6101  for ac_prog in ar
6102do
6103  # Extract the first word of "$ac_prog", so it can be a program name with args.
6104set dummy $ac_prog; ac_word=$2
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106$as_echo_n "checking for $ac_word... " >&6; }
6107if ${ac_cv_prog_ac_ct_AR+:} false; then :
6108  $as_echo_n "(cached) " >&6
6109else
6110  if test -n "$ac_ct_AR"; then
6111  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116  IFS=$as_save_IFS
6117  test -z "$as_dir" && as_dir=.
6118    for ac_exec_ext in '' $ac_executable_extensions; do
6119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120    ac_cv_prog_ac_ct_AR="$ac_prog"
6121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122    break 2
6123  fi
6124done
6125  done
6126IFS=$as_save_IFS
6127
6128fi
6129fi
6130ac_ct_AR=$ac_cv_prog_ac_ct_AR
6131if test -n "$ac_ct_AR"; then
6132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6133$as_echo "$ac_ct_AR" >&6; }
6134else
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136$as_echo "no" >&6; }
6137fi
6138
6139
6140  test -n "$ac_ct_AR" && break
6141done
6142
6143  if test "x$ac_ct_AR" = x; then
6144    AR="false"
6145  else
6146    case $cross_compiling:$ac_tool_warned in
6147yes:)
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150ac_tool_warned=yes ;;
6151esac
6152    AR=$ac_ct_AR
6153  fi
6154fi
6155
6156: ${AR=ar}
6157
6158
6159
6160
6161
6162
6163# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6164# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6165# higher priority because thats what people were doing historically (setting
6166# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6167# variable obsoleted/removed.
6168
6169test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6170lt_ar_flags=$AR_FLAGS
6171
6172
6173
6174
6175
6176
6177# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6178# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6179
6180
6181
6182
6183
6184
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6186$as_echo_n "checking for archiver @FILE support... " >&6; }
6187if ${lt_cv_ar_at_file+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  lt_cv_ar_at_file=no
6191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192/* end confdefs.h.  */
6193
6194int
6195main ()
6196{
6197
6198  ;
6199  return 0;
6200}
6201_ACEOF
6202if ac_fn_c_try_compile "$LINENO"; then :
6203  echo conftest.$ac_objext > conftest.lst
6204      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6205      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6206  (eval $lt_ar_try) 2>&5
6207  ac_status=$?
6208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209  test $ac_status = 0; }
6210      if test 0 -eq "$ac_status"; then
6211	# Ensure the archiver fails upon bogus file names.
6212	rm -f conftest.$ac_objext libconftest.a
6213	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6214  (eval $lt_ar_try) 2>&5
6215  ac_status=$?
6216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217  test $ac_status = 0; }
6218	if test 0 -ne "$ac_status"; then
6219          lt_cv_ar_at_file=@
6220        fi
6221      fi
6222      rm -f conftest.* libconftest.a
6223
6224fi
6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226
6227fi
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6229$as_echo "$lt_cv_ar_at_file" >&6; }
6230
6231if test no = "$lt_cv_ar_at_file"; then
6232  archiver_list_spec=
6233else
6234  archiver_list_spec=$lt_cv_ar_at_file
6235fi
6236
6237
6238
6239
6240
6241
6242
6243if test -n "$ac_tool_prefix"; then
6244  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6245set dummy ${ac_tool_prefix}strip; ac_word=$2
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247$as_echo_n "checking for $ac_word... " >&6; }
6248if ${ac_cv_prog_STRIP+:} false; then :
6249  $as_echo_n "(cached) " >&6
6250else
6251  if test -n "$STRIP"; then
6252  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257  IFS=$as_save_IFS
6258  test -z "$as_dir" && as_dir=.
6259    for ac_exec_ext in '' $ac_executable_extensions; do
6260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263    break 2
6264  fi
6265done
6266  done
6267IFS=$as_save_IFS
6268
6269fi
6270fi
6271STRIP=$ac_cv_prog_STRIP
6272if test -n "$STRIP"; then
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6274$as_echo "$STRIP" >&6; }
6275else
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277$as_echo "no" >&6; }
6278fi
6279
6280
6281fi
6282if test -z "$ac_cv_prog_STRIP"; then
6283  ac_ct_STRIP=$STRIP
6284  # Extract the first word of "strip", so it can be a program name with args.
6285set dummy strip; ac_word=$2
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287$as_echo_n "checking for $ac_word... " >&6; }
6288if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  if test -n "$ac_ct_STRIP"; then
6292  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  test -z "$as_dir" && as_dir=.
6299    for ac_exec_ext in '' $ac_executable_extensions; do
6300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301    ac_cv_prog_ac_ct_STRIP="strip"
6302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306  done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6312if test -n "$ac_ct_STRIP"; then
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6314$as_echo "$ac_ct_STRIP" >&6; }
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320  if test "x$ac_ct_STRIP" = x; then
6321    STRIP=":"
6322  else
6323    case $cross_compiling:$ac_tool_warned in
6324yes:)
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327ac_tool_warned=yes ;;
6328esac
6329    STRIP=$ac_ct_STRIP
6330  fi
6331else
6332  STRIP="$ac_cv_prog_STRIP"
6333fi
6334
6335test -z "$STRIP" && STRIP=:
6336
6337
6338
6339
6340
6341
6342if test -n "$ac_tool_prefix"; then
6343  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6344set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346$as_echo_n "checking for $ac_word... " >&6; }
6347if ${ac_cv_prog_RANLIB+:} false; then :
6348  $as_echo_n "(cached) " >&6
6349else
6350  if test -n "$RANLIB"; then
6351  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356  IFS=$as_save_IFS
6357  test -z "$as_dir" && as_dir=.
6358    for ac_exec_ext in '' $ac_executable_extensions; do
6359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362    break 2
6363  fi
6364done
6365  done
6366IFS=$as_save_IFS
6367
6368fi
6369fi
6370RANLIB=$ac_cv_prog_RANLIB
6371if test -n "$RANLIB"; then
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6373$as_echo "$RANLIB" >&6; }
6374else
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376$as_echo "no" >&6; }
6377fi
6378
6379
6380fi
6381if test -z "$ac_cv_prog_RANLIB"; then
6382  ac_ct_RANLIB=$RANLIB
6383  # Extract the first word of "ranlib", so it can be a program name with args.
6384set dummy ranlib; ac_word=$2
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386$as_echo_n "checking for $ac_word... " >&6; }
6387if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6388  $as_echo_n "(cached) " >&6
6389else
6390  if test -n "$ac_ct_RANLIB"; then
6391  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6392else
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396  IFS=$as_save_IFS
6397  test -z "$as_dir" && as_dir=.
6398    for ac_exec_ext in '' $ac_executable_extensions; do
6399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400    ac_cv_prog_ac_ct_RANLIB="ranlib"
6401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402    break 2
6403  fi
6404done
6405  done
6406IFS=$as_save_IFS
6407
6408fi
6409fi
6410ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6411if test -n "$ac_ct_RANLIB"; then
6412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6413$as_echo "$ac_ct_RANLIB" >&6; }
6414else
6415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
6417fi
6418
6419  if test "x$ac_ct_RANLIB" = x; then
6420    RANLIB=":"
6421  else
6422    case $cross_compiling:$ac_tool_warned in
6423yes:)
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426ac_tool_warned=yes ;;
6427esac
6428    RANLIB=$ac_ct_RANLIB
6429  fi
6430else
6431  RANLIB="$ac_cv_prog_RANLIB"
6432fi
6433
6434test -z "$RANLIB" && RANLIB=:
6435
6436
6437
6438
6439
6440
6441# Determine commands to create old-style static archives.
6442old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6443old_postinstall_cmds='chmod 644 $oldlib'
6444old_postuninstall_cmds=
6445
6446if test -n "$RANLIB"; then
6447  case $host_os in
6448  bitrig* | openbsd*)
6449    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6450    ;;
6451  *)
6452    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6453    ;;
6454  esac
6455  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6456fi
6457
6458case $host_os in
6459  darwin*)
6460    lock_old_archive_extraction=yes ;;
6461  *)
6462    lock_old_archive_extraction=no ;;
6463esac
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503# If no C compiler was specified, use CC.
6504LTCC=${LTCC-"$CC"}
6505
6506# If no C compiler flags were specified, use CFLAGS.
6507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6508
6509# Allow CC to be a program name with arguments.
6510compiler=$CC
6511
6512
6513# Check for command to grab the raw symbol name followed by C symbol from nm.
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6515$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6516if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6517  $as_echo_n "(cached) " >&6
6518else
6519
6520# These are sane defaults that work on at least a few old systems.
6521# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6522
6523# Character class describing NM global symbol codes.
6524symcode='[BCDEGRST]'
6525
6526# Regexp to match symbols that can be accessed directly from C.
6527sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6528
6529# Define system-specific variables.
6530case $host_os in
6531aix*)
6532  symcode='[BCDT]'
6533  ;;
6534cygwin* | mingw* | pw32* | cegcc*)
6535  symcode='[ABCDGISTW]'
6536  ;;
6537hpux*)
6538  if test ia64 = "$host_cpu"; then
6539    symcode='[ABCDEGRST]'
6540  fi
6541  ;;
6542irix* | nonstopux*)
6543  symcode='[BCDEGRST]'
6544  ;;
6545osf*)
6546  symcode='[BCDEGQRST]'
6547  ;;
6548solaris*)
6549  symcode='[BDRT]'
6550  ;;
6551sco3.2v5*)
6552  symcode='[DT]'
6553  ;;
6554sysv4.2uw2*)
6555  symcode='[DT]'
6556  ;;
6557sysv5* | sco5v6* | unixware* | OpenUNIX*)
6558  symcode='[ABDT]'
6559  ;;
6560sysv4)
6561  symcode='[DFNSTU]'
6562  ;;
6563esac
6564
6565# If we're using GNU nm, then use its standard symbol codes.
6566case `$NM -V 2>&1` in
6567*GNU* | *'with BFD'*)
6568  symcode='[ABCDGIRSTW]' ;;
6569esac
6570
6571if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6572  # Gets list of data symbols to import.
6573  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6574  # Adjust the below global symbol transforms to fixup imported variables.
6575  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6576  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6577  lt_c_name_lib_hook="\
6578  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6579  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6580else
6581  # Disable hooks by default.
6582  lt_cv_sys_global_symbol_to_import=
6583  lt_cdecl_hook=
6584  lt_c_name_hook=
6585  lt_c_name_lib_hook=
6586fi
6587
6588# Transform an extracted symbol line into a proper C declaration.
6589# Some systems (esp. on ia64) link data and code symbols differently,
6590# so use this general approach.
6591lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6592$lt_cdecl_hook\
6593" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6594" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6595
6596# Transform an extracted symbol line into symbol name and symbol address
6597lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6598$lt_c_name_hook\
6599" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6600" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6601
6602# Transform an extracted symbol line into symbol name with lib prefix and
6603# symbol address.
6604lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6605$lt_c_name_lib_hook\
6606" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6607" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6608" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6609
6610# Handle CRLF in mingw tool chain
6611opt_cr=
6612case $build_os in
6613mingw*)
6614  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6615  ;;
6616esac
6617
6618# Try without a prefix underscore, then with it.
6619for ac_symprfx in "" "_"; do
6620
6621  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6622  symxfrm="\\1 $ac_symprfx\\2 \\2"
6623
6624  # Write the raw and C identifiers.
6625  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6626    # Fake it for dumpbin and say T for any non-static function,
6627    # D for any global variable and I for any imported variable.
6628    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6629    # which start with @ or ?.
6630    lt_cv_sys_global_symbol_pipe="$AWK '"\
6631"     {last_section=section; section=\$ 3};"\
6632"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6633"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6634"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6635"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6636"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6637"     \$ 0!~/External *\|/{next};"\
6638"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6639"     {if(hide[section]) next};"\
6640"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6641"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6642"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6643"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6644"     ' prfx=^$ac_symprfx"
6645  else
6646    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6647  fi
6648  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6649
6650  # Check to see that the pipe works correctly.
6651  pipe_works=no
6652
6653  rm -f conftest*
6654  cat > conftest.$ac_ext <<_LT_EOF
6655#ifdef __cplusplus
6656extern "C" {
6657#endif
6658char nm_test_var;
6659void nm_test_func(void);
6660void nm_test_func(void){}
6661#ifdef __cplusplus
6662}
6663#endif
6664int main(){nm_test_var='a';nm_test_func();return(0);}
6665_LT_EOF
6666
6667  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6668  (eval $ac_compile) 2>&5
6669  ac_status=$?
6670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6671  test $ac_status = 0; }; then
6672    # Now try to grab the symbols.
6673    nlist=conftest.nm
6674    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6675  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6676  ac_status=$?
6677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6678  test $ac_status = 0; } && test -s "$nlist"; then
6679      # Try sorting and uniquifying the output.
6680      if sort "$nlist" | uniq > "$nlist"T; then
6681	mv -f "$nlist"T "$nlist"
6682      else
6683	rm -f "$nlist"T
6684      fi
6685
6686      # Make sure that we snagged all the symbols we need.
6687      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6688	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6689	  cat <<_LT_EOF > conftest.$ac_ext
6690/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6691#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6692/* DATA imports from DLLs on WIN32 can't be const, because runtime
6693   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6694# define LT_DLSYM_CONST
6695#elif defined __osf__
6696/* This system does not cope well with relocations in const data.  */
6697# define LT_DLSYM_CONST
6698#else
6699# define LT_DLSYM_CONST const
6700#endif
6701
6702#ifdef __cplusplus
6703extern "C" {
6704#endif
6705
6706_LT_EOF
6707	  # Now generate the symbol file.
6708	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6709
6710	  cat <<_LT_EOF >> conftest.$ac_ext
6711
6712/* The mapping between symbol names and symbols.  */
6713LT_DLSYM_CONST struct {
6714  const char *name;
6715  void       *address;
6716}
6717lt__PROGRAM__LTX_preloaded_symbols[] =
6718{
6719  { "@PROGRAM@", (void *) 0 },
6720_LT_EOF
6721	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6722	  cat <<\_LT_EOF >> conftest.$ac_ext
6723  {0, (void *) 0}
6724};
6725
6726/* This works around a problem in FreeBSD linker */
6727#ifdef FREEBSD_WORKAROUND
6728static const void *lt_preloaded_setup() {
6729  return lt__PROGRAM__LTX_preloaded_symbols;
6730}
6731#endif
6732
6733#ifdef __cplusplus
6734}
6735#endif
6736_LT_EOF
6737	  # Now try linking the two files.
6738	  mv conftest.$ac_objext conftstm.$ac_objext
6739	  lt_globsym_save_LIBS=$LIBS
6740	  lt_globsym_save_CFLAGS=$CFLAGS
6741	  LIBS=conftstm.$ac_objext
6742	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6743	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6744  (eval $ac_link) 2>&5
6745  ac_status=$?
6746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6748	    pipe_works=yes
6749	  fi
6750	  LIBS=$lt_globsym_save_LIBS
6751	  CFLAGS=$lt_globsym_save_CFLAGS
6752	else
6753	  echo "cannot find nm_test_func in $nlist" >&5
6754	fi
6755      else
6756	echo "cannot find nm_test_var in $nlist" >&5
6757      fi
6758    else
6759      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6760    fi
6761  else
6762    echo "$progname: failed program was:" >&5
6763    cat conftest.$ac_ext >&5
6764  fi
6765  rm -rf conftest* conftst*
6766
6767  # Do not use the global_symbol_pipe unless it works.
6768  if test yes = "$pipe_works"; then
6769    break
6770  else
6771    lt_cv_sys_global_symbol_pipe=
6772  fi
6773done
6774
6775fi
6776
6777if test -z "$lt_cv_sys_global_symbol_pipe"; then
6778  lt_cv_sys_global_symbol_to_cdecl=
6779fi
6780if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6782$as_echo "failed" >&6; }
6783else
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6785$as_echo "ok" >&6; }
6786fi
6787
6788# Response file support.
6789if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6790  nm_file_list_spec='@'
6791elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6792  nm_file_list_spec='@'
6793fi
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6832$as_echo_n "checking for sysroot... " >&6; }
6833
6834# Check whether --with-sysroot was given.
6835if test "${with_sysroot+set}" = set; then :
6836  withval=$with_sysroot;
6837else
6838  with_sysroot=no
6839fi
6840
6841
6842lt_sysroot=
6843case $with_sysroot in #(
6844 yes)
6845   if test yes = "$GCC"; then
6846     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6847   fi
6848   ;; #(
6849 /*)
6850   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6851   ;; #(
6852 no|'')
6853   ;; #(
6854 *)
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6856$as_echo "$with_sysroot" >&6; }
6857   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6858   ;;
6859esac
6860
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6862$as_echo "${lt_sysroot:-no}" >&6; }
6863
6864
6865
6866
6867
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6869$as_echo_n "checking for a working dd... " >&6; }
6870if ${ac_cv_path_lt_DD+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  printf 0123456789abcdef0123456789abcdef >conftest.i
6874cat conftest.i conftest.i >conftest2.i
6875: ${lt_DD:=$DD}
6876if test -z "$lt_DD"; then
6877  ac_path_lt_DD_found=false
6878  # Loop through the user's path and test for each of PROGNAME-LIST
6879  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882  IFS=$as_save_IFS
6883  test -z "$as_dir" && as_dir=.
6884    for ac_prog in dd; do
6885    for ac_exec_ext in '' $ac_executable_extensions; do
6886      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6887      as_fn_executable_p "$ac_path_lt_DD" || continue
6888if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6889  cmp -s conftest.i conftest.out \
6890  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6891fi
6892      $ac_path_lt_DD_found && break 3
6893    done
6894  done
6895  done
6896IFS=$as_save_IFS
6897  if test -z "$ac_cv_path_lt_DD"; then
6898    :
6899  fi
6900else
6901  ac_cv_path_lt_DD=$lt_DD
6902fi
6903
6904rm -f conftest.i conftest2.i conftest.out
6905fi
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6907$as_echo "$ac_cv_path_lt_DD" >&6; }
6908
6909
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6911$as_echo_n "checking how to truncate binary pipes... " >&6; }
6912if ${lt_cv_truncate_bin+:} false; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  printf 0123456789abcdef0123456789abcdef >conftest.i
6916cat conftest.i conftest.i >conftest2.i
6917lt_cv_truncate_bin=
6918if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6919  cmp -s conftest.i conftest.out \
6920  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6921fi
6922rm -f conftest.i conftest2.i conftest.out
6923test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6924fi
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6926$as_echo "$lt_cv_truncate_bin" >&6; }
6927
6928
6929
6930
6931
6932
6933
6934# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6935func_cc_basename ()
6936{
6937    for cc_temp in $*""; do
6938      case $cc_temp in
6939        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6940        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6941        \-*) ;;
6942        *) break;;
6943      esac
6944    done
6945    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6946}
6947
6948# Check whether --enable-libtool-lock was given.
6949if test "${enable_libtool_lock+set}" = set; then :
6950  enableval=$enable_libtool_lock;
6951fi
6952
6953test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6954
6955# Some flags need to be propagated to the compiler or linker for good
6956# libtool support.
6957case $host in
6958ia64-*-hpux*)
6959  # Find out what ABI is being produced by ac_compile, and set mode
6960  # options accordingly.
6961  echo 'int i;' > conftest.$ac_ext
6962  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6963  (eval $ac_compile) 2>&5
6964  ac_status=$?
6965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966  test $ac_status = 0; }; then
6967    case `/usr/bin/file conftest.$ac_objext` in
6968      *ELF-32*)
6969	HPUX_IA64_MODE=32
6970	;;
6971      *ELF-64*)
6972	HPUX_IA64_MODE=64
6973	;;
6974    esac
6975  fi
6976  rm -rf conftest*
6977  ;;
6978*-*-irix6*)
6979  # Find out what ABI is being produced by ac_compile, and set linker
6980  # options accordingly.
6981  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6982  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6983  (eval $ac_compile) 2>&5
6984  ac_status=$?
6985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986  test $ac_status = 0; }; then
6987    if test yes = "$lt_cv_prog_gnu_ld"; then
6988      case `/usr/bin/file conftest.$ac_objext` in
6989	*32-bit*)
6990	  LD="${LD-ld} -melf32bsmip"
6991	  ;;
6992	*N32*)
6993	  LD="${LD-ld} -melf32bmipn32"
6994	  ;;
6995	*64-bit*)
6996	  LD="${LD-ld} -melf64bmip"
6997	;;
6998      esac
6999    else
7000      case `/usr/bin/file conftest.$ac_objext` in
7001	*32-bit*)
7002	  LD="${LD-ld} -32"
7003	  ;;
7004	*N32*)
7005	  LD="${LD-ld} -n32"
7006	  ;;
7007	*64-bit*)
7008	  LD="${LD-ld} -64"
7009	  ;;
7010      esac
7011    fi
7012  fi
7013  rm -rf conftest*
7014  ;;
7015
7016mips64*-*linux*)
7017  # Find out what ABI is being produced by ac_compile, and set linker
7018  # options accordingly.
7019  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7020  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7021  (eval $ac_compile) 2>&5
7022  ac_status=$?
7023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7024  test $ac_status = 0; }; then
7025    emul=elf
7026    case `/usr/bin/file conftest.$ac_objext` in
7027      *32-bit*)
7028	emul="${emul}32"
7029	;;
7030      *64-bit*)
7031	emul="${emul}64"
7032	;;
7033    esac
7034    case `/usr/bin/file conftest.$ac_objext` in
7035      *MSB*)
7036	emul="${emul}btsmip"
7037	;;
7038      *LSB*)
7039	emul="${emul}ltsmip"
7040	;;
7041    esac
7042    case `/usr/bin/file conftest.$ac_objext` in
7043      *N32*)
7044	emul="${emul}n32"
7045	;;
7046    esac
7047    LD="${LD-ld} -m $emul"
7048  fi
7049  rm -rf conftest*
7050  ;;
7051
7052x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7053s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7054  # Find out what ABI is being produced by ac_compile, and set linker
7055  # options accordingly.  Note that the listed cases only cover the
7056  # situations where additional linker options are needed (such as when
7057  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7058  # vice versa); the common cases where no linker options are needed do
7059  # not appear in the list.
7060  echo 'int i;' > conftest.$ac_ext
7061  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062  (eval $ac_compile) 2>&5
7063  ac_status=$?
7064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065  test $ac_status = 0; }; then
7066    case `/usr/bin/file conftest.o` in
7067      *32-bit*)
7068	case $host in
7069	  x86_64-*kfreebsd*-gnu)
7070	    LD="${LD-ld} -m elf_i386_fbsd"
7071	    ;;
7072	  x86_64-*linux*)
7073	    case `/usr/bin/file conftest.o` in
7074	      *x86-64*)
7075		LD="${LD-ld} -m elf32_x86_64"
7076		;;
7077	      *)
7078		LD="${LD-ld} -m elf_i386"
7079		;;
7080	    esac
7081	    ;;
7082	  powerpc64le-*linux*)
7083	    LD="${LD-ld} -m elf32lppclinux"
7084	    ;;
7085	  powerpc64-*linux*)
7086	    LD="${LD-ld} -m elf32ppclinux"
7087	    ;;
7088	  s390x-*linux*)
7089	    LD="${LD-ld} -m elf_s390"
7090	    ;;
7091	  sparc64-*linux*)
7092	    LD="${LD-ld} -m elf32_sparc"
7093	    ;;
7094	esac
7095	;;
7096      *64-bit*)
7097	case $host in
7098	  x86_64-*kfreebsd*-gnu)
7099	    LD="${LD-ld} -m elf_x86_64_fbsd"
7100	    ;;
7101	  x86_64-*linux*)
7102	    LD="${LD-ld} -m elf_x86_64"
7103	    ;;
7104	  powerpcle-*linux*)
7105	    LD="${LD-ld} -m elf64lppc"
7106	    ;;
7107	  powerpc-*linux*)
7108	    LD="${LD-ld} -m elf64ppc"
7109	    ;;
7110	  s390*-*linux*|s390*-*tpf*)
7111	    LD="${LD-ld} -m elf64_s390"
7112	    ;;
7113	  sparc*-*linux*)
7114	    LD="${LD-ld} -m elf64_sparc"
7115	    ;;
7116	esac
7117	;;
7118    esac
7119  fi
7120  rm -rf conftest*
7121  ;;
7122
7123*-*-sco3.2v5*)
7124  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7125  SAVE_CFLAGS=$CFLAGS
7126  CFLAGS="$CFLAGS -belf"
7127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7128$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7129if ${lt_cv_cc_needs_belf+:} false; then :
7130  $as_echo_n "(cached) " >&6
7131else
7132  ac_ext=c
7133ac_cpp='$CPP $CPPFLAGS'
7134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136ac_compiler_gnu=$ac_cv_c_compiler_gnu
7137
7138     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h.  */
7140
7141int
7142main ()
7143{
7144
7145  ;
7146  return 0;
7147}
7148_ACEOF
7149if ac_fn_c_try_link "$LINENO"; then :
7150  lt_cv_cc_needs_belf=yes
7151else
7152  lt_cv_cc_needs_belf=no
7153fi
7154rm -f core conftest.err conftest.$ac_objext \
7155    conftest$ac_exeext conftest.$ac_ext
7156     ac_ext=c
7157ac_cpp='$CPP $CPPFLAGS'
7158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160ac_compiler_gnu=$ac_cv_c_compiler_gnu
7161
7162fi
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7164$as_echo "$lt_cv_cc_needs_belf" >&6; }
7165  if test yes != "$lt_cv_cc_needs_belf"; then
7166    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7167    CFLAGS=$SAVE_CFLAGS
7168  fi
7169  ;;
7170*-*solaris*)
7171  # Find out what ABI is being produced by ac_compile, and set linker
7172  # options accordingly.
7173  echo 'int i;' > conftest.$ac_ext
7174  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7175  (eval $ac_compile) 2>&5
7176  ac_status=$?
7177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7178  test $ac_status = 0; }; then
7179    case `/usr/bin/file conftest.o` in
7180    *64-bit*)
7181      case $lt_cv_prog_gnu_ld in
7182      yes*)
7183        case $host in
7184        i?86-*-solaris*|x86_64-*-solaris*)
7185          LD="${LD-ld} -m elf_x86_64"
7186          ;;
7187        sparc*-*-solaris*)
7188          LD="${LD-ld} -m elf64_sparc"
7189          ;;
7190        esac
7191        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7192        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7193          LD=${LD-ld}_sol2
7194        fi
7195        ;;
7196      *)
7197	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7198	  LD="${LD-ld} -64"
7199	fi
7200	;;
7201      esac
7202      ;;
7203    esac
7204  fi
7205  rm -rf conftest*
7206  ;;
7207esac
7208
7209need_locks=$enable_libtool_lock
7210
7211if test -n "$ac_tool_prefix"; then
7212  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7213set dummy ${ac_tool_prefix}mt; ac_word=$2
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215$as_echo_n "checking for $ac_word... " >&6; }
7216if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7217  $as_echo_n "(cached) " >&6
7218else
7219  if test -n "$MANIFEST_TOOL"; then
7220  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7221else
7222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225  IFS=$as_save_IFS
7226  test -z "$as_dir" && as_dir=.
7227    for ac_exec_ext in '' $ac_executable_extensions; do
7228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231    break 2
7232  fi
7233done
7234  done
7235IFS=$as_save_IFS
7236
7237fi
7238fi
7239MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7240if test -n "$MANIFEST_TOOL"; then
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7242$as_echo "$MANIFEST_TOOL" >&6; }
7243else
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245$as_echo "no" >&6; }
7246fi
7247
7248
7249fi
7250if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7251  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7252  # Extract the first word of "mt", so it can be a program name with args.
7253set dummy mt; ac_word=$2
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255$as_echo_n "checking for $ac_word... " >&6; }
7256if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  if test -n "$ac_ct_MANIFEST_TOOL"; then
7260  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265  IFS=$as_save_IFS
7266  test -z "$as_dir" && as_dir=.
7267    for ac_exec_ext in '' $ac_executable_extensions; do
7268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271    break 2
7272  fi
7273done
7274  done
7275IFS=$as_save_IFS
7276
7277fi
7278fi
7279ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7280if test -n "$ac_ct_MANIFEST_TOOL"; then
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7282$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7283else
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285$as_echo "no" >&6; }
7286fi
7287
7288  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7289    MANIFEST_TOOL=":"
7290  else
7291    case $cross_compiling:$ac_tool_warned in
7292yes:)
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295ac_tool_warned=yes ;;
7296esac
7297    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7298  fi
7299else
7300  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7301fi
7302
7303test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7305$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7306if ${lt_cv_path_mainfest_tool+:} false; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  lt_cv_path_mainfest_tool=no
7310  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7311  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7312  cat conftest.err >&5
7313  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7314    lt_cv_path_mainfest_tool=yes
7315  fi
7316  rm -f conftest*
7317fi
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7319$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7320if test yes != "$lt_cv_path_mainfest_tool"; then
7321  MANIFEST_TOOL=:
7322fi
7323
7324
7325
7326
7327
7328
7329  case $host_os in
7330    rhapsody* | darwin*)
7331    if test -n "$ac_tool_prefix"; then
7332  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7333set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if ${ac_cv_prog_DSYMUTIL+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  if test -n "$DSYMUTIL"; then
7340  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345  IFS=$as_save_IFS
7346  test -z "$as_dir" && as_dir=.
7347    for ac_exec_ext in '' $ac_executable_extensions; do
7348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351    break 2
7352  fi
7353done
7354  done
7355IFS=$as_save_IFS
7356
7357fi
7358fi
7359DSYMUTIL=$ac_cv_prog_DSYMUTIL
7360if test -n "$DSYMUTIL"; then
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7362$as_echo "$DSYMUTIL" >&6; }
7363else
7364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365$as_echo "no" >&6; }
7366fi
7367
7368
7369fi
7370if test -z "$ac_cv_prog_DSYMUTIL"; then
7371  ac_ct_DSYMUTIL=$DSYMUTIL
7372  # Extract the first word of "dsymutil", so it can be a program name with args.
7373set dummy dsymutil; ac_word=$2
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375$as_echo_n "checking for $ac_word... " >&6; }
7376if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7377  $as_echo_n "(cached) " >&6
7378else
7379  if test -n "$ac_ct_DSYMUTIL"; then
7380  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7381else
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385  IFS=$as_save_IFS
7386  test -z "$as_dir" && as_dir=.
7387    for ac_exec_ext in '' $ac_executable_extensions; do
7388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391    break 2
7392  fi
7393done
7394  done
7395IFS=$as_save_IFS
7396
7397fi
7398fi
7399ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7400if test -n "$ac_ct_DSYMUTIL"; then
7401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7402$as_echo "$ac_ct_DSYMUTIL" >&6; }
7403else
7404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405$as_echo "no" >&6; }
7406fi
7407
7408  if test "x$ac_ct_DSYMUTIL" = x; then
7409    DSYMUTIL=":"
7410  else
7411    case $cross_compiling:$ac_tool_warned in
7412yes:)
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415ac_tool_warned=yes ;;
7416esac
7417    DSYMUTIL=$ac_ct_DSYMUTIL
7418  fi
7419else
7420  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7421fi
7422
7423    if test -n "$ac_tool_prefix"; then
7424  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7425set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427$as_echo_n "checking for $ac_word... " >&6; }
7428if ${ac_cv_prog_NMEDIT+:} false; then :
7429  $as_echo_n "(cached) " >&6
7430else
7431  if test -n "$NMEDIT"; then
7432  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7433else
7434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437  IFS=$as_save_IFS
7438  test -z "$as_dir" && as_dir=.
7439    for ac_exec_ext in '' $ac_executable_extensions; do
7440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443    break 2
7444  fi
7445done
7446  done
7447IFS=$as_save_IFS
7448
7449fi
7450fi
7451NMEDIT=$ac_cv_prog_NMEDIT
7452if test -n "$NMEDIT"; then
7453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7454$as_echo "$NMEDIT" >&6; }
7455else
7456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457$as_echo "no" >&6; }
7458fi
7459
7460
7461fi
7462if test -z "$ac_cv_prog_NMEDIT"; then
7463  ac_ct_NMEDIT=$NMEDIT
7464  # Extract the first word of "nmedit", so it can be a program name with args.
7465set dummy nmedit; ac_word=$2
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467$as_echo_n "checking for $ac_word... " >&6; }
7468if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7469  $as_echo_n "(cached) " >&6
7470else
7471  if test -n "$ac_ct_NMEDIT"; then
7472  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477  IFS=$as_save_IFS
7478  test -z "$as_dir" && as_dir=.
7479    for ac_exec_ext in '' $ac_executable_extensions; do
7480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483    break 2
7484  fi
7485done
7486  done
7487IFS=$as_save_IFS
7488
7489fi
7490fi
7491ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7492if test -n "$ac_ct_NMEDIT"; then
7493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7494$as_echo "$ac_ct_NMEDIT" >&6; }
7495else
7496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497$as_echo "no" >&6; }
7498fi
7499
7500  if test "x$ac_ct_NMEDIT" = x; then
7501    NMEDIT=":"
7502  else
7503    case $cross_compiling:$ac_tool_warned in
7504yes:)
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507ac_tool_warned=yes ;;
7508esac
7509    NMEDIT=$ac_ct_NMEDIT
7510  fi
7511else
7512  NMEDIT="$ac_cv_prog_NMEDIT"
7513fi
7514
7515    if test -n "$ac_tool_prefix"; then
7516  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7517set dummy ${ac_tool_prefix}lipo; ac_word=$2
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519$as_echo_n "checking for $ac_word... " >&6; }
7520if ${ac_cv_prog_LIPO+:} false; then :
7521  $as_echo_n "(cached) " >&6
7522else
7523  if test -n "$LIPO"; then
7524  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7525else
7526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529  IFS=$as_save_IFS
7530  test -z "$as_dir" && as_dir=.
7531    for ac_exec_ext in '' $ac_executable_extensions; do
7532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535    break 2
7536  fi
7537done
7538  done
7539IFS=$as_save_IFS
7540
7541fi
7542fi
7543LIPO=$ac_cv_prog_LIPO
7544if test -n "$LIPO"; then
7545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7546$as_echo "$LIPO" >&6; }
7547else
7548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549$as_echo "no" >&6; }
7550fi
7551
7552
7553fi
7554if test -z "$ac_cv_prog_LIPO"; then
7555  ac_ct_LIPO=$LIPO
7556  # Extract the first word of "lipo", so it can be a program name with args.
7557set dummy lipo; ac_word=$2
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559$as_echo_n "checking for $ac_word... " >&6; }
7560if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7561  $as_echo_n "(cached) " >&6
7562else
7563  if test -n "$ac_ct_LIPO"; then
7564  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7565else
7566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569  IFS=$as_save_IFS
7570  test -z "$as_dir" && as_dir=.
7571    for ac_exec_ext in '' $ac_executable_extensions; do
7572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573    ac_cv_prog_ac_ct_LIPO="lipo"
7574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575    break 2
7576  fi
7577done
7578  done
7579IFS=$as_save_IFS
7580
7581fi
7582fi
7583ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7584if test -n "$ac_ct_LIPO"; then
7585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7586$as_echo "$ac_ct_LIPO" >&6; }
7587else
7588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589$as_echo "no" >&6; }
7590fi
7591
7592  if test "x$ac_ct_LIPO" = x; then
7593    LIPO=":"
7594  else
7595    case $cross_compiling:$ac_tool_warned in
7596yes:)
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7599ac_tool_warned=yes ;;
7600esac
7601    LIPO=$ac_ct_LIPO
7602  fi
7603else
7604  LIPO="$ac_cv_prog_LIPO"
7605fi
7606
7607    if test -n "$ac_tool_prefix"; then
7608  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7609set dummy ${ac_tool_prefix}otool; ac_word=$2
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611$as_echo_n "checking for $ac_word... " >&6; }
7612if ${ac_cv_prog_OTOOL+:} false; then :
7613  $as_echo_n "(cached) " >&6
7614else
7615  if test -n "$OTOOL"; then
7616  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7617else
7618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619for as_dir in $PATH
7620do
7621  IFS=$as_save_IFS
7622  test -z "$as_dir" && as_dir=.
7623    for ac_exec_ext in '' $ac_executable_extensions; do
7624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627    break 2
7628  fi
7629done
7630  done
7631IFS=$as_save_IFS
7632
7633fi
7634fi
7635OTOOL=$ac_cv_prog_OTOOL
7636if test -n "$OTOOL"; then
7637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7638$as_echo "$OTOOL" >&6; }
7639else
7640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641$as_echo "no" >&6; }
7642fi
7643
7644
7645fi
7646if test -z "$ac_cv_prog_OTOOL"; then
7647  ac_ct_OTOOL=$OTOOL
7648  # Extract the first word of "otool", so it can be a program name with args.
7649set dummy otool; ac_word=$2
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651$as_echo_n "checking for $ac_word... " >&6; }
7652if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  if test -n "$ac_ct_OTOOL"; then
7656  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7657else
7658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659for as_dir in $PATH
7660do
7661  IFS=$as_save_IFS
7662  test -z "$as_dir" && as_dir=.
7663    for ac_exec_ext in '' $ac_executable_extensions; do
7664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665    ac_cv_prog_ac_ct_OTOOL="otool"
7666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667    break 2
7668  fi
7669done
7670  done
7671IFS=$as_save_IFS
7672
7673fi
7674fi
7675ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7676if test -n "$ac_ct_OTOOL"; then
7677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7678$as_echo "$ac_ct_OTOOL" >&6; }
7679else
7680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681$as_echo "no" >&6; }
7682fi
7683
7684  if test "x$ac_ct_OTOOL" = x; then
7685    OTOOL=":"
7686  else
7687    case $cross_compiling:$ac_tool_warned in
7688yes:)
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7691ac_tool_warned=yes ;;
7692esac
7693    OTOOL=$ac_ct_OTOOL
7694  fi
7695else
7696  OTOOL="$ac_cv_prog_OTOOL"
7697fi
7698
7699    if test -n "$ac_tool_prefix"; then
7700  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7701set dummy ${ac_tool_prefix}otool64; ac_word=$2
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703$as_echo_n "checking for $ac_word... " >&6; }
7704if ${ac_cv_prog_OTOOL64+:} false; then :
7705  $as_echo_n "(cached) " >&6
7706else
7707  if test -n "$OTOOL64"; then
7708  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7709else
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713  IFS=$as_save_IFS
7714  test -z "$as_dir" && as_dir=.
7715    for ac_exec_ext in '' $ac_executable_extensions; do
7716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719    break 2
7720  fi
7721done
7722  done
7723IFS=$as_save_IFS
7724
7725fi
7726fi
7727OTOOL64=$ac_cv_prog_OTOOL64
7728if test -n "$OTOOL64"; then
7729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7730$as_echo "$OTOOL64" >&6; }
7731else
7732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733$as_echo "no" >&6; }
7734fi
7735
7736
7737fi
7738if test -z "$ac_cv_prog_OTOOL64"; then
7739  ac_ct_OTOOL64=$OTOOL64
7740  # Extract the first word of "otool64", so it can be a program name with args.
7741set dummy otool64; ac_word=$2
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743$as_echo_n "checking for $ac_word... " >&6; }
7744if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  if test -n "$ac_ct_OTOOL64"; then
7748  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7749else
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753  IFS=$as_save_IFS
7754  test -z "$as_dir" && as_dir=.
7755    for ac_exec_ext in '' $ac_executable_extensions; do
7756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757    ac_cv_prog_ac_ct_OTOOL64="otool64"
7758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759    break 2
7760  fi
7761done
7762  done
7763IFS=$as_save_IFS
7764
7765fi
7766fi
7767ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7768if test -n "$ac_ct_OTOOL64"; then
7769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7770$as_echo "$ac_ct_OTOOL64" >&6; }
7771else
7772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773$as_echo "no" >&6; }
7774fi
7775
7776  if test "x$ac_ct_OTOOL64" = x; then
7777    OTOOL64=":"
7778  else
7779    case $cross_compiling:$ac_tool_warned in
7780yes:)
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7783ac_tool_warned=yes ;;
7784esac
7785    OTOOL64=$ac_ct_OTOOL64
7786  fi
7787else
7788  OTOOL64="$ac_cv_prog_OTOOL64"
7789fi
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7818$as_echo_n "checking for -single_module linker flag... " >&6; }
7819if ${lt_cv_apple_cc_single_mod+:} false; then :
7820  $as_echo_n "(cached) " >&6
7821else
7822  lt_cv_apple_cc_single_mod=no
7823      if test -z "$LT_MULTI_MODULE"; then
7824	# By default we will add the -single_module flag. You can override
7825	# by either setting the environment variable LT_MULTI_MODULE
7826	# non-empty at configure time, or by adding -multi_module to the
7827	# link flags.
7828	rm -rf libconftest.dylib*
7829	echo "int foo(void){return 1;}" > conftest.c
7830	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7831-dynamiclib -Wl,-single_module conftest.c" >&5
7832	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7833	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7834        _lt_result=$?
7835	# If there is a non-empty error log, and "single_module"
7836	# appears in it, assume the flag caused a linker warning
7837        if test -s conftest.err && $GREP single_module conftest.err; then
7838	  cat conftest.err >&5
7839	# Otherwise, if the output was created with a 0 exit code from
7840	# the compiler, it worked.
7841	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7842	  lt_cv_apple_cc_single_mod=yes
7843	else
7844	  cat conftest.err >&5
7845	fi
7846	rm -rf libconftest.dylib*
7847	rm -f conftest.*
7848      fi
7849fi
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7851$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7852
7853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7854$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7855if ${lt_cv_ld_exported_symbols_list+:} false; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  lt_cv_ld_exported_symbols_list=no
7859      save_LDFLAGS=$LDFLAGS
7860      echo "_main" > conftest.sym
7861      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7862      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h.  */
7864
7865int
7866main ()
7867{
7868
7869  ;
7870  return 0;
7871}
7872_ACEOF
7873if ac_fn_c_try_link "$LINENO"; then :
7874  lt_cv_ld_exported_symbols_list=yes
7875else
7876  lt_cv_ld_exported_symbols_list=no
7877fi
7878rm -f core conftest.err conftest.$ac_objext \
7879    conftest$ac_exeext conftest.$ac_ext
7880	LDFLAGS=$save_LDFLAGS
7881
7882fi
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7884$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7885
7886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7887$as_echo_n "checking for -force_load linker flag... " >&6; }
7888if ${lt_cv_ld_force_load+:} false; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891  lt_cv_ld_force_load=no
7892      cat > conftest.c << _LT_EOF
7893int forced_loaded() { return 2;}
7894_LT_EOF
7895      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7896      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7897      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7898      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7899      echo "$RANLIB libconftest.a" >&5
7900      $RANLIB libconftest.a 2>&5
7901      cat > conftest.c << _LT_EOF
7902int main() { return 0;}
7903_LT_EOF
7904      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7905      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7906      _lt_result=$?
7907      if test -s conftest.err && $GREP force_load conftest.err; then
7908	cat conftest.err >&5
7909      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7910	lt_cv_ld_force_load=yes
7911      else
7912	cat conftest.err >&5
7913      fi
7914        rm -f conftest.err libconftest.a conftest conftest.c
7915        rm -rf conftest.dSYM
7916
7917fi
7918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7919$as_echo "$lt_cv_ld_force_load" >&6; }
7920    case $host_os in
7921    rhapsody* | darwin1.[012])
7922      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7923    darwin1.*)
7924      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7925    darwin*) # darwin 5.x on
7926      # if running on 10.5 or later, the deployment target defaults
7927      # to the OS version, if on x86, and 10.4, the deployment
7928      # target defaults to 10.4. Don't you love it?
7929      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7930	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7931	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7932	10.[012][,.]*)
7933	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7934	10.*)
7935	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7936      esac
7937    ;;
7938  esac
7939    if test yes = "$lt_cv_apple_cc_single_mod"; then
7940      _lt_dar_single_mod='$single_module'
7941    fi
7942    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7943      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7944    else
7945      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7946    fi
7947    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7948      _lt_dsymutil='~$DSYMUTIL $lib || :'
7949    else
7950      _lt_dsymutil=
7951    fi
7952    ;;
7953  esac
7954
7955# func_munge_path_list VARIABLE PATH
7956# -----------------------------------
7957# VARIABLE is name of variable containing _space_ separated list of
7958# directories to be munged by the contents of PATH, which is string
7959# having a format:
7960# "DIR[:DIR]:"
7961#       string "DIR[ DIR]" will be prepended to VARIABLE
7962# ":DIR[:DIR]"
7963#       string "DIR[ DIR]" will be appended to VARIABLE
7964# "DIRP[:DIRP]::[DIRA:]DIRA"
7965#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7966#       "DIRA[ DIRA]" will be appended to VARIABLE
7967# "DIR[:DIR]"
7968#       VARIABLE will be replaced by "DIR[ DIR]"
7969func_munge_path_list ()
7970{
7971    case x$2 in
7972    x)
7973        ;;
7974    *:)
7975        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7976        ;;
7977    x:*)
7978        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7979        ;;
7980    *::*)
7981        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7982        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7983        ;;
7984    *)
7985        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7986        ;;
7987    esac
7988}
7989
7990for ac_header in dlfcn.h
7991do :
7992  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7993"
7994if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7995  cat >>confdefs.h <<_ACEOF
7996#define HAVE_DLFCN_H 1
7997_ACEOF
7998
7999fi
8000
8001done
8002
8003
8004
8005
8006
8007# Set options
8008
8009
8010
8011        enable_dlopen=no
8012
8013
8014  enable_win32_dll=no
8015
8016
8017            # Check whether --enable-shared was given.
8018if test "${enable_shared+set}" = set; then :
8019  enableval=$enable_shared; p=${PACKAGE-default}
8020    case $enableval in
8021    yes) enable_shared=yes ;;
8022    no) enable_shared=no ;;
8023    *)
8024      enable_shared=no
8025      # Look at the argument we got.  We use all the common list separators.
8026      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8027      for pkg in $enableval; do
8028	IFS=$lt_save_ifs
8029	if test "X$pkg" = "X$p"; then
8030	  enable_shared=yes
8031	fi
8032      done
8033      IFS=$lt_save_ifs
8034      ;;
8035    esac
8036else
8037  enable_shared=yes
8038fi
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050# Check whether --with-pic was given.
8051if test "${with_pic+set}" = set; then :
8052  withval=$with_pic; lt_p=${PACKAGE-default}
8053    case $withval in
8054    yes|no) pic_mode=$withval ;;
8055    *)
8056      pic_mode=default
8057      # Look at the argument we got.  We use all the common list separators.
8058      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8059      for lt_pkg in $withval; do
8060	IFS=$lt_save_ifs
8061	if test "X$lt_pkg" = "X$lt_p"; then
8062	  pic_mode=yes
8063	fi
8064      done
8065      IFS=$lt_save_ifs
8066      ;;
8067    esac
8068else
8069  pic_mode=default
8070fi
8071
8072
8073
8074
8075
8076
8077
8078
8079  # Check whether --enable-fast-install was given.
8080if test "${enable_fast_install+set}" = set; then :
8081  enableval=$enable_fast_install; p=${PACKAGE-default}
8082    case $enableval in
8083    yes) enable_fast_install=yes ;;
8084    no) enable_fast_install=no ;;
8085    *)
8086      enable_fast_install=no
8087      # Look at the argument we got.  We use all the common list separators.
8088      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8089      for pkg in $enableval; do
8090	IFS=$lt_save_ifs
8091	if test "X$pkg" = "X$p"; then
8092	  enable_fast_install=yes
8093	fi
8094      done
8095      IFS=$lt_save_ifs
8096      ;;
8097    esac
8098else
8099  enable_fast_install=yes
8100fi
8101
8102
8103
8104
8105
8106
8107
8108
8109  shared_archive_member_spec=
8110case $host,$enable_shared in
8111power*-*-aix[5-9]*,yes)
8112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8113$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8114
8115# Check whether --with-aix-soname was given.
8116if test "${with_aix_soname+set}" = set; then :
8117  withval=$with_aix_soname; case $withval in
8118    aix|svr4|both)
8119      ;;
8120    *)
8121      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8122      ;;
8123    esac
8124    lt_cv_with_aix_soname=$with_aix_soname
8125else
8126  if ${lt_cv_with_aix_soname+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  lt_cv_with_aix_soname=aix
8130fi
8131
8132    with_aix_soname=$lt_cv_with_aix_soname
8133fi
8134
8135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8136$as_echo "$with_aix_soname" >&6; }
8137  if test aix != "$with_aix_soname"; then
8138    # For the AIX way of multilib, we name the shared archive member
8139    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8140    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8141    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8142    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8143    if test 64 = "${OBJECT_MODE-32}"; then
8144      shared_archive_member_spec=shr_64
8145    else
8146      shared_archive_member_spec=shr
8147    fi
8148  fi
8149  ;;
8150*)
8151  with_aix_soname=aix
8152  ;;
8153esac
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164# This can be used to rebuild libtool when needed
8165LIBTOOL_DEPS=$ltmain
8166
8167# Always use our own libtool.
8168LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199test -z "$LN_S" && LN_S="ln -s"
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214if test -n "${ZSH_VERSION+set}"; then
8215   setopt NO_GLOB_SUBST
8216fi
8217
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8219$as_echo_n "checking for objdir... " >&6; }
8220if ${lt_cv_objdir+:} false; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  rm -f .libs 2>/dev/null
8224mkdir .libs 2>/dev/null
8225if test -d .libs; then
8226  lt_cv_objdir=.libs
8227else
8228  # MS-DOS does not allow filenames that begin with a dot.
8229  lt_cv_objdir=_libs
8230fi
8231rmdir .libs 2>/dev/null
8232fi
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8234$as_echo "$lt_cv_objdir" >&6; }
8235objdir=$lt_cv_objdir
8236
8237
8238
8239
8240
8241cat >>confdefs.h <<_ACEOF
8242#define LT_OBJDIR "$lt_cv_objdir/"
8243_ACEOF
8244
8245
8246
8247
8248case $host_os in
8249aix3*)
8250  # AIX sometimes has problems with the GCC collect2 program.  For some
8251  # reason, if we set the COLLECT_NAMES environment variable, the problems
8252  # vanish in a puff of smoke.
8253  if test set != "${COLLECT_NAMES+set}"; then
8254    COLLECT_NAMES=
8255    export COLLECT_NAMES
8256  fi
8257  ;;
8258esac
8259
8260# Global variables:
8261ofile=libtool
8262can_build_shared=yes
8263
8264# All known linkers require a '.a' archive for static linking (except MSVC and
8265# ICC, which need '.lib').
8266libext=a
8267
8268with_gnu_ld=$lt_cv_prog_gnu_ld
8269
8270old_CC=$CC
8271old_CFLAGS=$CFLAGS
8272
8273# Set sane defaults for various variables
8274test -z "$CC" && CC=cc
8275test -z "$LTCC" && LTCC=$CC
8276test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8277test -z "$LD" && LD=ld
8278test -z "$ac_objext" && ac_objext=o
8279
8280func_cc_basename $compiler
8281cc_basename=$func_cc_basename_result
8282
8283
8284# Only perform the check for file, if the check method requires it
8285test -z "$MAGIC_CMD" && MAGIC_CMD=file
8286case $deplibs_check_method in
8287file_magic*)
8288  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8290$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8291if ${lt_cv_path_MAGIC_CMD+:} false; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  case $MAGIC_CMD in
8295[\\/*] |  ?:[\\/]*)
8296  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8297  ;;
8298*)
8299  lt_save_MAGIC_CMD=$MAGIC_CMD
8300  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8301  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8302  for ac_dir in $ac_dummy; do
8303    IFS=$lt_save_ifs
8304    test -z "$ac_dir" && ac_dir=.
8305    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8306      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8307      if test -n "$file_magic_test_file"; then
8308	case $deplibs_check_method in
8309	"file_magic "*)
8310	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8311	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8312	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8313	    $EGREP "$file_magic_regex" > /dev/null; then
8314	    :
8315	  else
8316	    cat <<_LT_EOF 1>&2
8317
8318*** Warning: the command libtool uses to detect shared libraries,
8319*** $file_magic_cmd, produces output that libtool cannot recognize.
8320*** The result is that libtool may fail to recognize shared libraries
8321*** as such.  This will affect the creation of libtool libraries that
8322*** depend on shared libraries, but programs linked with such libtool
8323*** libraries will work regardless of this problem.  Nevertheless, you
8324*** may want to report the problem to your system manager and/or to
8325*** bug-libtool@gnu.org
8326
8327_LT_EOF
8328	  fi ;;
8329	esac
8330      fi
8331      break
8332    fi
8333  done
8334  IFS=$lt_save_ifs
8335  MAGIC_CMD=$lt_save_MAGIC_CMD
8336  ;;
8337esac
8338fi
8339
8340MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8341if test -n "$MAGIC_CMD"; then
8342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8343$as_echo "$MAGIC_CMD" >&6; }
8344else
8345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346$as_echo "no" >&6; }
8347fi
8348
8349
8350
8351
8352
8353if test -z "$lt_cv_path_MAGIC_CMD"; then
8354  if test -n "$ac_tool_prefix"; then
8355    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8356$as_echo_n "checking for file... " >&6; }
8357if ${lt_cv_path_MAGIC_CMD+:} false; then :
8358  $as_echo_n "(cached) " >&6
8359else
8360  case $MAGIC_CMD in
8361[\\/*] |  ?:[\\/]*)
8362  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8363  ;;
8364*)
8365  lt_save_MAGIC_CMD=$MAGIC_CMD
8366  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8367  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8368  for ac_dir in $ac_dummy; do
8369    IFS=$lt_save_ifs
8370    test -z "$ac_dir" && ac_dir=.
8371    if test -f "$ac_dir/file"; then
8372      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8373      if test -n "$file_magic_test_file"; then
8374	case $deplibs_check_method in
8375	"file_magic "*)
8376	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8377	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8378	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8379	    $EGREP "$file_magic_regex" > /dev/null; then
8380	    :
8381	  else
8382	    cat <<_LT_EOF 1>&2
8383
8384*** Warning: the command libtool uses to detect shared libraries,
8385*** $file_magic_cmd, produces output that libtool cannot recognize.
8386*** The result is that libtool may fail to recognize shared libraries
8387*** as such.  This will affect the creation of libtool libraries that
8388*** depend on shared libraries, but programs linked with such libtool
8389*** libraries will work regardless of this problem.  Nevertheless, you
8390*** may want to report the problem to your system manager and/or to
8391*** bug-libtool@gnu.org
8392
8393_LT_EOF
8394	  fi ;;
8395	esac
8396      fi
8397      break
8398    fi
8399  done
8400  IFS=$lt_save_ifs
8401  MAGIC_CMD=$lt_save_MAGIC_CMD
8402  ;;
8403esac
8404fi
8405
8406MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8407if test -n "$MAGIC_CMD"; then
8408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8409$as_echo "$MAGIC_CMD" >&6; }
8410else
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
8413fi
8414
8415
8416  else
8417    MAGIC_CMD=:
8418  fi
8419fi
8420
8421  fi
8422  ;;
8423esac
8424
8425# Use C for the default configuration in the libtool script
8426
8427lt_save_CC=$CC
8428ac_ext=c
8429ac_cpp='$CPP $CPPFLAGS'
8430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8432ac_compiler_gnu=$ac_cv_c_compiler_gnu
8433
8434
8435# Source file extension for C test sources.
8436ac_ext=c
8437
8438# Object file extension for compiled C test sources.
8439objext=o
8440objext=$objext
8441
8442# Code to be used in simple compile tests
8443lt_simple_compile_test_code="int some_variable = 0;"
8444
8445# Code to be used in simple link tests
8446lt_simple_link_test_code='int main(){return(0);}'
8447
8448
8449
8450
8451
8452
8453
8454# If no C compiler was specified, use CC.
8455LTCC=${LTCC-"$CC"}
8456
8457# If no C compiler flags were specified, use CFLAGS.
8458LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8459
8460# Allow CC to be a program name with arguments.
8461compiler=$CC
8462
8463# Save the default compiler, since it gets overwritten when the other
8464# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8465compiler_DEFAULT=$CC
8466
8467# save warnings/boilerplate of simple test code
8468ac_outfile=conftest.$ac_objext
8469echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8470eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8471_lt_compiler_boilerplate=`cat conftest.err`
8472$RM conftest*
8473
8474ac_outfile=conftest.$ac_objext
8475echo "$lt_simple_link_test_code" >conftest.$ac_ext
8476eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8477_lt_linker_boilerplate=`cat conftest.err`
8478$RM -r conftest*
8479
8480
8481## CAVEAT EMPTOR:
8482## There is no encapsulation within the following macros, do not change
8483## the running order or otherwise move them around unless you know exactly
8484## what you are doing...
8485if test -n "$compiler"; then
8486
8487lt_prog_compiler_no_builtin_flag=
8488
8489if test yes = "$GCC"; then
8490  case $cc_basename in
8491  nvcc*)
8492    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8493  *)
8494    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8495  esac
8496
8497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8498$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8499if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8500  $as_echo_n "(cached) " >&6
8501else
8502  lt_cv_prog_compiler_rtti_exceptions=no
8503   ac_outfile=conftest.$ac_objext
8504   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8505   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8506   # Insert the option either (1) after the last *FLAGS variable, or
8507   # (2) before a word containing "conftest.", or (3) at the end.
8508   # Note that $ac_compile itself does not contain backslashes and begins
8509   # with a dollar sign (not a hyphen), so the echo should work correctly.
8510   # The option is referenced via a variable to avoid confusing sed.
8511   lt_compile=`echo "$ac_compile" | $SED \
8512   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8513   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8514   -e 's:$: $lt_compiler_flag:'`
8515   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8516   (eval "$lt_compile" 2>conftest.err)
8517   ac_status=$?
8518   cat conftest.err >&5
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   if (exit $ac_status) && test -s "$ac_outfile"; then
8521     # The compiler can only warn and ignore the option if not recognized
8522     # So say no if there are warnings other than the usual output.
8523     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8524     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8525     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8526       lt_cv_prog_compiler_rtti_exceptions=yes
8527     fi
8528   fi
8529   $RM conftest*
8530
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8533$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8534
8535if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8536    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8537else
8538    :
8539fi
8540
8541fi
8542
8543
8544
8545
8546
8547
8548  lt_prog_compiler_wl=
8549lt_prog_compiler_pic=
8550lt_prog_compiler_static=
8551
8552
8553  if test yes = "$GCC"; then
8554    lt_prog_compiler_wl='-Wl,'
8555    lt_prog_compiler_static='-static'
8556
8557    case $host_os in
8558      aix*)
8559      # All AIX code is PIC.
8560      if test ia64 = "$host_cpu"; then
8561	# AIX 5 now supports IA64 processor
8562	lt_prog_compiler_static='-Bstatic'
8563      fi
8564      lt_prog_compiler_pic='-fPIC'
8565      ;;
8566
8567    amigaos*)
8568      case $host_cpu in
8569      powerpc)
8570            # see comment about AmigaOS4 .so support
8571            lt_prog_compiler_pic='-fPIC'
8572        ;;
8573      m68k)
8574            # FIXME: we need at least 68020 code to build shared libraries, but
8575            # adding the '-m68020' flag to GCC prevents building anything better,
8576            # like '-m68040'.
8577            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8578        ;;
8579      esac
8580      ;;
8581
8582    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8583      # PIC is the default for these OSes.
8584      ;;
8585
8586    mingw* | cygwin* | pw32* | os2* | cegcc*)
8587      # This hack is so that the source file can tell whether it is being
8588      # built for inclusion in a dll (and should export symbols for example).
8589      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8590      # (--disable-auto-import) libraries
8591      lt_prog_compiler_pic='-DDLL_EXPORT'
8592      case $host_os in
8593      os2*)
8594	lt_prog_compiler_static='$wl-static'
8595	;;
8596      esac
8597      ;;
8598
8599    darwin* | rhapsody*)
8600      # PIC is the default on this platform
8601      # Common symbols not allowed in MH_DYLIB files
8602      lt_prog_compiler_pic='-fno-common'
8603      ;;
8604
8605    haiku*)
8606      # PIC is the default for Haiku.
8607      # The "-static" flag exists, but is broken.
8608      lt_prog_compiler_static=
8609      ;;
8610
8611    hpux*)
8612      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8613      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8614      # sets the default TLS model and affects inlining.
8615      case $host_cpu in
8616      hppa*64*)
8617	# +Z the default
8618	;;
8619      *)
8620	lt_prog_compiler_pic='-fPIC'
8621	;;
8622      esac
8623      ;;
8624
8625    interix[3-9]*)
8626      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8627      # Instead, we relocate shared libraries at runtime.
8628      ;;
8629
8630    msdosdjgpp*)
8631      # Just because we use GCC doesn't mean we suddenly get shared libraries
8632      # on systems that don't support them.
8633      lt_prog_compiler_can_build_shared=no
8634      enable_shared=no
8635      ;;
8636
8637    *nto* | *qnx*)
8638      # QNX uses GNU C++, but need to define -shared option too, otherwise
8639      # it will coredump.
8640      lt_prog_compiler_pic='-fPIC -shared'
8641      ;;
8642
8643    sysv4*MP*)
8644      if test -d /usr/nec; then
8645	lt_prog_compiler_pic=-Kconform_pic
8646      fi
8647      ;;
8648
8649    *)
8650      lt_prog_compiler_pic='-fPIC'
8651      ;;
8652    esac
8653
8654    case $cc_basename in
8655    nvcc*) # Cuda Compiler Driver 2.2
8656      lt_prog_compiler_wl='-Xlinker '
8657      if test -n "$lt_prog_compiler_pic"; then
8658        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8659      fi
8660      ;;
8661    esac
8662  else
8663    # PORTME Check for flag to pass linker flags through the system compiler.
8664    case $host_os in
8665    aix*)
8666      lt_prog_compiler_wl='-Wl,'
8667      if test ia64 = "$host_cpu"; then
8668	# AIX 5 now supports IA64 processor
8669	lt_prog_compiler_static='-Bstatic'
8670      else
8671	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8672      fi
8673      ;;
8674
8675    darwin* | rhapsody*)
8676      # PIC is the default on this platform
8677      # Common symbols not allowed in MH_DYLIB files
8678      lt_prog_compiler_pic='-fno-common'
8679      case $cc_basename in
8680      nagfor*)
8681        # NAG Fortran compiler
8682        lt_prog_compiler_wl='-Wl,-Wl,,'
8683        lt_prog_compiler_pic='-PIC'
8684        lt_prog_compiler_static='-Bstatic'
8685        ;;
8686      esac
8687      ;;
8688
8689    mingw* | cygwin* | pw32* | os2* | cegcc*)
8690      # This hack is so that the source file can tell whether it is being
8691      # built for inclusion in a dll (and should export symbols for example).
8692      lt_prog_compiler_pic='-DDLL_EXPORT'
8693      case $host_os in
8694      os2*)
8695	lt_prog_compiler_static='$wl-static'
8696	;;
8697      esac
8698      ;;
8699
8700    hpux9* | hpux10* | hpux11*)
8701      lt_prog_compiler_wl='-Wl,'
8702      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8703      # not for PA HP-UX.
8704      case $host_cpu in
8705      hppa*64*|ia64*)
8706	# +Z the default
8707	;;
8708      *)
8709	lt_prog_compiler_pic='+Z'
8710	;;
8711      esac
8712      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8713      lt_prog_compiler_static='$wl-a ${wl}archive'
8714      ;;
8715
8716    irix5* | irix6* | nonstopux*)
8717      lt_prog_compiler_wl='-Wl,'
8718      # PIC (with -KPIC) is the default.
8719      lt_prog_compiler_static='-non_shared'
8720      ;;
8721
8722    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8723      case $cc_basename in
8724      # old Intel for x86_64, which still supported -KPIC.
8725      ecc*)
8726	lt_prog_compiler_wl='-Wl,'
8727	lt_prog_compiler_pic='-KPIC'
8728	lt_prog_compiler_static='-static'
8729        ;;
8730      # icc used to be incompatible with GCC.
8731      # ICC 10 doesn't accept -KPIC any more.
8732      icc* | ifort*)
8733	lt_prog_compiler_wl='-Wl,'
8734	lt_prog_compiler_pic='-fPIC'
8735	lt_prog_compiler_static='-static'
8736        ;;
8737      # Lahey Fortran 8.1.
8738      lf95*)
8739	lt_prog_compiler_wl='-Wl,'
8740	lt_prog_compiler_pic='--shared'
8741	lt_prog_compiler_static='--static'
8742	;;
8743      nagfor*)
8744	# NAG Fortran compiler
8745	lt_prog_compiler_wl='-Wl,-Wl,,'
8746	lt_prog_compiler_pic='-PIC'
8747	lt_prog_compiler_static='-Bstatic'
8748	;;
8749      tcc*)
8750	# Fabrice Bellard et al's Tiny C Compiler
8751	lt_prog_compiler_wl='-Wl,'
8752	lt_prog_compiler_pic='-fPIC'
8753	lt_prog_compiler_static='-static'
8754	;;
8755      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8756        # Portland Group compilers (*not* the Pentium gcc compiler,
8757	# which looks to be a dead project)
8758	lt_prog_compiler_wl='-Wl,'
8759	lt_prog_compiler_pic='-fpic'
8760	lt_prog_compiler_static='-Bstatic'
8761        ;;
8762      ccc*)
8763        lt_prog_compiler_wl='-Wl,'
8764        # All Alpha code is PIC.
8765        lt_prog_compiler_static='-non_shared'
8766        ;;
8767      xl* | bgxl* | bgf* | mpixl*)
8768	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8769	lt_prog_compiler_wl='-Wl,'
8770	lt_prog_compiler_pic='-qpic'
8771	lt_prog_compiler_static='-qstaticlink'
8772	;;
8773      *)
8774	case `$CC -V 2>&1 | sed 5q` in
8775	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8776	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8777	  lt_prog_compiler_pic='-KPIC'
8778	  lt_prog_compiler_static='-Bstatic'
8779	  lt_prog_compiler_wl=''
8780	  ;;
8781	*Sun\ F* | *Sun*Fortran*)
8782	  lt_prog_compiler_pic='-KPIC'
8783	  lt_prog_compiler_static='-Bstatic'
8784	  lt_prog_compiler_wl='-Qoption ld '
8785	  ;;
8786	*Sun\ C*)
8787	  # Sun C 5.9
8788	  lt_prog_compiler_pic='-KPIC'
8789	  lt_prog_compiler_static='-Bstatic'
8790	  lt_prog_compiler_wl='-Wl,'
8791	  ;;
8792        *Intel*\ [CF]*Compiler*)
8793	  lt_prog_compiler_wl='-Wl,'
8794	  lt_prog_compiler_pic='-fPIC'
8795	  lt_prog_compiler_static='-static'
8796	  ;;
8797	*Portland\ Group*)
8798	  lt_prog_compiler_wl='-Wl,'
8799	  lt_prog_compiler_pic='-fpic'
8800	  lt_prog_compiler_static='-Bstatic'
8801	  ;;
8802	esac
8803	;;
8804      esac
8805      ;;
8806
8807    newsos6)
8808      lt_prog_compiler_pic='-KPIC'
8809      lt_prog_compiler_static='-Bstatic'
8810      ;;
8811
8812    *nto* | *qnx*)
8813      # QNX uses GNU C++, but need to define -shared option too, otherwise
8814      # it will coredump.
8815      lt_prog_compiler_pic='-fPIC -shared'
8816      ;;
8817
8818    osf3* | osf4* | osf5*)
8819      lt_prog_compiler_wl='-Wl,'
8820      # All OSF/1 code is PIC.
8821      lt_prog_compiler_static='-non_shared'
8822      ;;
8823
8824    rdos*)
8825      lt_prog_compiler_static='-non_shared'
8826      ;;
8827
8828    solaris*)
8829      lt_prog_compiler_pic='-KPIC'
8830      lt_prog_compiler_static='-Bstatic'
8831      case $cc_basename in
8832      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8833	lt_prog_compiler_wl='-Qoption ld ';;
8834      *)
8835	lt_prog_compiler_wl='-Wl,';;
8836      esac
8837      ;;
8838
8839    sunos4*)
8840      lt_prog_compiler_wl='-Qoption ld '
8841      lt_prog_compiler_pic='-PIC'
8842      lt_prog_compiler_static='-Bstatic'
8843      ;;
8844
8845    sysv4 | sysv4.2uw2* | sysv4.3*)
8846      lt_prog_compiler_wl='-Wl,'
8847      lt_prog_compiler_pic='-KPIC'
8848      lt_prog_compiler_static='-Bstatic'
8849      ;;
8850
8851    sysv4*MP*)
8852      if test -d /usr/nec; then
8853	lt_prog_compiler_pic='-Kconform_pic'
8854	lt_prog_compiler_static='-Bstatic'
8855      fi
8856      ;;
8857
8858    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8859      lt_prog_compiler_wl='-Wl,'
8860      lt_prog_compiler_pic='-KPIC'
8861      lt_prog_compiler_static='-Bstatic'
8862      ;;
8863
8864    unicos*)
8865      lt_prog_compiler_wl='-Wl,'
8866      lt_prog_compiler_can_build_shared=no
8867      ;;
8868
8869    uts4*)
8870      lt_prog_compiler_pic='-pic'
8871      lt_prog_compiler_static='-Bstatic'
8872      ;;
8873
8874    *)
8875      lt_prog_compiler_can_build_shared=no
8876      ;;
8877    esac
8878  fi
8879
8880case $host_os in
8881  # For platforms that do not support PIC, -DPIC is meaningless:
8882  *djgpp*)
8883    lt_prog_compiler_pic=
8884    ;;
8885  *)
8886    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8887    ;;
8888esac
8889
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8891$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8892if ${lt_cv_prog_compiler_pic+:} false; then :
8893  $as_echo_n "(cached) " >&6
8894else
8895  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8896fi
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8898$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8899lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8900
8901#
8902# Check to make sure the PIC flag actually works.
8903#
8904if test -n "$lt_prog_compiler_pic"; then
8905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8906$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8907if ${lt_cv_prog_compiler_pic_works+:} false; then :
8908  $as_echo_n "(cached) " >&6
8909else
8910  lt_cv_prog_compiler_pic_works=no
8911   ac_outfile=conftest.$ac_objext
8912   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8913   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8914   # Insert the option either (1) after the last *FLAGS variable, or
8915   # (2) before a word containing "conftest.", or (3) at the end.
8916   # Note that $ac_compile itself does not contain backslashes and begins
8917   # with a dollar sign (not a hyphen), so the echo should work correctly.
8918   # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
8925   ac_status=$?
8926   cat conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   if (exit $ac_status) && test -s "$ac_outfile"; then
8929     # The compiler can only warn and ignore the option if not recognized
8930     # So say no if there are warnings other than the usual output.
8931     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8932     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8933     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8934       lt_cv_prog_compiler_pic_works=yes
8935     fi
8936   fi
8937   $RM conftest*
8938
8939fi
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8941$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8942
8943if test yes = "$lt_cv_prog_compiler_pic_works"; then
8944    case $lt_prog_compiler_pic in
8945     "" | " "*) ;;
8946     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8947     esac
8948else
8949    lt_prog_compiler_pic=
8950     lt_prog_compiler_can_build_shared=no
8951fi
8952
8953fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965#
8966# Check to make sure the static flag actually works.
8967#
8968wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8970$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8971if ${lt_cv_prog_compiler_static_works+:} false; then :
8972  $as_echo_n "(cached) " >&6
8973else
8974  lt_cv_prog_compiler_static_works=no
8975   save_LDFLAGS=$LDFLAGS
8976   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8977   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8978   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8979     # The linker can only warn and ignore the option if not recognized
8980     # So say no if there are warnings
8981     if test -s conftest.err; then
8982       # Append any errors to the config.log.
8983       cat conftest.err 1>&5
8984       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8985       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8986       if diff conftest.exp conftest.er2 >/dev/null; then
8987         lt_cv_prog_compiler_static_works=yes
8988       fi
8989     else
8990       lt_cv_prog_compiler_static_works=yes
8991     fi
8992   fi
8993   $RM -r conftest*
8994   LDFLAGS=$save_LDFLAGS
8995
8996fi
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8998$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8999
9000if test yes = "$lt_cv_prog_compiler_static_works"; then
9001    :
9002else
9003    lt_prog_compiler_static=
9004fi
9005
9006
9007
9008
9009
9010
9011
9012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9013$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9014if ${lt_cv_prog_compiler_c_o+:} false; then :
9015  $as_echo_n "(cached) " >&6
9016else
9017  lt_cv_prog_compiler_c_o=no
9018   $RM -r conftest 2>/dev/null
9019   mkdir conftest
9020   cd conftest
9021   mkdir out
9022   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9023
9024   lt_compiler_flag="-o out/conftest2.$ac_objext"
9025   # Insert the option either (1) after the last *FLAGS variable, or
9026   # (2) before a word containing "conftest.", or (3) at the end.
9027   # Note that $ac_compile itself does not contain backslashes and begins
9028   # with a dollar sign (not a hyphen), so the echo should work correctly.
9029   lt_compile=`echo "$ac_compile" | $SED \
9030   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9031   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9032   -e 's:$: $lt_compiler_flag:'`
9033   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9034   (eval "$lt_compile" 2>out/conftest.err)
9035   ac_status=$?
9036   cat out/conftest.err >&5
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9039   then
9040     # The compiler can only warn and ignore the option if not recognized
9041     # So say no if there are warnings
9042     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9043     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9044     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9045       lt_cv_prog_compiler_c_o=yes
9046     fi
9047   fi
9048   chmod u+w . 2>&5
9049   $RM conftest*
9050   # SGI C++ compiler will create directory out/ii_files/ for
9051   # template instantiation
9052   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9053   $RM out/* && rmdir out
9054   cd ..
9055   $RM -r conftest
9056   $RM conftest*
9057
9058fi
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9060$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9061
9062
9063
9064
9065
9066
9067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9068$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9069if ${lt_cv_prog_compiler_c_o+:} false; then :
9070  $as_echo_n "(cached) " >&6
9071else
9072  lt_cv_prog_compiler_c_o=no
9073   $RM -r conftest 2>/dev/null
9074   mkdir conftest
9075   cd conftest
9076   mkdir out
9077   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9078
9079   lt_compiler_flag="-o out/conftest2.$ac_objext"
9080   # Insert the option either (1) after the last *FLAGS variable, or
9081   # (2) before a word containing "conftest.", or (3) at the end.
9082   # Note that $ac_compile itself does not contain backslashes and begins
9083   # with a dollar sign (not a hyphen), so the echo should work correctly.
9084   lt_compile=`echo "$ac_compile" | $SED \
9085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9087   -e 's:$: $lt_compiler_flag:'`
9088   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9089   (eval "$lt_compile" 2>out/conftest.err)
9090   ac_status=$?
9091   cat out/conftest.err >&5
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9094   then
9095     # The compiler can only warn and ignore the option if not recognized
9096     # So say no if there are warnings
9097     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9098     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9099     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9100       lt_cv_prog_compiler_c_o=yes
9101     fi
9102   fi
9103   chmod u+w . 2>&5
9104   $RM conftest*
9105   # SGI C++ compiler will create directory out/ii_files/ for
9106   # template instantiation
9107   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9108   $RM out/* && rmdir out
9109   cd ..
9110   $RM -r conftest
9111   $RM conftest*
9112
9113fi
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9115$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9116
9117
9118
9119
9120hard_links=nottested
9121if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9122  # do not overwrite the value of need_locks provided by the user
9123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9124$as_echo_n "checking if we can lock with hard links... " >&6; }
9125  hard_links=yes
9126  $RM conftest*
9127  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9128  touch conftest.a
9129  ln conftest.a conftest.b 2>&5 || hard_links=no
9130  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9132$as_echo "$hard_links" >&6; }
9133  if test no = "$hard_links"; then
9134    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9135$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9136    need_locks=warn
9137  fi
9138else
9139  need_locks=no
9140fi
9141
9142
9143
9144
9145
9146
9147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9148$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9149
9150  runpath_var=
9151  allow_undefined_flag=
9152  always_export_symbols=no
9153  archive_cmds=
9154  archive_expsym_cmds=
9155  compiler_needs_object=no
9156  enable_shared_with_static_runtimes=no
9157  export_dynamic_flag_spec=
9158  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9159  hardcode_automatic=no
9160  hardcode_direct=no
9161  hardcode_direct_absolute=no
9162  hardcode_libdir_flag_spec=
9163  hardcode_libdir_separator=
9164  hardcode_minus_L=no
9165  hardcode_shlibpath_var=unsupported
9166  inherit_rpath=no
9167  link_all_deplibs=unknown
9168  module_cmds=
9169  module_expsym_cmds=
9170  old_archive_from_new_cmds=
9171  old_archive_from_expsyms_cmds=
9172  thread_safe_flag_spec=
9173  whole_archive_flag_spec=
9174  # include_expsyms should be a list of space-separated symbols to be *always*
9175  # included in the symbol list
9176  include_expsyms=
9177  # exclude_expsyms can be an extended regexp of symbols to exclude
9178  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9179  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9180  # as well as any symbol that contains 'd'.
9181  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9182  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9183  # platforms (ab)use it in PIC code, but their linkers get confused if
9184  # the symbol is explicitly referenced.  Since portable code cannot
9185  # rely on this symbol name, it's probably fine to never include it in
9186  # preloaded symbol tables.
9187  # Exclude shared library initialization/finalization symbols.
9188  extract_expsyms_cmds=
9189
9190  case $host_os in
9191  cygwin* | mingw* | pw32* | cegcc*)
9192    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9193    # When not using gcc, we currently assume that we are using
9194    # Microsoft Visual C++ or Intel C++ Compiler.
9195    if test yes != "$GCC"; then
9196      with_gnu_ld=no
9197    fi
9198    ;;
9199  interix*)
9200    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9201    with_gnu_ld=yes
9202    ;;
9203  openbsd* | bitrig*)
9204    with_gnu_ld=no
9205    ;;
9206  esac
9207
9208  ld_shlibs=yes
9209
9210  # On some targets, GNU ld is compatible enough with the native linker
9211  # that we're better off using the native interface for both.
9212  lt_use_gnu_ld_interface=no
9213  if test yes = "$with_gnu_ld"; then
9214    case $host_os in
9215      aix*)
9216	# The AIX port of GNU ld has always aspired to compatibility
9217	# with the native linker.  However, as the warning in the GNU ld
9218	# block says, versions before 2.19.5* couldn't really create working
9219	# shared libraries, regardless of the interface used.
9220	case `$LD -v 2>&1` in
9221	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9222	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9223	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9224	  *)
9225	    lt_use_gnu_ld_interface=yes
9226	    ;;
9227	esac
9228	;;
9229      *)
9230	lt_use_gnu_ld_interface=yes
9231	;;
9232    esac
9233  fi
9234
9235  if test yes = "$lt_use_gnu_ld_interface"; then
9236    # If archive_cmds runs LD, not CC, wlarc should be empty
9237    wlarc='$wl'
9238
9239    # Set some defaults for GNU ld with shared library support. These
9240    # are reset later if shared libraries are not supported. Putting them
9241    # here allows them to be overridden if necessary.
9242    runpath_var=LD_RUN_PATH
9243    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9244    export_dynamic_flag_spec='$wl--export-dynamic'
9245    # ancient GNU ld didn't support --whole-archive et. al.
9246    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9247      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9248    else
9249      whole_archive_flag_spec=
9250    fi
9251    supports_anon_versioning=no
9252    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9253      *GNU\ gold*) supports_anon_versioning=yes ;;
9254      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9255      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9256      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9257      *\ 2.11.*) ;; # other 2.11 versions
9258      *) supports_anon_versioning=yes ;;
9259    esac
9260
9261    # See if GNU ld supports shared libraries.
9262    case $host_os in
9263    aix[3-9]*)
9264      # On AIX/PPC, the GNU linker is very broken
9265      if test ia64 != "$host_cpu"; then
9266	ld_shlibs=no
9267	cat <<_LT_EOF 1>&2
9268
9269*** Warning: the GNU linker, at least up to release 2.19, is reported
9270*** to be unable to reliably create shared libraries on AIX.
9271*** Therefore, libtool is disabling shared libraries support.  If you
9272*** really care for shared libraries, you may want to install binutils
9273*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9274*** You will then need to restart the configuration process.
9275
9276_LT_EOF
9277      fi
9278      ;;
9279
9280    amigaos*)
9281      case $host_cpu in
9282      powerpc)
9283            # see comment about AmigaOS4 .so support
9284            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9285            archive_expsym_cmds=''
9286        ;;
9287      m68k)
9288            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)'
9289            hardcode_libdir_flag_spec='-L$libdir'
9290            hardcode_minus_L=yes
9291        ;;
9292      esac
9293      ;;
9294
9295    beos*)
9296      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9297	allow_undefined_flag=unsupported
9298	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9299	# support --undefined.  This deserves some investigation.  FIXME
9300	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9301      else
9302	ld_shlibs=no
9303      fi
9304      ;;
9305
9306    cygwin* | mingw* | pw32* | cegcc*)
9307      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9308      # as there is no search path for DLLs.
9309      hardcode_libdir_flag_spec='-L$libdir'
9310      export_dynamic_flag_spec='$wl--export-all-symbols'
9311      allow_undefined_flag=unsupported
9312      always_export_symbols=no
9313      enable_shared_with_static_runtimes=yes
9314      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'
9315      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9316
9317      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9318        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9319	# If the export-symbols file already is a .def file, use it as
9320	# is; otherwise, prepend EXPORTS...
9321	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9322          cp $export_symbols $output_objdir/$soname.def;
9323        else
9324          echo EXPORTS > $output_objdir/$soname.def;
9325          cat $export_symbols >> $output_objdir/$soname.def;
9326        fi~
9327        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9328      else
9329	ld_shlibs=no
9330      fi
9331      ;;
9332
9333    haiku*)
9334      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9335      link_all_deplibs=yes
9336      ;;
9337
9338    os2*)
9339      hardcode_libdir_flag_spec='-L$libdir'
9340      hardcode_minus_L=yes
9341      allow_undefined_flag=unsupported
9342      shrext_cmds=.dll
9343      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9344	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9345	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9346	$ECHO EXPORTS >> $output_objdir/$libname.def~
9347	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9348	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9349	emximp -o $lib $output_objdir/$libname.def'
9350      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9351	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9352	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9353	$ECHO EXPORTS >> $output_objdir/$libname.def~
9354	prefix_cmds="$SED"~
9355	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9356	  prefix_cmds="$prefix_cmds -e 1d";
9357	fi~
9358	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9359	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9360	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9361	emximp -o $lib $output_objdir/$libname.def'
9362      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9363      enable_shared_with_static_runtimes=yes
9364      file_list_spec='@'
9365      ;;
9366
9367    interix[3-9]*)
9368      hardcode_direct=no
9369      hardcode_shlibpath_var=no
9370      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9371      export_dynamic_flag_spec='$wl-E'
9372      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9373      # Instead, shared libraries are loaded at an image base (0x10000000 by
9374      # default) and relocated if they conflict, which is a slow very memory
9375      # consuming and fragmenting process.  To avoid this, we pick a random,
9376      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9377      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9378      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9379      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'
9380      ;;
9381
9382    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9383      tmp_diet=no
9384      if test linux-dietlibc = "$host_os"; then
9385	case $cc_basename in
9386	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9387	esac
9388      fi
9389      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9390	 && test no = "$tmp_diet"
9391      then
9392	tmp_addflag=' $pic_flag'
9393	tmp_sharedflag='-shared'
9394	case $cc_basename,$host_cpu in
9395        pgcc*)				# Portland Group C compiler
9396	  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'
9397	  tmp_addflag=' $pic_flag'
9398	  ;;
9399	pgf77* | pgf90* | pgf95* | pgfortran*)
9400					# Portland Group f77 and f90 compilers
9401	  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'
9402	  tmp_addflag=' $pic_flag -Mnomain' ;;
9403	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9404	  tmp_addflag=' -i_dynamic' ;;
9405	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9406	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9407	ifc* | ifort*)			# Intel Fortran compiler
9408	  tmp_addflag=' -nofor_main' ;;
9409	lf95*)				# Lahey Fortran 8.1
9410	  whole_archive_flag_spec=
9411	  tmp_sharedflag='--shared' ;;
9412        nagfor*)                        # NAGFOR 5.3
9413          tmp_sharedflag='-Wl,-shared' ;;
9414	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9415	  tmp_sharedflag='-qmkshrobj'
9416	  tmp_addflag= ;;
9417	nvcc*)	# Cuda Compiler Driver 2.2
9418	  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'
9419	  compiler_needs_object=yes
9420	  ;;
9421	esac
9422	case `$CC -V 2>&1 | sed 5q` in
9423	*Sun\ C*)			# Sun C 5.9
9424	  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'
9425	  compiler_needs_object=yes
9426	  tmp_sharedflag='-G' ;;
9427	*Sun\ F*)			# Sun Fortran 8.3
9428	  tmp_sharedflag='-G' ;;
9429	esac
9430	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9431
9432        if test yes = "$supports_anon_versioning"; then
9433          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9434            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9435            echo "local: *; };" >> $output_objdir/$libname.ver~
9436            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9437        fi
9438
9439	case $cc_basename in
9440	tcc*)
9441	  export_dynamic_flag_spec='-rdynamic'
9442	  ;;
9443	xlf* | bgf* | bgxlf* | mpixlf*)
9444	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9445	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9446	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9447	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9448	  if test yes = "$supports_anon_versioning"; then
9449	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9450              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9451              echo "local: *; };" >> $output_objdir/$libname.ver~
9452              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9453	  fi
9454	  ;;
9455	esac
9456      else
9457        ld_shlibs=no
9458      fi
9459      ;;
9460
9461    netbsd*)
9462      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9463	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9464	wlarc=
9465      else
9466	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9467	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9468      fi
9469      ;;
9470
9471    solaris*)
9472      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9473	ld_shlibs=no
9474	cat <<_LT_EOF 1>&2
9475
9476*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9477*** create shared libraries on Solaris systems.  Therefore, libtool
9478*** is disabling shared libraries support.  We urge you to upgrade GNU
9479*** binutils to release 2.9.1 or newer.  Another option is to modify
9480*** your PATH or compiler configuration so that the native linker is
9481*** used, and then restart.
9482
9483_LT_EOF
9484      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9485	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9486	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9487      else
9488	ld_shlibs=no
9489      fi
9490      ;;
9491
9492    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9493      case `$LD -v 2>&1` in
9494        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9495	ld_shlibs=no
9496	cat <<_LT_EOF 1>&2
9497
9498*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9499*** reliably create shared libraries on SCO systems.  Therefore, libtool
9500*** is disabling shared libraries support.  We urge you to upgrade GNU
9501*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9502*** your PATH or compiler configuration so that the native linker is
9503*** used, and then restart.
9504
9505_LT_EOF
9506	;;
9507	*)
9508	  # For security reasons, it is highly recommended that you always
9509	  # use absolute paths for naming shared libraries, and exclude the
9510	  # DT_RUNPATH tag from executables and libraries.  But doing so
9511	  # requires that you compile everything twice, which is a pain.
9512	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9513	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9514	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9515	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9516	  else
9517	    ld_shlibs=no
9518	  fi
9519	;;
9520      esac
9521      ;;
9522
9523    sunos4*)
9524      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9525      wlarc=
9526      hardcode_direct=yes
9527      hardcode_shlibpath_var=no
9528      ;;
9529
9530    *)
9531      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9532	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9533	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9534      else
9535	ld_shlibs=no
9536      fi
9537      ;;
9538    esac
9539
9540    if test no = "$ld_shlibs"; then
9541      runpath_var=
9542      hardcode_libdir_flag_spec=
9543      export_dynamic_flag_spec=
9544      whole_archive_flag_spec=
9545    fi
9546  else
9547    # PORTME fill in a description of your system's linker (not GNU ld)
9548    case $host_os in
9549    aix3*)
9550      allow_undefined_flag=unsupported
9551      always_export_symbols=yes
9552      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'
9553      # Note: this linker hardcodes the directories in LIBPATH if there
9554      # are no directories specified by -L.
9555      hardcode_minus_L=yes
9556      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9557	# Neither direct hardcoding nor static linking is supported with a
9558	# broken collect2.
9559	hardcode_direct=unsupported
9560      fi
9561      ;;
9562
9563    aix[4-9]*)
9564      if test ia64 = "$host_cpu"; then
9565	# On IA64, the linker does run time linking by default, so we don't
9566	# have to do anything special.
9567	aix_use_runtimelinking=no
9568	exp_sym_flag='-Bexport'
9569	no_entry_flag=
9570      else
9571	# If we're using GNU nm, then we don't want the "-C" option.
9572	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9573	# Without the "-l" option, or with the "-B" option, AIX nm treats
9574	# weak defined symbols like other global defined symbols, whereas
9575	# GNU nm marks them as "W".
9576	# While the 'weak' keyword is ignored in the Export File, we need
9577	# it in the Import File for the 'aix-soname' feature, so we have
9578	# to replace the "-B" option with "-P" for AIX nm.
9579	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9580	  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'
9581	else
9582	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9583	fi
9584	aix_use_runtimelinking=no
9585
9586	# Test if we are trying to use run time linking or normal
9587	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9588	# have runtime linking enabled, and use it for executables.
9589	# For shared libraries, we enable/disable runtime linking
9590	# depending on the kind of the shared library created -
9591	# when "with_aix_soname,aix_use_runtimelinking" is:
9592	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9593	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9594	#            lib.a           static archive
9595	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9596	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9597	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9598	#            lib.a(lib.so.V) shared, rtl:no
9599	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9600	#            lib.a           static archive
9601	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9602	  for ld_flag in $LDFLAGS; do
9603	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9604	    aix_use_runtimelinking=yes
9605	    break
9606	  fi
9607	  done
9608	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9609	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9610	    # so we don't have lib.a shared libs to link our executables.
9611	    # We have to force runtime linking in this case.
9612	    aix_use_runtimelinking=yes
9613	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9614	  fi
9615	  ;;
9616	esac
9617
9618	exp_sym_flag='-bexport'
9619	no_entry_flag='-bnoentry'
9620      fi
9621
9622      # When large executables or shared objects are built, AIX ld can
9623      # have problems creating the table of contents.  If linking a library
9624      # or program results in "error TOC overflow" add -mminimal-toc to
9625      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9626      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9627
9628      archive_cmds=''
9629      hardcode_direct=yes
9630      hardcode_direct_absolute=yes
9631      hardcode_libdir_separator=':'
9632      link_all_deplibs=yes
9633      file_list_spec='$wl-f,'
9634      case $with_aix_soname,$aix_use_runtimelinking in
9635      aix,*) ;; # traditional, no import file
9636      svr4,* | *,yes) # use import file
9637	# The Import File defines what to hardcode.
9638	hardcode_direct=no
9639	hardcode_direct_absolute=no
9640	;;
9641      esac
9642
9643      if test yes = "$GCC"; then
9644	case $host_os in aix4.[012]|aix4.[012].*)
9645	# We only want to do this on AIX 4.2 and lower, the check
9646	# below for broken collect2 doesn't work under 4.3+
9647	  collect2name=`$CC -print-prog-name=collect2`
9648	  if test -f "$collect2name" &&
9649	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9650	  then
9651	  # We have reworked collect2
9652	  :
9653	  else
9654	  # We have old collect2
9655	  hardcode_direct=unsupported
9656	  # It fails to find uninstalled libraries when the uninstalled
9657	  # path is not listed in the libpath.  Setting hardcode_minus_L
9658	  # to unsupported forces relinking
9659	  hardcode_minus_L=yes
9660	  hardcode_libdir_flag_spec='-L$libdir'
9661	  hardcode_libdir_separator=
9662	  fi
9663	  ;;
9664	esac
9665	shared_flag='-shared'
9666	if test yes = "$aix_use_runtimelinking"; then
9667	  shared_flag="$shared_flag "'$wl-G'
9668	fi
9669	# Need to ensure runtime linking is disabled for the traditional
9670	# shared library, or the linker may eventually find shared libraries
9671	# /with/ Import File - we do not want to mix them.
9672	shared_flag_aix='-shared'
9673	shared_flag_svr4='-shared $wl-G'
9674      else
9675	# not using gcc
9676	if test ia64 = "$host_cpu"; then
9677	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9678	# chokes on -Wl,-G. The following line is correct:
9679	  shared_flag='-G'
9680	else
9681	  if test yes = "$aix_use_runtimelinking"; then
9682	    shared_flag='$wl-G'
9683	  else
9684	    shared_flag='$wl-bM:SRE'
9685	  fi
9686	  shared_flag_aix='$wl-bM:SRE'
9687	  shared_flag_svr4='$wl-G'
9688	fi
9689      fi
9690
9691      export_dynamic_flag_spec='$wl-bexpall'
9692      # It seems that -bexpall does not export symbols beginning with
9693      # underscore (_), so it is better to generate a list of symbols to export.
9694      always_export_symbols=yes
9695      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9696	# Warning - without using the other runtime loading flags (-brtl),
9697	# -berok will link without error, but may produce a broken library.
9698	allow_undefined_flag='-berok'
9699        # Determine the default libpath from the value encoded in an
9700        # empty executable.
9701        if test set = "${lt_cv_aix_libpath+set}"; then
9702  aix_libpath=$lt_cv_aix_libpath
9703else
9704  if ${lt_cv_aix_libpath_+:} false; then :
9705  $as_echo_n "(cached) " >&6
9706else
9707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h.  */
9709
9710int
9711main ()
9712{
9713
9714  ;
9715  return 0;
9716}
9717_ACEOF
9718if ac_fn_c_try_link "$LINENO"; then :
9719
9720  lt_aix_libpath_sed='
9721      /Import File Strings/,/^$/ {
9722	  /^0/ {
9723	      s/^0  *\([^ ]*\) *$/\1/
9724	      p
9725	  }
9726      }'
9727  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728  # Check for a 64-bit object if we didn't find anything.
9729  if test -z "$lt_cv_aix_libpath_"; then
9730    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9731  fi
9732fi
9733rm -f core conftest.err conftest.$ac_objext \
9734    conftest$ac_exeext conftest.$ac_ext
9735  if test -z "$lt_cv_aix_libpath_"; then
9736    lt_cv_aix_libpath_=/usr/lib:/lib
9737  fi
9738
9739fi
9740
9741  aix_libpath=$lt_cv_aix_libpath_
9742fi
9743
9744        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9745        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
9746      else
9747	if test ia64 = "$host_cpu"; then
9748	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9749	  allow_undefined_flag="-z nodefs"
9750	  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"
9751	else
9752	 # Determine the default libpath from the value encoded in an
9753	 # empty executable.
9754	 if test set = "${lt_cv_aix_libpath+set}"; then
9755  aix_libpath=$lt_cv_aix_libpath
9756else
9757  if ${lt_cv_aix_libpath_+:} false; then :
9758  $as_echo_n "(cached) " >&6
9759else
9760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761/* end confdefs.h.  */
9762
9763int
9764main ()
9765{
9766
9767  ;
9768  return 0;
9769}
9770_ACEOF
9771if ac_fn_c_try_link "$LINENO"; then :
9772
9773  lt_aix_libpath_sed='
9774      /Import File Strings/,/^$/ {
9775	  /^0/ {
9776	      s/^0  *\([^ ]*\) *$/\1/
9777	      p
9778	  }
9779      }'
9780  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9781  # Check for a 64-bit object if we didn't find anything.
9782  if test -z "$lt_cv_aix_libpath_"; then
9783    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9784  fi
9785fi
9786rm -f core conftest.err conftest.$ac_objext \
9787    conftest$ac_exeext conftest.$ac_ext
9788  if test -z "$lt_cv_aix_libpath_"; then
9789    lt_cv_aix_libpath_=/usr/lib:/lib
9790  fi
9791
9792fi
9793
9794  aix_libpath=$lt_cv_aix_libpath_
9795fi
9796
9797	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9798	  # Warning - without using the other run time loading flags,
9799	  # -berok will link without error, but may produce a broken library.
9800	  no_undefined_flag=' $wl-bernotok'
9801	  allow_undefined_flag=' $wl-berok'
9802	  if test yes = "$with_gnu_ld"; then
9803	    # We only use this code for GNU lds that support --whole-archive.
9804	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9805	  else
9806	    # Exported symbols can be pulled into shared objects from archives
9807	    whole_archive_flag_spec='$convenience'
9808	  fi
9809	  archive_cmds_need_lc=yes
9810	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9811	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9812	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9813	  if test svr4 != "$with_aix_soname"; then
9814	    # This is similar to how AIX traditionally builds its shared libraries.
9815	    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'
9816	  fi
9817	  if test aix != "$with_aix_soname"; then
9818	    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'
9819	  else
9820	    # used by -dlpreopen to get the symbols
9821	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9822	  fi
9823	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9824	fi
9825      fi
9826      ;;
9827
9828    amigaos*)
9829      case $host_cpu in
9830      powerpc)
9831            # see comment about AmigaOS4 .so support
9832            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9833            archive_expsym_cmds=''
9834        ;;
9835      m68k)
9836            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)'
9837            hardcode_libdir_flag_spec='-L$libdir'
9838            hardcode_minus_L=yes
9839        ;;
9840      esac
9841      ;;
9842
9843    bsdi[45]*)
9844      export_dynamic_flag_spec=-rdynamic
9845      ;;
9846
9847    cygwin* | mingw* | pw32* | cegcc*)
9848      # When not using gcc, we currently assume that we are using
9849      # Microsoft Visual C++ or Intel C++ Compiler.
9850      # hardcode_libdir_flag_spec is actually meaningless, as there is
9851      # no search path for DLLs.
9852      case $cc_basename in
9853      cl* | icl*)
9854	# Native MSVC or ICC
9855	hardcode_libdir_flag_spec=' '
9856	allow_undefined_flag=unsupported
9857	always_export_symbols=yes
9858	file_list_spec='@'
9859	# Tell ltmain to make .lib files, not .a files.
9860	libext=lib
9861	# Tell ltmain to make .dll files, not .so files.
9862	shrext_cmds=.dll
9863	# FIXME: Setting linknames here is a bad hack.
9864	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9865	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9866            cp "$export_symbols" "$output_objdir/$soname.def";
9867            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9868          else
9869            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9870          fi~
9871          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9872          linknames='
9873	# The linker will not automatically build a static lib if we build a DLL.
9874	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9875	enable_shared_with_static_runtimes=yes
9876	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9877	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9878	# Don't use ranlib
9879	old_postinstall_cmds='chmod 644 $oldlib'
9880	postlink_cmds='lt_outputfile="@OUTPUT@"~
9881          lt_tool_outputfile="@TOOL_OUTPUT@"~
9882          case $lt_outputfile in
9883            *.exe|*.EXE) ;;
9884            *)
9885              lt_outputfile=$lt_outputfile.exe
9886              lt_tool_outputfile=$lt_tool_outputfile.exe
9887              ;;
9888          esac~
9889          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9890            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9891            $RM "$lt_outputfile.manifest";
9892          fi'
9893	;;
9894      *)
9895	# Assume MSVC and ICC wrapper
9896	hardcode_libdir_flag_spec=' '
9897	allow_undefined_flag=unsupported
9898	# Tell ltmain to make .lib files, not .a files.
9899	libext=lib
9900	# Tell ltmain to make .dll files, not .so files.
9901	shrext_cmds=.dll
9902	# FIXME: Setting linknames here is a bad hack.
9903	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9904	# The linker will automatically build a .lib file if we build a DLL.
9905	old_archive_from_new_cmds='true'
9906	# FIXME: Should let the user specify the lib program.
9907	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9908	enable_shared_with_static_runtimes=yes
9909	;;
9910      esac
9911      ;;
9912
9913    darwin* | rhapsody*)
9914
9915
9916  archive_cmds_need_lc=no
9917  hardcode_direct=no
9918  hardcode_automatic=yes
9919  hardcode_shlibpath_var=unsupported
9920  if test yes = "$lt_cv_ld_force_load"; then
9921    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\"`'
9922
9923  else
9924    whole_archive_flag_spec=''
9925  fi
9926  link_all_deplibs=yes
9927  allow_undefined_flag=$_lt_dar_allow_undefined
9928  case $cc_basename in
9929     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9930     *) _lt_dar_can_shared=$GCC ;;
9931  esac
9932  if test yes = "$_lt_dar_can_shared"; then
9933    output_verbose_link_cmd=func_echo_all
9934    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9935    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9936    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"
9937    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"
9938
9939  else
9940  ld_shlibs=no
9941  fi
9942
9943      ;;
9944
9945    dgux*)
9946      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947      hardcode_libdir_flag_spec='-L$libdir'
9948      hardcode_shlibpath_var=no
9949      ;;
9950
9951    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9952    # support.  Future versions do this automatically, but an explicit c++rt0.o
9953    # does not break anything, and helps significantly (at the cost of a little
9954    # extra space).
9955    freebsd2.2*)
9956      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9957      hardcode_libdir_flag_spec='-R$libdir'
9958      hardcode_direct=yes
9959      hardcode_shlibpath_var=no
9960      ;;
9961
9962    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9963    freebsd2.*)
9964      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9965      hardcode_direct=yes
9966      hardcode_minus_L=yes
9967      hardcode_shlibpath_var=no
9968      ;;
9969
9970    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9971    freebsd* | dragonfly*)
9972      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9973      hardcode_libdir_flag_spec='-R$libdir'
9974      hardcode_direct=yes
9975      hardcode_shlibpath_var=no
9976      ;;
9977
9978    hpux9*)
9979      if test yes = "$GCC"; then
9980	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'
9981      else
9982	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'
9983      fi
9984      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9985      hardcode_libdir_separator=:
9986      hardcode_direct=yes
9987
9988      # hardcode_minus_L: Not really in the search PATH,
9989      # but as the default location of the library.
9990      hardcode_minus_L=yes
9991      export_dynamic_flag_spec='$wl-E'
9992      ;;
9993
9994    hpux10*)
9995      if test yes,no = "$GCC,$with_gnu_ld"; then
9996	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9997      else
9998	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9999      fi
10000      if test no = "$with_gnu_ld"; then
10001	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10002	hardcode_libdir_separator=:
10003	hardcode_direct=yes
10004	hardcode_direct_absolute=yes
10005	export_dynamic_flag_spec='$wl-E'
10006	# hardcode_minus_L: Not really in the search PATH,
10007	# but as the default location of the library.
10008	hardcode_minus_L=yes
10009      fi
10010      ;;
10011
10012    hpux11*)
10013      if test yes,no = "$GCC,$with_gnu_ld"; then
10014	case $host_cpu in
10015	hppa*64*)
10016	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10017	  ;;
10018	ia64*)
10019	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10020	  ;;
10021	*)
10022	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10023	  ;;
10024	esac
10025      else
10026	case $host_cpu in
10027	hppa*64*)
10028	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10029	  ;;
10030	ia64*)
10031	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10032	  ;;
10033	*)
10034
10035	  # Older versions of the 11.00 compiler do not understand -b yet
10036	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10037	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10038$as_echo_n "checking if $CC understands -b... " >&6; }
10039if ${lt_cv_prog_compiler__b+:} false; then :
10040  $as_echo_n "(cached) " >&6
10041else
10042  lt_cv_prog_compiler__b=no
10043   save_LDFLAGS=$LDFLAGS
10044   LDFLAGS="$LDFLAGS -b"
10045   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10046   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10047     # The linker can only warn and ignore the option if not recognized
10048     # So say no if there are warnings
10049     if test -s conftest.err; then
10050       # Append any errors to the config.log.
10051       cat conftest.err 1>&5
10052       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10053       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10054       if diff conftest.exp conftest.er2 >/dev/null; then
10055         lt_cv_prog_compiler__b=yes
10056       fi
10057     else
10058       lt_cv_prog_compiler__b=yes
10059     fi
10060   fi
10061   $RM -r conftest*
10062   LDFLAGS=$save_LDFLAGS
10063
10064fi
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10066$as_echo "$lt_cv_prog_compiler__b" >&6; }
10067
10068if test yes = "$lt_cv_prog_compiler__b"; then
10069    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10070else
10071    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10072fi
10073
10074	  ;;
10075	esac
10076      fi
10077      if test no = "$with_gnu_ld"; then
10078	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10079	hardcode_libdir_separator=:
10080
10081	case $host_cpu in
10082	hppa*64*|ia64*)
10083	  hardcode_direct=no
10084	  hardcode_shlibpath_var=no
10085	  ;;
10086	*)
10087	  hardcode_direct=yes
10088	  hardcode_direct_absolute=yes
10089	  export_dynamic_flag_spec='$wl-E'
10090
10091	  # hardcode_minus_L: Not really in the search PATH,
10092	  # but as the default location of the library.
10093	  hardcode_minus_L=yes
10094	  ;;
10095	esac
10096      fi
10097      ;;
10098
10099    irix5* | irix6* | nonstopux*)
10100      if test yes = "$GCC"; then
10101	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'
10102	# Try to use the -exported_symbol ld option, if it does not
10103	# work, assume that -exports_file does not work either and
10104	# implicitly export all symbols.
10105	# This should be the same for all languages, so no per-tag cache variable.
10106	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10107$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10108if ${lt_cv_irix_exported_symbol+:} false; then :
10109  $as_echo_n "(cached) " >&6
10110else
10111  save_LDFLAGS=$LDFLAGS
10112	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10113	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114/* end confdefs.h.  */
10115int foo (void) { return 0; }
10116_ACEOF
10117if ac_fn_c_try_link "$LINENO"; then :
10118  lt_cv_irix_exported_symbol=yes
10119else
10120  lt_cv_irix_exported_symbol=no
10121fi
10122rm -f core conftest.err conftest.$ac_objext \
10123    conftest$ac_exeext conftest.$ac_ext
10124           LDFLAGS=$save_LDFLAGS
10125fi
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10127$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10128	if test yes = "$lt_cv_irix_exported_symbol"; then
10129          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'
10130	fi
10131      else
10132	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'
10133	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'
10134      fi
10135      archive_cmds_need_lc='no'
10136      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10137      hardcode_libdir_separator=:
10138      inherit_rpath=yes
10139      link_all_deplibs=yes
10140      ;;
10141
10142    linux*)
10143      case $cc_basename in
10144      tcc*)
10145	# Fabrice Bellard et al's Tiny C Compiler
10146	ld_shlibs=yes
10147	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10148	;;
10149      esac
10150      ;;
10151
10152    netbsd*)
10153      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10154	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10155      else
10156	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10157      fi
10158      hardcode_libdir_flag_spec='-R$libdir'
10159      hardcode_direct=yes
10160      hardcode_shlibpath_var=no
10161      ;;
10162
10163    newsos6)
10164      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165      hardcode_direct=yes
10166      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10167      hardcode_libdir_separator=:
10168      hardcode_shlibpath_var=no
10169      ;;
10170
10171    *nto* | *qnx*)
10172      ;;
10173
10174    openbsd* | bitrig*)
10175      if test -f /usr/libexec/ld.so; then
10176	hardcode_direct=yes
10177	hardcode_shlibpath_var=no
10178	hardcode_direct_absolute=yes
10179	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10180	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10181	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10182	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10183	  export_dynamic_flag_spec='$wl-E'
10184	else
10185	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10186	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10187	fi
10188      else
10189	ld_shlibs=no
10190      fi
10191      ;;
10192
10193    os2*)
10194      hardcode_libdir_flag_spec='-L$libdir'
10195      hardcode_minus_L=yes
10196      allow_undefined_flag=unsupported
10197      shrext_cmds=.dll
10198      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10199	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10200	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10201	$ECHO EXPORTS >> $output_objdir/$libname.def~
10202	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10203	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10204	emximp -o $lib $output_objdir/$libname.def'
10205      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10206	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10207	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10208	$ECHO EXPORTS >> $output_objdir/$libname.def~
10209	prefix_cmds="$SED"~
10210	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10211	  prefix_cmds="$prefix_cmds -e 1d";
10212	fi~
10213	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10214	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10215	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10216	emximp -o $lib $output_objdir/$libname.def'
10217      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10218      enable_shared_with_static_runtimes=yes
10219      file_list_spec='@'
10220      ;;
10221
10222    osf3*)
10223      if test yes = "$GCC"; then
10224	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10225	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'
10226      else
10227	allow_undefined_flag=' -expect_unresolved \*'
10228	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'
10229      fi
10230      archive_cmds_need_lc='no'
10231      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10232      hardcode_libdir_separator=:
10233      ;;
10234
10235    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10236      if test yes = "$GCC"; then
10237	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10238	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'
10239	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10240      else
10241	allow_undefined_flag=' -expect_unresolved \*'
10242	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'
10243	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~
10244          $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'
10245
10246	# Both c and cxx compiler support -rpath directly
10247	hardcode_libdir_flag_spec='-rpath $libdir'
10248      fi
10249      archive_cmds_need_lc='no'
10250      hardcode_libdir_separator=:
10251      ;;
10252
10253    solaris*)
10254      no_undefined_flag=' -z defs'
10255      if test yes = "$GCC"; then
10256	wlarc='$wl'
10257	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10258	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10259          $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'
10260      else
10261	case `$CC -V 2>&1` in
10262	*"Compilers 5.0"*)
10263	  wlarc=''
10264	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10266            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10267	  ;;
10268	*)
10269	  wlarc='$wl'
10270	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10271	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10272            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10273	  ;;
10274	esac
10275      fi
10276      hardcode_libdir_flag_spec='-R$libdir'
10277      hardcode_shlibpath_var=no
10278      case $host_os in
10279      solaris2.[0-5] | solaris2.[0-5].*) ;;
10280      *)
10281	# The compiler driver will combine and reorder linker options,
10282	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10283	# but is careful enough not to reorder.
10284	# Supported since Solaris 2.6 (maybe 2.5.1?)
10285	if test yes = "$GCC"; then
10286	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10287	else
10288	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10289	fi
10290	;;
10291      esac
10292      link_all_deplibs=yes
10293      ;;
10294
10295    sunos4*)
10296      if test sequent = "$host_vendor"; then
10297	# Use $CC to link under sequent, because it throws in some extra .o
10298	# files that make .init and .fini sections work.
10299	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10300      else
10301	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10302      fi
10303      hardcode_libdir_flag_spec='-L$libdir'
10304      hardcode_direct=yes
10305      hardcode_minus_L=yes
10306      hardcode_shlibpath_var=no
10307      ;;
10308
10309    sysv4)
10310      case $host_vendor in
10311	sni)
10312	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313	  hardcode_direct=yes # is this really true???
10314	;;
10315	siemens)
10316	  ## LD is ld it makes a PLAMLIB
10317	  ## CC just makes a GrossModule.
10318	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10319	  reload_cmds='$CC -r -o $output$reload_objs'
10320	  hardcode_direct=no
10321        ;;
10322	motorola)
10323	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10324	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10325	;;
10326      esac
10327      runpath_var='LD_RUN_PATH'
10328      hardcode_shlibpath_var=no
10329      ;;
10330
10331    sysv4.3*)
10332      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10333      hardcode_shlibpath_var=no
10334      export_dynamic_flag_spec='-Bexport'
10335      ;;
10336
10337    sysv4*MP*)
10338      if test -d /usr/nec; then
10339	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10340	hardcode_shlibpath_var=no
10341	runpath_var=LD_RUN_PATH
10342	hardcode_runpath_var=yes
10343	ld_shlibs=yes
10344      fi
10345      ;;
10346
10347    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10348      no_undefined_flag='$wl-z,text'
10349      archive_cmds_need_lc=no
10350      hardcode_shlibpath_var=no
10351      runpath_var='LD_RUN_PATH'
10352
10353      if test yes = "$GCC"; then
10354	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10355	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10356      else
10357	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10359      fi
10360      ;;
10361
10362    sysv5* | sco3.2v5* | sco5v6*)
10363      # Note: We CANNOT use -z defs as we might desire, because we do not
10364      # link with -lc, and that would cause any symbols used from libc to
10365      # always be unresolved, which means just about no library would
10366      # ever link correctly.  If we're not using GNU ld we use -z text
10367      # though, which does catch some bad symbols but isn't as heavy-handed
10368      # as -z defs.
10369      no_undefined_flag='$wl-z,text'
10370      allow_undefined_flag='$wl-z,nodefs'
10371      archive_cmds_need_lc=no
10372      hardcode_shlibpath_var=no
10373      hardcode_libdir_flag_spec='$wl-R,$libdir'
10374      hardcode_libdir_separator=':'
10375      link_all_deplibs=yes
10376      export_dynamic_flag_spec='$wl-Bexport'
10377      runpath_var='LD_RUN_PATH'
10378
10379      if test yes = "$GCC"; then
10380	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10381	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10382      else
10383	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10385      fi
10386      ;;
10387
10388    uts4*)
10389      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390      hardcode_libdir_flag_spec='-L$libdir'
10391      hardcode_shlibpath_var=no
10392      ;;
10393
10394    *)
10395      ld_shlibs=no
10396      ;;
10397    esac
10398
10399    if test sni = "$host_vendor"; then
10400      case $host in
10401      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10402	export_dynamic_flag_spec='$wl-Blargedynsym'
10403	;;
10404      esac
10405    fi
10406  fi
10407
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10409$as_echo "$ld_shlibs" >&6; }
10410test no = "$ld_shlibs" && can_build_shared=no
10411
10412with_gnu_ld=$with_gnu_ld
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428#
10429# Do we need to explicitly link libc?
10430#
10431case "x$archive_cmds_need_lc" in
10432x|xyes)
10433  # Assume -lc should be added
10434  archive_cmds_need_lc=yes
10435
10436  if test yes,yes = "$GCC,$enable_shared"; then
10437    case $archive_cmds in
10438    *'~'*)
10439      # FIXME: we may have to deal with multi-command sequences.
10440      ;;
10441    '$CC '*)
10442      # Test whether the compiler implicitly links with -lc since on some
10443      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10444      # to ld, don't add -lc before -lgcc.
10445      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10446$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10447if ${lt_cv_archive_cmds_need_lc+:} false; then :
10448  $as_echo_n "(cached) " >&6
10449else
10450  $RM conftest*
10451	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10452
10453	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10454  (eval $ac_compile) 2>&5
10455  ac_status=$?
10456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10457  test $ac_status = 0; } 2>conftest.err; then
10458	  soname=conftest
10459	  lib=conftest
10460	  libobjs=conftest.$ac_objext
10461	  deplibs=
10462	  wl=$lt_prog_compiler_wl
10463	  pic_flag=$lt_prog_compiler_pic
10464	  compiler_flags=-v
10465	  linker_flags=-v
10466	  verstring=
10467	  output_objdir=.
10468	  libname=conftest
10469	  lt_save_allow_undefined_flag=$allow_undefined_flag
10470	  allow_undefined_flag=
10471	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10472  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10473  ac_status=$?
10474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10475  test $ac_status = 0; }
10476	  then
10477	    lt_cv_archive_cmds_need_lc=no
10478	  else
10479	    lt_cv_archive_cmds_need_lc=yes
10480	  fi
10481	  allow_undefined_flag=$lt_save_allow_undefined_flag
10482	else
10483	  cat conftest.err 1>&5
10484	fi
10485	$RM conftest*
10486
10487fi
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10489$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10490      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10491      ;;
10492    esac
10493  fi
10494  ;;
10495esac
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10649$as_echo_n "checking dynamic linker characteristics... " >&6; }
10650
10651if test yes = "$GCC"; then
10652  case $host_os in
10653    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10654    *) lt_awk_arg='/^libraries:/' ;;
10655  esac
10656  case $host_os in
10657    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10658    *) lt_sed_strip_eq='s|=/|/|g' ;;
10659  esac
10660  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10661  case $lt_search_path_spec in
10662  *\;*)
10663    # if the path contains ";" then we assume it to be the separator
10664    # otherwise default to the standard path separator (i.e. ":") - it is
10665    # assumed that no part of a normal pathname contains ";" but that should
10666    # okay in the real world where ";" in dirpaths is itself problematic.
10667    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10668    ;;
10669  *)
10670    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10671    ;;
10672  esac
10673  # Ok, now we have the path, separated by spaces, we can step through it
10674  # and add multilib dir if necessary...
10675  lt_tmp_lt_search_path_spec=
10676  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10677  # ...but if some path component already ends with the multilib dir we assume
10678  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10679  case "$lt_multi_os_dir; $lt_search_path_spec " in
10680  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10681    lt_multi_os_dir=
10682    ;;
10683  esac
10684  for lt_sys_path in $lt_search_path_spec; do
10685    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10686      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10687    elif test -n "$lt_multi_os_dir"; then
10688      test -d "$lt_sys_path" && \
10689	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10690    fi
10691  done
10692  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10693BEGIN {RS = " "; FS = "/|\n";} {
10694  lt_foo = "";
10695  lt_count = 0;
10696  for (lt_i = NF; lt_i > 0; lt_i--) {
10697    if ($lt_i != "" && $lt_i != ".") {
10698      if ($lt_i == "..") {
10699        lt_count++;
10700      } else {
10701        if (lt_count == 0) {
10702          lt_foo = "/" $lt_i lt_foo;
10703        } else {
10704          lt_count--;
10705        }
10706      }
10707    }
10708  }
10709  if (lt_foo != "") { lt_freq[lt_foo]++; }
10710  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10711}'`
10712  # AWK program above erroneously prepends '/' to C:/dos/paths
10713  # for these hosts.
10714  case $host_os in
10715    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10716      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10717  esac
10718  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10719else
10720  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10721fi
10722library_names_spec=
10723libname_spec='lib$name'
10724soname_spec=
10725shrext_cmds=.so
10726postinstall_cmds=
10727postuninstall_cmds=
10728finish_cmds=
10729finish_eval=
10730shlibpath_var=
10731shlibpath_overrides_runpath=unknown
10732version_type=none
10733dynamic_linker="$host_os ld.so"
10734sys_lib_dlsearch_path_spec="/lib /usr/lib"
10735need_lib_prefix=unknown
10736hardcode_into_libs=no
10737
10738# when you set need_version to no, make sure it does not cause -set_version
10739# flags to be left without arguments
10740need_version=unknown
10741
10742
10743
10744case $host_os in
10745aix3*)
10746  version_type=linux # correct to gnu/linux during the next big refactor
10747  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10748  shlibpath_var=LIBPATH
10749
10750  # AIX 3 has no versioning support, so we append a major version to the name.
10751  soname_spec='$libname$release$shared_ext$major'
10752  ;;
10753
10754aix[4-9]*)
10755  version_type=linux # correct to gnu/linux during the next big refactor
10756  need_lib_prefix=no
10757  need_version=no
10758  hardcode_into_libs=yes
10759  if test ia64 = "$host_cpu"; then
10760    # AIX 5 supports IA64
10761    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10762    shlibpath_var=LD_LIBRARY_PATH
10763  else
10764    # With GCC up to 2.95.x, collect2 would create an import file
10765    # for dependence libraries.  The import file would start with
10766    # the line '#! .'.  This would cause the generated library to
10767    # depend on '.', always an invalid library.  This was fixed in
10768    # development snapshots of GCC prior to 3.0.
10769    case $host_os in
10770      aix4 | aix4.[01] | aix4.[01].*)
10771      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10772	   echo ' yes '
10773	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10774	:
10775      else
10776	can_build_shared=no
10777      fi
10778      ;;
10779    esac
10780    # Using Import Files as archive members, it is possible to support
10781    # filename-based versioning of shared library archives on AIX. While
10782    # this would work for both with and without runtime linking, it will
10783    # prevent static linking of such archives. So we do filename-based
10784    # shared library versioning with .so extension only, which is used
10785    # when both runtime linking and shared linking is enabled.
10786    # Unfortunately, runtime linking may impact performance, so we do
10787    # not want this to be the default eventually. Also, we use the
10788    # versioned .so libs for executables only if there is the -brtl
10789    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10790    # To allow for filename-based versioning support, we need to create
10791    # libNAME.so.V as an archive file, containing:
10792    # *) an Import File, referring to the versioned filename of the
10793    #    archive as well as the shared archive member, telling the
10794    #    bitwidth (32 or 64) of that shared object, and providing the
10795    #    list of exported symbols of that shared object, eventually
10796    #    decorated with the 'weak' keyword
10797    # *) the shared object with the F_LOADONLY flag set, to really avoid
10798    #    it being seen by the linker.
10799    # At run time we better use the real file rather than another symlink,
10800    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10801
10802    case $with_aix_soname,$aix_use_runtimelinking in
10803    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10804    # soname into executable. Probably we can add versioning support to
10805    # collect2, so additional links can be useful in future.
10806    aix,yes) # traditional libtool
10807      dynamic_linker='AIX unversionable lib.so'
10808      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10809      # instead of lib<name>.a to let people know that these are not
10810      # typical AIX shared libraries.
10811      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10812      ;;
10813    aix,no) # traditional AIX only
10814      dynamic_linker='AIX lib.a(lib.so.V)'
10815      # We preserve .a as extension for shared libraries through AIX4.2
10816      # and later when we are not doing run time linking.
10817      library_names_spec='$libname$release.a $libname.a'
10818      soname_spec='$libname$release$shared_ext$major'
10819      ;;
10820    svr4,*) # full svr4 only
10821      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10822      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10823      # We do not specify a path in Import Files, so LIBPATH fires.
10824      shlibpath_overrides_runpath=yes
10825      ;;
10826    *,yes) # both, prefer svr4
10827      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10828      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10829      # unpreferred sharedlib libNAME.a needs extra handling
10830      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"'
10831      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"'
10832      # We do not specify a path in Import Files, so LIBPATH fires.
10833      shlibpath_overrides_runpath=yes
10834      ;;
10835    *,no) # both, prefer aix
10836      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10837      library_names_spec='$libname$release.a $libname.a'
10838      soname_spec='$libname$release$shared_ext$major'
10839      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10840      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)'
10841      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"'
10842      ;;
10843    esac
10844    shlibpath_var=LIBPATH
10845  fi
10846  ;;
10847
10848amigaos*)
10849  case $host_cpu in
10850  powerpc)
10851    # Since July 2007 AmigaOS4 officially supports .so libraries.
10852    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10853    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10854    ;;
10855  m68k)
10856    library_names_spec='$libname.ixlibrary $libname.a'
10857    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10858    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'
10859    ;;
10860  esac
10861  ;;
10862
10863beos*)
10864  library_names_spec='$libname$shared_ext'
10865  dynamic_linker="$host_os ld.so"
10866  shlibpath_var=LIBRARY_PATH
10867  ;;
10868
10869bsdi[45]*)
10870  version_type=linux # correct to gnu/linux during the next big refactor
10871  need_version=no
10872  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10873  soname_spec='$libname$release$shared_ext$major'
10874  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10875  shlibpath_var=LD_LIBRARY_PATH
10876  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10877  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10878  # the default ld.so.conf also contains /usr/contrib/lib and
10879  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10880  # libtool to hard-code these into programs
10881  ;;
10882
10883cygwin* | mingw* | pw32* | cegcc*)
10884  version_type=windows
10885  shrext_cmds=.dll
10886  need_version=no
10887  need_lib_prefix=no
10888
10889  case $GCC,$cc_basename in
10890  yes,*)
10891    # gcc
10892    library_names_spec='$libname.dll.a'
10893    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10894    postinstall_cmds='base_file=`basename \$file`~
10895      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10896      dldir=$destdir/`dirname \$dlpath`~
10897      test -d \$dldir || mkdir -p \$dldir~
10898      $install_prog $dir/$dlname \$dldir/$dlname~
10899      chmod a+x \$dldir/$dlname~
10900      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10901        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10902      fi'
10903    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10904      dlpath=$dir/\$dldll~
10905       $RM \$dlpath'
10906    shlibpath_overrides_runpath=yes
10907
10908    case $host_os in
10909    cygwin*)
10910      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10911      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10912
10913      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10914      ;;
10915    mingw* | cegcc*)
10916      # MinGW DLLs use traditional 'lib' prefix
10917      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10918      ;;
10919    pw32*)
10920      # pw32 DLLs use 'pw' prefix rather than 'lib'
10921      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10922      ;;
10923    esac
10924    dynamic_linker='Win32 ld.exe'
10925    ;;
10926
10927  *,cl* | *,icl*)
10928    # Native MSVC or ICC
10929    libname_spec='$name'
10930    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10931    library_names_spec='$libname.dll.lib'
10932
10933    case $build_os in
10934    mingw*)
10935      sys_lib_search_path_spec=
10936      lt_save_ifs=$IFS
10937      IFS=';'
10938      for lt_path in $LIB
10939      do
10940        IFS=$lt_save_ifs
10941        # Let DOS variable expansion print the short 8.3 style file name.
10942        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10943        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10944      done
10945      IFS=$lt_save_ifs
10946      # Convert to MSYS style.
10947      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10948      ;;
10949    cygwin*)
10950      # Convert to unix form, then to dos form, then back to unix form
10951      # but this time dos style (no spaces!) so that the unix form looks
10952      # like /cygdrive/c/PROGRA~1:/cygdr...
10953      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10954      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10955      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10956      ;;
10957    *)
10958      sys_lib_search_path_spec=$LIB
10959      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10960        # It is most probably a Windows format PATH.
10961        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10962      else
10963        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10964      fi
10965      # FIXME: find the short name or the path components, as spaces are
10966      # common. (e.g. "Program Files" -> "PROGRA~1")
10967      ;;
10968    esac
10969
10970    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10971    postinstall_cmds='base_file=`basename \$file`~
10972      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10973      dldir=$destdir/`dirname \$dlpath`~
10974      test -d \$dldir || mkdir -p \$dldir~
10975      $install_prog $dir/$dlname \$dldir/$dlname'
10976    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10977      dlpath=$dir/\$dldll~
10978       $RM \$dlpath'
10979    shlibpath_overrides_runpath=yes
10980    dynamic_linker='Win32 link.exe'
10981    ;;
10982
10983  *)
10984    # Assume MSVC and ICC wrapper
10985    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10986    dynamic_linker='Win32 ld.exe'
10987    ;;
10988  esac
10989  # FIXME: first we should search . and the directory the executable is in
10990  shlibpath_var=PATH
10991  ;;
10992
10993darwin* | rhapsody*)
10994  dynamic_linker="$host_os dyld"
10995  version_type=darwin
10996  need_lib_prefix=no
10997  need_version=no
10998  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10999  soname_spec='$libname$release$major$shared_ext'
11000  shlibpath_overrides_runpath=yes
11001  shlibpath_var=DYLD_LIBRARY_PATH
11002  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11003
11004  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11005  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11006  ;;
11007
11008dgux*)
11009  version_type=linux # correct to gnu/linux during the next big refactor
11010  need_lib_prefix=no
11011  need_version=no
11012  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11013  soname_spec='$libname$release$shared_ext$major'
11014  shlibpath_var=LD_LIBRARY_PATH
11015  ;;
11016
11017freebsd* | dragonfly*)
11018  # DragonFly does not have aout.  When/if they implement a new
11019  # versioning mechanism, adjust this.
11020  if test -x /usr/bin/objformat; then
11021    objformat=`/usr/bin/objformat`
11022  else
11023    case $host_os in
11024    freebsd[23].*) objformat=aout ;;
11025    *) objformat=elf ;;
11026    esac
11027  fi
11028  version_type=freebsd-$objformat
11029  case $version_type in
11030    freebsd-elf*)
11031      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11032      soname_spec='$libname$release$shared_ext$major'
11033      need_version=no
11034      need_lib_prefix=no
11035      ;;
11036    freebsd-*)
11037      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11038      need_version=yes
11039      ;;
11040  esac
11041  shlibpath_var=LD_LIBRARY_PATH
11042  case $host_os in
11043  freebsd2.*)
11044    shlibpath_overrides_runpath=yes
11045    ;;
11046  freebsd3.[01]* | freebsdelf3.[01]*)
11047    shlibpath_overrides_runpath=yes
11048    hardcode_into_libs=yes
11049    ;;
11050  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11051  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11052    shlibpath_overrides_runpath=no
11053    hardcode_into_libs=yes
11054    ;;
11055  *) # from 4.6 on, and DragonFly
11056    shlibpath_overrides_runpath=yes
11057    hardcode_into_libs=yes
11058    ;;
11059  esac
11060  ;;
11061
11062haiku*)
11063  version_type=linux # correct to gnu/linux during the next big refactor
11064  need_lib_prefix=no
11065  need_version=no
11066  dynamic_linker="$host_os runtime_loader"
11067  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11068  soname_spec='$libname$release$shared_ext$major'
11069  shlibpath_var=LIBRARY_PATH
11070  shlibpath_overrides_runpath=no
11071  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11072  hardcode_into_libs=yes
11073  ;;
11074
11075hpux9* | hpux10* | hpux11*)
11076  # Give a soname corresponding to the major version so that dld.sl refuses to
11077  # link against other versions.
11078  version_type=sunos
11079  need_lib_prefix=no
11080  need_version=no
11081  case $host_cpu in
11082  ia64*)
11083    shrext_cmds='.so'
11084    hardcode_into_libs=yes
11085    dynamic_linker="$host_os dld.so"
11086    shlibpath_var=LD_LIBRARY_PATH
11087    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11088    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089    soname_spec='$libname$release$shared_ext$major'
11090    if test 32 = "$HPUX_IA64_MODE"; then
11091      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11092      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11093    else
11094      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11095      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11096    fi
11097    ;;
11098  hppa*64*)
11099    shrext_cmds='.sl'
11100    hardcode_into_libs=yes
11101    dynamic_linker="$host_os dld.sl"
11102    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11103    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11104    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11105    soname_spec='$libname$release$shared_ext$major'
11106    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11107    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11108    ;;
11109  *)
11110    shrext_cmds='.sl'
11111    dynamic_linker="$host_os dld.sl"
11112    shlibpath_var=SHLIB_PATH
11113    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11114    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11115    soname_spec='$libname$release$shared_ext$major'
11116    ;;
11117  esac
11118  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11119  postinstall_cmds='chmod 555 $lib'
11120  # or fails outright, so override atomically:
11121  install_override_mode=555
11122  ;;
11123
11124interix[3-9]*)
11125  version_type=linux # correct to gnu/linux during the next big refactor
11126  need_lib_prefix=no
11127  need_version=no
11128  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11129  soname_spec='$libname$release$shared_ext$major'
11130  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11131  shlibpath_var=LD_LIBRARY_PATH
11132  shlibpath_overrides_runpath=no
11133  hardcode_into_libs=yes
11134  ;;
11135
11136irix5* | irix6* | nonstopux*)
11137  case $host_os in
11138    nonstopux*) version_type=nonstopux ;;
11139    *)
11140	if test yes = "$lt_cv_prog_gnu_ld"; then
11141		version_type=linux # correct to gnu/linux during the next big refactor
11142	else
11143		version_type=irix
11144	fi ;;
11145  esac
11146  need_lib_prefix=no
11147  need_version=no
11148  soname_spec='$libname$release$shared_ext$major'
11149  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11150  case $host_os in
11151  irix5* | nonstopux*)
11152    libsuff= shlibsuff=
11153    ;;
11154  *)
11155    case $LD in # libtool.m4 will add one of these switches to LD
11156    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11157      libsuff= shlibsuff= libmagic=32-bit;;
11158    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11159      libsuff=32 shlibsuff=N32 libmagic=N32;;
11160    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11161      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11162    *) libsuff= shlibsuff= libmagic=never-match;;
11163    esac
11164    ;;
11165  esac
11166  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11167  shlibpath_overrides_runpath=no
11168  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11169  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11170  hardcode_into_libs=yes
11171  ;;
11172
11173# No shared lib support for Linux oldld, aout, or coff.
11174linux*oldld* | linux*aout* | linux*coff*)
11175  dynamic_linker=no
11176  ;;
11177
11178linux*android*)
11179  version_type=none # Android doesn't support versioned libraries.
11180  need_lib_prefix=no
11181  need_version=no
11182  library_names_spec='$libname$release$shared_ext'
11183  soname_spec='$libname$release$shared_ext'
11184  finish_cmds=
11185  shlibpath_var=LD_LIBRARY_PATH
11186  shlibpath_overrides_runpath=yes
11187
11188  # This implies no fast_install, which is unacceptable.
11189  # Some rework will be needed to allow for fast_install
11190  # before this can be enabled.
11191  hardcode_into_libs=yes
11192
11193  dynamic_linker='Android linker'
11194  # Don't embed -rpath directories since the linker doesn't support them.
11195  hardcode_libdir_flag_spec='-L$libdir'
11196  ;;
11197
11198# This must be glibc/ELF.
11199linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11200  version_type=linux # correct to gnu/linux during the next big refactor
11201  need_lib_prefix=no
11202  need_version=no
11203  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11204  soname_spec='$libname$release$shared_ext$major'
11205  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11206  shlibpath_var=LD_LIBRARY_PATH
11207  shlibpath_overrides_runpath=no
11208
11209  # Some binutils ld are patched to set DT_RUNPATH
11210  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11211  $as_echo_n "(cached) " >&6
11212else
11213  lt_cv_shlibpath_overrides_runpath=no
11214    save_LDFLAGS=$LDFLAGS
11215    save_libdir=$libdir
11216    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11217	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11218    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219/* end confdefs.h.  */
11220
11221int
11222main ()
11223{
11224
11225  ;
11226  return 0;
11227}
11228_ACEOF
11229if ac_fn_c_try_link "$LINENO"; then :
11230  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11231  lt_cv_shlibpath_overrides_runpath=yes
11232fi
11233fi
11234rm -f core conftest.err conftest.$ac_objext \
11235    conftest$ac_exeext conftest.$ac_ext
11236    LDFLAGS=$save_LDFLAGS
11237    libdir=$save_libdir
11238
11239fi
11240
11241  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11242
11243  # This implies no fast_install, which is unacceptable.
11244  # Some rework will be needed to allow for fast_install
11245  # before this can be enabled.
11246  hardcode_into_libs=yes
11247
11248  # Ideally, we could use ldconfig to report *all* directores which are
11249  # searched for libraries, however this is still not possible.  Aside from not
11250  # being certain /sbin/ldconfig is available, command
11251  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11252  # even though it is searched at run-time.  Try to do the best guess by
11253  # appending ld.so.conf contents (and includes) to the search path.
11254  if test -f /etc/ld.so.conf; then
11255    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' ' '`
11256    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11257  fi
11258
11259  # We used to test for /lib/ld.so.1 and disable shared libraries on
11260  # powerpc, because MkLinux only supported shared libraries with the
11261  # GNU dynamic linker.  Since this was broken with cross compilers,
11262  # most powerpc-linux boxes support dynamic linking these days and
11263  # people can always --disable-shared, the test was removed, and we
11264  # assume the GNU/Linux dynamic linker is in use.
11265  dynamic_linker='GNU/Linux ld.so'
11266  ;;
11267
11268netbsd*)
11269  version_type=sunos
11270  need_lib_prefix=no
11271  need_version=no
11272  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11273    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11274    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11275    dynamic_linker='NetBSD (a.out) ld.so'
11276  else
11277    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11278    soname_spec='$libname$release$shared_ext$major'
11279    dynamic_linker='NetBSD ld.elf_so'
11280  fi
11281  shlibpath_var=LD_LIBRARY_PATH
11282  shlibpath_overrides_runpath=yes
11283  hardcode_into_libs=yes
11284  ;;
11285
11286newsos6)
11287  version_type=linux # correct to gnu/linux during the next big refactor
11288  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11289  shlibpath_var=LD_LIBRARY_PATH
11290  shlibpath_overrides_runpath=yes
11291  ;;
11292
11293*nto* | *qnx*)
11294  version_type=qnx
11295  need_lib_prefix=no
11296  need_version=no
11297  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11298  soname_spec='$libname$release$shared_ext$major'
11299  shlibpath_var=LD_LIBRARY_PATH
11300  shlibpath_overrides_runpath=no
11301  hardcode_into_libs=yes
11302  dynamic_linker='ldqnx.so'
11303  ;;
11304
11305openbsd* | bitrig*)
11306  version_type=sunos
11307  sys_lib_dlsearch_path_spec=/usr/lib
11308  need_lib_prefix=no
11309  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11310    need_version=no
11311  else
11312    need_version=yes
11313  fi
11314  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11315  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11316  shlibpath_var=LD_LIBRARY_PATH
11317  shlibpath_overrides_runpath=yes
11318  ;;
11319
11320os2*)
11321  libname_spec='$name'
11322  version_type=windows
11323  shrext_cmds=.dll
11324  need_version=no
11325  need_lib_prefix=no
11326  # OS/2 can only load a DLL with a base name of 8 characters or less.
11327  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11328    v=$($ECHO $release$versuffix | tr -d .-);
11329    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11330    $ECHO $n$v`$shared_ext'
11331  library_names_spec='${libname}_dll.$libext'
11332  dynamic_linker='OS/2 ld.exe'
11333  shlibpath_var=BEGINLIBPATH
11334  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11335  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11336  postinstall_cmds='base_file=`basename \$file`~
11337    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11338    dldir=$destdir/`dirname \$dlpath`~
11339    test -d \$dldir || mkdir -p \$dldir~
11340    $install_prog $dir/$dlname \$dldir/$dlname~
11341    chmod a+x \$dldir/$dlname~
11342    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11343      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11344    fi'
11345  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11346    dlpath=$dir/\$dldll~
11347    $RM \$dlpath'
11348  ;;
11349
11350osf3* | osf4* | osf5*)
11351  version_type=osf
11352  need_lib_prefix=no
11353  need_version=no
11354  soname_spec='$libname$release$shared_ext$major'
11355  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356  shlibpath_var=LD_LIBRARY_PATH
11357  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11358  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11359  ;;
11360
11361rdos*)
11362  dynamic_linker=no
11363  ;;
11364
11365solaris*)
11366  version_type=linux # correct to gnu/linux during the next big refactor
11367  need_lib_prefix=no
11368  need_version=no
11369  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11370  soname_spec='$libname$release$shared_ext$major'
11371  shlibpath_var=LD_LIBRARY_PATH
11372  shlibpath_overrides_runpath=yes
11373  hardcode_into_libs=yes
11374  # ldd complains unless libraries are executable
11375  postinstall_cmds='chmod +x $lib'
11376  ;;
11377
11378sunos4*)
11379  version_type=sunos
11380  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11381  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11382  shlibpath_var=LD_LIBRARY_PATH
11383  shlibpath_overrides_runpath=yes
11384  if test yes = "$with_gnu_ld"; then
11385    need_lib_prefix=no
11386  fi
11387  need_version=yes
11388  ;;
11389
11390sysv4 | sysv4.3*)
11391  version_type=linux # correct to gnu/linux during the next big refactor
11392  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11393  soname_spec='$libname$release$shared_ext$major'
11394  shlibpath_var=LD_LIBRARY_PATH
11395  case $host_vendor in
11396    sni)
11397      shlibpath_overrides_runpath=no
11398      need_lib_prefix=no
11399      runpath_var=LD_RUN_PATH
11400      ;;
11401    siemens)
11402      need_lib_prefix=no
11403      ;;
11404    motorola)
11405      need_lib_prefix=no
11406      need_version=no
11407      shlibpath_overrides_runpath=no
11408      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11409      ;;
11410  esac
11411  ;;
11412
11413sysv4*MP*)
11414  if test -d /usr/nec; then
11415    version_type=linux # correct to gnu/linux during the next big refactor
11416    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11417    soname_spec='$libname$shared_ext.$major'
11418    shlibpath_var=LD_LIBRARY_PATH
11419  fi
11420  ;;
11421
11422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11423  version_type=sco
11424  need_lib_prefix=no
11425  need_version=no
11426  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11427  soname_spec='$libname$release$shared_ext$major'
11428  shlibpath_var=LD_LIBRARY_PATH
11429  shlibpath_overrides_runpath=yes
11430  hardcode_into_libs=yes
11431  if test yes = "$with_gnu_ld"; then
11432    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11433  else
11434    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11435    case $host_os in
11436      sco3.2v5*)
11437        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11438	;;
11439    esac
11440  fi
11441  sys_lib_dlsearch_path_spec='/usr/lib'
11442  ;;
11443
11444tpf*)
11445  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11446  version_type=linux # correct to gnu/linux during the next big refactor
11447  need_lib_prefix=no
11448  need_version=no
11449  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11450  shlibpath_var=LD_LIBRARY_PATH
11451  shlibpath_overrides_runpath=no
11452  hardcode_into_libs=yes
11453  ;;
11454
11455uts4*)
11456  version_type=linux # correct to gnu/linux during the next big refactor
11457  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11458  soname_spec='$libname$release$shared_ext$major'
11459  shlibpath_var=LD_LIBRARY_PATH
11460  ;;
11461
11462*)
11463  dynamic_linker=no
11464  ;;
11465esac
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11467$as_echo "$dynamic_linker" >&6; }
11468test no = "$dynamic_linker" && can_build_shared=no
11469
11470variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11471if test yes = "$GCC"; then
11472  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11473fi
11474
11475if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11476  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11477fi
11478
11479if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11480  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11481fi
11482
11483# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11484configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11485
11486# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11487func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11488
11489# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11490configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11589$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11590hardcode_action=
11591if test -n "$hardcode_libdir_flag_spec" ||
11592   test -n "$runpath_var" ||
11593   test yes = "$hardcode_automatic"; then
11594
11595  # We can hardcode non-existent directories.
11596  if test no != "$hardcode_direct" &&
11597     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11598     # have to relink, otherwise we might link with an installed library
11599     # when we should be linking with a yet-to-be-installed one
11600     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11601     test no != "$hardcode_minus_L"; then
11602    # Linking always hardcodes the temporary library directory.
11603    hardcode_action=relink
11604  else
11605    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11606    hardcode_action=immediate
11607  fi
11608else
11609  # We cannot hardcode anything, or else we can only hardcode existing
11610  # directories.
11611  hardcode_action=unsupported
11612fi
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11614$as_echo "$hardcode_action" >&6; }
11615
11616if test relink = "$hardcode_action" ||
11617   test yes = "$inherit_rpath"; then
11618  # Fast installation is not supported
11619  enable_fast_install=no
11620elif test yes = "$shlibpath_overrides_runpath" ||
11621     test no = "$enable_shared"; then
11622  # Fast installation is not necessary
11623  enable_fast_install=needless
11624fi
11625
11626
11627
11628
11629
11630
11631  if test yes != "$enable_dlopen"; then
11632  enable_dlopen=unknown
11633  enable_dlopen_self=unknown
11634  enable_dlopen_self_static=unknown
11635else
11636  lt_cv_dlopen=no
11637  lt_cv_dlopen_libs=
11638
11639  case $host_os in
11640  beos*)
11641    lt_cv_dlopen=load_add_on
11642    lt_cv_dlopen_libs=
11643    lt_cv_dlopen_self=yes
11644    ;;
11645
11646  mingw* | pw32* | cegcc*)
11647    lt_cv_dlopen=LoadLibrary
11648    lt_cv_dlopen_libs=
11649    ;;
11650
11651  cygwin*)
11652    lt_cv_dlopen=dlopen
11653    lt_cv_dlopen_libs=
11654    ;;
11655
11656  darwin*)
11657    # if libdl is installed we need to link against it
11658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11659$as_echo_n "checking for dlopen in -ldl... " >&6; }
11660if ${ac_cv_lib_dl_dlopen+:} false; then :
11661  $as_echo_n "(cached) " >&6
11662else
11663  ac_check_lib_save_LIBS=$LIBS
11664LIBS="-ldl  $LIBS"
11665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666/* end confdefs.h.  */
11667
11668/* Override any GCC internal prototype to avoid an error.
11669   Use char because int might match the return type of a GCC
11670   builtin and then its argument prototype would still apply.  */
11671#ifdef __cplusplus
11672extern "C"
11673#endif
11674char dlopen ();
11675int
11676main ()
11677{
11678return dlopen ();
11679  ;
11680  return 0;
11681}
11682_ACEOF
11683if ac_fn_c_try_link "$LINENO"; then :
11684  ac_cv_lib_dl_dlopen=yes
11685else
11686  ac_cv_lib_dl_dlopen=no
11687fi
11688rm -f core conftest.err conftest.$ac_objext \
11689    conftest$ac_exeext conftest.$ac_ext
11690LIBS=$ac_check_lib_save_LIBS
11691fi
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11693$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11694if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11695  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11696else
11697
11698    lt_cv_dlopen=dyld
11699    lt_cv_dlopen_libs=
11700    lt_cv_dlopen_self=yes
11701
11702fi
11703
11704    ;;
11705
11706  tpf*)
11707    # Don't try to run any link tests for TPF.  We know it's impossible
11708    # because TPF is a cross-compiler, and we know how we open DSOs.
11709    lt_cv_dlopen=dlopen
11710    lt_cv_dlopen_libs=
11711    lt_cv_dlopen_self=no
11712    ;;
11713
11714  *)
11715    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11716if test "x$ac_cv_func_shl_load" = xyes; then :
11717  lt_cv_dlopen=shl_load
11718else
11719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11720$as_echo_n "checking for shl_load in -ldld... " >&6; }
11721if ${ac_cv_lib_dld_shl_load+:} false; then :
11722  $as_echo_n "(cached) " >&6
11723else
11724  ac_check_lib_save_LIBS=$LIBS
11725LIBS="-ldld  $LIBS"
11726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727/* end confdefs.h.  */
11728
11729/* Override any GCC internal prototype to avoid an error.
11730   Use char because int might match the return type of a GCC
11731   builtin and then its argument prototype would still apply.  */
11732#ifdef __cplusplus
11733extern "C"
11734#endif
11735char shl_load ();
11736int
11737main ()
11738{
11739return shl_load ();
11740  ;
11741  return 0;
11742}
11743_ACEOF
11744if ac_fn_c_try_link "$LINENO"; then :
11745  ac_cv_lib_dld_shl_load=yes
11746else
11747  ac_cv_lib_dld_shl_load=no
11748fi
11749rm -f core conftest.err conftest.$ac_objext \
11750    conftest$ac_exeext conftest.$ac_ext
11751LIBS=$ac_check_lib_save_LIBS
11752fi
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11754$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11755if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11756  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11757else
11758  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11759if test "x$ac_cv_func_dlopen" = xyes; then :
11760  lt_cv_dlopen=dlopen
11761else
11762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11763$as_echo_n "checking for dlopen in -ldl... " >&6; }
11764if ${ac_cv_lib_dl_dlopen+:} false; then :
11765  $as_echo_n "(cached) " >&6
11766else
11767  ac_check_lib_save_LIBS=$LIBS
11768LIBS="-ldl  $LIBS"
11769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770/* end confdefs.h.  */
11771
11772/* Override any GCC internal prototype to avoid an error.
11773   Use char because int might match the return type of a GCC
11774   builtin and then its argument prototype would still apply.  */
11775#ifdef __cplusplus
11776extern "C"
11777#endif
11778char dlopen ();
11779int
11780main ()
11781{
11782return dlopen ();
11783  ;
11784  return 0;
11785}
11786_ACEOF
11787if ac_fn_c_try_link "$LINENO"; then :
11788  ac_cv_lib_dl_dlopen=yes
11789else
11790  ac_cv_lib_dl_dlopen=no
11791fi
11792rm -f core conftest.err conftest.$ac_objext \
11793    conftest$ac_exeext conftest.$ac_ext
11794LIBS=$ac_check_lib_save_LIBS
11795fi
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11797$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11798if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11799  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11800else
11801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11802$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11803if ${ac_cv_lib_svld_dlopen+:} false; then :
11804  $as_echo_n "(cached) " >&6
11805else
11806  ac_check_lib_save_LIBS=$LIBS
11807LIBS="-lsvld  $LIBS"
11808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809/* end confdefs.h.  */
11810
11811/* Override any GCC internal prototype to avoid an error.
11812   Use char because int might match the return type of a GCC
11813   builtin and then its argument prototype would still apply.  */
11814#ifdef __cplusplus
11815extern "C"
11816#endif
11817char dlopen ();
11818int
11819main ()
11820{
11821return dlopen ();
11822  ;
11823  return 0;
11824}
11825_ACEOF
11826if ac_fn_c_try_link "$LINENO"; then :
11827  ac_cv_lib_svld_dlopen=yes
11828else
11829  ac_cv_lib_svld_dlopen=no
11830fi
11831rm -f core conftest.err conftest.$ac_objext \
11832    conftest$ac_exeext conftest.$ac_ext
11833LIBS=$ac_check_lib_save_LIBS
11834fi
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11836$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11837if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11838  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11839else
11840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11841$as_echo_n "checking for dld_link in -ldld... " >&6; }
11842if ${ac_cv_lib_dld_dld_link+:} false; then :
11843  $as_echo_n "(cached) " >&6
11844else
11845  ac_check_lib_save_LIBS=$LIBS
11846LIBS="-ldld  $LIBS"
11847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848/* end confdefs.h.  */
11849
11850/* Override any GCC internal prototype to avoid an error.
11851   Use char because int might match the return type of a GCC
11852   builtin and then its argument prototype would still apply.  */
11853#ifdef __cplusplus
11854extern "C"
11855#endif
11856char dld_link ();
11857int
11858main ()
11859{
11860return dld_link ();
11861  ;
11862  return 0;
11863}
11864_ACEOF
11865if ac_fn_c_try_link "$LINENO"; then :
11866  ac_cv_lib_dld_dld_link=yes
11867else
11868  ac_cv_lib_dld_dld_link=no
11869fi
11870rm -f core conftest.err conftest.$ac_objext \
11871    conftest$ac_exeext conftest.$ac_ext
11872LIBS=$ac_check_lib_save_LIBS
11873fi
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11875$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11876if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11877  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11878fi
11879
11880
11881fi
11882
11883
11884fi
11885
11886
11887fi
11888
11889
11890fi
11891
11892
11893fi
11894
11895    ;;
11896  esac
11897
11898  if test no = "$lt_cv_dlopen"; then
11899    enable_dlopen=no
11900  else
11901    enable_dlopen=yes
11902  fi
11903
11904  case $lt_cv_dlopen in
11905  dlopen)
11906    save_CPPFLAGS=$CPPFLAGS
11907    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11908
11909    save_LDFLAGS=$LDFLAGS
11910    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11911
11912    save_LIBS=$LIBS
11913    LIBS="$lt_cv_dlopen_libs $LIBS"
11914
11915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11916$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11917if ${lt_cv_dlopen_self+:} false; then :
11918  $as_echo_n "(cached) " >&6
11919else
11920  	  if test yes = "$cross_compiling"; then :
11921  lt_cv_dlopen_self=cross
11922else
11923  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11924  lt_status=$lt_dlunknown
11925  cat > conftest.$ac_ext <<_LT_EOF
11926#line $LINENO "configure"
11927#include "confdefs.h"
11928
11929#if HAVE_DLFCN_H
11930#include <dlfcn.h>
11931#endif
11932
11933#include <stdio.h>
11934
11935#ifdef RTLD_GLOBAL
11936#  define LT_DLGLOBAL		RTLD_GLOBAL
11937#else
11938#  ifdef DL_GLOBAL
11939#    define LT_DLGLOBAL		DL_GLOBAL
11940#  else
11941#    define LT_DLGLOBAL		0
11942#  endif
11943#endif
11944
11945/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11946   find out it does not work in some platform. */
11947#ifndef LT_DLLAZY_OR_NOW
11948#  ifdef RTLD_LAZY
11949#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11950#  else
11951#    ifdef DL_LAZY
11952#      define LT_DLLAZY_OR_NOW		DL_LAZY
11953#    else
11954#      ifdef RTLD_NOW
11955#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11956#      else
11957#        ifdef DL_NOW
11958#          define LT_DLLAZY_OR_NOW	DL_NOW
11959#        else
11960#          define LT_DLLAZY_OR_NOW	0
11961#        endif
11962#      endif
11963#    endif
11964#  endif
11965#endif
11966
11967/* When -fvisibility=hidden is used, assume the code has been annotated
11968   correspondingly for the symbols needed.  */
11969#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11970int fnord () __attribute__((visibility("default")));
11971#endif
11972
11973int fnord () { return 42; }
11974int main ()
11975{
11976  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11977  int status = $lt_dlunknown;
11978
11979  if (self)
11980    {
11981      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11982      else
11983        {
11984	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11985          else puts (dlerror ());
11986	}
11987      /* dlclose (self); */
11988    }
11989  else
11990    puts (dlerror ());
11991
11992  return status;
11993}
11994_LT_EOF
11995  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11996  (eval $ac_link) 2>&5
11997  ac_status=$?
11998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11999  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12000    (./conftest; exit; ) >&5 2>/dev/null
12001    lt_status=$?
12002    case x$lt_status in
12003      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12004      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12005      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12006    esac
12007  else :
12008    # compilation failed
12009    lt_cv_dlopen_self=no
12010  fi
12011fi
12012rm -fr conftest*
12013
12014
12015fi
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12017$as_echo "$lt_cv_dlopen_self" >&6; }
12018
12019    if test yes = "$lt_cv_dlopen_self"; then
12020      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12021      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12022$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12023if ${lt_cv_dlopen_self_static+:} false; then :
12024  $as_echo_n "(cached) " >&6
12025else
12026  	  if test yes = "$cross_compiling"; then :
12027  lt_cv_dlopen_self_static=cross
12028else
12029  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12030  lt_status=$lt_dlunknown
12031  cat > conftest.$ac_ext <<_LT_EOF
12032#line $LINENO "configure"
12033#include "confdefs.h"
12034
12035#if HAVE_DLFCN_H
12036#include <dlfcn.h>
12037#endif
12038
12039#include <stdio.h>
12040
12041#ifdef RTLD_GLOBAL
12042#  define LT_DLGLOBAL		RTLD_GLOBAL
12043#else
12044#  ifdef DL_GLOBAL
12045#    define LT_DLGLOBAL		DL_GLOBAL
12046#  else
12047#    define LT_DLGLOBAL		0
12048#  endif
12049#endif
12050
12051/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12052   find out it does not work in some platform. */
12053#ifndef LT_DLLAZY_OR_NOW
12054#  ifdef RTLD_LAZY
12055#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12056#  else
12057#    ifdef DL_LAZY
12058#      define LT_DLLAZY_OR_NOW		DL_LAZY
12059#    else
12060#      ifdef RTLD_NOW
12061#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12062#      else
12063#        ifdef DL_NOW
12064#          define LT_DLLAZY_OR_NOW	DL_NOW
12065#        else
12066#          define LT_DLLAZY_OR_NOW	0
12067#        endif
12068#      endif
12069#    endif
12070#  endif
12071#endif
12072
12073/* When -fvisibility=hidden is used, assume the code has been annotated
12074   correspondingly for the symbols needed.  */
12075#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12076int fnord () __attribute__((visibility("default")));
12077#endif
12078
12079int fnord () { return 42; }
12080int main ()
12081{
12082  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12083  int status = $lt_dlunknown;
12084
12085  if (self)
12086    {
12087      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12088      else
12089        {
12090	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12091          else puts (dlerror ());
12092	}
12093      /* dlclose (self); */
12094    }
12095  else
12096    puts (dlerror ());
12097
12098  return status;
12099}
12100_LT_EOF
12101  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12102  (eval $ac_link) 2>&5
12103  ac_status=$?
12104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12105  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12106    (./conftest; exit; ) >&5 2>/dev/null
12107    lt_status=$?
12108    case x$lt_status in
12109      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12110      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12111      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12112    esac
12113  else :
12114    # compilation failed
12115    lt_cv_dlopen_self_static=no
12116  fi
12117fi
12118rm -fr conftest*
12119
12120
12121fi
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12123$as_echo "$lt_cv_dlopen_self_static" >&6; }
12124    fi
12125
12126    CPPFLAGS=$save_CPPFLAGS
12127    LDFLAGS=$save_LDFLAGS
12128    LIBS=$save_LIBS
12129    ;;
12130  esac
12131
12132  case $lt_cv_dlopen_self in
12133  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12134  *) enable_dlopen_self=unknown ;;
12135  esac
12136
12137  case $lt_cv_dlopen_self_static in
12138  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12139  *) enable_dlopen_self_static=unknown ;;
12140  esac
12141fi
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159striplib=
12160old_striplib=
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12162$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12163if test -z "$STRIP"; then
12164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165$as_echo "no" >&6; }
12166else
12167  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12168    old_striplib="$STRIP --strip-debug"
12169    striplib="$STRIP --strip-unneeded"
12170    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12171$as_echo "yes" >&6; }
12172  else
12173    case $host_os in
12174    darwin*)
12175      # FIXME - insert some real tests, host_os isn't really good enough
12176      striplib="$STRIP -x"
12177      old_striplib="$STRIP -S"
12178      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12179$as_echo "yes" >&6; }
12180      ;;
12181    freebsd*)
12182      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12183        old_striplib="$STRIP --strip-debug"
12184        striplib="$STRIP --strip-unneeded"
12185        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12186$as_echo "yes" >&6; }
12187      else
12188        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
12190      fi
12191      ;;
12192    *)
12193      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194$as_echo "no" >&6; }
12195      ;;
12196    esac
12197  fi
12198fi
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211  # Report what library types will actually be built
12212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12213$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12215$as_echo "$can_build_shared" >&6; }
12216
12217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12218$as_echo_n "checking whether to build shared libraries... " >&6; }
12219  test no = "$can_build_shared" && enable_shared=no
12220
12221  # On AIX, shared libraries and static libraries use the same namespace, and
12222  # are all built from PIC.
12223  case $host_os in
12224  aix3*)
12225    test yes = "$enable_shared" && enable_static=no
12226    if test -n "$RANLIB"; then
12227      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12228      postinstall_cmds='$RANLIB $lib'
12229    fi
12230    ;;
12231
12232  aix[4-9]*)
12233    if test ia64 != "$host_cpu"; then
12234      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12235      yes,aix,yes) ;;			# shared object as lib.so file only
12236      yes,svr4,*) ;;			# shared object as lib.so archive member only
12237      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12238      esac
12239    fi
12240    ;;
12241  esac
12242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12243$as_echo "$enable_shared" >&6; }
12244
12245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12246$as_echo_n "checking whether to build static libraries... " >&6; }
12247  # Make sure either enable_shared or enable_static is yes.
12248  test yes = "$enable_shared" || enable_static=yes
12249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12250$as_echo "$enable_static" >&6; }
12251
12252
12253
12254
12255fi
12256ac_ext=c
12257ac_cpp='$CPP $CPPFLAGS'
12258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12260ac_compiler_gnu=$ac_cv_c_compiler_gnu
12261
12262CC=$lt_save_CC
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278        ac_config_commands="$ac_config_commands libtool"
12279
12280
12281
12282
12283# Only expand once:
12284
12285
12286
12287# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12300$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12301if ${ac_cv_prog_cc_c99+:} false; then :
12302  $as_echo_n "(cached) " >&6
12303else
12304  ac_cv_prog_cc_c99=no
12305ac_save_CC=$CC
12306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h.  */
12308#include <stdarg.h>
12309#include <stdbool.h>
12310#include <stdlib.h>
12311#include <wchar.h>
12312#include <stdio.h>
12313
12314// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12315#define debug(...) fprintf (stderr, __VA_ARGS__)
12316#define showlist(...) puts (#__VA_ARGS__)
12317#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12318static void
12319test_varargs_macros (void)
12320{
12321  int x = 1234;
12322  int y = 5678;
12323  debug ("Flag");
12324  debug ("X = %d\n", x);
12325  showlist (The first, second, and third items.);
12326  report (x>y, "x is %d but y is %d", x, y);
12327}
12328
12329// Check long long types.
12330#define BIG64 18446744073709551615ull
12331#define BIG32 4294967295ul
12332#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12333#if !BIG_OK
12334  your preprocessor is broken;
12335#endif
12336#if BIG_OK
12337#else
12338  your preprocessor is broken;
12339#endif
12340static long long int bignum = -9223372036854775807LL;
12341static unsigned long long int ubignum = BIG64;
12342
12343struct incomplete_array
12344{
12345  int datasize;
12346  double data[];
12347};
12348
12349struct named_init {
12350  int number;
12351  const wchar_t *name;
12352  double average;
12353};
12354
12355typedef const char *ccp;
12356
12357static inline int
12358test_restrict (ccp restrict text)
12359{
12360  // See if C++-style comments work.
12361  // Iterate through items via the restricted pointer.
12362  // Also check for declarations in for loops.
12363  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12364    continue;
12365  return 0;
12366}
12367
12368// Check varargs and va_copy.
12369static void
12370test_varargs (const char *format, ...)
12371{
12372  va_list args;
12373  va_start (args, format);
12374  va_list args_copy;
12375  va_copy (args_copy, args);
12376
12377  const char *str;
12378  int number;
12379  float fnumber;
12380
12381  while (*format)
12382    {
12383      switch (*format++)
12384	{
12385	case 's': // string
12386	  str = va_arg (args_copy, const char *);
12387	  break;
12388	case 'd': // int
12389	  number = va_arg (args_copy, int);
12390	  break;
12391	case 'f': // float
12392	  fnumber = va_arg (args_copy, double);
12393	  break;
12394	default:
12395	  break;
12396	}
12397    }
12398  va_end (args_copy);
12399  va_end (args);
12400}
12401
12402int
12403main ()
12404{
12405
12406  // Check bool.
12407  _Bool success = false;
12408
12409  // Check restrict.
12410  if (test_restrict ("String literal") == 0)
12411    success = true;
12412  char *restrict newvar = "Another string";
12413
12414  // Check varargs.
12415  test_varargs ("s, d' f .", "string", 65, 34.234);
12416  test_varargs_macros ();
12417
12418  // Check flexible array members.
12419  struct incomplete_array *ia =
12420    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12421  ia->datasize = 10;
12422  for (int i = 0; i < ia->datasize; ++i)
12423    ia->data[i] = i * 1.234;
12424
12425  // Check named initializers.
12426  struct named_init ni = {
12427    .number = 34,
12428    .name = L"Test wide string",
12429    .average = 543.34343,
12430  };
12431
12432  ni.number = 58;
12433
12434  int dynamic_array[ni.number];
12435  dynamic_array[ni.number - 1] = 543;
12436
12437  // work around unused variable warnings
12438  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12439	  || dynamic_array[ni.number - 1] != 543);
12440
12441  ;
12442  return 0;
12443}
12444_ACEOF
12445for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12446do
12447  CC="$ac_save_CC $ac_arg"
12448  if ac_fn_c_try_compile "$LINENO"; then :
12449  ac_cv_prog_cc_c99=$ac_arg
12450fi
12451rm -f core conftest.err conftest.$ac_objext
12452  test "x$ac_cv_prog_cc_c99" != "xno" && break
12453done
12454rm -f conftest.$ac_ext
12455CC=$ac_save_CC
12456
12457fi
12458# AC_CACHE_VAL
12459case "x$ac_cv_prog_cc_c99" in
12460  x)
12461    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12462$as_echo "none needed" >&6; } ;;
12463  xno)
12464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12465$as_echo "unsupported" >&6; } ;;
12466  *)
12467    CC="$CC $ac_cv_prog_cc_c99"
12468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12469$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12470esac
12471if test "x$ac_cv_prog_cc_c99" != xno; then :
12472
12473fi
12474
12475
12476
12477
12478
12479
12480ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12481if test "x$ac_cv_have_decl___clang__" = xyes; then :
12482  CLANGCC="yes"
12483else
12484  CLANGCC="no"
12485fi
12486
12487ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12488if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12489  INTELCC="yes"
12490else
12491  INTELCC="no"
12492fi
12493
12494ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12495if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12496  SUNCC="yes"
12497else
12498  SUNCC="no"
12499fi
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12510	if test -n "$ac_tool_prefix"; then
12511  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12512set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514$as_echo_n "checking for $ac_word... " >&6; }
12515if ${ac_cv_path_PKG_CONFIG+:} false; then :
12516  $as_echo_n "(cached) " >&6
12517else
12518  case $PKG_CONFIG in
12519  [\\/]* | ?:[\\/]*)
12520  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12521  ;;
12522  *)
12523  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526  IFS=$as_save_IFS
12527  test -z "$as_dir" && as_dir=.
12528    for ac_exec_ext in '' $ac_executable_extensions; do
12529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12530    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532    break 2
12533  fi
12534done
12535  done
12536IFS=$as_save_IFS
12537
12538  ;;
12539esac
12540fi
12541PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12542if test -n "$PKG_CONFIG"; then
12543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12544$as_echo "$PKG_CONFIG" >&6; }
12545else
12546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547$as_echo "no" >&6; }
12548fi
12549
12550
12551fi
12552if test -z "$ac_cv_path_PKG_CONFIG"; then
12553  ac_pt_PKG_CONFIG=$PKG_CONFIG
12554  # Extract the first word of "pkg-config", so it can be a program name with args.
12555set dummy pkg-config; ac_word=$2
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557$as_echo_n "checking for $ac_word... " >&6; }
12558if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12559  $as_echo_n "(cached) " >&6
12560else
12561  case $ac_pt_PKG_CONFIG in
12562  [\\/]* | ?:[\\/]*)
12563  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12564  ;;
12565  *)
12566  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567for as_dir in $PATH
12568do
12569  IFS=$as_save_IFS
12570  test -z "$as_dir" && as_dir=.
12571    for ac_exec_ext in '' $ac_executable_extensions; do
12572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12573    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575    break 2
12576  fi
12577done
12578  done
12579IFS=$as_save_IFS
12580
12581  ;;
12582esac
12583fi
12584ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12585if test -n "$ac_pt_PKG_CONFIG"; then
12586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12587$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12588else
12589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590$as_echo "no" >&6; }
12591fi
12592
12593  if test "x$ac_pt_PKG_CONFIG" = x; then
12594    PKG_CONFIG=""
12595  else
12596    case $cross_compiling:$ac_tool_warned in
12597yes:)
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12600ac_tool_warned=yes ;;
12601esac
12602    PKG_CONFIG=$ac_pt_PKG_CONFIG
12603  fi
12604else
12605  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12606fi
12607
12608fi
12609if test -n "$PKG_CONFIG"; then
12610	_pkg_min_version=0.9.0
12611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12612$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12613	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12615$as_echo "yes" >&6; }
12616	else
12617		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618$as_echo "no" >&6; }
12619		PKG_CONFIG=""
12620	fi
12621fi
12622
12623
12624
12625
12626
12627# Check whether --enable-selective-werror was given.
12628if test "${enable_selective_werror+set}" = set; then :
12629  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12630else
12631  SELECTIVE_WERROR=yes
12632fi
12633
12634
12635
12636
12637
12638# -v is too short to test reliably with XORG_TESTSET_CFLAG
12639if test "x$SUNCC" = "xyes"; then
12640    BASE_CFLAGS="-v"
12641else
12642    BASE_CFLAGS=""
12643fi
12644
12645# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659xorg_testset_save_CFLAGS="$CFLAGS"
12660
12661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12666  $as_echo_n "(cached) " >&6
12667else
12668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669/* end confdefs.h.  */
12670int i;
12671_ACEOF
12672if ac_fn_c_try_compile "$LINENO"; then :
12673  xorg_cv_cc_flag_unknown_warning_option=yes
12674else
12675  xorg_cv_cc_flag_unknown_warning_option=no
12676fi
12677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678fi
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12682	CFLAGS="$xorg_testset_save_CFLAGS"
12683fi
12684
12685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12688	fi
12689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12693  $as_echo_n "(cached) " >&6
12694else
12695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696/* end confdefs.h.  */
12697int i;
12698_ACEOF
12699if ac_fn_c_try_compile "$LINENO"; then :
12700  xorg_cv_cc_flag_unused_command_line_argument=yes
12701else
12702  xorg_cv_cc_flag_unused_command_line_argument=no
12703fi
12704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705fi
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12709	CFLAGS="$xorg_testset_save_CFLAGS"
12710fi
12711
12712found="no"
12713
12714	if test $found = "no" ; then
12715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12717		fi
12718
12719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12721		fi
12722
12723		CFLAGS="$CFLAGS -Wall"
12724
12725		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12726$as_echo_n "checking if $CC supports -Wall... " >&6; }
12727		cacheid=xorg_cv_cc_flag__Wall
12728		if eval \${$cacheid+:} false; then :
12729  $as_echo_n "(cached) " >&6
12730else
12731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h.  */
12733int i;
12734int
12735main ()
12736{
12737
12738  ;
12739  return 0;
12740}
12741_ACEOF
12742if ac_fn_c_try_link "$LINENO"; then :
12743  eval $cacheid=yes
12744else
12745  eval $cacheid=no
12746fi
12747rm -f core conftest.err conftest.$ac_objext \
12748    conftest$ac_exeext conftest.$ac_ext
12749fi
12750
12751
12752		CFLAGS="$xorg_testset_save_CFLAGS"
12753
12754		eval supported=\$$cacheid
12755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12756$as_echo "$supported" >&6; }
12757		if test "$supported" = "yes" ; then
12758			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12759			found="yes"
12760		fi
12761	fi
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777xorg_testset_save_CFLAGS="$CFLAGS"
12778
12779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12784  $as_echo_n "(cached) " >&6
12785else
12786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787/* end confdefs.h.  */
12788int i;
12789_ACEOF
12790if ac_fn_c_try_compile "$LINENO"; then :
12791  xorg_cv_cc_flag_unknown_warning_option=yes
12792else
12793  xorg_cv_cc_flag_unknown_warning_option=no
12794fi
12795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796fi
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12800	CFLAGS="$xorg_testset_save_CFLAGS"
12801fi
12802
12803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12806	fi
12807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12811  $as_echo_n "(cached) " >&6
12812else
12813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814/* end confdefs.h.  */
12815int i;
12816_ACEOF
12817if ac_fn_c_try_compile "$LINENO"; then :
12818  xorg_cv_cc_flag_unused_command_line_argument=yes
12819else
12820  xorg_cv_cc_flag_unused_command_line_argument=no
12821fi
12822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823fi
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12827	CFLAGS="$xorg_testset_save_CFLAGS"
12828fi
12829
12830found="no"
12831
12832	if test $found = "no" ; then
12833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12835		fi
12836
12837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12839		fi
12840
12841		CFLAGS="$CFLAGS -Wpointer-arith"
12842
12843		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12844$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12845		cacheid=xorg_cv_cc_flag__Wpointer_arith
12846		if eval \${$cacheid+:} false; then :
12847  $as_echo_n "(cached) " >&6
12848else
12849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850/* end confdefs.h.  */
12851int i;
12852int
12853main ()
12854{
12855
12856  ;
12857  return 0;
12858}
12859_ACEOF
12860if ac_fn_c_try_link "$LINENO"; then :
12861  eval $cacheid=yes
12862else
12863  eval $cacheid=no
12864fi
12865rm -f core conftest.err conftest.$ac_objext \
12866    conftest$ac_exeext conftest.$ac_ext
12867fi
12868
12869
12870		CFLAGS="$xorg_testset_save_CFLAGS"
12871
12872		eval supported=\$$cacheid
12873		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12874$as_echo "$supported" >&6; }
12875		if test "$supported" = "yes" ; then
12876			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12877			found="yes"
12878		fi
12879	fi
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895xorg_testset_save_CFLAGS="$CFLAGS"
12896
12897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12902  $as_echo_n "(cached) " >&6
12903else
12904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h.  */
12906int i;
12907_ACEOF
12908if ac_fn_c_try_compile "$LINENO"; then :
12909  xorg_cv_cc_flag_unknown_warning_option=yes
12910else
12911  xorg_cv_cc_flag_unknown_warning_option=no
12912fi
12913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914fi
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12918	CFLAGS="$xorg_testset_save_CFLAGS"
12919fi
12920
12921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12924	fi
12925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12929  $as_echo_n "(cached) " >&6
12930else
12931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h.  */
12933int i;
12934_ACEOF
12935if ac_fn_c_try_compile "$LINENO"; then :
12936  xorg_cv_cc_flag_unused_command_line_argument=yes
12937else
12938  xorg_cv_cc_flag_unused_command_line_argument=no
12939fi
12940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941fi
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12945	CFLAGS="$xorg_testset_save_CFLAGS"
12946fi
12947
12948found="no"
12949
12950	if test $found = "no" ; then
12951		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12953		fi
12954
12955		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12957		fi
12958
12959		CFLAGS="$CFLAGS -Wmissing-declarations"
12960
12961		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12962$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12963		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12964		if eval \${$cacheid+:} false; then :
12965  $as_echo_n "(cached) " >&6
12966else
12967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968/* end confdefs.h.  */
12969int i;
12970int
12971main ()
12972{
12973
12974  ;
12975  return 0;
12976}
12977_ACEOF
12978if ac_fn_c_try_link "$LINENO"; then :
12979  eval $cacheid=yes
12980else
12981  eval $cacheid=no
12982fi
12983rm -f core conftest.err conftest.$ac_objext \
12984    conftest$ac_exeext conftest.$ac_ext
12985fi
12986
12987
12988		CFLAGS="$xorg_testset_save_CFLAGS"
12989
12990		eval supported=\$$cacheid
12991		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12992$as_echo "$supported" >&6; }
12993		if test "$supported" = "yes" ; then
12994			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12995			found="yes"
12996		fi
12997	fi
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013xorg_testset_save_CFLAGS="$CFLAGS"
13014
13015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13020  $as_echo_n "(cached) " >&6
13021else
13022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023/* end confdefs.h.  */
13024int i;
13025_ACEOF
13026if ac_fn_c_try_compile "$LINENO"; then :
13027  xorg_cv_cc_flag_unknown_warning_option=yes
13028else
13029  xorg_cv_cc_flag_unknown_warning_option=no
13030fi
13031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13032fi
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13036	CFLAGS="$xorg_testset_save_CFLAGS"
13037fi
13038
13039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13042	fi
13043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13047  $as_echo_n "(cached) " >&6
13048else
13049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050/* end confdefs.h.  */
13051int i;
13052_ACEOF
13053if ac_fn_c_try_compile "$LINENO"; then :
13054  xorg_cv_cc_flag_unused_command_line_argument=yes
13055else
13056  xorg_cv_cc_flag_unused_command_line_argument=no
13057fi
13058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059fi
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13063	CFLAGS="$xorg_testset_save_CFLAGS"
13064fi
13065
13066found="no"
13067
13068	if test $found = "no" ; then
13069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13071		fi
13072
13073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13075		fi
13076
13077		CFLAGS="$CFLAGS -Wformat=2"
13078
13079		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13080$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13081		cacheid=xorg_cv_cc_flag__Wformat_2
13082		if eval \${$cacheid+:} false; then :
13083  $as_echo_n "(cached) " >&6
13084else
13085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086/* end confdefs.h.  */
13087int i;
13088int
13089main ()
13090{
13091
13092  ;
13093  return 0;
13094}
13095_ACEOF
13096if ac_fn_c_try_link "$LINENO"; then :
13097  eval $cacheid=yes
13098else
13099  eval $cacheid=no
13100fi
13101rm -f core conftest.err conftest.$ac_objext \
13102    conftest$ac_exeext conftest.$ac_ext
13103fi
13104
13105
13106		CFLAGS="$xorg_testset_save_CFLAGS"
13107
13108		eval supported=\$$cacheid
13109		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13110$as_echo "$supported" >&6; }
13111		if test "$supported" = "yes" ; then
13112			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13113			found="yes"
13114		fi
13115	fi
13116
13117	if test $found = "no" ; then
13118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13120		fi
13121
13122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13124		fi
13125
13126		CFLAGS="$CFLAGS -Wformat"
13127
13128		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13129$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13130		cacheid=xorg_cv_cc_flag__Wformat
13131		if eval \${$cacheid+:} false; then :
13132  $as_echo_n "(cached) " >&6
13133else
13134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135/* end confdefs.h.  */
13136int i;
13137int
13138main ()
13139{
13140
13141  ;
13142  return 0;
13143}
13144_ACEOF
13145if ac_fn_c_try_link "$LINENO"; then :
13146  eval $cacheid=yes
13147else
13148  eval $cacheid=no
13149fi
13150rm -f core conftest.err conftest.$ac_objext \
13151    conftest$ac_exeext conftest.$ac_ext
13152fi
13153
13154
13155		CFLAGS="$xorg_testset_save_CFLAGS"
13156
13157		eval supported=\$$cacheid
13158		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13159$as_echo "$supported" >&6; }
13160		if test "$supported" = "yes" ; then
13161			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13162			found="yes"
13163		fi
13164	fi
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182xorg_testset_save_CFLAGS="$CFLAGS"
13183
13184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13189  $as_echo_n "(cached) " >&6
13190else
13191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192/* end confdefs.h.  */
13193int i;
13194_ACEOF
13195if ac_fn_c_try_compile "$LINENO"; then :
13196  xorg_cv_cc_flag_unknown_warning_option=yes
13197else
13198  xorg_cv_cc_flag_unknown_warning_option=no
13199fi
13200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201fi
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13205	CFLAGS="$xorg_testset_save_CFLAGS"
13206fi
13207
13208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13211	fi
13212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13216  $as_echo_n "(cached) " >&6
13217else
13218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219/* end confdefs.h.  */
13220int i;
13221_ACEOF
13222if ac_fn_c_try_compile "$LINENO"; then :
13223  xorg_cv_cc_flag_unused_command_line_argument=yes
13224else
13225  xorg_cv_cc_flag_unused_command_line_argument=no
13226fi
13227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13228fi
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13232	CFLAGS="$xorg_testset_save_CFLAGS"
13233fi
13234
13235found="no"
13236
13237	if test $found = "no" ; then
13238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13240		fi
13241
13242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13244		fi
13245
13246		CFLAGS="$CFLAGS -Wstrict-prototypes"
13247
13248		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13249$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13250		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13251		if eval \${$cacheid+:} false; then :
13252  $as_echo_n "(cached) " >&6
13253else
13254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255/* end confdefs.h.  */
13256int i;
13257int
13258main ()
13259{
13260
13261  ;
13262  return 0;
13263}
13264_ACEOF
13265if ac_fn_c_try_link "$LINENO"; then :
13266  eval $cacheid=yes
13267else
13268  eval $cacheid=no
13269fi
13270rm -f core conftest.err conftest.$ac_objext \
13271    conftest$ac_exeext conftest.$ac_ext
13272fi
13273
13274
13275		CFLAGS="$xorg_testset_save_CFLAGS"
13276
13277		eval supported=\$$cacheid
13278		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13279$as_echo "$supported" >&6; }
13280		if test "$supported" = "yes" ; then
13281			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13282			found="yes"
13283		fi
13284	fi
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300xorg_testset_save_CFLAGS="$CFLAGS"
13301
13302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13307  $as_echo_n "(cached) " >&6
13308else
13309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310/* end confdefs.h.  */
13311int i;
13312_ACEOF
13313if ac_fn_c_try_compile "$LINENO"; then :
13314  xorg_cv_cc_flag_unknown_warning_option=yes
13315else
13316  xorg_cv_cc_flag_unknown_warning_option=no
13317fi
13318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319fi
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13323	CFLAGS="$xorg_testset_save_CFLAGS"
13324fi
13325
13326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13329	fi
13330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13334  $as_echo_n "(cached) " >&6
13335else
13336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337/* end confdefs.h.  */
13338int i;
13339_ACEOF
13340if ac_fn_c_try_compile "$LINENO"; then :
13341  xorg_cv_cc_flag_unused_command_line_argument=yes
13342else
13343  xorg_cv_cc_flag_unused_command_line_argument=no
13344fi
13345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346fi
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13350	CFLAGS="$xorg_testset_save_CFLAGS"
13351fi
13352
13353found="no"
13354
13355	if test $found = "no" ; then
13356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13358		fi
13359
13360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13362		fi
13363
13364		CFLAGS="$CFLAGS -Wmissing-prototypes"
13365
13366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13367$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13368		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13369		if eval \${$cacheid+:} false; then :
13370  $as_echo_n "(cached) " >&6
13371else
13372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373/* end confdefs.h.  */
13374int i;
13375int
13376main ()
13377{
13378
13379  ;
13380  return 0;
13381}
13382_ACEOF
13383if ac_fn_c_try_link "$LINENO"; then :
13384  eval $cacheid=yes
13385else
13386  eval $cacheid=no
13387fi
13388rm -f core conftest.err conftest.$ac_objext \
13389    conftest$ac_exeext conftest.$ac_ext
13390fi
13391
13392
13393		CFLAGS="$xorg_testset_save_CFLAGS"
13394
13395		eval supported=\$$cacheid
13396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13397$as_echo "$supported" >&6; }
13398		if test "$supported" = "yes" ; then
13399			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13400			found="yes"
13401		fi
13402	fi
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418xorg_testset_save_CFLAGS="$CFLAGS"
13419
13420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13425  $as_echo_n "(cached) " >&6
13426else
13427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428/* end confdefs.h.  */
13429int i;
13430_ACEOF
13431if ac_fn_c_try_compile "$LINENO"; then :
13432  xorg_cv_cc_flag_unknown_warning_option=yes
13433else
13434  xorg_cv_cc_flag_unknown_warning_option=no
13435fi
13436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437fi
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13441	CFLAGS="$xorg_testset_save_CFLAGS"
13442fi
13443
13444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13447	fi
13448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13452  $as_echo_n "(cached) " >&6
13453else
13454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455/* end confdefs.h.  */
13456int i;
13457_ACEOF
13458if ac_fn_c_try_compile "$LINENO"; then :
13459  xorg_cv_cc_flag_unused_command_line_argument=yes
13460else
13461  xorg_cv_cc_flag_unused_command_line_argument=no
13462fi
13463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13464fi
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13468	CFLAGS="$xorg_testset_save_CFLAGS"
13469fi
13470
13471found="no"
13472
13473	if test $found = "no" ; then
13474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13476		fi
13477
13478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13480		fi
13481
13482		CFLAGS="$CFLAGS -Wnested-externs"
13483
13484		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13485$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13486		cacheid=xorg_cv_cc_flag__Wnested_externs
13487		if eval \${$cacheid+:} false; then :
13488  $as_echo_n "(cached) " >&6
13489else
13490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h.  */
13492int i;
13493int
13494main ()
13495{
13496
13497  ;
13498  return 0;
13499}
13500_ACEOF
13501if ac_fn_c_try_link "$LINENO"; then :
13502  eval $cacheid=yes
13503else
13504  eval $cacheid=no
13505fi
13506rm -f core conftest.err conftest.$ac_objext \
13507    conftest$ac_exeext conftest.$ac_ext
13508fi
13509
13510
13511		CFLAGS="$xorg_testset_save_CFLAGS"
13512
13513		eval supported=\$$cacheid
13514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13515$as_echo "$supported" >&6; }
13516		if test "$supported" = "yes" ; then
13517			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13518			found="yes"
13519		fi
13520	fi
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536xorg_testset_save_CFLAGS="$CFLAGS"
13537
13538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13543  $as_echo_n "(cached) " >&6
13544else
13545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546/* end confdefs.h.  */
13547int i;
13548_ACEOF
13549if ac_fn_c_try_compile "$LINENO"; then :
13550  xorg_cv_cc_flag_unknown_warning_option=yes
13551else
13552  xorg_cv_cc_flag_unknown_warning_option=no
13553fi
13554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555fi
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13559	CFLAGS="$xorg_testset_save_CFLAGS"
13560fi
13561
13562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13565	fi
13566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13570  $as_echo_n "(cached) " >&6
13571else
13572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573/* end confdefs.h.  */
13574int i;
13575_ACEOF
13576if ac_fn_c_try_compile "$LINENO"; then :
13577  xorg_cv_cc_flag_unused_command_line_argument=yes
13578else
13579  xorg_cv_cc_flag_unused_command_line_argument=no
13580fi
13581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582fi
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13586	CFLAGS="$xorg_testset_save_CFLAGS"
13587fi
13588
13589found="no"
13590
13591	if test $found = "no" ; then
13592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13594		fi
13595
13596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13598		fi
13599
13600		CFLAGS="$CFLAGS -Wbad-function-cast"
13601
13602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13603$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13604		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13605		if eval \${$cacheid+:} false; then :
13606  $as_echo_n "(cached) " >&6
13607else
13608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609/* end confdefs.h.  */
13610int i;
13611int
13612main ()
13613{
13614
13615  ;
13616  return 0;
13617}
13618_ACEOF
13619if ac_fn_c_try_link "$LINENO"; then :
13620  eval $cacheid=yes
13621else
13622  eval $cacheid=no
13623fi
13624rm -f core conftest.err conftest.$ac_objext \
13625    conftest$ac_exeext conftest.$ac_ext
13626fi
13627
13628
13629		CFLAGS="$xorg_testset_save_CFLAGS"
13630
13631		eval supported=\$$cacheid
13632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13633$as_echo "$supported" >&6; }
13634		if test "$supported" = "yes" ; then
13635			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13636			found="yes"
13637		fi
13638	fi
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654xorg_testset_save_CFLAGS="$CFLAGS"
13655
13656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13661  $as_echo_n "(cached) " >&6
13662else
13663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664/* end confdefs.h.  */
13665int i;
13666_ACEOF
13667if ac_fn_c_try_compile "$LINENO"; then :
13668  xorg_cv_cc_flag_unknown_warning_option=yes
13669else
13670  xorg_cv_cc_flag_unknown_warning_option=no
13671fi
13672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673fi
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13677	CFLAGS="$xorg_testset_save_CFLAGS"
13678fi
13679
13680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13683	fi
13684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13688  $as_echo_n "(cached) " >&6
13689else
13690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691/* end confdefs.h.  */
13692int i;
13693_ACEOF
13694if ac_fn_c_try_compile "$LINENO"; then :
13695  xorg_cv_cc_flag_unused_command_line_argument=yes
13696else
13697  xorg_cv_cc_flag_unused_command_line_argument=no
13698fi
13699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700fi
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13704	CFLAGS="$xorg_testset_save_CFLAGS"
13705fi
13706
13707found="no"
13708
13709	if test $found = "no" ; then
13710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13712		fi
13713
13714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13716		fi
13717
13718		CFLAGS="$CFLAGS -Wold-style-definition"
13719
13720		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13721$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13722		cacheid=xorg_cv_cc_flag__Wold_style_definition
13723		if eval \${$cacheid+:} false; then :
13724  $as_echo_n "(cached) " >&6
13725else
13726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727/* end confdefs.h.  */
13728int i;
13729int
13730main ()
13731{
13732
13733  ;
13734  return 0;
13735}
13736_ACEOF
13737if ac_fn_c_try_link "$LINENO"; then :
13738  eval $cacheid=yes
13739else
13740  eval $cacheid=no
13741fi
13742rm -f core conftest.err conftest.$ac_objext \
13743    conftest$ac_exeext conftest.$ac_ext
13744fi
13745
13746
13747		CFLAGS="$xorg_testset_save_CFLAGS"
13748
13749		eval supported=\$$cacheid
13750		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13751$as_echo "$supported" >&6; }
13752		if test "$supported" = "yes" ; then
13753			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13754			found="yes"
13755		fi
13756	fi
13757
13758	if test $found = "no" ; then
13759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13761		fi
13762
13763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13765		fi
13766
13767		CFLAGS="$CFLAGS -fd"
13768
13769		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13770$as_echo_n "checking if $CC supports -fd... " >&6; }
13771		cacheid=xorg_cv_cc_flag__fd
13772		if eval \${$cacheid+:} false; then :
13773  $as_echo_n "(cached) " >&6
13774else
13775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776/* end confdefs.h.  */
13777int i;
13778int
13779main ()
13780{
13781
13782  ;
13783  return 0;
13784}
13785_ACEOF
13786if ac_fn_c_try_link "$LINENO"; then :
13787  eval $cacheid=yes
13788else
13789  eval $cacheid=no
13790fi
13791rm -f core conftest.err conftest.$ac_objext \
13792    conftest$ac_exeext conftest.$ac_ext
13793fi
13794
13795
13796		CFLAGS="$xorg_testset_save_CFLAGS"
13797
13798		eval supported=\$$cacheid
13799		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13800$as_echo "$supported" >&6; }
13801		if test "$supported" = "yes" ; then
13802			BASE_CFLAGS="$BASE_CFLAGS -fd"
13803			found="yes"
13804		fi
13805	fi
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821xorg_testset_save_CFLAGS="$CFLAGS"
13822
13823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13828  $as_echo_n "(cached) " >&6
13829else
13830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h.  */
13832int i;
13833_ACEOF
13834if ac_fn_c_try_compile "$LINENO"; then :
13835  xorg_cv_cc_flag_unknown_warning_option=yes
13836else
13837  xorg_cv_cc_flag_unknown_warning_option=no
13838fi
13839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13840fi
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13843	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13844	CFLAGS="$xorg_testset_save_CFLAGS"
13845fi
13846
13847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13848	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13849		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13850	fi
13851	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13855  $as_echo_n "(cached) " >&6
13856else
13857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858/* end confdefs.h.  */
13859int i;
13860_ACEOF
13861if ac_fn_c_try_compile "$LINENO"; then :
13862  xorg_cv_cc_flag_unused_command_line_argument=yes
13863else
13864  xorg_cv_cc_flag_unused_command_line_argument=no
13865fi
13866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13867fi
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13870	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13871	CFLAGS="$xorg_testset_save_CFLAGS"
13872fi
13873
13874found="no"
13875
13876	if test $found = "no" ; then
13877		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13879		fi
13880
13881		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13883		fi
13884
13885		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13886
13887		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13888$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13889		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13890		if eval \${$cacheid+:} false; then :
13891  $as_echo_n "(cached) " >&6
13892else
13893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894/* end confdefs.h.  */
13895int i;
13896int
13897main ()
13898{
13899
13900  ;
13901  return 0;
13902}
13903_ACEOF
13904if ac_fn_c_try_link "$LINENO"; then :
13905  eval $cacheid=yes
13906else
13907  eval $cacheid=no
13908fi
13909rm -f core conftest.err conftest.$ac_objext \
13910    conftest$ac_exeext conftest.$ac_ext
13911fi
13912
13913
13914		CFLAGS="$xorg_testset_save_CFLAGS"
13915
13916		eval supported=\$$cacheid
13917		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13918$as_echo "$supported" >&6; }
13919		if test "$supported" = "yes" ; then
13920			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13921			found="yes"
13922		fi
13923	fi
13924
13925
13926
13927
13928
13929# This chunk adds additional warnings that could catch undesired effects.
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943xorg_testset_save_CFLAGS="$CFLAGS"
13944
13945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13950  $as_echo_n "(cached) " >&6
13951else
13952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953/* end confdefs.h.  */
13954int i;
13955_ACEOF
13956if ac_fn_c_try_compile "$LINENO"; then :
13957  xorg_cv_cc_flag_unknown_warning_option=yes
13958else
13959  xorg_cv_cc_flag_unknown_warning_option=no
13960fi
13961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962fi
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13965	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13966	CFLAGS="$xorg_testset_save_CFLAGS"
13967fi
13968
13969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13970	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13972	fi
13973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13977  $as_echo_n "(cached) " >&6
13978else
13979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980/* end confdefs.h.  */
13981int i;
13982_ACEOF
13983if ac_fn_c_try_compile "$LINENO"; then :
13984  xorg_cv_cc_flag_unused_command_line_argument=yes
13985else
13986  xorg_cv_cc_flag_unused_command_line_argument=no
13987fi
13988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989fi
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13993	CFLAGS="$xorg_testset_save_CFLAGS"
13994fi
13995
13996found="no"
13997
13998	if test $found = "no" ; then
13999		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14001		fi
14002
14003		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14005		fi
14006
14007		CFLAGS="$CFLAGS -Wunused"
14008
14009		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14010$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14011		cacheid=xorg_cv_cc_flag__Wunused
14012		if eval \${$cacheid+:} false; then :
14013  $as_echo_n "(cached) " >&6
14014else
14015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016/* end confdefs.h.  */
14017int i;
14018int
14019main ()
14020{
14021
14022  ;
14023  return 0;
14024}
14025_ACEOF
14026if ac_fn_c_try_link "$LINENO"; then :
14027  eval $cacheid=yes
14028else
14029  eval $cacheid=no
14030fi
14031rm -f core conftest.err conftest.$ac_objext \
14032    conftest$ac_exeext conftest.$ac_ext
14033fi
14034
14035
14036		CFLAGS="$xorg_testset_save_CFLAGS"
14037
14038		eval supported=\$$cacheid
14039		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14040$as_echo "$supported" >&6; }
14041		if test "$supported" = "yes" ; then
14042			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14043			found="yes"
14044		fi
14045	fi
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061xorg_testset_save_CFLAGS="$CFLAGS"
14062
14063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14068  $as_echo_n "(cached) " >&6
14069else
14070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071/* end confdefs.h.  */
14072int i;
14073_ACEOF
14074if ac_fn_c_try_compile "$LINENO"; then :
14075  xorg_cv_cc_flag_unknown_warning_option=yes
14076else
14077  xorg_cv_cc_flag_unknown_warning_option=no
14078fi
14079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14080fi
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14083	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14084	CFLAGS="$xorg_testset_save_CFLAGS"
14085fi
14086
14087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14088	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14089		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14090	fi
14091	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14095  $as_echo_n "(cached) " >&6
14096else
14097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098/* end confdefs.h.  */
14099int i;
14100_ACEOF
14101if ac_fn_c_try_compile "$LINENO"; then :
14102  xorg_cv_cc_flag_unused_command_line_argument=yes
14103else
14104  xorg_cv_cc_flag_unused_command_line_argument=no
14105fi
14106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107fi
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14110	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14111	CFLAGS="$xorg_testset_save_CFLAGS"
14112fi
14113
14114found="no"
14115
14116	if test $found = "no" ; then
14117		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14118			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14119		fi
14120
14121		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14122			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14123		fi
14124
14125		CFLAGS="$CFLAGS -Wuninitialized"
14126
14127		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14128$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14129		cacheid=xorg_cv_cc_flag__Wuninitialized
14130		if eval \${$cacheid+:} false; then :
14131  $as_echo_n "(cached) " >&6
14132else
14133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134/* end confdefs.h.  */
14135int i;
14136int
14137main ()
14138{
14139
14140  ;
14141  return 0;
14142}
14143_ACEOF
14144if ac_fn_c_try_link "$LINENO"; then :
14145  eval $cacheid=yes
14146else
14147  eval $cacheid=no
14148fi
14149rm -f core conftest.err conftest.$ac_objext \
14150    conftest$ac_exeext conftest.$ac_ext
14151fi
14152
14153
14154		CFLAGS="$xorg_testset_save_CFLAGS"
14155
14156		eval supported=\$$cacheid
14157		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14158$as_echo "$supported" >&6; }
14159		if test "$supported" = "yes" ; then
14160			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14161			found="yes"
14162		fi
14163	fi
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179xorg_testset_save_CFLAGS="$CFLAGS"
14180
14181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14186  $as_echo_n "(cached) " >&6
14187else
14188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189/* end confdefs.h.  */
14190int i;
14191_ACEOF
14192if ac_fn_c_try_compile "$LINENO"; then :
14193  xorg_cv_cc_flag_unknown_warning_option=yes
14194else
14195  xorg_cv_cc_flag_unknown_warning_option=no
14196fi
14197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14198fi
14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14201	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14202	CFLAGS="$xorg_testset_save_CFLAGS"
14203fi
14204
14205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14206	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14207		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14208	fi
14209	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14213  $as_echo_n "(cached) " >&6
14214else
14215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216/* end confdefs.h.  */
14217int i;
14218_ACEOF
14219if ac_fn_c_try_compile "$LINENO"; then :
14220  xorg_cv_cc_flag_unused_command_line_argument=yes
14221else
14222  xorg_cv_cc_flag_unused_command_line_argument=no
14223fi
14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225fi
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14228	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14229	CFLAGS="$xorg_testset_save_CFLAGS"
14230fi
14231
14232found="no"
14233
14234	if test $found = "no" ; then
14235		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14236			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14237		fi
14238
14239		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14240			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14241		fi
14242
14243		CFLAGS="$CFLAGS -Wshadow"
14244
14245		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14246$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14247		cacheid=xorg_cv_cc_flag__Wshadow
14248		if eval \${$cacheid+:} false; then :
14249  $as_echo_n "(cached) " >&6
14250else
14251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252/* end confdefs.h.  */
14253int i;
14254int
14255main ()
14256{
14257
14258  ;
14259  return 0;
14260}
14261_ACEOF
14262if ac_fn_c_try_link "$LINENO"; then :
14263  eval $cacheid=yes
14264else
14265  eval $cacheid=no
14266fi
14267rm -f core conftest.err conftest.$ac_objext \
14268    conftest$ac_exeext conftest.$ac_ext
14269fi
14270
14271
14272		CFLAGS="$xorg_testset_save_CFLAGS"
14273
14274		eval supported=\$$cacheid
14275		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14276$as_echo "$supported" >&6; }
14277		if test "$supported" = "yes" ; then
14278			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14279			found="yes"
14280		fi
14281	fi
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297xorg_testset_save_CFLAGS="$CFLAGS"
14298
14299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14300	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14304  $as_echo_n "(cached) " >&6
14305else
14306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307/* end confdefs.h.  */
14308int i;
14309_ACEOF
14310if ac_fn_c_try_compile "$LINENO"; then :
14311  xorg_cv_cc_flag_unknown_warning_option=yes
14312else
14313  xorg_cv_cc_flag_unknown_warning_option=no
14314fi
14315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316fi
14317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14319	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14320	CFLAGS="$xorg_testset_save_CFLAGS"
14321fi
14322
14323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14324	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14325		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14326	fi
14327	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14331  $as_echo_n "(cached) " >&6
14332else
14333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334/* end confdefs.h.  */
14335int i;
14336_ACEOF
14337if ac_fn_c_try_compile "$LINENO"; then :
14338  xorg_cv_cc_flag_unused_command_line_argument=yes
14339else
14340  xorg_cv_cc_flag_unused_command_line_argument=no
14341fi
14342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343fi
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14346	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14347	CFLAGS="$xorg_testset_save_CFLAGS"
14348fi
14349
14350found="no"
14351
14352	if test $found = "no" ; then
14353		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14354			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14355		fi
14356
14357		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14358			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14359		fi
14360
14361		CFLAGS="$CFLAGS -Wmissing-noreturn"
14362
14363		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14364$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14365		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14366		if eval \${$cacheid+:} false; then :
14367  $as_echo_n "(cached) " >&6
14368else
14369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370/* end confdefs.h.  */
14371int i;
14372int
14373main ()
14374{
14375
14376  ;
14377  return 0;
14378}
14379_ACEOF
14380if ac_fn_c_try_link "$LINENO"; then :
14381  eval $cacheid=yes
14382else
14383  eval $cacheid=no
14384fi
14385rm -f core conftest.err conftest.$ac_objext \
14386    conftest$ac_exeext conftest.$ac_ext
14387fi
14388
14389
14390		CFLAGS="$xorg_testset_save_CFLAGS"
14391
14392		eval supported=\$$cacheid
14393		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14394$as_echo "$supported" >&6; }
14395		if test "$supported" = "yes" ; then
14396			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14397			found="yes"
14398		fi
14399	fi
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415xorg_testset_save_CFLAGS="$CFLAGS"
14416
14417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14422  $as_echo_n "(cached) " >&6
14423else
14424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425/* end confdefs.h.  */
14426int i;
14427_ACEOF
14428if ac_fn_c_try_compile "$LINENO"; then :
14429  xorg_cv_cc_flag_unknown_warning_option=yes
14430else
14431  xorg_cv_cc_flag_unknown_warning_option=no
14432fi
14433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14434fi
14435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14438	CFLAGS="$xorg_testset_save_CFLAGS"
14439fi
14440
14441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14444	fi
14445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14449  $as_echo_n "(cached) " >&6
14450else
14451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452/* end confdefs.h.  */
14453int i;
14454_ACEOF
14455if ac_fn_c_try_compile "$LINENO"; then :
14456  xorg_cv_cc_flag_unused_command_line_argument=yes
14457else
14458  xorg_cv_cc_flag_unused_command_line_argument=no
14459fi
14460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461fi
14462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14464	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14465	CFLAGS="$xorg_testset_save_CFLAGS"
14466fi
14467
14468found="no"
14469
14470	if test $found = "no" ; then
14471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14473		fi
14474
14475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14477		fi
14478
14479		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14480
14481		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14482$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14483		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14484		if eval \${$cacheid+:} false; then :
14485  $as_echo_n "(cached) " >&6
14486else
14487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488/* end confdefs.h.  */
14489int i;
14490int
14491main ()
14492{
14493
14494  ;
14495  return 0;
14496}
14497_ACEOF
14498if ac_fn_c_try_link "$LINENO"; then :
14499  eval $cacheid=yes
14500else
14501  eval $cacheid=no
14502fi
14503rm -f core conftest.err conftest.$ac_objext \
14504    conftest$ac_exeext conftest.$ac_ext
14505fi
14506
14507
14508		CFLAGS="$xorg_testset_save_CFLAGS"
14509
14510		eval supported=\$$cacheid
14511		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14512$as_echo "$supported" >&6; }
14513		if test "$supported" = "yes" ; then
14514			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14515			found="yes"
14516		fi
14517	fi
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533xorg_testset_save_CFLAGS="$CFLAGS"
14534
14535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14540  $as_echo_n "(cached) " >&6
14541else
14542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543/* end confdefs.h.  */
14544int i;
14545_ACEOF
14546if ac_fn_c_try_compile "$LINENO"; then :
14547  xorg_cv_cc_flag_unknown_warning_option=yes
14548else
14549  xorg_cv_cc_flag_unknown_warning_option=no
14550fi
14551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552fi
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14556	CFLAGS="$xorg_testset_save_CFLAGS"
14557fi
14558
14559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14562	fi
14563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14567  $as_echo_n "(cached) " >&6
14568else
14569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570/* end confdefs.h.  */
14571int i;
14572_ACEOF
14573if ac_fn_c_try_compile "$LINENO"; then :
14574  xorg_cv_cc_flag_unused_command_line_argument=yes
14575else
14576  xorg_cv_cc_flag_unused_command_line_argument=no
14577fi
14578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579fi
14580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14583	CFLAGS="$xorg_testset_save_CFLAGS"
14584fi
14585
14586found="no"
14587
14588	if test $found = "no" ; then
14589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14591		fi
14592
14593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14595		fi
14596
14597		CFLAGS="$CFLAGS -Wredundant-decls"
14598
14599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14600$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14601		cacheid=xorg_cv_cc_flag__Wredundant_decls
14602		if eval \${$cacheid+:} false; then :
14603  $as_echo_n "(cached) " >&6
14604else
14605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606/* end confdefs.h.  */
14607int i;
14608int
14609main ()
14610{
14611
14612  ;
14613  return 0;
14614}
14615_ACEOF
14616if ac_fn_c_try_link "$LINENO"; then :
14617  eval $cacheid=yes
14618else
14619  eval $cacheid=no
14620fi
14621rm -f core conftest.err conftest.$ac_objext \
14622    conftest$ac_exeext conftest.$ac_ext
14623fi
14624
14625
14626		CFLAGS="$xorg_testset_save_CFLAGS"
14627
14628		eval supported=\$$cacheid
14629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14630$as_echo "$supported" >&6; }
14631		if test "$supported" = "yes" ; then
14632			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14633			found="yes"
14634		fi
14635	fi
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651xorg_testset_save_CFLAGS="$CFLAGS"
14652
14653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14658  $as_echo_n "(cached) " >&6
14659else
14660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661/* end confdefs.h.  */
14662int i;
14663_ACEOF
14664if ac_fn_c_try_compile "$LINENO"; then :
14665  xorg_cv_cc_flag_unknown_warning_option=yes
14666else
14667  xorg_cv_cc_flag_unknown_warning_option=no
14668fi
14669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670fi
14671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14674	CFLAGS="$xorg_testset_save_CFLAGS"
14675fi
14676
14677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14680	fi
14681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14685  $as_echo_n "(cached) " >&6
14686else
14687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688/* end confdefs.h.  */
14689int i;
14690_ACEOF
14691if ac_fn_c_try_compile "$LINENO"; then :
14692  xorg_cv_cc_flag_unused_command_line_argument=yes
14693else
14694  xorg_cv_cc_flag_unused_command_line_argument=no
14695fi
14696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14697fi
14698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14701	CFLAGS="$xorg_testset_save_CFLAGS"
14702fi
14703
14704found="no"
14705
14706	if test $found = "no" ; then
14707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14709		fi
14710
14711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14713		fi
14714
14715		CFLAGS="$CFLAGS -Wlogical-op"
14716
14717		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14718$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14719		cacheid=xorg_cv_cc_flag__Wlogical_op
14720		if eval \${$cacheid+:} false; then :
14721  $as_echo_n "(cached) " >&6
14722else
14723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724/* end confdefs.h.  */
14725int i;
14726int
14727main ()
14728{
14729
14730  ;
14731  return 0;
14732}
14733_ACEOF
14734if ac_fn_c_try_link "$LINENO"; then :
14735  eval $cacheid=yes
14736else
14737  eval $cacheid=no
14738fi
14739rm -f core conftest.err conftest.$ac_objext \
14740    conftest$ac_exeext conftest.$ac_ext
14741fi
14742
14743
14744		CFLAGS="$xorg_testset_save_CFLAGS"
14745
14746		eval supported=\$$cacheid
14747		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14748$as_echo "$supported" >&6; }
14749		if test "$supported" = "yes" ; then
14750			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14751			found="yes"
14752		fi
14753	fi
14754
14755
14756
14757# These are currently disabled because they are noisy.  They will be enabled
14758# in the future once the codebase is sufficiently modernized to silence
14759# them.  For now, I don't want them to drown out the other warnings.
14760# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14761# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14762# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14763
14764# Turn some warnings into errors, so we don't accidently get successful builds
14765# when there are problems that should be fixed.
14766
14767if test "x$SELECTIVE_WERROR" = "xyes" ; then
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781xorg_testset_save_CFLAGS="$CFLAGS"
14782
14783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14788  $as_echo_n "(cached) " >&6
14789else
14790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791/* end confdefs.h.  */
14792int i;
14793_ACEOF
14794if ac_fn_c_try_compile "$LINENO"; then :
14795  xorg_cv_cc_flag_unknown_warning_option=yes
14796else
14797  xorg_cv_cc_flag_unknown_warning_option=no
14798fi
14799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800fi
14801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14804	CFLAGS="$xorg_testset_save_CFLAGS"
14805fi
14806
14807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14810	fi
14811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14815  $as_echo_n "(cached) " >&6
14816else
14817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818/* end confdefs.h.  */
14819int i;
14820_ACEOF
14821if ac_fn_c_try_compile "$LINENO"; then :
14822  xorg_cv_cc_flag_unused_command_line_argument=yes
14823else
14824  xorg_cv_cc_flag_unused_command_line_argument=no
14825fi
14826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14827fi
14828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14831	CFLAGS="$xorg_testset_save_CFLAGS"
14832fi
14833
14834found="no"
14835
14836	if test $found = "no" ; then
14837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14839		fi
14840
14841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14843		fi
14844
14845		CFLAGS="$CFLAGS -Werror=implicit"
14846
14847		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14848$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14849		cacheid=xorg_cv_cc_flag__Werror_implicit
14850		if eval \${$cacheid+:} false; then :
14851  $as_echo_n "(cached) " >&6
14852else
14853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854/* end confdefs.h.  */
14855int i;
14856int
14857main ()
14858{
14859
14860  ;
14861  return 0;
14862}
14863_ACEOF
14864if ac_fn_c_try_link "$LINENO"; then :
14865  eval $cacheid=yes
14866else
14867  eval $cacheid=no
14868fi
14869rm -f core conftest.err conftest.$ac_objext \
14870    conftest$ac_exeext conftest.$ac_ext
14871fi
14872
14873
14874		CFLAGS="$xorg_testset_save_CFLAGS"
14875
14876		eval supported=\$$cacheid
14877		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14878$as_echo "$supported" >&6; }
14879		if test "$supported" = "yes" ; then
14880			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14881			found="yes"
14882		fi
14883	fi
14884
14885	if test $found = "no" ; then
14886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14888		fi
14889
14890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14892		fi
14893
14894		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14895
14896		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14897$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14898		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14899		if eval \${$cacheid+:} false; then :
14900  $as_echo_n "(cached) " >&6
14901else
14902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903/* end confdefs.h.  */
14904int i;
14905int
14906main ()
14907{
14908
14909  ;
14910  return 0;
14911}
14912_ACEOF
14913if ac_fn_c_try_link "$LINENO"; then :
14914  eval $cacheid=yes
14915else
14916  eval $cacheid=no
14917fi
14918rm -f core conftest.err conftest.$ac_objext \
14919    conftest$ac_exeext conftest.$ac_ext
14920fi
14921
14922
14923		CFLAGS="$xorg_testset_save_CFLAGS"
14924
14925		eval supported=\$$cacheid
14926		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14927$as_echo "$supported" >&6; }
14928		if test "$supported" = "yes" ; then
14929			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14930			found="yes"
14931		fi
14932	fi
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948xorg_testset_save_CFLAGS="$CFLAGS"
14949
14950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14955  $as_echo_n "(cached) " >&6
14956else
14957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958/* end confdefs.h.  */
14959int i;
14960_ACEOF
14961if ac_fn_c_try_compile "$LINENO"; then :
14962  xorg_cv_cc_flag_unknown_warning_option=yes
14963else
14964  xorg_cv_cc_flag_unknown_warning_option=no
14965fi
14966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14967fi
14968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14971	CFLAGS="$xorg_testset_save_CFLAGS"
14972fi
14973
14974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14977	fi
14978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14982  $as_echo_n "(cached) " >&6
14983else
14984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985/* end confdefs.h.  */
14986int i;
14987_ACEOF
14988if ac_fn_c_try_compile "$LINENO"; then :
14989  xorg_cv_cc_flag_unused_command_line_argument=yes
14990else
14991  xorg_cv_cc_flag_unused_command_line_argument=no
14992fi
14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994fi
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14998	CFLAGS="$xorg_testset_save_CFLAGS"
14999fi
15000
15001found="no"
15002
15003	if test $found = "no" ; then
15004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15006		fi
15007
15008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15010		fi
15011
15012		CFLAGS="$CFLAGS -Werror=nonnull"
15013
15014		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15015$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15016		cacheid=xorg_cv_cc_flag__Werror_nonnull
15017		if eval \${$cacheid+:} false; then :
15018  $as_echo_n "(cached) " >&6
15019else
15020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h.  */
15022int i;
15023int
15024main ()
15025{
15026
15027  ;
15028  return 0;
15029}
15030_ACEOF
15031if ac_fn_c_try_link "$LINENO"; then :
15032  eval $cacheid=yes
15033else
15034  eval $cacheid=no
15035fi
15036rm -f core conftest.err conftest.$ac_objext \
15037    conftest$ac_exeext conftest.$ac_ext
15038fi
15039
15040
15041		CFLAGS="$xorg_testset_save_CFLAGS"
15042
15043		eval supported=\$$cacheid
15044		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15045$as_echo "$supported" >&6; }
15046		if test "$supported" = "yes" ; then
15047			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15048			found="yes"
15049		fi
15050	fi
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066xorg_testset_save_CFLAGS="$CFLAGS"
15067
15068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15071$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15072if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15073  $as_echo_n "(cached) " >&6
15074else
15075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076/* end confdefs.h.  */
15077int i;
15078_ACEOF
15079if ac_fn_c_try_compile "$LINENO"; then :
15080  xorg_cv_cc_flag_unknown_warning_option=yes
15081else
15082  xorg_cv_cc_flag_unknown_warning_option=no
15083fi
15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085fi
15086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15087$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15088	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15089	CFLAGS="$xorg_testset_save_CFLAGS"
15090fi
15091
15092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15093	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15094		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15095	fi
15096	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15097	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15098$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15099if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15100  $as_echo_n "(cached) " >&6
15101else
15102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103/* end confdefs.h.  */
15104int i;
15105_ACEOF
15106if ac_fn_c_try_compile "$LINENO"; then :
15107  xorg_cv_cc_flag_unused_command_line_argument=yes
15108else
15109  xorg_cv_cc_flag_unused_command_line_argument=no
15110fi
15111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112fi
15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15114$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15115	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15116	CFLAGS="$xorg_testset_save_CFLAGS"
15117fi
15118
15119found="no"
15120
15121	if test $found = "no" ; then
15122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15124		fi
15125
15126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15128		fi
15129
15130		CFLAGS="$CFLAGS -Werror=init-self"
15131
15132		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15133$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15134		cacheid=xorg_cv_cc_flag__Werror_init_self
15135		if eval \${$cacheid+:} false; then :
15136  $as_echo_n "(cached) " >&6
15137else
15138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139/* end confdefs.h.  */
15140int i;
15141int
15142main ()
15143{
15144
15145  ;
15146  return 0;
15147}
15148_ACEOF
15149if ac_fn_c_try_link "$LINENO"; then :
15150  eval $cacheid=yes
15151else
15152  eval $cacheid=no
15153fi
15154rm -f core conftest.err conftest.$ac_objext \
15155    conftest$ac_exeext conftest.$ac_ext
15156fi
15157
15158
15159		CFLAGS="$xorg_testset_save_CFLAGS"
15160
15161		eval supported=\$$cacheid
15162		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15163$as_echo "$supported" >&6; }
15164		if test "$supported" = "yes" ; then
15165			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15166			found="yes"
15167		fi
15168	fi
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184xorg_testset_save_CFLAGS="$CFLAGS"
15185
15186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15187	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15189$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15190if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15191  $as_echo_n "(cached) " >&6
15192else
15193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194/* end confdefs.h.  */
15195int i;
15196_ACEOF
15197if ac_fn_c_try_compile "$LINENO"; then :
15198  xorg_cv_cc_flag_unknown_warning_option=yes
15199else
15200  xorg_cv_cc_flag_unknown_warning_option=no
15201fi
15202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203fi
15204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15205$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15206	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15207	CFLAGS="$xorg_testset_save_CFLAGS"
15208fi
15209
15210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15211	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15212		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15213	fi
15214	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15216$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15217if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15218  $as_echo_n "(cached) " >&6
15219else
15220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h.  */
15222int i;
15223_ACEOF
15224if ac_fn_c_try_compile "$LINENO"; then :
15225  xorg_cv_cc_flag_unused_command_line_argument=yes
15226else
15227  xorg_cv_cc_flag_unused_command_line_argument=no
15228fi
15229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15230fi
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15232$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15234	CFLAGS="$xorg_testset_save_CFLAGS"
15235fi
15236
15237found="no"
15238
15239	if test $found = "no" ; then
15240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15242		fi
15243
15244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15246		fi
15247
15248		CFLAGS="$CFLAGS -Werror=main"
15249
15250		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15251$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15252		cacheid=xorg_cv_cc_flag__Werror_main
15253		if eval \${$cacheid+:} false; then :
15254  $as_echo_n "(cached) " >&6
15255else
15256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257/* end confdefs.h.  */
15258int i;
15259int
15260main ()
15261{
15262
15263  ;
15264  return 0;
15265}
15266_ACEOF
15267if ac_fn_c_try_link "$LINENO"; then :
15268  eval $cacheid=yes
15269else
15270  eval $cacheid=no
15271fi
15272rm -f core conftest.err conftest.$ac_objext \
15273    conftest$ac_exeext conftest.$ac_ext
15274fi
15275
15276
15277		CFLAGS="$xorg_testset_save_CFLAGS"
15278
15279		eval supported=\$$cacheid
15280		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15281$as_echo "$supported" >&6; }
15282		if test "$supported" = "yes" ; then
15283			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15284			found="yes"
15285		fi
15286	fi
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302xorg_testset_save_CFLAGS="$CFLAGS"
15303
15304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15309  $as_echo_n "(cached) " >&6
15310else
15311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312/* end confdefs.h.  */
15313int i;
15314_ACEOF
15315if ac_fn_c_try_compile "$LINENO"; then :
15316  xorg_cv_cc_flag_unknown_warning_option=yes
15317else
15318  xorg_cv_cc_flag_unknown_warning_option=no
15319fi
15320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321fi
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15325	CFLAGS="$xorg_testset_save_CFLAGS"
15326fi
15327
15328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15331	fi
15332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15336  $as_echo_n "(cached) " >&6
15337else
15338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339/* end confdefs.h.  */
15340int i;
15341_ACEOF
15342if ac_fn_c_try_compile "$LINENO"; then :
15343  xorg_cv_cc_flag_unused_command_line_argument=yes
15344else
15345  xorg_cv_cc_flag_unused_command_line_argument=no
15346fi
15347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348fi
15349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15351	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15352	CFLAGS="$xorg_testset_save_CFLAGS"
15353fi
15354
15355found="no"
15356
15357	if test $found = "no" ; then
15358		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15359			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15360		fi
15361
15362		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15363			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15364		fi
15365
15366		CFLAGS="$CFLAGS -Werror=missing-braces"
15367
15368		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15369$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15370		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15371		if eval \${$cacheid+:} false; then :
15372  $as_echo_n "(cached) " >&6
15373else
15374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375/* end confdefs.h.  */
15376int i;
15377int
15378main ()
15379{
15380
15381  ;
15382  return 0;
15383}
15384_ACEOF
15385if ac_fn_c_try_link "$LINENO"; then :
15386  eval $cacheid=yes
15387else
15388  eval $cacheid=no
15389fi
15390rm -f core conftest.err conftest.$ac_objext \
15391    conftest$ac_exeext conftest.$ac_ext
15392fi
15393
15394
15395		CFLAGS="$xorg_testset_save_CFLAGS"
15396
15397		eval supported=\$$cacheid
15398		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15399$as_echo "$supported" >&6; }
15400		if test "$supported" = "yes" ; then
15401			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15402			found="yes"
15403		fi
15404	fi
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420xorg_testset_save_CFLAGS="$CFLAGS"
15421
15422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15425$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15426if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15427  $as_echo_n "(cached) " >&6
15428else
15429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430/* end confdefs.h.  */
15431int i;
15432_ACEOF
15433if ac_fn_c_try_compile "$LINENO"; then :
15434  xorg_cv_cc_flag_unknown_warning_option=yes
15435else
15436  xorg_cv_cc_flag_unknown_warning_option=no
15437fi
15438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439fi
15440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15441$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15443	CFLAGS="$xorg_testset_save_CFLAGS"
15444fi
15445
15446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15449	fi
15450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15452$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15453if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15454  $as_echo_n "(cached) " >&6
15455else
15456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457/* end confdefs.h.  */
15458int i;
15459_ACEOF
15460if ac_fn_c_try_compile "$LINENO"; then :
15461  xorg_cv_cc_flag_unused_command_line_argument=yes
15462else
15463  xorg_cv_cc_flag_unused_command_line_argument=no
15464fi
15465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15466fi
15467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15468$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15469	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15470	CFLAGS="$xorg_testset_save_CFLAGS"
15471fi
15472
15473found="no"
15474
15475	if test $found = "no" ; then
15476		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15477			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15478		fi
15479
15480		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15481			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15482		fi
15483
15484		CFLAGS="$CFLAGS -Werror=sequence-point"
15485
15486		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15487$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15488		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15489		if eval \${$cacheid+:} false; then :
15490  $as_echo_n "(cached) " >&6
15491else
15492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493/* end confdefs.h.  */
15494int i;
15495int
15496main ()
15497{
15498
15499  ;
15500  return 0;
15501}
15502_ACEOF
15503if ac_fn_c_try_link "$LINENO"; then :
15504  eval $cacheid=yes
15505else
15506  eval $cacheid=no
15507fi
15508rm -f core conftest.err conftest.$ac_objext \
15509    conftest$ac_exeext conftest.$ac_ext
15510fi
15511
15512
15513		CFLAGS="$xorg_testset_save_CFLAGS"
15514
15515		eval supported=\$$cacheid
15516		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15517$as_echo "$supported" >&6; }
15518		if test "$supported" = "yes" ; then
15519			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15520			found="yes"
15521		fi
15522	fi
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538xorg_testset_save_CFLAGS="$CFLAGS"
15539
15540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15543$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15544if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15545  $as_echo_n "(cached) " >&6
15546else
15547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548/* end confdefs.h.  */
15549int i;
15550_ACEOF
15551if ac_fn_c_try_compile "$LINENO"; then :
15552  xorg_cv_cc_flag_unknown_warning_option=yes
15553else
15554  xorg_cv_cc_flag_unknown_warning_option=no
15555fi
15556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557fi
15558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15559$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15560	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15561	CFLAGS="$xorg_testset_save_CFLAGS"
15562fi
15563
15564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15565	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15566		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15567	fi
15568	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15570$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15571if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15572  $as_echo_n "(cached) " >&6
15573else
15574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575/* end confdefs.h.  */
15576int i;
15577_ACEOF
15578if ac_fn_c_try_compile "$LINENO"; then :
15579  xorg_cv_cc_flag_unused_command_line_argument=yes
15580else
15581  xorg_cv_cc_flag_unused_command_line_argument=no
15582fi
15583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584fi
15585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15586$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15587	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15588	CFLAGS="$xorg_testset_save_CFLAGS"
15589fi
15590
15591found="no"
15592
15593	if test $found = "no" ; then
15594		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15595			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15596		fi
15597
15598		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15599			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15600		fi
15601
15602		CFLAGS="$CFLAGS -Werror=return-type"
15603
15604		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15605$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15606		cacheid=xorg_cv_cc_flag__Werror_return_type
15607		if eval \${$cacheid+:} false; then :
15608  $as_echo_n "(cached) " >&6
15609else
15610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611/* end confdefs.h.  */
15612int i;
15613int
15614main ()
15615{
15616
15617  ;
15618  return 0;
15619}
15620_ACEOF
15621if ac_fn_c_try_link "$LINENO"; then :
15622  eval $cacheid=yes
15623else
15624  eval $cacheid=no
15625fi
15626rm -f core conftest.err conftest.$ac_objext \
15627    conftest$ac_exeext conftest.$ac_ext
15628fi
15629
15630
15631		CFLAGS="$xorg_testset_save_CFLAGS"
15632
15633		eval supported=\$$cacheid
15634		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15635$as_echo "$supported" >&6; }
15636		if test "$supported" = "yes" ; then
15637			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15638			found="yes"
15639		fi
15640	fi
15641
15642	if test $found = "no" ; then
15643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15645		fi
15646
15647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15649		fi
15650
15651		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15652
15653		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15654$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15655		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15656		if eval \${$cacheid+:} false; then :
15657  $as_echo_n "(cached) " >&6
15658else
15659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660/* end confdefs.h.  */
15661int i;
15662int
15663main ()
15664{
15665
15666  ;
15667  return 0;
15668}
15669_ACEOF
15670if ac_fn_c_try_link "$LINENO"; then :
15671  eval $cacheid=yes
15672else
15673  eval $cacheid=no
15674fi
15675rm -f core conftest.err conftest.$ac_objext \
15676    conftest$ac_exeext conftest.$ac_ext
15677fi
15678
15679
15680		CFLAGS="$xorg_testset_save_CFLAGS"
15681
15682		eval supported=\$$cacheid
15683		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15684$as_echo "$supported" >&6; }
15685		if test "$supported" = "yes" ; then
15686			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15687			found="yes"
15688		fi
15689	fi
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705xorg_testset_save_CFLAGS="$CFLAGS"
15706
15707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15708	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15712  $as_echo_n "(cached) " >&6
15713else
15714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715/* end confdefs.h.  */
15716int i;
15717_ACEOF
15718if ac_fn_c_try_compile "$LINENO"; then :
15719  xorg_cv_cc_flag_unknown_warning_option=yes
15720else
15721  xorg_cv_cc_flag_unknown_warning_option=no
15722fi
15723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724fi
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15727	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15728	CFLAGS="$xorg_testset_save_CFLAGS"
15729fi
15730
15731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15732	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15733		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15734	fi
15735	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15739  $as_echo_n "(cached) " >&6
15740else
15741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742/* end confdefs.h.  */
15743int i;
15744_ACEOF
15745if ac_fn_c_try_compile "$LINENO"; then :
15746  xorg_cv_cc_flag_unused_command_line_argument=yes
15747else
15748  xorg_cv_cc_flag_unused_command_line_argument=no
15749fi
15750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751fi
15752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15754	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15755	CFLAGS="$xorg_testset_save_CFLAGS"
15756fi
15757
15758found="no"
15759
15760	if test $found = "no" ; then
15761		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15762			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15763		fi
15764
15765		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15766			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15767		fi
15768
15769		CFLAGS="$CFLAGS -Werror=trigraphs"
15770
15771		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15772$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15773		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15774		if eval \${$cacheid+:} false; then :
15775  $as_echo_n "(cached) " >&6
15776else
15777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778/* end confdefs.h.  */
15779int i;
15780int
15781main ()
15782{
15783
15784  ;
15785  return 0;
15786}
15787_ACEOF
15788if ac_fn_c_try_link "$LINENO"; then :
15789  eval $cacheid=yes
15790else
15791  eval $cacheid=no
15792fi
15793rm -f core conftest.err conftest.$ac_objext \
15794    conftest$ac_exeext conftest.$ac_ext
15795fi
15796
15797
15798		CFLAGS="$xorg_testset_save_CFLAGS"
15799
15800		eval supported=\$$cacheid
15801		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15802$as_echo "$supported" >&6; }
15803		if test "$supported" = "yes" ; then
15804			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15805			found="yes"
15806		fi
15807	fi
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823xorg_testset_save_CFLAGS="$CFLAGS"
15824
15825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15830  $as_echo_n "(cached) " >&6
15831else
15832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833/* end confdefs.h.  */
15834int i;
15835_ACEOF
15836if ac_fn_c_try_compile "$LINENO"; then :
15837  xorg_cv_cc_flag_unknown_warning_option=yes
15838else
15839  xorg_cv_cc_flag_unknown_warning_option=no
15840fi
15841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842fi
15843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15846	CFLAGS="$xorg_testset_save_CFLAGS"
15847fi
15848
15849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15852	fi
15853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15857  $as_echo_n "(cached) " >&6
15858else
15859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860/* end confdefs.h.  */
15861int i;
15862_ACEOF
15863if ac_fn_c_try_compile "$LINENO"; then :
15864  xorg_cv_cc_flag_unused_command_line_argument=yes
15865else
15866  xorg_cv_cc_flag_unused_command_line_argument=no
15867fi
15868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869fi
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15873	CFLAGS="$xorg_testset_save_CFLAGS"
15874fi
15875
15876found="no"
15877
15878	if test $found = "no" ; then
15879		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15881		fi
15882
15883		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15885		fi
15886
15887		CFLAGS="$CFLAGS -Werror=array-bounds"
15888
15889		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15890$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15891		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15892		if eval \${$cacheid+:} false; then :
15893  $as_echo_n "(cached) " >&6
15894else
15895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896/* end confdefs.h.  */
15897int i;
15898int
15899main ()
15900{
15901
15902  ;
15903  return 0;
15904}
15905_ACEOF
15906if ac_fn_c_try_link "$LINENO"; then :
15907  eval $cacheid=yes
15908else
15909  eval $cacheid=no
15910fi
15911rm -f core conftest.err conftest.$ac_objext \
15912    conftest$ac_exeext conftest.$ac_ext
15913fi
15914
15915
15916		CFLAGS="$xorg_testset_save_CFLAGS"
15917
15918		eval supported=\$$cacheid
15919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15920$as_echo "$supported" >&6; }
15921		if test "$supported" = "yes" ; then
15922			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15923			found="yes"
15924		fi
15925	fi
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941xorg_testset_save_CFLAGS="$CFLAGS"
15942
15943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15948  $as_echo_n "(cached) " >&6
15949else
15950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951/* end confdefs.h.  */
15952int i;
15953_ACEOF
15954if ac_fn_c_try_compile "$LINENO"; then :
15955  xorg_cv_cc_flag_unknown_warning_option=yes
15956else
15957  xorg_cv_cc_flag_unknown_warning_option=no
15958fi
15959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15960fi
15961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15964	CFLAGS="$xorg_testset_save_CFLAGS"
15965fi
15966
15967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15970	fi
15971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15975  $as_echo_n "(cached) " >&6
15976else
15977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978/* end confdefs.h.  */
15979int i;
15980_ACEOF
15981if ac_fn_c_try_compile "$LINENO"; then :
15982  xorg_cv_cc_flag_unused_command_line_argument=yes
15983else
15984  xorg_cv_cc_flag_unused_command_line_argument=no
15985fi
15986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987fi
15988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15991	CFLAGS="$xorg_testset_save_CFLAGS"
15992fi
15993
15994found="no"
15995
15996	if test $found = "no" ; then
15997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15999		fi
16000
16001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16003		fi
16004
16005		CFLAGS="$CFLAGS -Werror=write-strings"
16006
16007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16008$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16009		cacheid=xorg_cv_cc_flag__Werror_write_strings
16010		if eval \${$cacheid+:} false; then :
16011  $as_echo_n "(cached) " >&6
16012else
16013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014/* end confdefs.h.  */
16015int i;
16016int
16017main ()
16018{
16019
16020  ;
16021  return 0;
16022}
16023_ACEOF
16024if ac_fn_c_try_link "$LINENO"; then :
16025  eval $cacheid=yes
16026else
16027  eval $cacheid=no
16028fi
16029rm -f core conftest.err conftest.$ac_objext \
16030    conftest$ac_exeext conftest.$ac_ext
16031fi
16032
16033
16034		CFLAGS="$xorg_testset_save_CFLAGS"
16035
16036		eval supported=\$$cacheid
16037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16038$as_echo "$supported" >&6; }
16039		if test "$supported" = "yes" ; then
16040			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16041			found="yes"
16042		fi
16043	fi
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059xorg_testset_save_CFLAGS="$CFLAGS"
16060
16061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16066  $as_echo_n "(cached) " >&6
16067else
16068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069/* end confdefs.h.  */
16070int i;
16071_ACEOF
16072if ac_fn_c_try_compile "$LINENO"; then :
16073  xorg_cv_cc_flag_unknown_warning_option=yes
16074else
16075  xorg_cv_cc_flag_unknown_warning_option=no
16076fi
16077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16078fi
16079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16081	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16082	CFLAGS="$xorg_testset_save_CFLAGS"
16083fi
16084
16085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16086	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16087		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16088	fi
16089	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16093  $as_echo_n "(cached) " >&6
16094else
16095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096/* end confdefs.h.  */
16097int i;
16098_ACEOF
16099if ac_fn_c_try_compile "$LINENO"; then :
16100  xorg_cv_cc_flag_unused_command_line_argument=yes
16101else
16102  xorg_cv_cc_flag_unused_command_line_argument=no
16103fi
16104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105fi
16106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16109	CFLAGS="$xorg_testset_save_CFLAGS"
16110fi
16111
16112found="no"
16113
16114	if test $found = "no" ; then
16115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16117		fi
16118
16119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16121		fi
16122
16123		CFLAGS="$CFLAGS -Werror=address"
16124
16125		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16126$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16127		cacheid=xorg_cv_cc_flag__Werror_address
16128		if eval \${$cacheid+:} false; then :
16129  $as_echo_n "(cached) " >&6
16130else
16131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132/* end confdefs.h.  */
16133int i;
16134int
16135main ()
16136{
16137
16138  ;
16139  return 0;
16140}
16141_ACEOF
16142if ac_fn_c_try_link "$LINENO"; then :
16143  eval $cacheid=yes
16144else
16145  eval $cacheid=no
16146fi
16147rm -f core conftest.err conftest.$ac_objext \
16148    conftest$ac_exeext conftest.$ac_ext
16149fi
16150
16151
16152		CFLAGS="$xorg_testset_save_CFLAGS"
16153
16154		eval supported=\$$cacheid
16155		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16156$as_echo "$supported" >&6; }
16157		if test "$supported" = "yes" ; then
16158			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16159			found="yes"
16160		fi
16161	fi
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177xorg_testset_save_CFLAGS="$CFLAGS"
16178
16179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16184  $as_echo_n "(cached) " >&6
16185else
16186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187/* end confdefs.h.  */
16188int i;
16189_ACEOF
16190if ac_fn_c_try_compile "$LINENO"; then :
16191  xorg_cv_cc_flag_unknown_warning_option=yes
16192else
16193  xorg_cv_cc_flag_unknown_warning_option=no
16194fi
16195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196fi
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16199	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16200	CFLAGS="$xorg_testset_save_CFLAGS"
16201fi
16202
16203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16204	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16205		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16206	fi
16207	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16211  $as_echo_n "(cached) " >&6
16212else
16213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214/* end confdefs.h.  */
16215int i;
16216_ACEOF
16217if ac_fn_c_try_compile "$LINENO"; then :
16218  xorg_cv_cc_flag_unused_command_line_argument=yes
16219else
16220  xorg_cv_cc_flag_unused_command_line_argument=no
16221fi
16222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223fi
16224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16227	CFLAGS="$xorg_testset_save_CFLAGS"
16228fi
16229
16230found="no"
16231
16232	if test $found = "no" ; then
16233		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16235		fi
16236
16237		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16239		fi
16240
16241		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16242
16243		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16244$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16245		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16246		if eval \${$cacheid+:} false; then :
16247  $as_echo_n "(cached) " >&6
16248else
16249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250/* end confdefs.h.  */
16251int i;
16252int
16253main ()
16254{
16255
16256  ;
16257  return 0;
16258}
16259_ACEOF
16260if ac_fn_c_try_link "$LINENO"; then :
16261  eval $cacheid=yes
16262else
16263  eval $cacheid=no
16264fi
16265rm -f core conftest.err conftest.$ac_objext \
16266    conftest$ac_exeext conftest.$ac_ext
16267fi
16268
16269
16270		CFLAGS="$xorg_testset_save_CFLAGS"
16271
16272		eval supported=\$$cacheid
16273		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16274$as_echo "$supported" >&6; }
16275		if test "$supported" = "yes" ; then
16276			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16277			found="yes"
16278		fi
16279	fi
16280
16281	if test $found = "no" ; then
16282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16284		fi
16285
16286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16288		fi
16289
16290		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16291
16292		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16293$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16294		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16295		if eval \${$cacheid+:} false; then :
16296  $as_echo_n "(cached) " >&6
16297else
16298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299/* end confdefs.h.  */
16300int i;
16301int
16302main ()
16303{
16304
16305  ;
16306  return 0;
16307}
16308_ACEOF
16309if ac_fn_c_try_link "$LINENO"; then :
16310  eval $cacheid=yes
16311else
16312  eval $cacheid=no
16313fi
16314rm -f core conftest.err conftest.$ac_objext \
16315    conftest$ac_exeext conftest.$ac_ext
16316fi
16317
16318
16319		CFLAGS="$xorg_testset_save_CFLAGS"
16320
16321		eval supported=\$$cacheid
16322		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16323$as_echo "$supported" >&6; }
16324		if test "$supported" = "yes" ; then
16325			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16326			found="yes"
16327		fi
16328	fi
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344xorg_testset_save_CFLAGS="$CFLAGS"
16345
16346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16347	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16349$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16350if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16351  $as_echo_n "(cached) " >&6
16352else
16353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354/* end confdefs.h.  */
16355int i;
16356_ACEOF
16357if ac_fn_c_try_compile "$LINENO"; then :
16358  xorg_cv_cc_flag_unknown_warning_option=yes
16359else
16360  xorg_cv_cc_flag_unknown_warning_option=no
16361fi
16362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363fi
16364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16365$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16366	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16367	CFLAGS="$xorg_testset_save_CFLAGS"
16368fi
16369
16370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16371	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16372		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16373	fi
16374	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16376$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16377if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16378  $as_echo_n "(cached) " >&6
16379else
16380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381/* end confdefs.h.  */
16382int i;
16383_ACEOF
16384if ac_fn_c_try_compile "$LINENO"; then :
16385  xorg_cv_cc_flag_unused_command_line_argument=yes
16386else
16387  xorg_cv_cc_flag_unused_command_line_argument=no
16388fi
16389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390fi
16391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16392$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16393	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16394	CFLAGS="$xorg_testset_save_CFLAGS"
16395fi
16396
16397found="no"
16398
16399	if test $found = "no" ; then
16400		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16401			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16402		fi
16403
16404		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16405			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16406		fi
16407
16408		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16409
16410		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16411$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16412		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16413		if eval \${$cacheid+:} false; then :
16414  $as_echo_n "(cached) " >&6
16415else
16416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417/* end confdefs.h.  */
16418int i;
16419int
16420main ()
16421{
16422
16423  ;
16424  return 0;
16425}
16426_ACEOF
16427if ac_fn_c_try_link "$LINENO"; then :
16428  eval $cacheid=yes
16429else
16430  eval $cacheid=no
16431fi
16432rm -f core conftest.err conftest.$ac_objext \
16433    conftest$ac_exeext conftest.$ac_ext
16434fi
16435
16436
16437		CFLAGS="$xorg_testset_save_CFLAGS"
16438
16439		eval supported=\$$cacheid
16440		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16441$as_echo "$supported" >&6; }
16442		if test "$supported" = "yes" ; then
16443			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16444			found="yes"
16445		fi
16446	fi
16447
16448 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16449else
16450{ $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
16451$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;}
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465xorg_testset_save_CFLAGS="$CFLAGS"
16466
16467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16472  $as_echo_n "(cached) " >&6
16473else
16474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475/* end confdefs.h.  */
16476int i;
16477_ACEOF
16478if ac_fn_c_try_compile "$LINENO"; then :
16479  xorg_cv_cc_flag_unknown_warning_option=yes
16480else
16481  xorg_cv_cc_flag_unknown_warning_option=no
16482fi
16483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16484fi
16485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16487	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16488	CFLAGS="$xorg_testset_save_CFLAGS"
16489fi
16490
16491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16492	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16493		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16494	fi
16495	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16499  $as_echo_n "(cached) " >&6
16500else
16501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502/* end confdefs.h.  */
16503int i;
16504_ACEOF
16505if ac_fn_c_try_compile "$LINENO"; then :
16506  xorg_cv_cc_flag_unused_command_line_argument=yes
16507else
16508  xorg_cv_cc_flag_unused_command_line_argument=no
16509fi
16510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511fi
16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16515	CFLAGS="$xorg_testset_save_CFLAGS"
16516fi
16517
16518found="no"
16519
16520	if test $found = "no" ; then
16521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16523		fi
16524
16525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16527		fi
16528
16529		CFLAGS="$CFLAGS -Wimplicit"
16530
16531		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16532$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16533		cacheid=xorg_cv_cc_flag__Wimplicit
16534		if eval \${$cacheid+:} false; then :
16535  $as_echo_n "(cached) " >&6
16536else
16537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538/* end confdefs.h.  */
16539int i;
16540int
16541main ()
16542{
16543
16544  ;
16545  return 0;
16546}
16547_ACEOF
16548if ac_fn_c_try_link "$LINENO"; then :
16549  eval $cacheid=yes
16550else
16551  eval $cacheid=no
16552fi
16553rm -f core conftest.err conftest.$ac_objext \
16554    conftest$ac_exeext conftest.$ac_ext
16555fi
16556
16557
16558		CFLAGS="$xorg_testset_save_CFLAGS"
16559
16560		eval supported=\$$cacheid
16561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16562$as_echo "$supported" >&6; }
16563		if test "$supported" = "yes" ; then
16564			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16565			found="yes"
16566		fi
16567	fi
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583xorg_testset_save_CFLAGS="$CFLAGS"
16584
16585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16588$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16589if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16590  $as_echo_n "(cached) " >&6
16591else
16592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593/* end confdefs.h.  */
16594int i;
16595_ACEOF
16596if ac_fn_c_try_compile "$LINENO"; then :
16597  xorg_cv_cc_flag_unknown_warning_option=yes
16598else
16599  xorg_cv_cc_flag_unknown_warning_option=no
16600fi
16601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16602fi
16603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16604$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16606	CFLAGS="$xorg_testset_save_CFLAGS"
16607fi
16608
16609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16612	fi
16613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16615$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16616if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16617  $as_echo_n "(cached) " >&6
16618else
16619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620/* end confdefs.h.  */
16621int i;
16622_ACEOF
16623if ac_fn_c_try_compile "$LINENO"; then :
16624  xorg_cv_cc_flag_unused_command_line_argument=yes
16625else
16626  xorg_cv_cc_flag_unused_command_line_argument=no
16627fi
16628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629fi
16630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16631$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16633	CFLAGS="$xorg_testset_save_CFLAGS"
16634fi
16635
16636found="no"
16637
16638	if test $found = "no" ; then
16639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16641		fi
16642
16643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16645		fi
16646
16647		CFLAGS="$CFLAGS -Wnonnull"
16648
16649		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16650$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16651		cacheid=xorg_cv_cc_flag__Wnonnull
16652		if eval \${$cacheid+:} false; then :
16653  $as_echo_n "(cached) " >&6
16654else
16655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656/* end confdefs.h.  */
16657int i;
16658int
16659main ()
16660{
16661
16662  ;
16663  return 0;
16664}
16665_ACEOF
16666if ac_fn_c_try_link "$LINENO"; then :
16667  eval $cacheid=yes
16668else
16669  eval $cacheid=no
16670fi
16671rm -f core conftest.err conftest.$ac_objext \
16672    conftest$ac_exeext conftest.$ac_ext
16673fi
16674
16675
16676		CFLAGS="$xorg_testset_save_CFLAGS"
16677
16678		eval supported=\$$cacheid
16679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16680$as_echo "$supported" >&6; }
16681		if test "$supported" = "yes" ; then
16682			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16683			found="yes"
16684		fi
16685	fi
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701xorg_testset_save_CFLAGS="$CFLAGS"
16702
16703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16704	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16706$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16707if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16708  $as_echo_n "(cached) " >&6
16709else
16710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711/* end confdefs.h.  */
16712int i;
16713_ACEOF
16714if ac_fn_c_try_compile "$LINENO"; then :
16715  xorg_cv_cc_flag_unknown_warning_option=yes
16716else
16717  xorg_cv_cc_flag_unknown_warning_option=no
16718fi
16719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16720fi
16721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16722$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16724	CFLAGS="$xorg_testset_save_CFLAGS"
16725fi
16726
16727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16730	fi
16731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16733$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16734if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16735  $as_echo_n "(cached) " >&6
16736else
16737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738/* end confdefs.h.  */
16739int i;
16740_ACEOF
16741if ac_fn_c_try_compile "$LINENO"; then :
16742  xorg_cv_cc_flag_unused_command_line_argument=yes
16743else
16744  xorg_cv_cc_flag_unused_command_line_argument=no
16745fi
16746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747fi
16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16749$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16751	CFLAGS="$xorg_testset_save_CFLAGS"
16752fi
16753
16754found="no"
16755
16756	if test $found = "no" ; then
16757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16759		fi
16760
16761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16763		fi
16764
16765		CFLAGS="$CFLAGS -Winit-self"
16766
16767		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16768$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16769		cacheid=xorg_cv_cc_flag__Winit_self
16770		if eval \${$cacheid+:} false; then :
16771  $as_echo_n "(cached) " >&6
16772else
16773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774/* end confdefs.h.  */
16775int i;
16776int
16777main ()
16778{
16779
16780  ;
16781  return 0;
16782}
16783_ACEOF
16784if ac_fn_c_try_link "$LINENO"; then :
16785  eval $cacheid=yes
16786else
16787  eval $cacheid=no
16788fi
16789rm -f core conftest.err conftest.$ac_objext \
16790    conftest$ac_exeext conftest.$ac_ext
16791fi
16792
16793
16794		CFLAGS="$xorg_testset_save_CFLAGS"
16795
16796		eval supported=\$$cacheid
16797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16798$as_echo "$supported" >&6; }
16799		if test "$supported" = "yes" ; then
16800			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16801			found="yes"
16802		fi
16803	fi
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819xorg_testset_save_CFLAGS="$CFLAGS"
16820
16821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16822	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16826  $as_echo_n "(cached) " >&6
16827else
16828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829/* end confdefs.h.  */
16830int i;
16831_ACEOF
16832if ac_fn_c_try_compile "$LINENO"; then :
16833  xorg_cv_cc_flag_unknown_warning_option=yes
16834else
16835  xorg_cv_cc_flag_unknown_warning_option=no
16836fi
16837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838fi
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16841	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16842	CFLAGS="$xorg_testset_save_CFLAGS"
16843fi
16844
16845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16846	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16847		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16848	fi
16849	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16853  $as_echo_n "(cached) " >&6
16854else
16855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856/* end confdefs.h.  */
16857int i;
16858_ACEOF
16859if ac_fn_c_try_compile "$LINENO"; then :
16860  xorg_cv_cc_flag_unused_command_line_argument=yes
16861else
16862  xorg_cv_cc_flag_unused_command_line_argument=no
16863fi
16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865fi
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16868	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16869	CFLAGS="$xorg_testset_save_CFLAGS"
16870fi
16871
16872found="no"
16873
16874	if test $found = "no" ; then
16875		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16877		fi
16878
16879		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16881		fi
16882
16883		CFLAGS="$CFLAGS -Wmain"
16884
16885		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16886$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16887		cacheid=xorg_cv_cc_flag__Wmain
16888		if eval \${$cacheid+:} false; then :
16889  $as_echo_n "(cached) " >&6
16890else
16891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892/* end confdefs.h.  */
16893int i;
16894int
16895main ()
16896{
16897
16898  ;
16899  return 0;
16900}
16901_ACEOF
16902if ac_fn_c_try_link "$LINENO"; then :
16903  eval $cacheid=yes
16904else
16905  eval $cacheid=no
16906fi
16907rm -f core conftest.err conftest.$ac_objext \
16908    conftest$ac_exeext conftest.$ac_ext
16909fi
16910
16911
16912		CFLAGS="$xorg_testset_save_CFLAGS"
16913
16914		eval supported=\$$cacheid
16915		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16916$as_echo "$supported" >&6; }
16917		if test "$supported" = "yes" ; then
16918			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16919			found="yes"
16920		fi
16921	fi
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937xorg_testset_save_CFLAGS="$CFLAGS"
16938
16939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16944  $as_echo_n "(cached) " >&6
16945else
16946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947/* end confdefs.h.  */
16948int i;
16949_ACEOF
16950if ac_fn_c_try_compile "$LINENO"; then :
16951  xorg_cv_cc_flag_unknown_warning_option=yes
16952else
16953  xorg_cv_cc_flag_unknown_warning_option=no
16954fi
16955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956fi
16957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16959	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16960	CFLAGS="$xorg_testset_save_CFLAGS"
16961fi
16962
16963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16964	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16965		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16966	fi
16967	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16971  $as_echo_n "(cached) " >&6
16972else
16973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974/* end confdefs.h.  */
16975int i;
16976_ACEOF
16977if ac_fn_c_try_compile "$LINENO"; then :
16978  xorg_cv_cc_flag_unused_command_line_argument=yes
16979else
16980  xorg_cv_cc_flag_unused_command_line_argument=no
16981fi
16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983fi
16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16987	CFLAGS="$xorg_testset_save_CFLAGS"
16988fi
16989
16990found="no"
16991
16992	if test $found = "no" ; then
16993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16995		fi
16996
16997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16999		fi
17000
17001		CFLAGS="$CFLAGS -Wmissing-braces"
17002
17003		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17004$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17005		cacheid=xorg_cv_cc_flag__Wmissing_braces
17006		if eval \${$cacheid+:} false; then :
17007  $as_echo_n "(cached) " >&6
17008else
17009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010/* end confdefs.h.  */
17011int i;
17012int
17013main ()
17014{
17015
17016  ;
17017  return 0;
17018}
17019_ACEOF
17020if ac_fn_c_try_link "$LINENO"; then :
17021  eval $cacheid=yes
17022else
17023  eval $cacheid=no
17024fi
17025rm -f core conftest.err conftest.$ac_objext \
17026    conftest$ac_exeext conftest.$ac_ext
17027fi
17028
17029
17030		CFLAGS="$xorg_testset_save_CFLAGS"
17031
17032		eval supported=\$$cacheid
17033		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17034$as_echo "$supported" >&6; }
17035		if test "$supported" = "yes" ; then
17036			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17037			found="yes"
17038		fi
17039	fi
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055xorg_testset_save_CFLAGS="$CFLAGS"
17056
17057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17062  $as_echo_n "(cached) " >&6
17063else
17064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065/* end confdefs.h.  */
17066int i;
17067_ACEOF
17068if ac_fn_c_try_compile "$LINENO"; then :
17069  xorg_cv_cc_flag_unknown_warning_option=yes
17070else
17071  xorg_cv_cc_flag_unknown_warning_option=no
17072fi
17073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074fi
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17077	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17078	CFLAGS="$xorg_testset_save_CFLAGS"
17079fi
17080
17081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17082	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17083		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17084	fi
17085	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17089  $as_echo_n "(cached) " >&6
17090else
17091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092/* end confdefs.h.  */
17093int i;
17094_ACEOF
17095if ac_fn_c_try_compile "$LINENO"; then :
17096  xorg_cv_cc_flag_unused_command_line_argument=yes
17097else
17098  xorg_cv_cc_flag_unused_command_line_argument=no
17099fi
17100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101fi
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17104	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17105	CFLAGS="$xorg_testset_save_CFLAGS"
17106fi
17107
17108found="no"
17109
17110	if test $found = "no" ; then
17111		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17112			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17113		fi
17114
17115		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17116			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17117		fi
17118
17119		CFLAGS="$CFLAGS -Wsequence-point"
17120
17121		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17122$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17123		cacheid=xorg_cv_cc_flag__Wsequence_point
17124		if eval \${$cacheid+:} false; then :
17125  $as_echo_n "(cached) " >&6
17126else
17127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128/* end confdefs.h.  */
17129int i;
17130int
17131main ()
17132{
17133
17134  ;
17135  return 0;
17136}
17137_ACEOF
17138if ac_fn_c_try_link "$LINENO"; then :
17139  eval $cacheid=yes
17140else
17141  eval $cacheid=no
17142fi
17143rm -f core conftest.err conftest.$ac_objext \
17144    conftest$ac_exeext conftest.$ac_ext
17145fi
17146
17147
17148		CFLAGS="$xorg_testset_save_CFLAGS"
17149
17150		eval supported=\$$cacheid
17151		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17152$as_echo "$supported" >&6; }
17153		if test "$supported" = "yes" ; then
17154			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17155			found="yes"
17156		fi
17157	fi
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173xorg_testset_save_CFLAGS="$CFLAGS"
17174
17175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17180  $as_echo_n "(cached) " >&6
17181else
17182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183/* end confdefs.h.  */
17184int i;
17185_ACEOF
17186if ac_fn_c_try_compile "$LINENO"; then :
17187  xorg_cv_cc_flag_unknown_warning_option=yes
17188else
17189  xorg_cv_cc_flag_unknown_warning_option=no
17190fi
17191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192fi
17193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17196	CFLAGS="$xorg_testset_save_CFLAGS"
17197fi
17198
17199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17202	fi
17203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17207  $as_echo_n "(cached) " >&6
17208else
17209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210/* end confdefs.h.  */
17211int i;
17212_ACEOF
17213if ac_fn_c_try_compile "$LINENO"; then :
17214  xorg_cv_cc_flag_unused_command_line_argument=yes
17215else
17216  xorg_cv_cc_flag_unused_command_line_argument=no
17217fi
17218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219fi
17220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17223	CFLAGS="$xorg_testset_save_CFLAGS"
17224fi
17225
17226found="no"
17227
17228	if test $found = "no" ; then
17229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17231		fi
17232
17233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17235		fi
17236
17237		CFLAGS="$CFLAGS -Wreturn-type"
17238
17239		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17240$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17241		cacheid=xorg_cv_cc_flag__Wreturn_type
17242		if eval \${$cacheid+:} false; then :
17243  $as_echo_n "(cached) " >&6
17244else
17245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246/* end confdefs.h.  */
17247int i;
17248int
17249main ()
17250{
17251
17252  ;
17253  return 0;
17254}
17255_ACEOF
17256if ac_fn_c_try_link "$LINENO"; then :
17257  eval $cacheid=yes
17258else
17259  eval $cacheid=no
17260fi
17261rm -f core conftest.err conftest.$ac_objext \
17262    conftest$ac_exeext conftest.$ac_ext
17263fi
17264
17265
17266		CFLAGS="$xorg_testset_save_CFLAGS"
17267
17268		eval supported=\$$cacheid
17269		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17270$as_echo "$supported" >&6; }
17271		if test "$supported" = "yes" ; then
17272			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17273			found="yes"
17274		fi
17275	fi
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291xorg_testset_save_CFLAGS="$CFLAGS"
17292
17293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17294	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17298  $as_echo_n "(cached) " >&6
17299else
17300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301/* end confdefs.h.  */
17302int i;
17303_ACEOF
17304if ac_fn_c_try_compile "$LINENO"; then :
17305  xorg_cv_cc_flag_unknown_warning_option=yes
17306else
17307  xorg_cv_cc_flag_unknown_warning_option=no
17308fi
17309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310fi
17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17314	CFLAGS="$xorg_testset_save_CFLAGS"
17315fi
17316
17317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17320	fi
17321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17325  $as_echo_n "(cached) " >&6
17326else
17327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328/* end confdefs.h.  */
17329int i;
17330_ACEOF
17331if ac_fn_c_try_compile "$LINENO"; then :
17332  xorg_cv_cc_flag_unused_command_line_argument=yes
17333else
17334  xorg_cv_cc_flag_unused_command_line_argument=no
17335fi
17336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337fi
17338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17341	CFLAGS="$xorg_testset_save_CFLAGS"
17342fi
17343
17344found="no"
17345
17346	if test $found = "no" ; then
17347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17349		fi
17350
17351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17353		fi
17354
17355		CFLAGS="$CFLAGS -Wtrigraphs"
17356
17357		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17358$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17359		cacheid=xorg_cv_cc_flag__Wtrigraphs
17360		if eval \${$cacheid+:} false; then :
17361  $as_echo_n "(cached) " >&6
17362else
17363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364/* end confdefs.h.  */
17365int i;
17366int
17367main ()
17368{
17369
17370  ;
17371  return 0;
17372}
17373_ACEOF
17374if ac_fn_c_try_link "$LINENO"; then :
17375  eval $cacheid=yes
17376else
17377  eval $cacheid=no
17378fi
17379rm -f core conftest.err conftest.$ac_objext \
17380    conftest$ac_exeext conftest.$ac_ext
17381fi
17382
17383
17384		CFLAGS="$xorg_testset_save_CFLAGS"
17385
17386		eval supported=\$$cacheid
17387		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17388$as_echo "$supported" >&6; }
17389		if test "$supported" = "yes" ; then
17390			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17391			found="yes"
17392		fi
17393	fi
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409xorg_testset_save_CFLAGS="$CFLAGS"
17410
17411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17416  $as_echo_n "(cached) " >&6
17417else
17418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419/* end confdefs.h.  */
17420int i;
17421_ACEOF
17422if ac_fn_c_try_compile "$LINENO"; then :
17423  xorg_cv_cc_flag_unknown_warning_option=yes
17424else
17425  xorg_cv_cc_flag_unknown_warning_option=no
17426fi
17427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17428fi
17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17431	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17432	CFLAGS="$xorg_testset_save_CFLAGS"
17433fi
17434
17435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17436	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17437		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17438	fi
17439	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17443  $as_echo_n "(cached) " >&6
17444else
17445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446/* end confdefs.h.  */
17447int i;
17448_ACEOF
17449if ac_fn_c_try_compile "$LINENO"; then :
17450  xorg_cv_cc_flag_unused_command_line_argument=yes
17451else
17452  xorg_cv_cc_flag_unused_command_line_argument=no
17453fi
17454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455fi
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17459	CFLAGS="$xorg_testset_save_CFLAGS"
17460fi
17461
17462found="no"
17463
17464	if test $found = "no" ; then
17465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17467		fi
17468
17469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17471		fi
17472
17473		CFLAGS="$CFLAGS -Warray-bounds"
17474
17475		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17476$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17477		cacheid=xorg_cv_cc_flag__Warray_bounds
17478		if eval \${$cacheid+:} false; then :
17479  $as_echo_n "(cached) " >&6
17480else
17481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482/* end confdefs.h.  */
17483int i;
17484int
17485main ()
17486{
17487
17488  ;
17489  return 0;
17490}
17491_ACEOF
17492if ac_fn_c_try_link "$LINENO"; then :
17493  eval $cacheid=yes
17494else
17495  eval $cacheid=no
17496fi
17497rm -f core conftest.err conftest.$ac_objext \
17498    conftest$ac_exeext conftest.$ac_ext
17499fi
17500
17501
17502		CFLAGS="$xorg_testset_save_CFLAGS"
17503
17504		eval supported=\$$cacheid
17505		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17506$as_echo "$supported" >&6; }
17507		if test "$supported" = "yes" ; then
17508			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17509			found="yes"
17510		fi
17511	fi
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527xorg_testset_save_CFLAGS="$CFLAGS"
17528
17529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17534  $as_echo_n "(cached) " >&6
17535else
17536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537/* end confdefs.h.  */
17538int i;
17539_ACEOF
17540if ac_fn_c_try_compile "$LINENO"; then :
17541  xorg_cv_cc_flag_unknown_warning_option=yes
17542else
17543  xorg_cv_cc_flag_unknown_warning_option=no
17544fi
17545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17546fi
17547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17550	CFLAGS="$xorg_testset_save_CFLAGS"
17551fi
17552
17553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17556	fi
17557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17561  $as_echo_n "(cached) " >&6
17562else
17563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564/* end confdefs.h.  */
17565int i;
17566_ACEOF
17567if ac_fn_c_try_compile "$LINENO"; then :
17568  xorg_cv_cc_flag_unused_command_line_argument=yes
17569else
17570  xorg_cv_cc_flag_unused_command_line_argument=no
17571fi
17572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17573fi
17574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17577	CFLAGS="$xorg_testset_save_CFLAGS"
17578fi
17579
17580found="no"
17581
17582	if test $found = "no" ; then
17583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17585		fi
17586
17587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17589		fi
17590
17591		CFLAGS="$CFLAGS -Wwrite-strings"
17592
17593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17594$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17595		cacheid=xorg_cv_cc_flag__Wwrite_strings
17596		if eval \${$cacheid+:} false; then :
17597  $as_echo_n "(cached) " >&6
17598else
17599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600/* end confdefs.h.  */
17601int i;
17602int
17603main ()
17604{
17605
17606  ;
17607  return 0;
17608}
17609_ACEOF
17610if ac_fn_c_try_link "$LINENO"; then :
17611  eval $cacheid=yes
17612else
17613  eval $cacheid=no
17614fi
17615rm -f core conftest.err conftest.$ac_objext \
17616    conftest$ac_exeext conftest.$ac_ext
17617fi
17618
17619
17620		CFLAGS="$xorg_testset_save_CFLAGS"
17621
17622		eval supported=\$$cacheid
17623		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17624$as_echo "$supported" >&6; }
17625		if test "$supported" = "yes" ; then
17626			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17627			found="yes"
17628		fi
17629	fi
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645xorg_testset_save_CFLAGS="$CFLAGS"
17646
17647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17652  $as_echo_n "(cached) " >&6
17653else
17654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655/* end confdefs.h.  */
17656int i;
17657_ACEOF
17658if ac_fn_c_try_compile "$LINENO"; then :
17659  xorg_cv_cc_flag_unknown_warning_option=yes
17660else
17661  xorg_cv_cc_flag_unknown_warning_option=no
17662fi
17663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664fi
17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17668	CFLAGS="$xorg_testset_save_CFLAGS"
17669fi
17670
17671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17674	fi
17675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17679  $as_echo_n "(cached) " >&6
17680else
17681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682/* end confdefs.h.  */
17683int i;
17684_ACEOF
17685if ac_fn_c_try_compile "$LINENO"; then :
17686  xorg_cv_cc_flag_unused_command_line_argument=yes
17687else
17688  xorg_cv_cc_flag_unused_command_line_argument=no
17689fi
17690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691fi
17692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17695	CFLAGS="$xorg_testset_save_CFLAGS"
17696fi
17697
17698found="no"
17699
17700	if test $found = "no" ; then
17701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17703		fi
17704
17705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17707		fi
17708
17709		CFLAGS="$CFLAGS -Waddress"
17710
17711		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17712$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17713		cacheid=xorg_cv_cc_flag__Waddress
17714		if eval \${$cacheid+:} false; then :
17715  $as_echo_n "(cached) " >&6
17716else
17717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718/* end confdefs.h.  */
17719int i;
17720int
17721main ()
17722{
17723
17724  ;
17725  return 0;
17726}
17727_ACEOF
17728if ac_fn_c_try_link "$LINENO"; then :
17729  eval $cacheid=yes
17730else
17731  eval $cacheid=no
17732fi
17733rm -f core conftest.err conftest.$ac_objext \
17734    conftest$ac_exeext conftest.$ac_ext
17735fi
17736
17737
17738		CFLAGS="$xorg_testset_save_CFLAGS"
17739
17740		eval supported=\$$cacheid
17741		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17742$as_echo "$supported" >&6; }
17743		if test "$supported" = "yes" ; then
17744			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17745			found="yes"
17746		fi
17747	fi
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763xorg_testset_save_CFLAGS="$CFLAGS"
17764
17765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17770  $as_echo_n "(cached) " >&6
17771else
17772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773/* end confdefs.h.  */
17774int i;
17775_ACEOF
17776if ac_fn_c_try_compile "$LINENO"; then :
17777  xorg_cv_cc_flag_unknown_warning_option=yes
17778else
17779  xorg_cv_cc_flag_unknown_warning_option=no
17780fi
17781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782fi
17783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17786	CFLAGS="$xorg_testset_save_CFLAGS"
17787fi
17788
17789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17792	fi
17793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17797  $as_echo_n "(cached) " >&6
17798else
17799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800/* end confdefs.h.  */
17801int i;
17802_ACEOF
17803if ac_fn_c_try_compile "$LINENO"; then :
17804  xorg_cv_cc_flag_unused_command_line_argument=yes
17805else
17806  xorg_cv_cc_flag_unused_command_line_argument=no
17807fi
17808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809fi
17810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17813	CFLAGS="$xorg_testset_save_CFLAGS"
17814fi
17815
17816found="no"
17817
17818	if test $found = "no" ; then
17819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17821		fi
17822
17823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17825		fi
17826
17827		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17828
17829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17830$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17831		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17832		if eval \${$cacheid+:} false; then :
17833  $as_echo_n "(cached) " >&6
17834else
17835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17836/* end confdefs.h.  */
17837int i;
17838int
17839main ()
17840{
17841
17842  ;
17843  return 0;
17844}
17845_ACEOF
17846if ac_fn_c_try_link "$LINENO"; then :
17847  eval $cacheid=yes
17848else
17849  eval $cacheid=no
17850fi
17851rm -f core conftest.err conftest.$ac_objext \
17852    conftest$ac_exeext conftest.$ac_ext
17853fi
17854
17855
17856		CFLAGS="$xorg_testset_save_CFLAGS"
17857
17858		eval supported=\$$cacheid
17859		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17860$as_echo "$supported" >&6; }
17861		if test "$supported" = "yes" ; then
17862			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17863			found="yes"
17864		fi
17865	fi
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881xorg_testset_save_CFLAGS="$CFLAGS"
17882
17883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17887if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
17896else
17897  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
17902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17904	CFLAGS="$xorg_testset_save_CFLAGS"
17905fi
17906
17907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17910	fi
17911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17915  $as_echo_n "(cached) " >&6
17916else
17917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918/* end confdefs.h.  */
17919int i;
17920_ACEOF
17921if ac_fn_c_try_compile "$LINENO"; then :
17922  xorg_cv_cc_flag_unused_command_line_argument=yes
17923else
17924  xorg_cv_cc_flag_unused_command_line_argument=no
17925fi
17926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17927fi
17928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17931	CFLAGS="$xorg_testset_save_CFLAGS"
17932fi
17933
17934found="no"
17935
17936	if test $found = "no" ; then
17937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17939		fi
17940
17941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17943		fi
17944
17945		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17946
17947		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17948$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17949		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17950		if eval \${$cacheid+:} false; then :
17951  $as_echo_n "(cached) " >&6
17952else
17953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954/* end confdefs.h.  */
17955int i;
17956int
17957main ()
17958{
17959
17960  ;
17961  return 0;
17962}
17963_ACEOF
17964if ac_fn_c_try_link "$LINENO"; then :
17965  eval $cacheid=yes
17966else
17967  eval $cacheid=no
17968fi
17969rm -f core conftest.err conftest.$ac_objext \
17970    conftest$ac_exeext conftest.$ac_ext
17971fi
17972
17973
17974		CFLAGS="$xorg_testset_save_CFLAGS"
17975
17976		eval supported=\$$cacheid
17977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17978$as_echo "$supported" >&6; }
17979		if test "$supported" = "yes" ; then
17980			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17981			found="yes"
17982		fi
17983	fi
17984
17985
17986fi
17987
17988
17989
17990
17991
17992
17993
17994		CWARNFLAGS="$BASE_CFLAGS"
17995		if  test "x$GCC" = xyes ; then
17996		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17997		fi
17998
17999
18000
18001
18002
18003
18004
18005
18006# Check whether --enable-strict-compilation was given.
18007if test "${enable_strict_compilation+set}" = set; then :
18008  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18009else
18010  STRICT_COMPILE=no
18011fi
18012
18013
18014
18015
18016
18017
18018STRICT_CFLAGS=""
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032xorg_testset_save_CFLAGS="$CFLAGS"
18033
18034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18039  $as_echo_n "(cached) " >&6
18040else
18041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042/* end confdefs.h.  */
18043int i;
18044_ACEOF
18045if ac_fn_c_try_compile "$LINENO"; then :
18046  xorg_cv_cc_flag_unknown_warning_option=yes
18047else
18048  xorg_cv_cc_flag_unknown_warning_option=no
18049fi
18050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18051fi
18052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18055	CFLAGS="$xorg_testset_save_CFLAGS"
18056fi
18057
18058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18061	fi
18062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18066  $as_echo_n "(cached) " >&6
18067else
18068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18069/* end confdefs.h.  */
18070int i;
18071_ACEOF
18072if ac_fn_c_try_compile "$LINENO"; then :
18073  xorg_cv_cc_flag_unused_command_line_argument=yes
18074else
18075  xorg_cv_cc_flag_unused_command_line_argument=no
18076fi
18077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18078fi
18079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18082	CFLAGS="$xorg_testset_save_CFLAGS"
18083fi
18084
18085found="no"
18086
18087	if test $found = "no" ; then
18088		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18090		fi
18091
18092		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18094		fi
18095
18096		CFLAGS="$CFLAGS -pedantic"
18097
18098		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18099$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18100		cacheid=xorg_cv_cc_flag__pedantic
18101		if eval \${$cacheid+:} false; then :
18102  $as_echo_n "(cached) " >&6
18103else
18104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105/* end confdefs.h.  */
18106int i;
18107int
18108main ()
18109{
18110
18111  ;
18112  return 0;
18113}
18114_ACEOF
18115if ac_fn_c_try_link "$LINENO"; then :
18116  eval $cacheid=yes
18117else
18118  eval $cacheid=no
18119fi
18120rm -f core conftest.err conftest.$ac_objext \
18121    conftest$ac_exeext conftest.$ac_ext
18122fi
18123
18124
18125		CFLAGS="$xorg_testset_save_CFLAGS"
18126
18127		eval supported=\$$cacheid
18128		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18129$as_echo "$supported" >&6; }
18130		if test "$supported" = "yes" ; then
18131			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18132			found="yes"
18133		fi
18134	fi
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150xorg_testset_save_CFLAGS="$CFLAGS"
18151
18152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18157  $as_echo_n "(cached) " >&6
18158else
18159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160/* end confdefs.h.  */
18161int i;
18162_ACEOF
18163if ac_fn_c_try_compile "$LINENO"; then :
18164  xorg_cv_cc_flag_unknown_warning_option=yes
18165else
18166  xorg_cv_cc_flag_unknown_warning_option=no
18167fi
18168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169fi
18170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18172	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18173	CFLAGS="$xorg_testset_save_CFLAGS"
18174fi
18175
18176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18177	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18178		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18179	fi
18180	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18184  $as_echo_n "(cached) " >&6
18185else
18186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187/* end confdefs.h.  */
18188int i;
18189_ACEOF
18190if ac_fn_c_try_compile "$LINENO"; then :
18191  xorg_cv_cc_flag_unused_command_line_argument=yes
18192else
18193  xorg_cv_cc_flag_unused_command_line_argument=no
18194fi
18195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18196fi
18197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18200	CFLAGS="$xorg_testset_save_CFLAGS"
18201fi
18202
18203found="no"
18204
18205	if test $found = "no" ; then
18206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18208		fi
18209
18210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18212		fi
18213
18214		CFLAGS="$CFLAGS -Werror"
18215
18216		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18217$as_echo_n "checking if $CC supports -Werror... " >&6; }
18218		cacheid=xorg_cv_cc_flag__Werror
18219		if eval \${$cacheid+:} false; then :
18220  $as_echo_n "(cached) " >&6
18221else
18222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223/* end confdefs.h.  */
18224int i;
18225int
18226main ()
18227{
18228
18229  ;
18230  return 0;
18231}
18232_ACEOF
18233if ac_fn_c_try_link "$LINENO"; then :
18234  eval $cacheid=yes
18235else
18236  eval $cacheid=no
18237fi
18238rm -f core conftest.err conftest.$ac_objext \
18239    conftest$ac_exeext conftest.$ac_ext
18240fi
18241
18242
18243		CFLAGS="$xorg_testset_save_CFLAGS"
18244
18245		eval supported=\$$cacheid
18246		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18247$as_echo "$supported" >&6; }
18248		if test "$supported" = "yes" ; then
18249			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18250			found="yes"
18251		fi
18252	fi
18253
18254	if test $found = "no" ; then
18255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18257		fi
18258
18259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18261		fi
18262
18263		CFLAGS="$CFLAGS -errwarn"
18264
18265		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18266$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18267		cacheid=xorg_cv_cc_flag__errwarn
18268		if eval \${$cacheid+:} false; then :
18269  $as_echo_n "(cached) " >&6
18270else
18271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272/* end confdefs.h.  */
18273int i;
18274int
18275main ()
18276{
18277
18278  ;
18279  return 0;
18280}
18281_ACEOF
18282if ac_fn_c_try_link "$LINENO"; then :
18283  eval $cacheid=yes
18284else
18285  eval $cacheid=no
18286fi
18287rm -f core conftest.err conftest.$ac_objext \
18288    conftest$ac_exeext conftest.$ac_ext
18289fi
18290
18291
18292		CFLAGS="$xorg_testset_save_CFLAGS"
18293
18294		eval supported=\$$cacheid
18295		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18296$as_echo "$supported" >&6; }
18297		if test "$supported" = "yes" ; then
18298			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18299			found="yes"
18300		fi
18301	fi
18302
18303
18304
18305# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18306# activate it with -Werror, so we add it here explicitly.
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320xorg_testset_save_CFLAGS="$CFLAGS"
18321
18322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18327  $as_echo_n "(cached) " >&6
18328else
18329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330/* end confdefs.h.  */
18331int i;
18332_ACEOF
18333if ac_fn_c_try_compile "$LINENO"; then :
18334  xorg_cv_cc_flag_unknown_warning_option=yes
18335else
18336  xorg_cv_cc_flag_unknown_warning_option=no
18337fi
18338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18339fi
18340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18343	CFLAGS="$xorg_testset_save_CFLAGS"
18344fi
18345
18346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18349	fi
18350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18354  $as_echo_n "(cached) " >&6
18355else
18356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357/* end confdefs.h.  */
18358int i;
18359_ACEOF
18360if ac_fn_c_try_compile "$LINENO"; then :
18361  xorg_cv_cc_flag_unused_command_line_argument=yes
18362else
18363  xorg_cv_cc_flag_unused_command_line_argument=no
18364fi
18365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366fi
18367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18370	CFLAGS="$xorg_testset_save_CFLAGS"
18371fi
18372
18373found="no"
18374
18375	if test $found = "no" ; then
18376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18378		fi
18379
18380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18382		fi
18383
18384		CFLAGS="$CFLAGS -Werror=attributes"
18385
18386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18387$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18388		cacheid=xorg_cv_cc_flag__Werror_attributes
18389		if eval \${$cacheid+:} false; then :
18390  $as_echo_n "(cached) " >&6
18391else
18392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393/* end confdefs.h.  */
18394int i;
18395int
18396main ()
18397{
18398
18399  ;
18400  return 0;
18401}
18402_ACEOF
18403if ac_fn_c_try_link "$LINENO"; then :
18404  eval $cacheid=yes
18405else
18406  eval $cacheid=no
18407fi
18408rm -f core conftest.err conftest.$ac_objext \
18409    conftest$ac_exeext conftest.$ac_ext
18410fi
18411
18412
18413		CFLAGS="$xorg_testset_save_CFLAGS"
18414
18415		eval supported=\$$cacheid
18416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18417$as_echo "$supported" >&6; }
18418		if test "$supported" = "yes" ; then
18419			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18420			found="yes"
18421		fi
18422	fi
18423
18424
18425
18426if test "x$STRICT_COMPILE" = "xyes"; then
18427    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18428    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18429fi
18430
18431
18432
18433
18434
18435
18436cat >>confdefs.h <<_ACEOF
18437#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18438_ACEOF
18439
18440	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18441	if test "x$PVM" = "x"; then
18442		PVM="0"
18443	fi
18444
18445cat >>confdefs.h <<_ACEOF
18446#define PACKAGE_VERSION_MINOR $PVM
18447_ACEOF
18448
18449	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18450	if test "x$PVP" = "x"; then
18451		PVP="0"
18452	fi
18453
18454cat >>confdefs.h <<_ACEOF
18455#define PACKAGE_VERSION_PATCHLEVEL $PVP
18456_ACEOF
18457
18458
18459
18460CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18461mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18462|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18463touch \$(top_srcdir)/ChangeLog; \
18464echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18465
18466
18467
18468
18469macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18470INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18471mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18472|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18473touch \$(top_srcdir)/INSTALL; \
18474echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18475
18476
18477
18478
18479
18480
18481case $host_os in
18482    solaris*)
18483        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18484        # check for a man page file found in later versions that use
18485        # traditional section numbers instead
18486        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18487$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
18488if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
18489  $as_echo_n "(cached) " >&6
18490else
18491  test "$cross_compiling" = yes &&
18492  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18493if test -r "/usr/share/man/man7/attributes.7"; then
18494  ac_cv_file__usr_share_man_man7_attributes_7=yes
18495else
18496  ac_cv_file__usr_share_man_man7_attributes_7=no
18497fi
18498fi
18499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18500$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18501if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
18502  SYSV_MAN_SECTIONS=false
18503else
18504  SYSV_MAN_SECTIONS=true
18505fi
18506
18507        ;;
18508    *) SYSV_MAN_SECTIONS=false ;;
18509esac
18510
18511if test x$APP_MAN_SUFFIX = x    ; then
18512    APP_MAN_SUFFIX=1
18513fi
18514if test x$APP_MAN_DIR = x    ; then
18515    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18516fi
18517
18518if test x$LIB_MAN_SUFFIX = x    ; then
18519    LIB_MAN_SUFFIX=3
18520fi
18521if test x$LIB_MAN_DIR = x    ; then
18522    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18523fi
18524
18525if test x$FILE_MAN_SUFFIX = x    ; then
18526    case $SYSV_MAN_SECTIONS in
18527	true)				FILE_MAN_SUFFIX=4  ;;
18528	*)				FILE_MAN_SUFFIX=5  ;;
18529    esac
18530fi
18531if test x$FILE_MAN_DIR = x    ; then
18532    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18533fi
18534
18535if test x$MISC_MAN_SUFFIX = x    ; then
18536    case $SYSV_MAN_SECTIONS in
18537	true)				MISC_MAN_SUFFIX=5  ;;
18538	*)				MISC_MAN_SUFFIX=7  ;;
18539    esac
18540fi
18541if test x$MISC_MAN_DIR = x    ; then
18542    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18543fi
18544
18545if test x$DRIVER_MAN_SUFFIX = x    ; then
18546    case $SYSV_MAN_SECTIONS in
18547	true)				DRIVER_MAN_SUFFIX=7  ;;
18548	*)				DRIVER_MAN_SUFFIX=4  ;;
18549    esac
18550fi
18551if test x$DRIVER_MAN_DIR = x    ; then
18552    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18553fi
18554
18555if test x$ADMIN_MAN_SUFFIX = x    ; then
18556    case $SYSV_MAN_SECTIONS in
18557	true)				ADMIN_MAN_SUFFIX=1m ;;
18558	*)				ADMIN_MAN_SUFFIX=8  ;;
18559    esac
18560fi
18561if test x$ADMIN_MAN_DIR = x    ; then
18562    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18563fi
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579XORG_MAN_PAGE="X Version 11"
18580
18581MAN_SUBSTS="\
18582	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18583	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18584	-e 's|__xservername__|Xorg|g' \
18585	-e 's|__xconfigfile__|xorg.conf|g' \
18586	-e 's|__projectroot__|\$(prefix)|g' \
18587	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18588	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18589	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18590	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18591	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18592	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18593	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18594
18595
18596
18597# Check whether --enable-silent-rules was given.
18598if test "${enable_silent_rules+set}" = set; then :
18599  enableval=$enable_silent_rules;
18600fi
18601
18602case $enable_silent_rules in # (((
18603  yes) AM_DEFAULT_VERBOSITY=0;;
18604   no) AM_DEFAULT_VERBOSITY=1;;
18605    *) AM_DEFAULT_VERBOSITY=0;;
18606esac
18607am_make=${MAKE-make}
18608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18609$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18610if ${am_cv_make_support_nested_variables+:} false; then :
18611  $as_echo_n "(cached) " >&6
18612else
18613  if $as_echo 'TRUE=$(BAR$(V))
18614BAR0=false
18615BAR1=true
18616V=1
18617am__doit:
18618	@$(TRUE)
18619.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18620  am_cv_make_support_nested_variables=yes
18621else
18622  am_cv_make_support_nested_variables=no
18623fi
18624fi
18625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18626$as_echo "$am_cv_make_support_nested_variables" >&6; }
18627if test $am_cv_make_support_nested_variables = yes; then
18628    AM_V='$(V)'
18629  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18630else
18631  AM_V=$AM_DEFAULT_VERBOSITY
18632  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18633fi
18634AM_BACKSLASH='\'
18635
18636
18637
18638
18639
18640
18641
18642# Check whether --with-doxygen was given.
18643if test "${with_doxygen+set}" = set; then :
18644  withval=$with_doxygen; use_doxygen=$withval
18645else
18646  use_doxygen=auto
18647fi
18648
18649
18650
18651if test "x$use_doxygen" = x"auto"; then
18652   # Extract the first word of "doxygen", so it can be a program name with args.
18653set dummy doxygen; ac_word=$2
18654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18655$as_echo_n "checking for $ac_word... " >&6; }
18656if ${ac_cv_path_DOXYGEN+:} false; then :
18657  $as_echo_n "(cached) " >&6
18658else
18659  case $DOXYGEN in
18660  [\\/]* | ?:[\\/]*)
18661  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18662  ;;
18663  *)
18664  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18665for as_dir in $PATH
18666do
18667  IFS=$as_save_IFS
18668  test -z "$as_dir" && as_dir=.
18669    for ac_exec_ext in '' $ac_executable_extensions; do
18670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18671    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18673    break 2
18674  fi
18675done
18676  done
18677IFS=$as_save_IFS
18678
18679  ;;
18680esac
18681fi
18682DOXYGEN=$ac_cv_path_DOXYGEN
18683if test -n "$DOXYGEN"; then
18684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18685$as_echo "$DOXYGEN" >&6; }
18686else
18687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688$as_echo "no" >&6; }
18689fi
18690
18691
18692   if test "x$DOXYGEN" = "x"; then
18693        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
18694$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
18695	have_doxygen=no
18696   else
18697        have_doxygen=yes
18698   fi
18699elif test "x$use_doxygen" = x"yes" ; then
18700   # Extract the first word of "doxygen", so it can be a program name with args.
18701set dummy doxygen; ac_word=$2
18702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18703$as_echo_n "checking for $ac_word... " >&6; }
18704if ${ac_cv_path_DOXYGEN+:} false; then :
18705  $as_echo_n "(cached) " >&6
18706else
18707  case $DOXYGEN in
18708  [\\/]* | ?:[\\/]*)
18709  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18710  ;;
18711  *)
18712  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18713for as_dir in $PATH
18714do
18715  IFS=$as_save_IFS
18716  test -z "$as_dir" && as_dir=.
18717    for ac_exec_ext in '' $ac_executable_extensions; do
18718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18719    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18721    break 2
18722  fi
18723done
18724  done
18725IFS=$as_save_IFS
18726
18727  ;;
18728esac
18729fi
18730DOXYGEN=$ac_cv_path_DOXYGEN
18731if test -n "$DOXYGEN"; then
18732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18733$as_echo "$DOXYGEN" >&6; }
18734else
18735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18736$as_echo "no" >&6; }
18737fi
18738
18739
18740   if test "x$DOXYGEN" = "x"; then
18741        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
18742   fi
18743   have_doxygen=yes
18744elif test "x$use_doxygen" = x"no" ; then
18745   if test "x$DOXYGEN" != "x"; then
18746      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
18747$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
18748   fi
18749   have_doxygen=no
18750else
18751   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
18752fi
18753if test "$have_doxygen" = yes; then
18754    # scrape the doxygen version
18755    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
18756$as_echo_n "checking the doxygen version... " >&6; }
18757    doxygen_version=`$DOXYGEN --version 2>/dev/null`
18758    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
18759$as_echo "$doxygen_version" >&6; }
18760    as_arg_v1=$doxygen_version
18761as_arg_v2=1.6.1
18762awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18763case $? in #(
18764  1) :
18765    if test "x$use_doxygen" = xauto; then
18766            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
18767$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
18768            have_doxygen=no
18769        else
18770            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
18771        fi ;; #(
18772  0) :
18773     ;; #(
18774  2) :
18775     ;; #(
18776  *) :
18777     ;;
18778esac
18779fi
18780
18781HAVE_DOT=no
18782if test "x$have_doxygen" = "xyes"; then
18783  # Extract the first word of "dot", so it can be a program name with args.
18784set dummy dot; ac_word=$2
18785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18786$as_echo_n "checking for $ac_word... " >&6; }
18787if ${ac_cv_path_DOT+:} false; then :
18788  $as_echo_n "(cached) " >&6
18789else
18790  case $DOT in
18791  [\\/]* | ?:[\\/]*)
18792  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18793  ;;
18794  *)
18795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18796for as_dir in $PATH
18797do
18798  IFS=$as_save_IFS
18799  test -z "$as_dir" && as_dir=.
18800    for ac_exec_ext in '' $ac_executable_extensions; do
18801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18802    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18804    break 2
18805  fi
18806done
18807  done
18808IFS=$as_save_IFS
18809
18810  ;;
18811esac
18812fi
18813DOT=$ac_cv_path_DOT
18814if test -n "$DOT"; then
18815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
18816$as_echo "$DOT" >&6; }
18817else
18818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819$as_echo "no" >&6; }
18820fi
18821
18822
18823    if test "x$DOT" != "x"; then
18824      HAVE_DOT=yes
18825    fi
18826fi
18827
18828
18829 if test "$HAVE_DOT" = "yes"; then
18830  HAVE_DOT_TRUE=
18831  HAVE_DOT_FALSE='#'
18832else
18833  HAVE_DOT_TRUE='#'
18834  HAVE_DOT_FALSE=
18835fi
18836
18837 if test "$have_doxygen" = yes; then
18838  HAVE_DOXYGEN_TRUE=
18839  HAVE_DOXYGEN_FALSE='#'
18840else
18841  HAVE_DOXYGEN_TRUE='#'
18842  HAVE_DOXYGEN_FALSE=
18843fi
18844
18845
18846
18847# Checks for libraries.
18848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
18849$as_echo_n "checking for rint in -lm... " >&6; }
18850if ${ac_cv_lib_m_rint+:} false; then :
18851  $as_echo_n "(cached) " >&6
18852else
18853  ac_check_lib_save_LIBS=$LIBS
18854LIBS="-lm  $LIBS"
18855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856/* end confdefs.h.  */
18857
18858/* Override any GCC internal prototype to avoid an error.
18859   Use char because int might match the return type of a GCC
18860   builtin and then its argument prototype would still apply.  */
18861#ifdef __cplusplus
18862extern "C"
18863#endif
18864char rint ();
18865int
18866main ()
18867{
18868return rint ();
18869  ;
18870  return 0;
18871}
18872_ACEOF
18873if ac_fn_c_try_link "$LINENO"; then :
18874  ac_cv_lib_m_rint=yes
18875else
18876  ac_cv_lib_m_rint=no
18877fi
18878rm -f core conftest.err conftest.$ac_objext \
18879    conftest$ac_exeext conftest.$ac_ext
18880LIBS=$ac_check_lib_save_LIBS
18881fi
18882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
18883$as_echo "$ac_cv_lib_m_rint" >&6; }
18884if test "x$ac_cv_lib_m_rint" = xyes; then :
18885  cat >>confdefs.h <<_ACEOF
18886#define HAVE_LIBM 1
18887_ACEOF
18888
18889  LIBS="-lm $LIBS"
18890
18891fi
18892
18893
18894XPROTOS="xproto xext kbproto inputproto randrproto"
18895
18896# Obtain compiler/linker options from server and required extensions
18897
18898pkg_failed=no
18899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18900$as_echo_n "checking for XORG... " >&6; }
18901
18902if test -n "$XORG_CFLAGS"; then
18903    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18904 elif test -n "$PKG_CONFIG"; then
18905    if test -n "$PKG_CONFIG" && \
18906    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0 \$XPROTOS\""; } >&5
18907  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0 $XPROTOS") 2>&5
18908  ac_status=$?
18909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18910  test $ac_status = 0; }; then
18911  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7.0 $XPROTOS" 2>/dev/null`
18912		      test "x$?" != "x0" && pkg_failed=yes
18913else
18914  pkg_failed=yes
18915fi
18916 else
18917    pkg_failed=untried
18918fi
18919if test -n "$XORG_LIBS"; then
18920    pkg_cv_XORG_LIBS="$XORG_LIBS"
18921 elif test -n "$PKG_CONFIG"; then
18922    if test -n "$PKG_CONFIG" && \
18923    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0 \$XPROTOS\""; } >&5
18924  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0 $XPROTOS") 2>&5
18925  ac_status=$?
18926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18927  test $ac_status = 0; }; then
18928  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7.0 $XPROTOS" 2>/dev/null`
18929		      test "x$?" != "x0" && pkg_failed=yes
18930else
18931  pkg_failed=yes
18932fi
18933 else
18934    pkg_failed=untried
18935fi
18936
18937
18938
18939if test $pkg_failed = yes; then
18940   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18941$as_echo "no" >&6; }
18942
18943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18944        _pkg_short_errors_supported=yes
18945else
18946        _pkg_short_errors_supported=no
18947fi
18948        if test $_pkg_short_errors_supported = yes; then
18949	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7.0 $XPROTOS" 2>&1`
18950        else
18951	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7.0 $XPROTOS" 2>&1`
18952        fi
18953	# Put the nasty error message in config.log where it belongs
18954	echo "$XORG_PKG_ERRORS" >&5
18955
18956	as_fn_error $? "Package requirements (xorg-server >= 1.7.0 $XPROTOS) were not met:
18957
18958$XORG_PKG_ERRORS
18959
18960Consider adjusting the PKG_CONFIG_PATH environment variable if you
18961installed software in a non-standard prefix.
18962
18963Alternatively, you may set the environment variables XORG_CFLAGS
18964and XORG_LIBS to avoid the need to call pkg-config.
18965See the pkg-config man page for more details." "$LINENO" 5
18966elif test $pkg_failed = untried; then
18967     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18968$as_echo "no" >&6; }
18969	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18971as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18972is in your PATH or set the PKG_CONFIG environment variable to the full
18973path to pkg-config.
18974
18975Alternatively, you may set the environment variables XORG_CFLAGS
18976and XORG_LIBS to avoid the need to call pkg-config.
18977See the pkg-config man page for more details.
18978
18979To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18980See \`config.log' for more details" "$LINENO" 5; }
18981else
18982	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18983	XORG_LIBS=$pkg_cv_XORG_LIBS
18984        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18985$as_echo "yes" >&6; }
18986
18987fi
18988
18989# Obtain compiler/linker options for the xsetwacom tool
18990
18991pkg_failed=no
18992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
18993$as_echo_n "checking for X11... " >&6; }
18994
18995if test -n "$X11_CFLAGS"; then
18996    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
18997 elif test -n "$PKG_CONFIG"; then
18998    if test -n "$PKG_CONFIG" && \
18999    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xi xrandr xinerama \$XPROTOS\""; } >&5
19000  ($PKG_CONFIG --exists --print-errors "x11 xi xrandr xinerama $XPROTOS") 2>&5
19001  ac_status=$?
19002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19003  test $ac_status = 0; }; then
19004  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xi xrandr xinerama $XPROTOS" 2>/dev/null`
19005		      test "x$?" != "x0" && pkg_failed=yes
19006else
19007  pkg_failed=yes
19008fi
19009 else
19010    pkg_failed=untried
19011fi
19012if test -n "$X11_LIBS"; then
19013    pkg_cv_X11_LIBS="$X11_LIBS"
19014 elif test -n "$PKG_CONFIG"; then
19015    if test -n "$PKG_CONFIG" && \
19016    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xi xrandr xinerama \$XPROTOS\""; } >&5
19017  ($PKG_CONFIG --exists --print-errors "x11 xi xrandr xinerama $XPROTOS") 2>&5
19018  ac_status=$?
19019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19020  test $ac_status = 0; }; then
19021  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xi xrandr xinerama $XPROTOS" 2>/dev/null`
19022		      test "x$?" != "x0" && pkg_failed=yes
19023else
19024  pkg_failed=yes
19025fi
19026 else
19027    pkg_failed=untried
19028fi
19029
19030
19031
19032if test $pkg_failed = yes; then
19033   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19034$as_echo "no" >&6; }
19035
19036if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19037        _pkg_short_errors_supported=yes
19038else
19039        _pkg_short_errors_supported=no
19040fi
19041        if test $_pkg_short_errors_supported = yes; then
19042	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xi xrandr xinerama $XPROTOS" 2>&1`
19043        else
19044	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xi xrandr xinerama $XPROTOS" 2>&1`
19045        fi
19046	# Put the nasty error message in config.log where it belongs
19047	echo "$X11_PKG_ERRORS" >&5
19048
19049	as_fn_error $? "Package requirements (x11 xi xrandr xinerama $XPROTOS) were not met:
19050
19051$X11_PKG_ERRORS
19052
19053Consider adjusting the PKG_CONFIG_PATH environment variable if you
19054installed software in a non-standard prefix.
19055
19056Alternatively, you may set the environment variables X11_CFLAGS
19057and X11_LIBS to avoid the need to call pkg-config.
19058See the pkg-config man page for more details." "$LINENO" 5
19059elif test $pkg_failed = untried; then
19060     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19061$as_echo "no" >&6; }
19062	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19064as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19065is in your PATH or set the PKG_CONFIG environment variable to the full
19066path to pkg-config.
19067
19068Alternatively, you may set the environment variables X11_CFLAGS
19069and X11_LIBS to avoid the need to call pkg-config.
19070See the pkg-config man page for more details.
19071
19072To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19073See \`config.log' for more details" "$LINENO" 5; }
19074else
19075	X11_CFLAGS=$pkg_cv_X11_CFLAGS
19076	X11_LIBS=$pkg_cv_X11_LIBS
19077        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19078$as_echo "yes" >&6; }
19079
19080fi
19081
19082# Obtain compiler/linker options for libudev used by ISDV4 code
19083
19084pkg_failed=no
19085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
19086$as_echo_n "checking for UDEV... " >&6; }
19087
19088if test -n "$UDEV_CFLAGS"; then
19089    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
19090 elif test -n "$PKG_CONFIG"; then
19091    if test -n "$PKG_CONFIG" && \
19092    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19093  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19094  ac_status=$?
19095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19096  test $ac_status = 0; }; then
19097  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19098		      test "x$?" != "x0" && pkg_failed=yes
19099else
19100  pkg_failed=yes
19101fi
19102 else
19103    pkg_failed=untried
19104fi
19105if test -n "$UDEV_LIBS"; then
19106    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
19107 elif test -n "$PKG_CONFIG"; then
19108    if test -n "$PKG_CONFIG" && \
19109    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19110  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19111  ac_status=$?
19112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19113  test $ac_status = 0; }; then
19114  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19115		      test "x$?" != "x0" && pkg_failed=yes
19116else
19117  pkg_failed=yes
19118fi
19119 else
19120    pkg_failed=untried
19121fi
19122
19123
19124
19125if test $pkg_failed = yes; then
19126   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19127$as_echo "no" >&6; }
19128
19129if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19130        _pkg_short_errors_supported=yes
19131else
19132        _pkg_short_errors_supported=no
19133fi
19134        if test $_pkg_short_errors_supported = yes; then
19135	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19136        else
19137	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19138        fi
19139	# Put the nasty error message in config.log where it belongs
19140	echo "$UDEV_PKG_ERRORS" >&5
19141
19142	as_fn_error $? "Package requirements (libudev) were not met:
19143
19144$UDEV_PKG_ERRORS
19145
19146Consider adjusting the PKG_CONFIG_PATH environment variable if you
19147installed software in a non-standard prefix.
19148
19149Alternatively, you may set the environment variables UDEV_CFLAGS
19150and UDEV_LIBS to avoid the need to call pkg-config.
19151See the pkg-config man page for more details." "$LINENO" 5
19152elif test $pkg_failed = untried; then
19153     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19154$as_echo "no" >&6; }
19155	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19157as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19158is in your PATH or set the PKG_CONFIG environment variable to the full
19159path to pkg-config.
19160
19161Alternatively, you may set the environment variables UDEV_CFLAGS
19162and UDEV_LIBS to avoid the need to call pkg-config.
19163See the pkg-config man page for more details.
19164
19165To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19166See \`config.log' for more details" "$LINENO" 5; }
19167else
19168	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
19169	UDEV_LIBS=$pkg_cv_UDEV_LIBS
19170        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19171$as_echo "yes" >&6; }
19172
19173fi
19174
19175# X Server SDK location is required to install wacom header files
19176# This location is also relayed in the xorg-wacom.pc file
19177sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server  --define-variable prefix="$prefix"`
19178
19179# Workaround overriding sdkdir to be able to create a tarball when user has no
19180# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
19181
19182# Check whether --with-sdkdir was given.
19183if test "${with_sdkdir+set}" = set; then :
19184  withval=$with_sdkdir; sdkdir="$withval"
19185fi
19186
19187
19188
19189DRIVER_NAME=wacom
19190
19191
19192# -----------------------------------------------------------------------------
19193#			Configuration options
19194# -----------------------------------------------------------------------------
19195# Define a configure option for code debugging
19196# Check whether --enable-debug was given.
19197if test "${enable_debug+set}" = set; then :
19198  enableval=$enable_debug; DEBUGGING=$enableval
19199else
19200  DEBUGGING=yes
19201fi
19202
19203
19204# Define the C preprocessor macro DEBUG in config.h
19205if test "x$DEBUGGING" = xyes; then
19206
19207$as_echo "#define DEBUG 1" >>confdefs.h
19208
19209fi
19210
19211# Define a configure option for an alternate input module directory
19212
19213# Check whether --with-xorg-module-dir was given.
19214if test "${with_xorg_module_dir+set}" = set; then :
19215  withval=$with_xorg_module_dir; moduledir="$withval"
19216else
19217  moduledir="$libdir/xorg/modules"
19218fi
19219
19220inputdir=${moduledir}/input
19221
19222
19223# Define a configure option for an alternate X Server configuration directory
19224sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server  --define-variable prefix="$prefix"`
19225
19226# Check whether --with-xorg-conf-dir was given.
19227if test "${with_xorg_conf_dir+set}" = set; then :
19228  withval=$with_xorg_conf_dir; configdir="$withval"
19229else
19230  configdir="$sysconfigdir"
19231fi
19232
19233
19234 if test "x$configdir" != "x"; then
19235  HAS_XORG_CONF_DIR_TRUE=
19236  HAS_XORG_CONF_DIR_FALSE='#'
19237else
19238  HAS_XORG_CONF_DIR_TRUE='#'
19239  HAS_XORG_CONF_DIR_FALSE=
19240fi
19241
19242
19243# Check whether --enable-hal-fdi-preprobe-quirk was given.
19244if test "${enable_hal_fdi_preprobe_quirk+set}" = set; then :
19245  enableval=$enable_hal_fdi_preprobe_quirk; USE_HAL_FDI_PREPROBE_QUIRK=$enableval
19246else
19247  USE_HAL_FDI_PREPROBE_QUIRK=auto
19248fi
19249
19250if test "x$USE_HAL_FDI_PREPROBE_QUIRK" = xauto ; then
19251       # Extract the first word of "lshal", so it can be a program name with args.
19252set dummy lshal; ac_word=$2
19253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19254$as_echo_n "checking for $ac_word... " >&6; }
19255if ${ac_cv_prog_LSHAL+:} false; then :
19256  $as_echo_n "(cached) " >&6
19257else
19258  if test -n "$LSHAL"; then
19259  ac_cv_prog_LSHAL="$LSHAL" # Let the user override the test.
19260else
19261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19262for as_dir in $PATH
19263do
19264  IFS=$as_save_IFS
19265  test -z "$as_dir" && as_dir=.
19266    for ac_exec_ext in '' $ac_executable_extensions; do
19267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19268    ac_cv_prog_LSHAL="yes"
19269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19270    break 2
19271  fi
19272done
19273  done
19274IFS=$as_save_IFS
19275
19276  test -z "$ac_cv_prog_LSHAL" && ac_cv_prog_LSHAL="no"
19277fi
19278fi
19279LSHAL=$ac_cv_prog_LSHAL
19280if test -n "$LSHAL"; then
19281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LSHAL" >&5
19282$as_echo "$LSHAL" >&6; }
19283else
19284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19285$as_echo "no" >&6; }
19286fi
19287
19288
19289       # Extract the first word of "hal-set-property", so it can be a program name with args.
19290set dummy hal-set-property; ac_word=$2
19291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19292$as_echo_n "checking for $ac_word... " >&6; }
19293if ${ac_cv_prog_HAL_SET_PROPERTY+:} false; then :
19294  $as_echo_n "(cached) " >&6
19295else
19296  if test -n "$HAL_SET_PROPERTY"; then
19297  ac_cv_prog_HAL_SET_PROPERTY="$HAL_SET_PROPERTY" # Let the user override the test.
19298else
19299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19300for as_dir in $PATH
19301do
19302  IFS=$as_save_IFS
19303  test -z "$as_dir" && as_dir=.
19304    for ac_exec_ext in '' $ac_executable_extensions; do
19305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19306    ac_cv_prog_HAL_SET_PROPERTY="yes"
19307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19308    break 2
19309  fi
19310done
19311  done
19312IFS=$as_save_IFS
19313
19314  test -z "$ac_cv_prog_HAL_SET_PROPERTY" && ac_cv_prog_HAL_SET_PROPERTY="no"
19315fi
19316fi
19317HAL_SET_PROPERTY=$ac_cv_prog_HAL_SET_PROPERTY
19318if test -n "$HAL_SET_PROPERTY"; then
19319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAL_SET_PROPERTY" >&5
19320$as_echo "$HAL_SET_PROPERTY" >&6; }
19321else
19322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19323$as_echo "no" >&6; }
19324fi
19325
19326
19327       if test "x$LSHAL" = "xyes" -a "x$HAL_SET_PROPERTY" = "xyes"; then :
19328  USE_HAL_FDI_PREPROBE_QUIRK=yes
19329else
19330  USE_HAL_FDI_PREPROBE_QUIRK=no
19331fi
19332fi
19333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if HAL preprobe quirk should be installed" >&5
19334$as_echo_n "checking if HAL preprobe quirk should be installed... " >&6; }
19335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_HAL_FDI_PREPROBE_QUIRK" >&5
19336$as_echo "$USE_HAL_FDI_PREPROBE_QUIRK" >&6; }
19337 if test "x$USE_HAL_FDI_PREPROBE_QUIRK" = xyes; then
19338  USE_HAL_FDI_PREPROBE_QUIRK_TRUE=
19339  USE_HAL_FDI_PREPROBE_QUIRK_FALSE='#'
19340else
19341  USE_HAL_FDI_PREPROBE_QUIRK_TRUE='#'
19342  USE_HAL_FDI_PREPROBE_QUIRK_FALSE=
19343fi
19344
19345
19346# Check whether --enable-fuzz-interface was given.
19347if test "${enable_fuzz_interface+set}" = set; then :
19348  enableval=$enable_fuzz_interface; FUZZINTERFACE=$enableval
19349else
19350  FUZZINTERFACE=no
19351fi
19352
19353 if test "x$FUZZINTERFACE" = xyes; then
19354  FUZZINTERFACE_TRUE=
19355  FUZZINTERFACE_FALSE='#'
19356else
19357  FUZZINTERFACE_TRUE='#'
19358  FUZZINTERFACE_FALSE=
19359fi
19360
19361
19362# Check whether --enable-unit-tests was given.
19363if test "${enable_unit_tests+set}" = set; then :
19364  enableval=$enable_unit_tests; UNITTESTS=$enableval
19365else
19366  UNITTESTS=auto
19367fi
19368
19369
19370# If unittests aren't explicitly disabled, check for required support
19371if test "x$UNITTESTS" != xno ; then
19372       # Check if linker supports -wrap, passed via compiler flags
19373       # When cross-compiling, reports no, since unit tests run from
19374       # "make check", so would be running on build machine,  not target
19375       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -wrap" >&5
19376$as_echo_n "checking whether the linker supports -wrap... " >&6; }
19377       save_LDFLAGS="$LDFLAGS"
19378       LDFLAGS="$LDFLAGS -Wl,-wrap,exit"
19379       if test "$cross_compiling" = yes; then :
19380  linker_can_wrap="no"
19381else
19382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383/* end confdefs.h.  */
19384
19385        void __wrap_exit (int s)
19386        {
19387            __real_exit (0);
19388        }
19389int
19390main ()
19391{
19392exit (1);
19393  ;
19394  return 0;
19395}
19396_ACEOF
19397if ac_fn_c_try_run "$LINENO"; then :
19398  linker_can_wrap="yes"
19399else
19400  linker_can_wrap="no"
19401fi
19402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19403  conftest.$ac_objext conftest.beam conftest.$ac_ext
19404fi
19405
19406       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $linker_can_wrap" >&5
19407$as_echo "$linker_can_wrap" >&6; }
19408       LDFLAGS="$save_LDFLAGS"
19409fi
19410
19411if test "x$UNITTESTS" = xauto; then
19412       if test "x$linker_can_wrap" = xyes; then
19413           UNITTESTS=yes
19414       else
19415           UNITTESTS=no
19416       fi
19417fi
19418if test "x$UNITTESTS" = xyes; then
19419       if test "x$linker_can_wrap" = xno; then
19420           as_fn_error $? "ld -wrap support required to build unit tests" "$LINENO" 5
19421       fi
19422
19423$as_echo "#define UNITTESTS 1" >>confdefs.h
19424
19425fi
19426 if test "x$UNITTESTS" = xyes; then
19427  UNITTESTS_TRUE=
19428  UNITTESTS_FALSE='#'
19429else
19430  UNITTESTS_TRUE='#'
19431  UNITTESTS_FALSE=
19432fi
19433
19434
19435
19436# Check whether --with-systemd-unit-dir was given.
19437if test "${with_systemd_unit_dir+set}" = set; then :
19438  withval=$with_systemd_unit_dir; unitdir="$withval"
19439else
19440  unitdir="$libdir/systemd/system"
19441fi
19442
19443SYSTEMD_UNIT_DIR=${unitdir}
19444
19445 if test "x$SYSTEMD_UNIT_DIR" != "xno"; then
19446  HAVE_SYSTEMD_UNIT_DIR_TRUE=
19447  HAVE_SYSTEMD_UNIT_DIR_FALSE='#'
19448else
19449  HAVE_SYSTEMD_UNIT_DIR_TRUE='#'
19450  HAVE_SYSTEMD_UNIT_DIR_FALSE=
19451fi
19452
19453
19454
19455# Check whether --with-udev-rules-dir was given.
19456if test "${with_udev_rules_dir+set}" = set; then :
19457  withval=$with_udev_rules_dir; udevdir="$withval"
19458else
19459  udevdir="$libdir/udev/rules.d"
19460fi
19461
19462UDEV_RULES_DIR=${udevdir}
19463
19464 if test "x$UDEV_RULES_DIR" != "xno"; then
19465  HAVE_UDEV_RULES_DIR_TRUE=
19466  HAVE_UDEV_RULES_DIR_FALSE='#'
19467else
19468  HAVE_UDEV_RULES_DIR_TRUE='#'
19469  HAVE_UDEV_RULES_DIR_FALSE=
19470fi
19471
19472
19473
19474# -----------------------------------------------------------------------------
19475
19476ac_config_files="$ac_config_files Makefile conf/Makefile doc/Makefile doc/doxygen.conf src/Makefile man/Makefile include/Makefile tools/Makefile test/Makefile xorg-wacom.pc"
19477
19478cat >confcache <<\_ACEOF
19479# This file is a shell script that caches the results of configure
19480# tests run on this system so they can be shared between configure
19481# scripts and configure runs, see configure's option --config-cache.
19482# It is not useful on other systems.  If it contains results you don't
19483# want to keep, you may remove or edit it.
19484#
19485# config.status only pays attention to the cache file if you give it
19486# the --recheck option to rerun configure.
19487#
19488# `ac_cv_env_foo' variables (set or unset) will be overridden when
19489# loading this file, other *unset* `ac_cv_foo' will be assigned the
19490# following values.
19491
19492_ACEOF
19493
19494# The following way of writing the cache mishandles newlines in values,
19495# but we know of no workaround that is simple, portable, and efficient.
19496# So, we kill variables containing newlines.
19497# Ultrix sh set writes to stderr and can't be redirected directly,
19498# and sets the high bit in the cache file unless we assign to the vars.
19499(
19500  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19501    eval ac_val=\$$ac_var
19502    case $ac_val in #(
19503    *${as_nl}*)
19504      case $ac_var in #(
19505      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19506$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19507      esac
19508      case $ac_var in #(
19509      _ | IFS | as_nl) ;; #(
19510      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19511      *) { eval $ac_var=; unset $ac_var;} ;;
19512      esac ;;
19513    esac
19514  done
19515
19516  (set) 2>&1 |
19517    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19518    *${as_nl}ac_space=\ *)
19519      # `set' does not quote correctly, so add quotes: double-quote
19520      # substitution turns \\\\ into \\, and sed turns \\ into \.
19521      sed -n \
19522	"s/'/'\\\\''/g;
19523	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19524      ;; #(
19525    *)
19526      # `set' quotes correctly as required by POSIX, so do not add quotes.
19527      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19528      ;;
19529    esac |
19530    sort
19531) |
19532  sed '
19533     /^ac_cv_env_/b end
19534     t clear
19535     :clear
19536     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19537     t end
19538     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19539     :end' >>confcache
19540if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19541  if test -w "$cache_file"; then
19542    if test "x$cache_file" != "x/dev/null"; then
19543      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19544$as_echo "$as_me: updating cache $cache_file" >&6;}
19545      if test ! -f "$cache_file" || test -h "$cache_file"; then
19546	cat confcache >"$cache_file"
19547      else
19548        case $cache_file in #(
19549        */* | ?:*)
19550	  mv -f confcache "$cache_file"$$ &&
19551	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19552        *)
19553	  mv -f confcache "$cache_file" ;;
19554	esac
19555      fi
19556    fi
19557  else
19558    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19559$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19560  fi
19561fi
19562rm -f confcache
19563
19564test "x$prefix" = xNONE && prefix=$ac_default_prefix
19565# Let make expand exec_prefix.
19566test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19567
19568DEFS=-DHAVE_CONFIG_H
19569
19570ac_libobjs=
19571ac_ltlibobjs=
19572U=
19573for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19574  # 1. Remove the extension, and $U if already installed.
19575  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19576  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19577  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19578  #    will be set to the directory where LIBOBJS objects are built.
19579  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19580  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19581done
19582LIBOBJS=$ac_libobjs
19583
19584LTLIBOBJS=$ac_ltlibobjs
19585
19586
19587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19588$as_echo_n "checking that generated files are newer than configure... " >&6; }
19589   if test -n "$am_sleep_pid"; then
19590     # Hide warnings about reused PIDs.
19591     wait $am_sleep_pid 2>/dev/null
19592   fi
19593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19594$as_echo "done" >&6; }
19595 if test -n "$EXEEXT"; then
19596  am__EXEEXT_TRUE=
19597  am__EXEEXT_FALSE='#'
19598else
19599  am__EXEEXT_TRUE='#'
19600  am__EXEEXT_FALSE=
19601fi
19602
19603if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19604  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19605Usually this means the macro was only invoked conditionally." "$LINENO" 5
19606fi
19607if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19608  as_fn_error $? "conditional \"AMDEP\" was never defined.
19609Usually this means the macro was only invoked conditionally." "$LINENO" 5
19610fi
19611if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19612  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19613Usually this means the macro was only invoked conditionally." "$LINENO" 5
19614fi
19615if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
19616  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
19617Usually this means the macro was only invoked conditionally." "$LINENO" 5
19618fi
19619if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
19620  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
19621Usually this means the macro was only invoked conditionally." "$LINENO" 5
19622fi
19623if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
19624  as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
19625Usually this means the macro was only invoked conditionally." "$LINENO" 5
19626fi
19627if test -z "${USE_HAL_FDI_PREPROBE_QUIRK_TRUE}" && test -z "${USE_HAL_FDI_PREPROBE_QUIRK_FALSE}"; then
19628  as_fn_error $? "conditional \"USE_HAL_FDI_PREPROBE_QUIRK\" was never defined.
19629Usually this means the macro was only invoked conditionally." "$LINENO" 5
19630fi
19631if test -z "${FUZZINTERFACE_TRUE}" && test -z "${FUZZINTERFACE_FALSE}"; then
19632  as_fn_error $? "conditional \"FUZZINTERFACE\" was never defined.
19633Usually this means the macro was only invoked conditionally." "$LINENO" 5
19634fi
19635if test -z "${UNITTESTS_TRUE}" && test -z "${UNITTESTS_FALSE}"; then
19636  as_fn_error $? "conditional \"UNITTESTS\" was never defined.
19637Usually this means the macro was only invoked conditionally." "$LINENO" 5
19638fi
19639if test -z "${HAVE_SYSTEMD_UNIT_DIR_TRUE}" && test -z "${HAVE_SYSTEMD_UNIT_DIR_FALSE}"; then
19640  as_fn_error $? "conditional \"HAVE_SYSTEMD_UNIT_DIR\" was never defined.
19641Usually this means the macro was only invoked conditionally." "$LINENO" 5
19642fi
19643if test -z "${HAVE_UDEV_RULES_DIR_TRUE}" && test -z "${HAVE_UDEV_RULES_DIR_FALSE}"; then
19644  as_fn_error $? "conditional \"HAVE_UDEV_RULES_DIR\" was never defined.
19645Usually this means the macro was only invoked conditionally." "$LINENO" 5
19646fi
19647
19648: "${CONFIG_STATUS=./config.status}"
19649ac_write_fail=0
19650ac_clean_files_save=$ac_clean_files
19651ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19652{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19653$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19654as_write_fail=0
19655cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19656#! $SHELL
19657# Generated by $as_me.
19658# Run this file to recreate the current configuration.
19659# Compiler output produced by configure, useful for debugging
19660# configure, is in config.log if it exists.
19661
19662debug=false
19663ac_cs_recheck=false
19664ac_cs_silent=false
19665
19666SHELL=\${CONFIG_SHELL-$SHELL}
19667export SHELL
19668_ASEOF
19669cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19670## -------------------- ##
19671## M4sh Initialization. ##
19672## -------------------- ##
19673
19674# Be more Bourne compatible
19675DUALCASE=1; export DUALCASE # for MKS sh
19676if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19677  emulate sh
19678  NULLCMD=:
19679  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19680  # is contrary to our usage.  Disable this feature.
19681  alias -g '${1+"$@"}'='"$@"'
19682  setopt NO_GLOB_SUBST
19683else
19684  case `(set -o) 2>/dev/null` in #(
19685  *posix*) :
19686    set -o posix ;; #(
19687  *) :
19688     ;;
19689esac
19690fi
19691
19692
19693as_nl='
19694'
19695export as_nl
19696# Printing a long string crashes Solaris 7 /usr/bin/printf.
19697as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19698as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19699as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19700# Prefer a ksh shell builtin over an external printf program on Solaris,
19701# but without wasting forks for bash or zsh.
19702if test -z "$BASH_VERSION$ZSH_VERSION" \
19703    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19704  as_echo='print -r --'
19705  as_echo_n='print -rn --'
19706elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19707  as_echo='printf %s\n'
19708  as_echo_n='printf %s'
19709else
19710  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19711    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19712    as_echo_n='/usr/ucb/echo -n'
19713  else
19714    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19715    as_echo_n_body='eval
19716      arg=$1;
19717      case $arg in #(
19718      *"$as_nl"*)
19719	expr "X$arg" : "X\\(.*\\)$as_nl";
19720	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19721      esac;
19722      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19723    '
19724    export as_echo_n_body
19725    as_echo_n='sh -c $as_echo_n_body as_echo'
19726  fi
19727  export as_echo_body
19728  as_echo='sh -c $as_echo_body as_echo'
19729fi
19730
19731# The user is always right.
19732if test "${PATH_SEPARATOR+set}" != set; then
19733  PATH_SEPARATOR=:
19734  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19735    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19736      PATH_SEPARATOR=';'
19737  }
19738fi
19739
19740
19741# IFS
19742# We need space, tab and new line, in precisely that order.  Quoting is
19743# there to prevent editors from complaining about space-tab.
19744# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19745# splitting by setting IFS to empty value.)
19746IFS=" ""	$as_nl"
19747
19748# Find who we are.  Look in the path if we contain no directory separator.
19749as_myself=
19750case $0 in #((
19751  *[\\/]* ) as_myself=$0 ;;
19752  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19753for as_dir in $PATH
19754do
19755  IFS=$as_save_IFS
19756  test -z "$as_dir" && as_dir=.
19757    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19758  done
19759IFS=$as_save_IFS
19760
19761     ;;
19762esac
19763# We did not find ourselves, most probably we were run as `sh COMMAND'
19764# in which case we are not to be found in the path.
19765if test "x$as_myself" = x; then
19766  as_myself=$0
19767fi
19768if test ! -f "$as_myself"; then
19769  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19770  exit 1
19771fi
19772
19773# Unset variables that we do not need and which cause bugs (e.g. in
19774# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19775# suppresses any "Segmentation fault" message there.  '((' could
19776# trigger a bug in pdksh 5.2.14.
19777for as_var in BASH_ENV ENV MAIL MAILPATH
19778do eval test x\${$as_var+set} = xset \
19779  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19780done
19781PS1='$ '
19782PS2='> '
19783PS4='+ '
19784
19785# NLS nuisances.
19786LC_ALL=C
19787export LC_ALL
19788LANGUAGE=C
19789export LANGUAGE
19790
19791# CDPATH.
19792(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19793
19794
19795# as_fn_error STATUS ERROR [LINENO LOG_FD]
19796# ----------------------------------------
19797# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19798# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19799# script with STATUS, using 1 if that was 0.
19800as_fn_error ()
19801{
19802  as_status=$1; test $as_status -eq 0 && as_status=1
19803  if test "$4"; then
19804    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19805    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19806  fi
19807  $as_echo "$as_me: error: $2" >&2
19808  as_fn_exit $as_status
19809} # as_fn_error
19810
19811
19812# as_fn_set_status STATUS
19813# -----------------------
19814# Set $? to STATUS, without forking.
19815as_fn_set_status ()
19816{
19817  return $1
19818} # as_fn_set_status
19819
19820# as_fn_exit STATUS
19821# -----------------
19822# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19823as_fn_exit ()
19824{
19825  set +e
19826  as_fn_set_status $1
19827  exit $1
19828} # as_fn_exit
19829
19830# as_fn_unset VAR
19831# ---------------
19832# Portably unset VAR.
19833as_fn_unset ()
19834{
19835  { eval $1=; unset $1;}
19836}
19837as_unset=as_fn_unset
19838# as_fn_append VAR VALUE
19839# ----------------------
19840# Append the text in VALUE to the end of the definition contained in VAR. Take
19841# advantage of any shell optimizations that allow amortized linear growth over
19842# repeated appends, instead of the typical quadratic growth present in naive
19843# implementations.
19844if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19845  eval 'as_fn_append ()
19846  {
19847    eval $1+=\$2
19848  }'
19849else
19850  as_fn_append ()
19851  {
19852    eval $1=\$$1\$2
19853  }
19854fi # as_fn_append
19855
19856# as_fn_arith ARG...
19857# ------------------
19858# Perform arithmetic evaluation on the ARGs, and store the result in the
19859# global $as_val. Take advantage of shells that can avoid forks. The arguments
19860# must be portable across $(()) and expr.
19861if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19862  eval 'as_fn_arith ()
19863  {
19864    as_val=$(( $* ))
19865  }'
19866else
19867  as_fn_arith ()
19868  {
19869    as_val=`expr "$@" || test $? -eq 1`
19870  }
19871fi # as_fn_arith
19872
19873
19874if expr a : '\(a\)' >/dev/null 2>&1 &&
19875   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19876  as_expr=expr
19877else
19878  as_expr=false
19879fi
19880
19881if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19882  as_basename=basename
19883else
19884  as_basename=false
19885fi
19886
19887if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19888  as_dirname=dirname
19889else
19890  as_dirname=false
19891fi
19892
19893as_me=`$as_basename -- "$0" ||
19894$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19895	 X"$0" : 'X\(//\)$' \| \
19896	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19897$as_echo X/"$0" |
19898    sed '/^.*\/\([^/][^/]*\)\/*$/{
19899	    s//\1/
19900	    q
19901	  }
19902	  /^X\/\(\/\/\)$/{
19903	    s//\1/
19904	    q
19905	  }
19906	  /^X\/\(\/\).*/{
19907	    s//\1/
19908	    q
19909	  }
19910	  s/.*/./; q'`
19911
19912# Avoid depending upon Character Ranges.
19913as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19914as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19915as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19916as_cr_digits='0123456789'
19917as_cr_alnum=$as_cr_Letters$as_cr_digits
19918
19919ECHO_C= ECHO_N= ECHO_T=
19920case `echo -n x` in #(((((
19921-n*)
19922  case `echo 'xy\c'` in
19923  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19924  xy)  ECHO_C='\c';;
19925  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19926       ECHO_T='	';;
19927  esac;;
19928*)
19929  ECHO_N='-n';;
19930esac
19931
19932rm -f conf$$ conf$$.exe conf$$.file
19933if test -d conf$$.dir; then
19934  rm -f conf$$.dir/conf$$.file
19935else
19936  rm -f conf$$.dir
19937  mkdir conf$$.dir 2>/dev/null
19938fi
19939if (echo >conf$$.file) 2>/dev/null; then
19940  if ln -s conf$$.file conf$$ 2>/dev/null; then
19941    as_ln_s='ln -s'
19942    # ... but there are two gotchas:
19943    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19944    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19945    # In both cases, we have to default to `cp -pR'.
19946    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19947      as_ln_s='cp -pR'
19948  elif ln conf$$.file conf$$ 2>/dev/null; then
19949    as_ln_s=ln
19950  else
19951    as_ln_s='cp -pR'
19952  fi
19953else
19954  as_ln_s='cp -pR'
19955fi
19956rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19957rmdir conf$$.dir 2>/dev/null
19958
19959
19960# as_fn_mkdir_p
19961# -------------
19962# Create "$as_dir" as a directory, including parents if necessary.
19963as_fn_mkdir_p ()
19964{
19965
19966  case $as_dir in #(
19967  -*) as_dir=./$as_dir;;
19968  esac
19969  test -d "$as_dir" || eval $as_mkdir_p || {
19970    as_dirs=
19971    while :; do
19972      case $as_dir in #(
19973      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19974      *) as_qdir=$as_dir;;
19975      esac
19976      as_dirs="'$as_qdir' $as_dirs"
19977      as_dir=`$as_dirname -- "$as_dir" ||
19978$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19979	 X"$as_dir" : 'X\(//\)[^/]' \| \
19980	 X"$as_dir" : 'X\(//\)$' \| \
19981	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19982$as_echo X"$as_dir" |
19983    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19984	    s//\1/
19985	    q
19986	  }
19987	  /^X\(\/\/\)[^/].*/{
19988	    s//\1/
19989	    q
19990	  }
19991	  /^X\(\/\/\)$/{
19992	    s//\1/
19993	    q
19994	  }
19995	  /^X\(\/\).*/{
19996	    s//\1/
19997	    q
19998	  }
19999	  s/.*/./; q'`
20000      test -d "$as_dir" && break
20001    done
20002    test -z "$as_dirs" || eval "mkdir $as_dirs"
20003  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20004
20005
20006} # as_fn_mkdir_p
20007if mkdir -p . 2>/dev/null; then
20008  as_mkdir_p='mkdir -p "$as_dir"'
20009else
20010  test -d ./-p && rmdir ./-p
20011  as_mkdir_p=false
20012fi
20013
20014
20015# as_fn_executable_p FILE
20016# -----------------------
20017# Test if FILE is an executable regular file.
20018as_fn_executable_p ()
20019{
20020  test -f "$1" && test -x "$1"
20021} # as_fn_executable_p
20022as_test_x='test -x'
20023as_executable_p=as_fn_executable_p
20024
20025# Sed expression to map a string onto a valid CPP name.
20026as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20027
20028# Sed expression to map a string onto a valid variable name.
20029as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20030
20031
20032exec 6>&1
20033## ----------------------------------- ##
20034## Main body of $CONFIG_STATUS script. ##
20035## ----------------------------------- ##
20036_ASEOF
20037test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20038
20039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20040# Save the log message, to keep $0 and so on meaningful, and to
20041# report actual input values of CONFIG_FILES etc. instead of their
20042# values after options handling.
20043ac_log="
20044This file was extended by xf86-input-wacom $as_me 0.39.0, which was
20045generated by GNU Autoconf 2.69.  Invocation command line was
20046
20047  CONFIG_FILES    = $CONFIG_FILES
20048  CONFIG_HEADERS  = $CONFIG_HEADERS
20049  CONFIG_LINKS    = $CONFIG_LINKS
20050  CONFIG_COMMANDS = $CONFIG_COMMANDS
20051  $ $0 $@
20052
20053on `(hostname || uname -n) 2>/dev/null | sed 1q`
20054"
20055
20056_ACEOF
20057
20058case $ac_config_files in *"
20059"*) set x $ac_config_files; shift; ac_config_files=$*;;
20060esac
20061
20062case $ac_config_headers in *"
20063"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20064esac
20065
20066
20067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20068# Files that config.status was made for.
20069config_files="$ac_config_files"
20070config_headers="$ac_config_headers"
20071config_commands="$ac_config_commands"
20072
20073_ACEOF
20074
20075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20076ac_cs_usage="\
20077\`$as_me' instantiates files and other configuration actions
20078from templates according to the current configuration.  Unless the files
20079and actions are specified as TAGs, all are instantiated by default.
20080
20081Usage: $0 [OPTION]... [TAG]...
20082
20083  -h, --help       print this help, then exit
20084  -V, --version    print version number and configuration settings, then exit
20085      --config     print configuration, then exit
20086  -q, --quiet, --silent
20087                   do not print progress messages
20088  -d, --debug      don't remove temporary files
20089      --recheck    update $as_me by reconfiguring in the same conditions
20090      --file=FILE[:TEMPLATE]
20091                   instantiate the configuration file FILE
20092      --header=FILE[:TEMPLATE]
20093                   instantiate the configuration header FILE
20094
20095Configuration files:
20096$config_files
20097
20098Configuration headers:
20099$config_headers
20100
20101Configuration commands:
20102$config_commands
20103
20104Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20105
20106_ACEOF
20107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20108ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20109ac_cs_version="\\
20110xf86-input-wacom config.status 0.39.0
20111configured by $0, generated by GNU Autoconf 2.69,
20112  with options \\"\$ac_cs_config\\"
20113
20114Copyright (C) 2012 Free Software Foundation, Inc.
20115This config.status script is free software; the Free Software Foundation
20116gives unlimited permission to copy, distribute and modify it."
20117
20118ac_pwd='$ac_pwd'
20119srcdir='$srcdir'
20120INSTALL='$INSTALL'
20121MKDIR_P='$MKDIR_P'
20122AWK='$AWK'
20123test -n "\$AWK" || AWK=awk
20124_ACEOF
20125
20126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20127# The default lists apply if the user does not specify any file.
20128ac_need_defaults=:
20129while test $# != 0
20130do
20131  case $1 in
20132  --*=?*)
20133    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20134    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20135    ac_shift=:
20136    ;;
20137  --*=)
20138    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20139    ac_optarg=
20140    ac_shift=:
20141    ;;
20142  *)
20143    ac_option=$1
20144    ac_optarg=$2
20145    ac_shift=shift
20146    ;;
20147  esac
20148
20149  case $ac_option in
20150  # Handling of the options.
20151  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20152    ac_cs_recheck=: ;;
20153  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20154    $as_echo "$ac_cs_version"; exit ;;
20155  --config | --confi | --conf | --con | --co | --c )
20156    $as_echo "$ac_cs_config"; exit ;;
20157  --debug | --debu | --deb | --de | --d | -d )
20158    debug=: ;;
20159  --file | --fil | --fi | --f )
20160    $ac_shift
20161    case $ac_optarg in
20162    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20163    '') as_fn_error $? "missing file argument" ;;
20164    esac
20165    as_fn_append CONFIG_FILES " '$ac_optarg'"
20166    ac_need_defaults=false;;
20167  --header | --heade | --head | --hea )
20168    $ac_shift
20169    case $ac_optarg in
20170    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20171    esac
20172    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20173    ac_need_defaults=false;;
20174  --he | --h)
20175    # Conflict between --help and --header
20176    as_fn_error $? "ambiguous option: \`$1'
20177Try \`$0 --help' for more information.";;
20178  --help | --hel | -h )
20179    $as_echo "$ac_cs_usage"; exit ;;
20180  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20181  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20182    ac_cs_silent=: ;;
20183
20184  # This is an error.
20185  -*) as_fn_error $? "unrecognized option: \`$1'
20186Try \`$0 --help' for more information." ;;
20187
20188  *) as_fn_append ac_config_targets " $1"
20189     ac_need_defaults=false ;;
20190
20191  esac
20192  shift
20193done
20194
20195ac_configure_extra_args=
20196
20197if $ac_cs_silent; then
20198  exec 6>/dev/null
20199  ac_configure_extra_args="$ac_configure_extra_args --silent"
20200fi
20201
20202_ACEOF
20203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20204if \$ac_cs_recheck; then
20205  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20206  shift
20207  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20208  CONFIG_SHELL='$SHELL'
20209  export CONFIG_SHELL
20210  exec "\$@"
20211fi
20212
20213_ACEOF
20214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20215exec 5>>config.log
20216{
20217  echo
20218  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20219## Running $as_me. ##
20220_ASBOX
20221  $as_echo "$ac_log"
20222} >&5
20223
20224_ACEOF
20225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20226#
20227# INIT-COMMANDS
20228#
20229AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20230
20231
20232# The HP-UX ksh and POSIX shell print the target directory to stdout
20233# if CDPATH is set.
20234(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20235
20236sed_quote_subst='$sed_quote_subst'
20237double_quote_subst='$double_quote_subst'
20238delay_variable_subst='$delay_variable_subst'
20239enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20240macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20241macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20242enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20243pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20244enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20245shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20246SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20247ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20248PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20249host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20250host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20251host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20252build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20253build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20254build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20255SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20256Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20257GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20258EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20259FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20260LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20261NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20262LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20263max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20264ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20265exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20266lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20267lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20268lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20269lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20270lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20271reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20272reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20273OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20274deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20275file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20276file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20277want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20278DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20279sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20280AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20281lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20282AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20283archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20284STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20285RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20286old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20287old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20288old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20289lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20290CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20291CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20292compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20293GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20294lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20295lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20296lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20297lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20298lt_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"`'
20299lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20300nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20301lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20302lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20303objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20304MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20305lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20306lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20307lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20308lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20309lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20310need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20311MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20312DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20313NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20314LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20315OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20316OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20317libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20318shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20319extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20320archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20321enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20322export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20323whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20324compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20325old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20326old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20327archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20328archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20329module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20330module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20331with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20332allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20333no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20334hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20335hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20336hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20337hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20338hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20339hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20340hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20341inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20342link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20343always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20344export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20345exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20346include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20347prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20348postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20349file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20350variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20351need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20352need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20353version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20354runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20355shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20356shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20357libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20358library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20359soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20360install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20361postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20362postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20363finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20364finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20365hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20366sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20367configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20368configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20369hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20370enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20371enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20372enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20373old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20374striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20375
20376LTCC='$LTCC'
20377LTCFLAGS='$LTCFLAGS'
20378compiler='$compiler_DEFAULT'
20379
20380# A function that is used when there is no print builtin or printf.
20381func_fallback_echo ()
20382{
20383  eval 'cat <<_LTECHO_EOF
20384\$1
20385_LTECHO_EOF'
20386}
20387
20388# Quote evaled strings.
20389for var in SHELL \
20390ECHO \
20391PATH_SEPARATOR \
20392SED \
20393GREP \
20394EGREP \
20395FGREP \
20396LD \
20397NM \
20398LN_S \
20399lt_SP2NL \
20400lt_NL2SP \
20401reload_flag \
20402OBJDUMP \
20403deplibs_check_method \
20404file_magic_cmd \
20405file_magic_glob \
20406want_nocaseglob \
20407DLLTOOL \
20408sharedlib_from_linklib_cmd \
20409AR \
20410archiver_list_spec \
20411STRIP \
20412RANLIB \
20413CC \
20414CFLAGS \
20415compiler \
20416lt_cv_sys_global_symbol_pipe \
20417lt_cv_sys_global_symbol_to_cdecl \
20418lt_cv_sys_global_symbol_to_import \
20419lt_cv_sys_global_symbol_to_c_name_address \
20420lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20421lt_cv_nm_interface \
20422nm_file_list_spec \
20423lt_cv_truncate_bin \
20424lt_prog_compiler_no_builtin_flag \
20425lt_prog_compiler_pic \
20426lt_prog_compiler_wl \
20427lt_prog_compiler_static \
20428lt_cv_prog_compiler_c_o \
20429need_locks \
20430MANIFEST_TOOL \
20431DSYMUTIL \
20432NMEDIT \
20433LIPO \
20434OTOOL \
20435OTOOL64 \
20436shrext_cmds \
20437export_dynamic_flag_spec \
20438whole_archive_flag_spec \
20439compiler_needs_object \
20440with_gnu_ld \
20441allow_undefined_flag \
20442no_undefined_flag \
20443hardcode_libdir_flag_spec \
20444hardcode_libdir_separator \
20445exclude_expsyms \
20446include_expsyms \
20447file_list_spec \
20448variables_saved_for_relink \
20449libname_spec \
20450library_names_spec \
20451soname_spec \
20452install_override_mode \
20453finish_eval \
20454old_striplib \
20455striplib; do
20456    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20457    *[\\\\\\\`\\"\\\$]*)
20458      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20459      ;;
20460    *)
20461      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20462      ;;
20463    esac
20464done
20465
20466# Double-quote double-evaled strings.
20467for var in reload_cmds \
20468old_postinstall_cmds \
20469old_postuninstall_cmds \
20470old_archive_cmds \
20471extract_expsyms_cmds \
20472old_archive_from_new_cmds \
20473old_archive_from_expsyms_cmds \
20474archive_cmds \
20475archive_expsym_cmds \
20476module_cmds \
20477module_expsym_cmds \
20478export_symbols_cmds \
20479prelink_cmds \
20480postlink_cmds \
20481postinstall_cmds \
20482postuninstall_cmds \
20483finish_cmds \
20484sys_lib_search_path_spec \
20485configure_time_dlsearch_path \
20486configure_time_lt_sys_library_path; do
20487    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20488    *[\\\\\\\`\\"\\\$]*)
20489      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20490      ;;
20491    *)
20492      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20493      ;;
20494    esac
20495done
20496
20497ac_aux_dir='$ac_aux_dir'
20498
20499# See if we are running on zsh, and set the options that allow our
20500# commands through without removal of \ escapes INIT.
20501if test -n "\${ZSH_VERSION+set}"; then
20502   setopt NO_GLOB_SUBST
20503fi
20504
20505
20506    PACKAGE='$PACKAGE'
20507    VERSION='$VERSION'
20508    RM='$RM'
20509    ofile='$ofile'
20510
20511
20512
20513
20514_ACEOF
20515
20516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20517
20518# Handling of arguments.
20519for ac_config_target in $ac_config_targets
20520do
20521  case $ac_config_target in
20522    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20523    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20524    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20525    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20526    "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
20527    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20528    "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
20529    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20530    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20531    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20532    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20533    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20534    "xorg-wacom.pc") CONFIG_FILES="$CONFIG_FILES xorg-wacom.pc" ;;
20535
20536  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20537  esac
20538done
20539
20540
20541# If the user did not use the arguments to specify the items to instantiate,
20542# then the envvar interface is used.  Set only those that are not.
20543# We use the long form for the default assignment because of an extremely
20544# bizarre bug on SunOS 4.1.3.
20545if $ac_need_defaults; then
20546  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20547  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20548  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20549fi
20550
20551# Have a temporary directory for convenience.  Make it in the build tree
20552# simply because there is no reason against having it here, and in addition,
20553# creating and moving files from /tmp can sometimes cause problems.
20554# Hook for its removal unless debugging.
20555# Note that there is a small window in which the directory will not be cleaned:
20556# after its creation but before its name has been assigned to `$tmp'.
20557$debug ||
20558{
20559  tmp= ac_tmp=
20560  trap 'exit_status=$?
20561  : "${ac_tmp:=$tmp}"
20562  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20563' 0
20564  trap 'as_fn_exit 1' 1 2 13 15
20565}
20566# Create a (secure) tmp directory for tmp files.
20567
20568{
20569  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20570  test -d "$tmp"
20571}  ||
20572{
20573  tmp=./conf$$-$RANDOM
20574  (umask 077 && mkdir "$tmp")
20575} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20576ac_tmp=$tmp
20577
20578# Set up the scripts for CONFIG_FILES section.
20579# No need to generate them if there are no CONFIG_FILES.
20580# This happens for instance with `./config.status config.h'.
20581if test -n "$CONFIG_FILES"; then
20582
20583
20584ac_cr=`echo X | tr X '\015'`
20585# On cygwin, bash can eat \r inside `` if the user requested igncr.
20586# But we know of no other shell where ac_cr would be empty at this
20587# point, so we can use a bashism as a fallback.
20588if test "x$ac_cr" = x; then
20589  eval ac_cr=\$\'\\r\'
20590fi
20591ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20592if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20593  ac_cs_awk_cr='\\r'
20594else
20595  ac_cs_awk_cr=$ac_cr
20596fi
20597
20598echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20599_ACEOF
20600
20601
20602{
20603  echo "cat >conf$$subs.awk <<_ACEOF" &&
20604  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20605  echo "_ACEOF"
20606} >conf$$subs.sh ||
20607  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20608ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20609ac_delim='%!_!# '
20610for ac_last_try in false false false false false :; do
20611  . ./conf$$subs.sh ||
20612    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20613
20614  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20615  if test $ac_delim_n = $ac_delim_num; then
20616    break
20617  elif $ac_last_try; then
20618    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20619  else
20620    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20621  fi
20622done
20623rm -f conf$$subs.sh
20624
20625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20626cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20627_ACEOF
20628sed -n '
20629h
20630s/^/S["/; s/!.*/"]=/
20631p
20632g
20633s/^[^!]*!//
20634:repl
20635t repl
20636s/'"$ac_delim"'$//
20637t delim
20638:nl
20639h
20640s/\(.\{148\}\)..*/\1/
20641t more1
20642s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20643p
20644n
20645b repl
20646:more1
20647s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20648p
20649g
20650s/.\{148\}//
20651t nl
20652:delim
20653h
20654s/\(.\{148\}\)..*/\1/
20655t more2
20656s/["\\]/\\&/g; s/^/"/; s/$/"/
20657p
20658b
20659:more2
20660s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20661p
20662g
20663s/.\{148\}//
20664t delim
20665' <conf$$subs.awk | sed '
20666/^[^""]/{
20667  N
20668  s/\n//
20669}
20670' >>$CONFIG_STATUS || ac_write_fail=1
20671rm -f conf$$subs.awk
20672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20673_ACAWK
20674cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20675  for (key in S) S_is_set[key] = 1
20676  FS = ""
20677
20678}
20679{
20680  line = $ 0
20681  nfields = split(line, field, "@")
20682  substed = 0
20683  len = length(field[1])
20684  for (i = 2; i < nfields; i++) {
20685    key = field[i]
20686    keylen = length(key)
20687    if (S_is_set[key]) {
20688      value = S[key]
20689      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20690      len += length(value) + length(field[++i])
20691      substed = 1
20692    } else
20693      len += 1 + keylen
20694  }
20695
20696  print line
20697}
20698
20699_ACAWK
20700_ACEOF
20701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20702if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20703  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20704else
20705  cat
20706fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20707  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20708_ACEOF
20709
20710# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20711# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20712# trailing colons and then remove the whole line if VPATH becomes empty
20713# (actually we leave an empty line to preserve line numbers).
20714if test "x$srcdir" = x.; then
20715  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20716h
20717s///
20718s/^/:/
20719s/[	 ]*$/:/
20720s/:\$(srcdir):/:/g
20721s/:\${srcdir}:/:/g
20722s/:@srcdir@:/:/g
20723s/^:*//
20724s/:*$//
20725x
20726s/\(=[	 ]*\).*/\1/
20727G
20728s/\n//
20729s/^[^=]*=[	 ]*$//
20730}'
20731fi
20732
20733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20734fi # test -n "$CONFIG_FILES"
20735
20736# Set up the scripts for CONFIG_HEADERS section.
20737# No need to generate them if there are no CONFIG_HEADERS.
20738# This happens for instance with `./config.status Makefile'.
20739if test -n "$CONFIG_HEADERS"; then
20740cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20741BEGIN {
20742_ACEOF
20743
20744# Transform confdefs.h into an awk script `defines.awk', embedded as
20745# here-document in config.status, that substitutes the proper values into
20746# config.h.in to produce config.h.
20747
20748# Create a delimiter string that does not exist in confdefs.h, to ease
20749# handling of long lines.
20750ac_delim='%!_!# '
20751for ac_last_try in false false :; do
20752  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20753  if test -z "$ac_tt"; then
20754    break
20755  elif $ac_last_try; then
20756    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20757  else
20758    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20759  fi
20760done
20761
20762# For the awk script, D is an array of macro values keyed by name,
20763# likewise P contains macro parameters if any.  Preserve backslash
20764# newline sequences.
20765
20766ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20767sed -n '
20768s/.\{148\}/&'"$ac_delim"'/g
20769t rset
20770:rset
20771s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20772t def
20773d
20774:def
20775s/\\$//
20776t bsnl
20777s/["\\]/\\&/g
20778s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20779D["\1"]=" \3"/p
20780s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20781d
20782:bsnl
20783s/["\\]/\\&/g
20784s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20785D["\1"]=" \3\\\\\\n"\\/p
20786t cont
20787s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20788t cont
20789d
20790:cont
20791n
20792s/.\{148\}/&'"$ac_delim"'/g
20793t clear
20794:clear
20795s/\\$//
20796t bsnlc
20797s/["\\]/\\&/g; s/^/"/; s/$/"/p
20798d
20799:bsnlc
20800s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20801b cont
20802' <confdefs.h | sed '
20803s/'"$ac_delim"'/"\\\
20804"/g' >>$CONFIG_STATUS || ac_write_fail=1
20805
20806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20807  for (key in D) D_is_set[key] = 1
20808  FS = ""
20809}
20810/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20811  line = \$ 0
20812  split(line, arg, " ")
20813  if (arg[1] == "#") {
20814    defundef = arg[2]
20815    mac1 = arg[3]
20816  } else {
20817    defundef = substr(arg[1], 2)
20818    mac1 = arg[2]
20819  }
20820  split(mac1, mac2, "(") #)
20821  macro = mac2[1]
20822  prefix = substr(line, 1, index(line, defundef) - 1)
20823  if (D_is_set[macro]) {
20824    # Preserve the white space surrounding the "#".
20825    print prefix "define", macro P[macro] D[macro]
20826    next
20827  } else {
20828    # Replace #undef with comments.  This is necessary, for example,
20829    # in the case of _POSIX_SOURCE, which is predefined and required
20830    # on some systems where configure will not decide to define it.
20831    if (defundef == "undef") {
20832      print "/*", prefix defundef, macro, "*/"
20833      next
20834    }
20835  }
20836}
20837{ print }
20838_ACAWK
20839_ACEOF
20840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20841  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20842fi # test -n "$CONFIG_HEADERS"
20843
20844
20845eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20846shift
20847for ac_tag
20848do
20849  case $ac_tag in
20850  :[FHLC]) ac_mode=$ac_tag; continue;;
20851  esac
20852  case $ac_mode$ac_tag in
20853  :[FHL]*:*);;
20854  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20855  :[FH]-) ac_tag=-:-;;
20856  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20857  esac
20858  ac_save_IFS=$IFS
20859  IFS=:
20860  set x $ac_tag
20861  IFS=$ac_save_IFS
20862  shift
20863  ac_file=$1
20864  shift
20865
20866  case $ac_mode in
20867  :L) ac_source=$1;;
20868  :[FH])
20869    ac_file_inputs=
20870    for ac_f
20871    do
20872      case $ac_f in
20873      -) ac_f="$ac_tmp/stdin";;
20874      *) # Look for the file first in the build tree, then in the source tree
20875	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20876	 # because $ac_f cannot contain `:'.
20877	 test -f "$ac_f" ||
20878	   case $ac_f in
20879	   [\\/$]*) false;;
20880	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20881	   esac ||
20882	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20883      esac
20884      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20885      as_fn_append ac_file_inputs " '$ac_f'"
20886    done
20887
20888    # Let's still pretend it is `configure' which instantiates (i.e., don't
20889    # use $as_me), people would be surprised to read:
20890    #    /* config.h.  Generated by config.status.  */
20891    configure_input='Generated from '`
20892	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20893	`' by configure.'
20894    if test x"$ac_file" != x-; then
20895      configure_input="$ac_file.  $configure_input"
20896      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20897$as_echo "$as_me: creating $ac_file" >&6;}
20898    fi
20899    # Neutralize special characters interpreted by sed in replacement strings.
20900    case $configure_input in #(
20901    *\&* | *\|* | *\\* )
20902       ac_sed_conf_input=`$as_echo "$configure_input" |
20903       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20904    *) ac_sed_conf_input=$configure_input;;
20905    esac
20906
20907    case $ac_tag in
20908    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20909      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20910    esac
20911    ;;
20912  esac
20913
20914  ac_dir=`$as_dirname -- "$ac_file" ||
20915$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20916	 X"$ac_file" : 'X\(//\)[^/]' \| \
20917	 X"$ac_file" : 'X\(//\)$' \| \
20918	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20919$as_echo X"$ac_file" |
20920    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20921	    s//\1/
20922	    q
20923	  }
20924	  /^X\(\/\/\)[^/].*/{
20925	    s//\1/
20926	    q
20927	  }
20928	  /^X\(\/\/\)$/{
20929	    s//\1/
20930	    q
20931	  }
20932	  /^X\(\/\).*/{
20933	    s//\1/
20934	    q
20935	  }
20936	  s/.*/./; q'`
20937  as_dir="$ac_dir"; as_fn_mkdir_p
20938  ac_builddir=.
20939
20940case "$ac_dir" in
20941.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20942*)
20943  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20944  # A ".." for each directory in $ac_dir_suffix.
20945  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20946  case $ac_top_builddir_sub in
20947  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20948  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20949  esac ;;
20950esac
20951ac_abs_top_builddir=$ac_pwd
20952ac_abs_builddir=$ac_pwd$ac_dir_suffix
20953# for backward compatibility:
20954ac_top_builddir=$ac_top_build_prefix
20955
20956case $srcdir in
20957  .)  # We are building in place.
20958    ac_srcdir=.
20959    ac_top_srcdir=$ac_top_builddir_sub
20960    ac_abs_top_srcdir=$ac_pwd ;;
20961  [\\/]* | ?:[\\/]* )  # Absolute name.
20962    ac_srcdir=$srcdir$ac_dir_suffix;
20963    ac_top_srcdir=$srcdir
20964    ac_abs_top_srcdir=$srcdir ;;
20965  *) # Relative name.
20966    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20967    ac_top_srcdir=$ac_top_build_prefix$srcdir
20968    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20969esac
20970ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20971
20972
20973  case $ac_mode in
20974  :F)
20975  #
20976  # CONFIG_FILE
20977  #
20978
20979  case $INSTALL in
20980  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20981  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20982  esac
20983  ac_MKDIR_P=$MKDIR_P
20984  case $MKDIR_P in
20985  [\\/$]* | ?:[\\/]* ) ;;
20986  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20987  esac
20988_ACEOF
20989
20990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20991# If the template does not know about datarootdir, expand it.
20992# FIXME: This hack should be removed a few years after 2.60.
20993ac_datarootdir_hack=; ac_datarootdir_seen=
20994ac_sed_dataroot='
20995/datarootdir/ {
20996  p
20997  q
20998}
20999/@datadir@/p
21000/@docdir@/p
21001/@infodir@/p
21002/@localedir@/p
21003/@mandir@/p'
21004case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21005*datarootdir*) ac_datarootdir_seen=yes;;
21006*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21007  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21008$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21009_ACEOF
21010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21011  ac_datarootdir_hack='
21012  s&@datadir@&$datadir&g
21013  s&@docdir@&$docdir&g
21014  s&@infodir@&$infodir&g
21015  s&@localedir@&$localedir&g
21016  s&@mandir@&$mandir&g
21017  s&\\\${datarootdir}&$datarootdir&g' ;;
21018esac
21019_ACEOF
21020
21021# Neutralize VPATH when `$srcdir' = `.'.
21022# Shell code in configure.ac might set extrasub.
21023# FIXME: do we really want to maintain this feature?
21024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21025ac_sed_extra="$ac_vpsub
21026$extrasub
21027_ACEOF
21028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21029:t
21030/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21031s|@configure_input@|$ac_sed_conf_input|;t t
21032s&@top_builddir@&$ac_top_builddir_sub&;t t
21033s&@top_build_prefix@&$ac_top_build_prefix&;t t
21034s&@srcdir@&$ac_srcdir&;t t
21035s&@abs_srcdir@&$ac_abs_srcdir&;t t
21036s&@top_srcdir@&$ac_top_srcdir&;t t
21037s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21038s&@builddir@&$ac_builddir&;t t
21039s&@abs_builddir@&$ac_abs_builddir&;t t
21040s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21041s&@INSTALL@&$ac_INSTALL&;t t
21042s&@MKDIR_P@&$ac_MKDIR_P&;t t
21043$ac_datarootdir_hack
21044"
21045eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21046  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21047
21048test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21049  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21050  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21051      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21052  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21053which seems to be undefined.  Please make sure it is defined" >&5
21054$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21055which seems to be undefined.  Please make sure it is defined" >&2;}
21056
21057  rm -f "$ac_tmp/stdin"
21058  case $ac_file in
21059  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21060  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21061  esac \
21062  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21063 ;;
21064  :H)
21065  #
21066  # CONFIG_HEADER
21067  #
21068  if test x"$ac_file" != x-; then
21069    {
21070      $as_echo "/* $configure_input  */" \
21071      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21072    } >"$ac_tmp/config.h" \
21073      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21074    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21075      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21076$as_echo "$as_me: $ac_file is unchanged" >&6;}
21077    else
21078      rm -f "$ac_file"
21079      mv "$ac_tmp/config.h" "$ac_file" \
21080	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21081    fi
21082  else
21083    $as_echo "/* $configure_input  */" \
21084      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21085      || as_fn_error $? "could not create -" "$LINENO" 5
21086  fi
21087# Compute "$ac_file"'s index in $config_headers.
21088_am_arg="$ac_file"
21089_am_stamp_count=1
21090for _am_header in $config_headers :; do
21091  case $_am_header in
21092    $_am_arg | $_am_arg:* )
21093      break ;;
21094    * )
21095      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21096  esac
21097done
21098echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21099$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21100	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21101	 X"$_am_arg" : 'X\(//\)$' \| \
21102	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21103$as_echo X"$_am_arg" |
21104    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21105	    s//\1/
21106	    q
21107	  }
21108	  /^X\(\/\/\)[^/].*/{
21109	    s//\1/
21110	    q
21111	  }
21112	  /^X\(\/\/\)$/{
21113	    s//\1/
21114	    q
21115	  }
21116	  /^X\(\/\).*/{
21117	    s//\1/
21118	    q
21119	  }
21120	  s/.*/./; q'`/stamp-h$_am_stamp_count
21121 ;;
21122
21123  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21124$as_echo "$as_me: executing $ac_file commands" >&6;}
21125 ;;
21126  esac
21127
21128
21129  case $ac_file$ac_mode in
21130    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21131  # Older Autoconf quotes --file arguments for eval, but not when files
21132  # are listed without --file.  Let's play safe and only enable the eval
21133  # if we detect the quoting.
21134  # TODO: see whether this extra hack can be removed once we start
21135  # requiring Autoconf 2.70 or later.
21136  case $CONFIG_FILES in #(
21137  *\'*) :
21138    eval set x "$CONFIG_FILES" ;; #(
21139  *) :
21140    set x $CONFIG_FILES ;; #(
21141  *) :
21142     ;;
21143esac
21144  shift
21145  # Used to flag and report bootstrapping failures.
21146  am_rc=0
21147  for am_mf
21148  do
21149    # Strip MF so we end up with the name of the file.
21150    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21151    # Check whether this is an Automake generated Makefile which includes
21152    # dependency-tracking related rules and includes.
21153    # Grep'ing the whole file directly is not great: AIX grep has a line
21154    # limit of 2048, but all sed's we know have understand at least 4000.
21155    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21156      || continue
21157    am_dirpart=`$as_dirname -- "$am_mf" ||
21158$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21159	 X"$am_mf" : 'X\(//\)[^/]' \| \
21160	 X"$am_mf" : 'X\(//\)$' \| \
21161	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21162$as_echo X"$am_mf" |
21163    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21164	    s//\1/
21165	    q
21166	  }
21167	  /^X\(\/\/\)[^/].*/{
21168	    s//\1/
21169	    q
21170	  }
21171	  /^X\(\/\/\)$/{
21172	    s//\1/
21173	    q
21174	  }
21175	  /^X\(\/\).*/{
21176	    s//\1/
21177	    q
21178	  }
21179	  s/.*/./; q'`
21180    am_filepart=`$as_basename -- "$am_mf" ||
21181$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21182	 X"$am_mf" : 'X\(//\)$' \| \
21183	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21184$as_echo X/"$am_mf" |
21185    sed '/^.*\/\([^/][^/]*\)\/*$/{
21186	    s//\1/
21187	    q
21188	  }
21189	  /^X\/\(\/\/\)$/{
21190	    s//\1/
21191	    q
21192	  }
21193	  /^X\/\(\/\).*/{
21194	    s//\1/
21195	    q
21196	  }
21197	  s/.*/./; q'`
21198    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21199      && sed -e '/# am--include-marker/d' "$am_filepart" \
21200        | $MAKE -f - am--depfiles" >&5
21201   (cd "$am_dirpart" \
21202      && sed -e '/# am--include-marker/d' "$am_filepart" \
21203        | $MAKE -f - am--depfiles) >&5 2>&5
21204   ac_status=$?
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); } || am_rc=$?
21207  done
21208  if test $am_rc -ne 0; then
21209    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21211as_fn_error $? "Something went wrong bootstrapping makefile fragments
21212    for automatic dependency tracking.  Try re-running configure with the
21213    '--disable-dependency-tracking' option to at least be able to build
21214    the package (albeit without support for automatic dependency tracking).
21215See \`config.log' for more details" "$LINENO" 5; }
21216  fi
21217  { am_dirpart=; unset am_dirpart;}
21218  { am_filepart=; unset am_filepart;}
21219  { am_mf=; unset am_mf;}
21220  { am_rc=; unset am_rc;}
21221  rm -f conftest-deps.mk
21222}
21223 ;;
21224    "libtool":C)
21225
21226    # See if we are running on zsh, and set the options that allow our
21227    # commands through without removal of \ escapes.
21228    if test -n "${ZSH_VERSION+set}"; then
21229      setopt NO_GLOB_SUBST
21230    fi
21231
21232    cfgfile=${ofile}T
21233    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21234    $RM "$cfgfile"
21235
21236    cat <<_LT_EOF >> "$cfgfile"
21237#! $SHELL
21238# Generated automatically by $as_me ($PACKAGE) $VERSION
21239# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21240# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21241
21242# Provide generalized library-building support services.
21243# Written by Gordon Matzigkeit, 1996
21244
21245# Copyright (C) 2014 Free Software Foundation, Inc.
21246# This is free software; see the source for copying conditions.  There is NO
21247# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21248
21249# GNU Libtool is free software; you can redistribute it and/or modify
21250# it under the terms of the GNU General Public License as published by
21251# the Free Software Foundation; either version 2 of of the License, or
21252# (at your option) any later version.
21253#
21254# As a special exception to the GNU General Public License, if you
21255# distribute this file as part of a program or library that is built
21256# using GNU Libtool, you may include this file under the  same
21257# distribution terms that you use for the rest of that program.
21258#
21259# GNU Libtool is distributed in the hope that it will be useful, but
21260# WITHOUT ANY WARRANTY; without even the implied warranty of
21261# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21262# GNU General Public License for more details.
21263#
21264# You should have received a copy of the GNU General Public License
21265# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21266
21267
21268# The names of the tagged configurations supported by this script.
21269available_tags=''
21270
21271# Configured defaults for sys_lib_dlsearch_path munging.
21272: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21273
21274# ### BEGIN LIBTOOL CONFIG
21275
21276# Whether or not to build static libraries.
21277build_old_libs=$enable_static
21278
21279# Which release of libtool.m4 was used?
21280macro_version=$macro_version
21281macro_revision=$macro_revision
21282
21283# Whether or not to build shared libraries.
21284build_libtool_libs=$enable_shared
21285
21286# What type of objects to build.
21287pic_mode=$pic_mode
21288
21289# Whether or not to optimize for fast installation.
21290fast_install=$enable_fast_install
21291
21292# Shared archive member basename,for filename based shared library versioning on AIX.
21293shared_archive_member_spec=$shared_archive_member_spec
21294
21295# Shell to use when invoking shell scripts.
21296SHELL=$lt_SHELL
21297
21298# An echo program that protects backslashes.
21299ECHO=$lt_ECHO
21300
21301# The PATH separator for the build system.
21302PATH_SEPARATOR=$lt_PATH_SEPARATOR
21303
21304# The host system.
21305host_alias=$host_alias
21306host=$host
21307host_os=$host_os
21308
21309# The build system.
21310build_alias=$build_alias
21311build=$build
21312build_os=$build_os
21313
21314# A sed program that does not truncate output.
21315SED=$lt_SED
21316
21317# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21318Xsed="\$SED -e 1s/^X//"
21319
21320# A grep program that handles long lines.
21321GREP=$lt_GREP
21322
21323# An ERE matcher.
21324EGREP=$lt_EGREP
21325
21326# A literal string matcher.
21327FGREP=$lt_FGREP
21328
21329# A BSD- or MS-compatible name lister.
21330NM=$lt_NM
21331
21332# Whether we need soft or hard links.
21333LN_S=$lt_LN_S
21334
21335# What is the maximum length of a command?
21336max_cmd_len=$max_cmd_len
21337
21338# Object file suffix (normally "o").
21339objext=$ac_objext
21340
21341# Executable file suffix (normally "").
21342exeext=$exeext
21343
21344# whether the shell understands "unset".
21345lt_unset=$lt_unset
21346
21347# turn spaces into newlines.
21348SP2NL=$lt_lt_SP2NL
21349
21350# turn newlines into spaces.
21351NL2SP=$lt_lt_NL2SP
21352
21353# convert \$build file names to \$host format.
21354to_host_file_cmd=$lt_cv_to_host_file_cmd
21355
21356# convert \$build files to toolchain format.
21357to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21358
21359# An object symbol dumper.
21360OBJDUMP=$lt_OBJDUMP
21361
21362# Method to check whether dependent libraries are shared objects.
21363deplibs_check_method=$lt_deplibs_check_method
21364
21365# Command to use when deplibs_check_method = "file_magic".
21366file_magic_cmd=$lt_file_magic_cmd
21367
21368# How to find potential files when deplibs_check_method = "file_magic".
21369file_magic_glob=$lt_file_magic_glob
21370
21371# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21372want_nocaseglob=$lt_want_nocaseglob
21373
21374# DLL creation program.
21375DLLTOOL=$lt_DLLTOOL
21376
21377# Command to associate shared and link libraries.
21378sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21379
21380# The archiver.
21381AR=$lt_AR
21382
21383# Flags to create an archive (by configure).
21384lt_ar_flags=$lt_ar_flags
21385
21386# Flags to create an archive.
21387AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21388
21389# How to feed a file listing to the archiver.
21390archiver_list_spec=$lt_archiver_list_spec
21391
21392# A symbol stripping program.
21393STRIP=$lt_STRIP
21394
21395# Commands used to install an old-style archive.
21396RANLIB=$lt_RANLIB
21397old_postinstall_cmds=$lt_old_postinstall_cmds
21398old_postuninstall_cmds=$lt_old_postuninstall_cmds
21399
21400# Whether to use a lock for old archive extraction.
21401lock_old_archive_extraction=$lock_old_archive_extraction
21402
21403# A C compiler.
21404LTCC=$lt_CC
21405
21406# LTCC compiler flags.
21407LTCFLAGS=$lt_CFLAGS
21408
21409# Take the output of nm and produce a listing of raw symbols and C names.
21410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21411
21412# Transform the output of nm in a proper C declaration.
21413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21414
21415# Transform the output of nm into a list of symbols to manually relocate.
21416global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21417
21418# Transform the output of nm in a C name address pair.
21419global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21420
21421# Transform the output of nm in a C name address pair when lib prefix is needed.
21422global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21423
21424# The name lister interface.
21425nm_interface=$lt_lt_cv_nm_interface
21426
21427# Specify filename containing input files for \$NM.
21428nm_file_list_spec=$lt_nm_file_list_spec
21429
21430# The root where to search for dependent libraries,and where our libraries should be installed.
21431lt_sysroot=$lt_sysroot
21432
21433# Command to truncate a binary pipe.
21434lt_truncate_bin=$lt_lt_cv_truncate_bin
21435
21436# The name of the directory that contains temporary libtool files.
21437objdir=$objdir
21438
21439# Used to examine libraries when file_magic_cmd begins with "file".
21440MAGIC_CMD=$MAGIC_CMD
21441
21442# Must we lock files when doing compilation?
21443need_locks=$lt_need_locks
21444
21445# Manifest tool.
21446MANIFEST_TOOL=$lt_MANIFEST_TOOL
21447
21448# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21449DSYMUTIL=$lt_DSYMUTIL
21450
21451# Tool to change global to local symbols on Mac OS X.
21452NMEDIT=$lt_NMEDIT
21453
21454# Tool to manipulate fat objects and archives on Mac OS X.
21455LIPO=$lt_LIPO
21456
21457# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21458OTOOL=$lt_OTOOL
21459
21460# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21461OTOOL64=$lt_OTOOL64
21462
21463# Old archive suffix (normally "a").
21464libext=$libext
21465
21466# Shared library suffix (normally ".so").
21467shrext_cmds=$lt_shrext_cmds
21468
21469# The commands to extract the exported symbol list from a shared archive.
21470extract_expsyms_cmds=$lt_extract_expsyms_cmds
21471
21472# Variables whose values should be saved in libtool wrapper scripts and
21473# restored at link time.
21474variables_saved_for_relink=$lt_variables_saved_for_relink
21475
21476# Do we need the "lib" prefix for modules?
21477need_lib_prefix=$need_lib_prefix
21478
21479# Do we need a version for libraries?
21480need_version=$need_version
21481
21482# Library versioning type.
21483version_type=$version_type
21484
21485# Shared library runtime path variable.
21486runpath_var=$runpath_var
21487
21488# Shared library path variable.
21489shlibpath_var=$shlibpath_var
21490
21491# Is shlibpath searched before the hard-coded library search path?
21492shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21493
21494# Format of library name prefix.
21495libname_spec=$lt_libname_spec
21496
21497# List of archive names.  First name is the real one, the rest are links.
21498# The last name is the one that the linker finds with -lNAME
21499library_names_spec=$lt_library_names_spec
21500
21501# The coded name of the library, if different from the real name.
21502soname_spec=$lt_soname_spec
21503
21504# Permission mode override for installation of shared libraries.
21505install_override_mode=$lt_install_override_mode
21506
21507# Command to use after installation of a shared archive.
21508postinstall_cmds=$lt_postinstall_cmds
21509
21510# Command to use after uninstallation of a shared archive.
21511postuninstall_cmds=$lt_postuninstall_cmds
21512
21513# Commands used to finish a libtool library installation in a directory.
21514finish_cmds=$lt_finish_cmds
21515
21516# As "finish_cmds", except a single script fragment to be evaled but
21517# not shown.
21518finish_eval=$lt_finish_eval
21519
21520# Whether we should hardcode library paths into libraries.
21521hardcode_into_libs=$hardcode_into_libs
21522
21523# Compile-time system search path for libraries.
21524sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21525
21526# Detected run-time system search path for libraries.
21527sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21528
21529# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21530configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21531
21532# Whether dlopen is supported.
21533dlopen_support=$enable_dlopen
21534
21535# Whether dlopen of programs is supported.
21536dlopen_self=$enable_dlopen_self
21537
21538# Whether dlopen of statically linked programs is supported.
21539dlopen_self_static=$enable_dlopen_self_static
21540
21541# Commands to strip libraries.
21542old_striplib=$lt_old_striplib
21543striplib=$lt_striplib
21544
21545
21546# The linker used to build libraries.
21547LD=$lt_LD
21548
21549# How to create reloadable object files.
21550reload_flag=$lt_reload_flag
21551reload_cmds=$lt_reload_cmds
21552
21553# Commands used to build an old-style archive.
21554old_archive_cmds=$lt_old_archive_cmds
21555
21556# A language specific compiler.
21557CC=$lt_compiler
21558
21559# Is the compiler the GNU compiler?
21560with_gcc=$GCC
21561
21562# Compiler flag to turn off builtin functions.
21563no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21564
21565# Additional compiler flags for building library objects.
21566pic_flag=$lt_lt_prog_compiler_pic
21567
21568# How to pass a linker flag through the compiler.
21569wl=$lt_lt_prog_compiler_wl
21570
21571# Compiler flag to prevent dynamic linking.
21572link_static_flag=$lt_lt_prog_compiler_static
21573
21574# Does compiler simultaneously support -c and -o options?
21575compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21576
21577# Whether or not to add -lc for building shared libraries.
21578build_libtool_need_lc=$archive_cmds_need_lc
21579
21580# Whether or not to disallow shared libs when runtime libs are static.
21581allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21582
21583# Compiler flag to allow reflexive dlopens.
21584export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21585
21586# Compiler flag to generate shared objects directly from archives.
21587whole_archive_flag_spec=$lt_whole_archive_flag_spec
21588
21589# Whether the compiler copes with passing no objects directly.
21590compiler_needs_object=$lt_compiler_needs_object
21591
21592# Create an old-style archive from a shared archive.
21593old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21594
21595# Create a temporary old-style archive to link instead of a shared archive.
21596old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21597
21598# Commands used to build a shared archive.
21599archive_cmds=$lt_archive_cmds
21600archive_expsym_cmds=$lt_archive_expsym_cmds
21601
21602# Commands used to build a loadable module if different from building
21603# a shared archive.
21604module_cmds=$lt_module_cmds
21605module_expsym_cmds=$lt_module_expsym_cmds
21606
21607# Whether we are building with GNU ld or not.
21608with_gnu_ld=$lt_with_gnu_ld
21609
21610# Flag that allows shared libraries with undefined symbols to be built.
21611allow_undefined_flag=$lt_allow_undefined_flag
21612
21613# Flag that enforces no undefined symbols.
21614no_undefined_flag=$lt_no_undefined_flag
21615
21616# Flag to hardcode \$libdir into a binary during linking.
21617# This must work even if \$libdir does not exist
21618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21619
21620# Whether we need a single "-rpath" flag with a separated argument.
21621hardcode_libdir_separator=$lt_hardcode_libdir_separator
21622
21623# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21624# DIR into the resulting binary.
21625hardcode_direct=$hardcode_direct
21626
21627# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21628# DIR into the resulting binary and the resulting library dependency is
21629# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21630# library is relocated.
21631hardcode_direct_absolute=$hardcode_direct_absolute
21632
21633# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21634# into the resulting binary.
21635hardcode_minus_L=$hardcode_minus_L
21636
21637# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21638# into the resulting binary.
21639hardcode_shlibpath_var=$hardcode_shlibpath_var
21640
21641# Set to "yes" if building a shared library automatically hardcodes DIR
21642# into the library and all subsequent libraries and executables linked
21643# against it.
21644hardcode_automatic=$hardcode_automatic
21645
21646# Set to yes if linker adds runtime paths of dependent libraries
21647# to runtime path list.
21648inherit_rpath=$inherit_rpath
21649
21650# Whether libtool must link a program against all its dependency libraries.
21651link_all_deplibs=$link_all_deplibs
21652
21653# Set to "yes" if exported symbols are required.
21654always_export_symbols=$always_export_symbols
21655
21656# The commands to list exported symbols.
21657export_symbols_cmds=$lt_export_symbols_cmds
21658
21659# Symbols that should not be listed in the preloaded symbols.
21660exclude_expsyms=$lt_exclude_expsyms
21661
21662# Symbols that must always be exported.
21663include_expsyms=$lt_include_expsyms
21664
21665# Commands necessary for linking programs (against libraries) with templates.
21666prelink_cmds=$lt_prelink_cmds
21667
21668# Commands necessary for finishing linking programs.
21669postlink_cmds=$lt_postlink_cmds
21670
21671# Specify filename containing input files.
21672file_list_spec=$lt_file_list_spec
21673
21674# How to hardcode a shared library path into an executable.
21675hardcode_action=$hardcode_action
21676
21677# ### END LIBTOOL CONFIG
21678
21679_LT_EOF
21680
21681    cat <<'_LT_EOF' >> "$cfgfile"
21682
21683# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21684
21685# func_munge_path_list VARIABLE PATH
21686# -----------------------------------
21687# VARIABLE is name of variable containing _space_ separated list of
21688# directories to be munged by the contents of PATH, which is string
21689# having a format:
21690# "DIR[:DIR]:"
21691#       string "DIR[ DIR]" will be prepended to VARIABLE
21692# ":DIR[:DIR]"
21693#       string "DIR[ DIR]" will be appended to VARIABLE
21694# "DIRP[:DIRP]::[DIRA:]DIRA"
21695#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21696#       "DIRA[ DIRA]" will be appended to VARIABLE
21697# "DIR[:DIR]"
21698#       VARIABLE will be replaced by "DIR[ DIR]"
21699func_munge_path_list ()
21700{
21701    case x$2 in
21702    x)
21703        ;;
21704    *:)
21705        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21706        ;;
21707    x:*)
21708        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21709        ;;
21710    *::*)
21711        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21712        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21713        ;;
21714    *)
21715        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21716        ;;
21717    esac
21718}
21719
21720
21721# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21722func_cc_basename ()
21723{
21724    for cc_temp in $*""; do
21725      case $cc_temp in
21726        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21727        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21728        \-*) ;;
21729        *) break;;
21730      esac
21731    done
21732    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21733}
21734
21735
21736# ### END FUNCTIONS SHARED WITH CONFIGURE
21737
21738_LT_EOF
21739
21740  case $host_os in
21741  aix3*)
21742    cat <<\_LT_EOF >> "$cfgfile"
21743# AIX sometimes has problems with the GCC collect2 program.  For some
21744# reason, if we set the COLLECT_NAMES environment variable, the problems
21745# vanish in a puff of smoke.
21746if test set != "${COLLECT_NAMES+set}"; then
21747  COLLECT_NAMES=
21748  export COLLECT_NAMES
21749fi
21750_LT_EOF
21751    ;;
21752  esac
21753
21754
21755ltmain=$ac_aux_dir/ltmain.sh
21756
21757
21758  # We use sed instead of cat because bash on DJGPP gets confused if
21759  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21760  # text mode, it properly converts lines to CR/LF.  This bash problem
21761  # is reportedly fixed, but why not run on old versions too?
21762  sed '$q' "$ltmain" >> "$cfgfile" \
21763     || (rm -f "$cfgfile"; exit 1)
21764
21765   mv -f "$cfgfile" "$ofile" ||
21766    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21767  chmod +x "$ofile"
21768
21769 ;;
21770
21771  esac
21772done # for ac_tag
21773
21774
21775as_fn_exit 0
21776_ACEOF
21777ac_clean_files=$ac_clean_files_save
21778
21779test $ac_write_fail = 0 ||
21780  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21781
21782
21783# configure is writing to config.log, and then calls config.status.
21784# config.status does its own redirection, appending to config.log.
21785# Unfortunately, on DOS this fails, as config.log is still kept open
21786# by configure, so config.status won't be able to write to it; its
21787# output is simply discarded.  So we exec the FD to /dev/null,
21788# effectively closing config.log, so it can be properly (re)opened and
21789# appended to by config.status.  When coming back to configure, we
21790# need to make the FD available again.
21791if test "$no_create" != yes; then
21792  ac_cs_success=:
21793  ac_config_status_args=
21794  test "$silent" = yes &&
21795    ac_config_status_args="$ac_config_status_args --quiet"
21796  exec 5>/dev/null
21797  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21798  exec 5>>config.log
21799  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21800  # would make configure fail if this is the last instruction.
21801  $ac_cs_success || as_fn_exit 1
21802fi
21803if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21804  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21805$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21806fi
21807
21808