configure revision 48c85eb7
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libfontenc 1.1.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='libfontenc'
573PACKAGE_TARNAME='libfontenc'
574PACKAGE_VERSION='1.1.2'
575PACKAGE_STRING='libfontenc 1.1.2'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620LINT_FALSE
621LINT_TRUE
622LINT_FLAGS
623LINT
624FONTENC_LIBS
625FONTENC_CFLAGS
626ENCODINGSDIR
627FONTROOTDIR
628AM_BACKSLASH
629AM_DEFAULT_VERBOSITY
630MAN_SUBSTS
631XORG_MAN_PAGE
632ADMIN_MAN_DIR
633DRIVER_MAN_DIR
634MISC_MAN_DIR
635FILE_MAN_DIR
636LIB_MAN_DIR
637APP_MAN_DIR
638ADMIN_MAN_SUFFIX
639DRIVER_MAN_SUFFIX
640MISC_MAN_SUFFIX
641FILE_MAN_SUFFIX
642LIB_MAN_SUFFIX
643APP_MAN_SUFFIX
644INSTALL_CMD
645PKG_CONFIG
646CHANGELOG_CMD
647STRICT_CFLAGS
648CWARNFLAGS
649BASE_CFLAGS
650CPP
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
656MANIFEST_TOOL
657RANLIB
658ac_ct_AR
659AR
660DLLTOOL
661OBJDUMP
662LN_S
663NM
664ac_ct_DUMPBIN
665DUMPBIN
666LD
667FGREP
668EGREP
669GREP
670SED
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674am__nodep
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
688host_os
689host_vendor
690host_cpu
691host
692build_os
693build_vendor
694build_cpu
695build
696LIBTOOL
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL'
758ac_subst_files=''
759ac_user_opts='
760enable_option_checking
761enable_shared
762enable_static
763with_pic
764enable_fast_install
765enable_dependency_tracking
766with_gnu_ld
767with_sysroot
768enable_libtool_lock
769enable_selective_werror
770enable_strict_compilation
771enable_silent_rules
772with_fontrootdir
773with_encodingsdir
774with_lint
775'
776      ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784CPP
785PKG_CONFIG
786FONTENC_CFLAGS
787FONTENC_LIBS
788LINT
789LINT_FLAGS'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844  # If the previous option needs an argument, assign it.
845  if test -n "$ac_prev"; then
846    eval $ac_prev=\$ac_option
847    ac_prev=
848    continue
849  fi
850
851  case $ac_option in
852  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853  *=)   ac_optarg= ;;
854  *)    ac_optarg=yes ;;
855  esac
856
857  # Accept the important Cygnus configure options, so we can diagnose typos.
858
859  case $ac_dashdash$ac_option in
860  --)
861    ac_dashdash=yes ;;
862
863  -bindir | --bindir | --bindi | --bind | --bin | --bi)
864    ac_prev=bindir ;;
865  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866    bindir=$ac_optarg ;;
867
868  -build | --build | --buil | --bui | --bu)
869    ac_prev=build_alias ;;
870  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871    build_alias=$ac_optarg ;;
872
873  -cache-file | --cache-file | --cache-fil | --cache-fi \
874  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875    ac_prev=cache_file ;;
876  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878    cache_file=$ac_optarg ;;
879
880  --config-cache | -C)
881    cache_file=config.cache ;;
882
883  -datadir | --datadir | --datadi | --datad)
884    ac_prev=datadir ;;
885  -datadir=* | --datadir=* | --datadi=* | --datad=*)
886    datadir=$ac_optarg ;;
887
888  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889  | --dataroo | --dataro | --datar)
890    ac_prev=datarootdir ;;
891  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893    datarootdir=$ac_optarg ;;
894
895  -disable-* | --disable-*)
896    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897    # Reject names that are not valid shell variable names.
898    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899      as_fn_error $? "invalid feature name: $ac_useropt"
900    ac_useropt_orig=$ac_useropt
901    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902    case $ac_user_opts in
903      *"
904"enable_$ac_useropt"
905"*) ;;
906      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907	 ac_unrecognized_sep=', ';;
908    esac
909    eval enable_$ac_useropt=no ;;
910
911  -docdir | --docdir | --docdi | --doc | --do)
912    ac_prev=docdir ;;
913  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914    docdir=$ac_optarg ;;
915
916  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917    ac_prev=dvidir ;;
918  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919    dvidir=$ac_optarg ;;
920
921  -enable-* | --enable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=\$ac_optarg ;;
936
937  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939  | --exec | --exe | --ex)
940    ac_prev=exec_prefix ;;
941  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943  | --exec=* | --exe=* | --ex=*)
944    exec_prefix=$ac_optarg ;;
945
946  -gas | --gas | --ga | --g)
947    # Obsolete; use --with-gas.
948    with_gas=yes ;;
949
950  -help | --help | --hel | --he | -h)
951    ac_init_help=long ;;
952  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953    ac_init_help=recursive ;;
954  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955    ac_init_help=short ;;
956
957  -host | --host | --hos | --ho)
958    ac_prev=host_alias ;;
959  -host=* | --host=* | --hos=* | --ho=*)
960    host_alias=$ac_optarg ;;
961
962  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963    ac_prev=htmldir ;;
964  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965  | --ht=*)
966    htmldir=$ac_optarg ;;
967
968  -includedir | --includedir | --includedi | --included | --include \
969  | --includ | --inclu | --incl | --inc)
970    ac_prev=includedir ;;
971  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972  | --includ=* | --inclu=* | --incl=* | --inc=*)
973    includedir=$ac_optarg ;;
974
975  -infodir | --infodir | --infodi | --infod | --info | --inf)
976    ac_prev=infodir ;;
977  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978    infodir=$ac_optarg ;;
979
980  -libdir | --libdir | --libdi | --libd)
981    ac_prev=libdir ;;
982  -libdir=* | --libdir=* | --libdi=* | --libd=*)
983    libdir=$ac_optarg ;;
984
985  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986  | --libexe | --libex | --libe)
987    ac_prev=libexecdir ;;
988  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989  | --libexe=* | --libex=* | --libe=*)
990    libexecdir=$ac_optarg ;;
991
992  -localedir | --localedir | --localedi | --localed | --locale)
993    ac_prev=localedir ;;
994  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995    localedir=$ac_optarg ;;
996
997  -localstatedir | --localstatedir | --localstatedi | --localstated \
998  | --localstate | --localstat | --localsta | --localst | --locals)
999    ac_prev=localstatedir ;;
1000  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002    localstatedir=$ac_optarg ;;
1003
1004  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005    ac_prev=mandir ;;
1006  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007    mandir=$ac_optarg ;;
1008
1009  -nfp | --nfp | --nf)
1010    # Obsolete; use --without-fp.
1011    with_fp=no ;;
1012
1013  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014  | --no-cr | --no-c | -n)
1015    no_create=yes ;;
1016
1017  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019    no_recursion=yes ;;
1020
1021  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023  | --oldin | --oldi | --old | --ol | --o)
1024    ac_prev=oldincludedir ;;
1025  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028    oldincludedir=$ac_optarg ;;
1029
1030  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031    ac_prev=prefix ;;
1032  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033    prefix=$ac_optarg ;;
1034
1035  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036  | --program-pre | --program-pr | --program-p)
1037    ac_prev=program_prefix ;;
1038  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040    program_prefix=$ac_optarg ;;
1041
1042  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043  | --program-suf | --program-su | --program-s)
1044    ac_prev=program_suffix ;;
1045  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047    program_suffix=$ac_optarg ;;
1048
1049  -program-transform-name | --program-transform-name \
1050  | --program-transform-nam | --program-transform-na \
1051  | --program-transform-n | --program-transform- \
1052  | --program-transform | --program-transfor \
1053  | --program-transfo | --program-transf \
1054  | --program-trans | --program-tran \
1055  | --progr-tra | --program-tr | --program-t)
1056    ac_prev=program_transform_name ;;
1057  -program-transform-name=* | --program-transform-name=* \
1058  | --program-transform-nam=* | --program-transform-na=* \
1059  | --program-transform-n=* | --program-transform-=* \
1060  | --program-transform=* | --program-transfor=* \
1061  | --program-transfo=* | --program-transf=* \
1062  | --program-trans=* | --program-tran=* \
1063  | --progr-tra=* | --program-tr=* | --program-t=*)
1064    program_transform_name=$ac_optarg ;;
1065
1066  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067    ac_prev=pdfdir ;;
1068  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069    pdfdir=$ac_optarg ;;
1070
1071  -psdir | --psdir | --psdi | --psd | --ps)
1072    ac_prev=psdir ;;
1073  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074    psdir=$ac_optarg ;;
1075
1076  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077  | -silent | --silent | --silen | --sile | --sil)
1078    silent=yes ;;
1079
1080  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081    ac_prev=sbindir ;;
1082  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083  | --sbi=* | --sb=*)
1084    sbindir=$ac_optarg ;;
1085
1086  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088  | --sharedst | --shareds | --shared | --share | --shar \
1089  | --sha | --sh)
1090    ac_prev=sharedstatedir ;;
1091  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094  | --sha=* | --sh=*)
1095    sharedstatedir=$ac_optarg ;;
1096
1097  -site | --site | --sit)
1098    ac_prev=site ;;
1099  -site=* | --site=* | --sit=*)
1100    site=$ac_optarg ;;
1101
1102  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103    ac_prev=srcdir ;;
1104  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105    srcdir=$ac_optarg ;;
1106
1107  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108  | --syscon | --sysco | --sysc | --sys | --sy)
1109    ac_prev=sysconfdir ;;
1110  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112    sysconfdir=$ac_optarg ;;
1113
1114  -target | --target | --targe | --targ | --tar | --ta | --t)
1115    ac_prev=target_alias ;;
1116  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117    target_alias=$ac_optarg ;;
1118
1119  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120    verbose=yes ;;
1121
1122  -version | --version | --versio | --versi | --vers | -V)
1123    ac_init_version=: ;;
1124
1125  -with-* | --with-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error $? "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=\$ac_optarg ;;
1140
1141  -without-* | --without-*)
1142    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143    # Reject names that are not valid shell variable names.
1144    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145      as_fn_error $? "invalid package name: $ac_useropt"
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=no ;;
1156
1157  --x)
1158    # Obsolete; use --with-x.
1159    with_x=yes ;;
1160
1161  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162  | --x-incl | --x-inc | --x-in | --x-i)
1163    ac_prev=x_includes ;;
1164  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166    x_includes=$ac_optarg ;;
1167
1168  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170    ac_prev=x_libraries ;;
1171  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173    x_libraries=$ac_optarg ;;
1174
1175  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
1177    ;;
1178
1179  *=*)
1180    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181    # Reject names that are not valid shell variable names.
1182    case $ac_envvar in #(
1183      '' | [0-9]* | *[!_$as_cr_alnum]* )
1184      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185    esac
1186    eval $ac_envvar=\$ac_optarg
1187    export $ac_envvar ;;
1188
1189  *)
1190    # FIXME: should be removed in autoconf 3.0.
1191    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195    ;;
1196
1197  esac
1198done
1199
1200if test -n "$ac_prev"; then
1201  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202  as_fn_error $? "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206  case $enable_option_checking in
1207    no) ;;
1208    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210  esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215		datadir sysconfdir sharedstatedir localstatedir includedir \
1216		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217		libdir localedir mandir
1218do
1219  eval ac_val=\$$ac_var
1220  # Remove trailing slashes.
1221  case $ac_val in
1222    */ )
1223      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224      eval $ac_var=\$ac_val;;
1225  esac
1226  # Be sure to have absolute directory names.
1227  case $ac_val in
1228    [\\/$]* | ?:[\\/]* )  continue;;
1229    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230  esac
1231  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243  if test "x$build_alias" = x; then
1244    cross_compiling=maybe
1245    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1246    If a cross compiler is detected then cross compile mode will be used" >&2
1247  elif test "x$build_alias" != "x$host_alias"; then
1248    cross_compiling=yes
1249  fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261  as_fn_error $? "working directory cannot be determined"
1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263  as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268  ac_srcdir_defaulted=yes
1269  # Try the directory containing this script, then the parent directory.
1270  ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272	 X"$as_myself" : 'X\(//\)[^/]' \| \
1273	 X"$as_myself" : 'X\(//\)$' \| \
1274	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" |
1276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\/\)[^/].*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\).*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  s/.*/./; q'`
1293  srcdir=$ac_confdir
1294  if test ! -r "$srcdir/$ac_unique_file"; then
1295    srcdir=..
1296  fi
1297else
1298  ac_srcdir_defaulted=no
1299fi
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307	pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310  srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320  eval ac_env_${ac_var}_value=\$${ac_var}
1321  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
1324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329  # Omit some internal or obsolete options to make the list less imposing.
1330  # This message is too long to be a string in the A/UX 3.1 sh.
1331  cat <<_ACEOF
1332\`configure' configures libfontenc 1.1.2 to adapt to many kinds of systems.
1333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342  -h, --help              display this help and exit
1343      --help=short        display options specific to this package
1344      --help=recursive    display the short help of all the included packages
1345  -V, --version           display version information and exit
1346  -q, --quiet, --silent   do not print \`checking ...' messages
1347      --cache-file=FILE   cache test results in FILE [disabled]
1348  -C, --config-cache      alias for \`--cache-file=config.cache'
1349  -n, --no-create         do not create output files
1350      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352Installation directories:
1353  --prefix=PREFIX         install architecture-independent files in PREFIX
1354                          [$ac_default_prefix]
1355  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                          [PREFIX]
1357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
1366  --bindir=DIR            user executables [EPREFIX/bin]
1367  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1368  --libexecdir=DIR        program executables [EPREFIX/libexec]
1369  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1370  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1371  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1372  --libdir=DIR            object code libraries [EPREFIX/lib]
1373  --includedir=DIR        C header files [PREFIX/include]
1374  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1375  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1376  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1377  --infodir=DIR           info documentation [DATAROOTDIR/info]
1378  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1379  --mandir=DIR            man documentation [DATAROOTDIR/man]
1380  --docdir=DIR            documentation root [DATAROOTDIR/doc/libfontenc]
1381  --htmldir=DIR           html documentation [DOCDIR]
1382  --dvidir=DIR            dvi documentation [DOCDIR]
1383  --pdfdir=DIR            pdf documentation [DOCDIR]
1384  --psdir=DIR             ps documentation [DOCDIR]
1385_ACEOF
1386
1387  cat <<\_ACEOF
1388
1389Program names:
1390  --program-prefix=PREFIX            prepend PREFIX to installed program names
1391  --program-suffix=SUFFIX            append SUFFIX to installed program names
1392  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1393
1394System types:
1395  --build=BUILD     configure for building on BUILD [guessed]
1396  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401  case $ac_init_help in
1402     short | recursive ) echo "Configuration of libfontenc 1.1.2:";;
1403   esac
1404  cat <<\_ACEOF
1405
1406Optional Features:
1407  --disable-option-checking  ignore unrecognized --enable/--with options
1408  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410  --enable-shared[=PKGS]  build shared libraries [default=yes]
1411  --enable-static[=PKGS]  build static libraries [default=yes]
1412  --enable-fast-install[=PKGS]
1413                          optimize for fast installation [default=yes]
1414  --disable-dependency-tracking  speeds up one-time build
1415  --enable-dependency-tracking   do not reject slow dependency extractors
1416  --disable-libtool-lock  avoid locking (might break parallel builds)
1417  --disable-selective-werror
1418                          Turn off selective compiler errors. (default:
1419                          enabled)
1420  --enable-strict-compilation
1421                          Enable all warnings from compiler and make them
1422                          errors (default: disabled)
1423  --enable-silent-rules          less verbose build output (undo: `make V=1')
1424  --disable-silent-rules         verbose build output (undo: `make V=0')
1425
1426Optional Packages:
1427  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1430                          both]
1431  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432  --with-sysroot=DIR Search for dependent libraries within DIR
1433                        (or the compiler's sysroot if not specified).
1434  --with-fontrootdir=DIR  Path to root directory for font files
1435  --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
1436  --with-lint             Use a lint-style source code checker (default:
1437                          disabled)
1438
1439Some influential environment variables:
1440  CC          C compiler command
1441  CFLAGS      C compiler flags
1442  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1443              nonstandard directory <lib dir>
1444  LIBS        libraries to pass to the linker, e.g. -l<library>
1445  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446              you have headers in a nonstandard directory <include dir>
1447  CPP         C preprocessor
1448  PKG_CONFIG  path to pkg-config utility
1449  FONTENC_CFLAGS
1450              C compiler flags for FONTENC, overriding pkg-config
1451  FONTENC_LIBS
1452              linker flags for FONTENC, overriding pkg-config
1453  LINT        Path to a lint-style command
1454  LINT_FLAGS  Flags for the lint-style command
1455
1456Use these variables to override the choices made by `configure' or to help
1457it to find libraries and programs with nonstandard names/locations.
1458
1459Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1460_ACEOF
1461ac_status=$?
1462fi
1463
1464if test "$ac_init_help" = "recursive"; then
1465  # If there are subdirs, report their specific --help.
1466  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467    test -d "$ac_dir" ||
1468      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469      continue
1470    ac_builddir=.
1471
1472case "$ac_dir" in
1473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474*)
1475  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476  # A ".." for each directory in $ac_dir_suffix.
1477  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478  case $ac_top_builddir_sub in
1479  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481  esac ;;
1482esac
1483ac_abs_top_builddir=$ac_pwd
1484ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485# for backward compatibility:
1486ac_top_builddir=$ac_top_build_prefix
1487
1488case $srcdir in
1489  .)  # We are building in place.
1490    ac_srcdir=.
1491    ac_top_srcdir=$ac_top_builddir_sub
1492    ac_abs_top_srcdir=$ac_pwd ;;
1493  [\\/]* | ?:[\\/]* )  # Absolute name.
1494    ac_srcdir=$srcdir$ac_dir_suffix;
1495    ac_top_srcdir=$srcdir
1496    ac_abs_top_srcdir=$srcdir ;;
1497  *) # Relative name.
1498    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499    ac_top_srcdir=$ac_top_build_prefix$srcdir
1500    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501esac
1502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504    cd "$ac_dir" || { ac_status=$?; continue; }
1505    # Check for guested configure.
1506    if test -f "$ac_srcdir/configure.gnu"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509    elif test -f "$ac_srcdir/configure"; then
1510      echo &&
1511      $SHELL "$ac_srcdir/configure" --help=recursive
1512    else
1513      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514    fi || ac_status=$?
1515    cd "$ac_pwd" || { ac_status=$?; break; }
1516  done
1517fi
1518
1519test -n "$ac_init_help" && exit $ac_status
1520if $ac_init_version; then
1521  cat <<\_ACEOF
1522libfontenc configure 1.1.2
1523generated by GNU Autoconf 2.68
1524
1525Copyright (C) 2010 Free Software Foundation, Inc.
1526This configure script is free software; the Free Software Foundation
1527gives unlimited permission to copy, distribute and modify it.
1528_ACEOF
1529  exit
1530fi
1531
1532## ------------------------ ##
1533## Autoconf initialization. ##
1534## ------------------------ ##
1535
1536# ac_fn_c_try_compile LINENO
1537# --------------------------
1538# Try to compile conftest.$ac_ext, and return whether this succeeded.
1539ac_fn_c_try_compile ()
1540{
1541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542  rm -f conftest.$ac_objext
1543  if { { ac_try="$ac_compile"
1544case "(($ac_try" in
1545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546  *) ac_try_echo=$ac_try;;
1547esac
1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549$as_echo "$ac_try_echo"; } >&5
1550  (eval "$ac_compile") 2>conftest.err
1551  ac_status=$?
1552  if test -s conftest.err; then
1553    grep -v '^ *+' conftest.err >conftest.er1
1554    cat conftest.er1 >&5
1555    mv -f conftest.er1 conftest.err
1556  fi
1557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558  test $ac_status = 0; } && {
1559	 test -z "$ac_c_werror_flag" ||
1560	 test ! -s conftest.err
1561       } && test -s conftest.$ac_objext; then :
1562  ac_retval=0
1563else
1564  $as_echo "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
1567	ac_retval=1
1568fi
1569  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570  as_fn_set_status $ac_retval
1571
1572} # ac_fn_c_try_compile
1573
1574# ac_fn_c_try_link LINENO
1575# -----------------------
1576# Try to link conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_link ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  rm -f conftest.$ac_objext conftest$ac_exeext
1581  if { { ac_try="$ac_link"
1582case "(($ac_try" in
1583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584  *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588  (eval "$ac_link") 2>conftest.err
1589  ac_status=$?
1590  if test -s conftest.err; then
1591    grep -v '^ *+' conftest.err >conftest.er1
1592    cat conftest.er1 >&5
1593    mv -f conftest.er1 conftest.err
1594  fi
1595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596  test $ac_status = 0; } && {
1597	 test -z "$ac_c_werror_flag" ||
1598	 test ! -s conftest.err
1599       } && test -s conftest$ac_exeext && {
1600	 test "$cross_compiling" = yes ||
1601	 $as_test_x conftest$ac_exeext
1602       }; then :
1603  ac_retval=0
1604else
1605  $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608	ac_retval=1
1609fi
1610  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1611  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1612  # interfere with the next link command; also delete a directory that is
1613  # left behind by Apple's compiler.  We do this before executing the actions.
1614  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616  as_fn_set_status $ac_retval
1617
1618} # ac_fn_c_try_link
1619
1620# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621# -------------------------------------------------------
1622# Tests whether HEADER exists and can be compiled using the include files in
1623# INCLUDES, setting the cache variable VAR accordingly.
1624ac_fn_c_check_header_compile ()
1625{
1626  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628$as_echo_n "checking for $2... " >&6; }
1629if eval \${$3+:} false; then :
1630  $as_echo_n "(cached) " >&6
1631else
1632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633/* end confdefs.h.  */
1634$4
1635#include <$2>
1636_ACEOF
1637if ac_fn_c_try_compile "$LINENO"; then :
1638  eval "$3=yes"
1639else
1640  eval "$3=no"
1641fi
1642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643fi
1644eval ac_res=\$$3
1645	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646$as_echo "$ac_res" >&6; }
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649} # ac_fn_c_check_header_compile
1650
1651# ac_fn_c_try_cpp LINENO
1652# ----------------------
1653# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_cpp ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  if { { ac_try="$ac_cpp conftest.$ac_ext"
1658case "(($ac_try" in
1659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660  *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665  ac_status=$?
1666  if test -s conftest.err; then
1667    grep -v '^ *+' conftest.err >conftest.er1
1668    cat conftest.er1 >&5
1669    mv -f conftest.er1 conftest.err
1670  fi
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; } > conftest.i && {
1673	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674	 test ! -s conftest.err
1675       }; then :
1676  ac_retval=0
1677else
1678  $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681    ac_retval=1
1682fi
1683  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684  as_fn_set_status $ac_retval
1685
1686} # ac_fn_c_try_cpp
1687
1688# ac_fn_c_try_run LINENO
1689# ----------------------
1690# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691# that executables *can* be run.
1692ac_fn_c_try_run ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  if { { ac_try="$ac_link"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_link") 2>&5
1703  ac_status=$?
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706  { { case "(($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_try") 2>&5
1713  ac_status=$?
1714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715  test $ac_status = 0; }; }; then :
1716  ac_retval=0
1717else
1718  $as_echo "$as_me: program exited with status $ac_status" >&5
1719       $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722       ac_retval=$ac_status
1723fi
1724  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726  as_fn_set_status $ac_retval
1727
1728} # ac_fn_c_try_run
1729
1730# ac_fn_c_check_func LINENO FUNC VAR
1731# ----------------------------------
1732# Tests whether FUNC exists, setting the cache variable VAR accordingly
1733ac_fn_c_check_func ()
1734{
1735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737$as_echo_n "checking for $2... " >&6; }
1738if eval \${$3+:} false; then :
1739  $as_echo_n "(cached) " >&6
1740else
1741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h.  */
1743/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1745#define $2 innocuous_$2
1746
1747/* System header to define __stub macros and hopefully few prototypes,
1748    which can conflict with char $2 (); below.
1749    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750    <limits.h> exists even on freestanding compilers.  */
1751
1752#ifdef __STDC__
1753# include <limits.h>
1754#else
1755# include <assert.h>
1756#endif
1757
1758#undef $2
1759
1760/* Override any GCC internal prototype to avoid an error.
1761   Use char because int might match the return type of a GCC
1762   builtin and then its argument prototype would still apply.  */
1763#ifdef __cplusplus
1764extern "C"
1765#endif
1766char $2 ();
1767/* The GNU C library defines this for functions which it implements
1768    to always fail with ENOSYS.  Some functions are actually named
1769    something starting with __ and the normal name is an alias.  */
1770#if defined __stub_$2 || defined __stub___$2
1771choke me
1772#endif
1773
1774int
1775main ()
1776{
1777return $2 ();
1778  ;
1779  return 0;
1780}
1781_ACEOF
1782if ac_fn_c_try_link "$LINENO"; then :
1783  eval "$3=yes"
1784else
1785  eval "$3=no"
1786fi
1787rm -f core conftest.err conftest.$ac_objext \
1788    conftest$ac_exeext conftest.$ac_ext
1789fi
1790eval ac_res=\$$3
1791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795} # ac_fn_c_check_func
1796
1797# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1798# ---------------------------------------------
1799# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1800# accordingly.
1801ac_fn_c_check_decl ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  as_decl_name=`echo $2|sed 's/ *(.*//'`
1805  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1807$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1808if eval \${$3+:} false; then :
1809  $as_echo_n "(cached) " >&6
1810else
1811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813$4
1814int
1815main ()
1816{
1817#ifndef $as_decl_name
1818#ifdef __cplusplus
1819  (void) $as_decl_use;
1820#else
1821  (void) $as_decl_name;
1822#endif
1823#endif
1824
1825  ;
1826  return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"; then :
1830  eval "$3=yes"
1831else
1832  eval "$3=no"
1833fi
1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835fi
1836eval ac_res=\$$3
1837	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838$as_echo "$ac_res" >&6; }
1839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841} # ac_fn_c_check_decl
1842
1843# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844# -------------------------------------------------------
1845# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846# the include files in INCLUDES and setting the cache variable VAR
1847# accordingly.
1848ac_fn_c_check_header_mongrel ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  if eval \${$3+:} false; then :
1852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if eval \${$3+:} false; then :
1855  $as_echo_n "(cached) " >&6
1856fi
1857eval ac_res=\$$3
1858	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859$as_echo "$ac_res" >&6; }
1860else
1861  # Is the header compilable?
1862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863$as_echo_n "checking $2 usability... " >&6; }
1864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866$4
1867#include <$2>
1868_ACEOF
1869if ac_fn_c_try_compile "$LINENO"; then :
1870  ac_header_compiler=yes
1871else
1872  ac_header_compiler=no
1873fi
1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876$as_echo "$ac_header_compiler" >&6; }
1877
1878# Is the header present?
1879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880$as_echo_n "checking $2 presence... " >&6; }
1881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882/* end confdefs.h.  */
1883#include <$2>
1884_ACEOF
1885if ac_fn_c_try_cpp "$LINENO"; then :
1886  ac_header_preproc=yes
1887else
1888  ac_header_preproc=no
1889fi
1890rm -f conftest.err conftest.i conftest.$ac_ext
1891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892$as_echo "$ac_header_preproc" >&6; }
1893
1894# So?  What about this header?
1895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896  yes:no: )
1897    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901    ;;
1902  no:yes:* )
1903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1906$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1910$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913( $as_echo "## ---------------------------------------------------------------------- ##
1914## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1915## ---------------------------------------------------------------------- ##"
1916     ) | sed "s/^/$as_me: WARNING:     /" >&2
1917    ;;
1918esac
1919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920$as_echo_n "checking for $2... " >&6; }
1921if eval \${$3+:} false; then :
1922  $as_echo_n "(cached) " >&6
1923else
1924  eval "$3=\$ac_header_compiler"
1925fi
1926eval ac_res=\$$3
1927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929fi
1930  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932} # ac_fn_c_check_header_mongrel
1933cat >config.log <<_ACEOF
1934This file contains any messages produced by compilers while
1935running configure, to aid debugging if configure makes a mistake.
1936
1937It was created by libfontenc $as_me 1.1.2, which was
1938generated by GNU Autoconf 2.68.  Invocation command line was
1939
1940  $ $0 $@
1941
1942_ACEOF
1943exec 5>>config.log
1944{
1945cat <<_ASUNAME
1946## --------- ##
1947## Platform. ##
1948## --------- ##
1949
1950hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1951uname -m = `(uname -m) 2>/dev/null || echo unknown`
1952uname -r = `(uname -r) 2>/dev/null || echo unknown`
1953uname -s = `(uname -s) 2>/dev/null || echo unknown`
1954uname -v = `(uname -v) 2>/dev/null || echo unknown`
1955
1956/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1957/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1958
1959/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1960/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1961/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1962/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1963/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1964/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1965/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1966
1967_ASUNAME
1968
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972  IFS=$as_save_IFS
1973  test -z "$as_dir" && as_dir=.
1974    $as_echo "PATH: $as_dir"
1975  done
1976IFS=$as_save_IFS
1977
1978} >&5
1979
1980cat >&5 <<_ACEOF
1981
1982
1983## ----------- ##
1984## Core tests. ##
1985## ----------- ##
1986
1987_ACEOF
1988
1989
1990# Keep a trace of the command line.
1991# Strip out --no-create and --no-recursion so they do not pile up.
1992# Strip out --silent because we don't want to record it for future runs.
1993# Also quote any args containing shell meta-characters.
1994# Make two passes to allow for proper duplicate-argument suppression.
1995ac_configure_args=
1996ac_configure_args0=
1997ac_configure_args1=
1998ac_must_keep_next=false
1999for ac_pass in 1 2
2000do
2001  for ac_arg
2002  do
2003    case $ac_arg in
2004    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2005    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2006    | -silent | --silent | --silen | --sile | --sil)
2007      continue ;;
2008    *\'*)
2009      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2010    esac
2011    case $ac_pass in
2012    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2013    2)
2014      as_fn_append ac_configure_args1 " '$ac_arg'"
2015      if test $ac_must_keep_next = true; then
2016	ac_must_keep_next=false # Got value, back to normal.
2017      else
2018	case $ac_arg in
2019	  *=* | --config-cache | -C | -disable-* | --disable-* \
2020	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2021	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2022	  | -with-* | --with-* | -without-* | --without-* | --x)
2023	    case "$ac_configure_args0 " in
2024	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2025	    esac
2026	    ;;
2027	  -* ) ac_must_keep_next=true ;;
2028	esac
2029      fi
2030      as_fn_append ac_configure_args " '$ac_arg'"
2031      ;;
2032    esac
2033  done
2034done
2035{ ac_configure_args0=; unset ac_configure_args0;}
2036{ ac_configure_args1=; unset ac_configure_args1;}
2037
2038# When interrupted or exit'd, cleanup temporary files, and complete
2039# config.log.  We remove comments because anyway the quotes in there
2040# would cause problems or look ugly.
2041# WARNING: Use '\'' to represent an apostrophe within the trap.
2042# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2043trap 'exit_status=$?
2044  # Save into config.log some information that might help in debugging.
2045  {
2046    echo
2047
2048    $as_echo "## ---------------- ##
2049## Cache variables. ##
2050## ---------------- ##"
2051    echo
2052    # The following way of writing the cache mishandles newlines in values,
2053(
2054  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2055    eval ac_val=\$$ac_var
2056    case $ac_val in #(
2057    *${as_nl}*)
2058      case $ac_var in #(
2059      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2060$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2061      esac
2062      case $ac_var in #(
2063      _ | IFS | as_nl) ;; #(
2064      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2065      *) { eval $ac_var=; unset $ac_var;} ;;
2066      esac ;;
2067    esac
2068  done
2069  (set) 2>&1 |
2070    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2071    *${as_nl}ac_space=\ *)
2072      sed -n \
2073	"s/'\''/'\''\\\\'\'''\''/g;
2074	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2075      ;; #(
2076    *)
2077      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2078      ;;
2079    esac |
2080    sort
2081)
2082    echo
2083
2084    $as_echo "## ----------------- ##
2085## Output variables. ##
2086## ----------------- ##"
2087    echo
2088    for ac_var in $ac_subst_vars
2089    do
2090      eval ac_val=\$$ac_var
2091      case $ac_val in
2092      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093      esac
2094      $as_echo "$ac_var='\''$ac_val'\''"
2095    done | sort
2096    echo
2097
2098    if test -n "$ac_subst_files"; then
2099      $as_echo "## ------------------- ##
2100## File substitutions. ##
2101## ------------------- ##"
2102      echo
2103      for ac_var in $ac_subst_files
2104      do
2105	eval ac_val=\$$ac_var
2106	case $ac_val in
2107	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108	esac
2109	$as_echo "$ac_var='\''$ac_val'\''"
2110      done | sort
2111      echo
2112    fi
2113
2114    if test -s confdefs.h; then
2115      $as_echo "## ----------- ##
2116## confdefs.h. ##
2117## ----------- ##"
2118      echo
2119      cat confdefs.h
2120      echo
2121    fi
2122    test "$ac_signal" != 0 &&
2123      $as_echo "$as_me: caught signal $ac_signal"
2124    $as_echo "$as_me: exit $exit_status"
2125  } >&5
2126  rm -f core *.core core.conftest.* &&
2127    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128    exit $exit_status
2129' 0
2130for ac_signal in 1 2 13 15; do
2131  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2132done
2133ac_signal=0
2134
2135# confdefs.h avoids OS command line length limits that DEFS can exceed.
2136rm -f -r conftest* confdefs.h
2137
2138$as_echo "/* confdefs.h */" > confdefs.h
2139
2140# Predefined preprocessor variables.
2141
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_NAME "$PACKAGE_NAME"
2144_ACEOF
2145
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148_ACEOF
2149
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_VERSION "$PACKAGE_VERSION"
2152_ACEOF
2153
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_STRING "$PACKAGE_STRING"
2156_ACEOF
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160_ACEOF
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_URL "$PACKAGE_URL"
2164_ACEOF
2165
2166
2167# Let the site file select an alternate cache file if it wants to.
2168# Prefer an explicitly selected file to automatically selected ones.
2169ac_site_file1=NONE
2170ac_site_file2=NONE
2171if test -n "$CONFIG_SITE"; then
2172  # We do not want a PATH search for config.site.
2173  case $CONFIG_SITE in #((
2174    -*)  ac_site_file1=./$CONFIG_SITE;;
2175    */*) ac_site_file1=$CONFIG_SITE;;
2176    *)   ac_site_file1=./$CONFIG_SITE;;
2177  esac
2178elif test "x$prefix" != xNONE; then
2179  ac_site_file1=$prefix/share/config.site
2180  ac_site_file2=$prefix/etc/config.site
2181else
2182  ac_site_file1=$ac_default_prefix/share/config.site
2183  ac_site_file2=$ac_default_prefix/etc/config.site
2184fi
2185for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2186do
2187  test "x$ac_site_file" = xNONE && continue
2188  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2189    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2190$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2191    sed 's/^/| /' "$ac_site_file" >&5
2192    . "$ac_site_file" \
2193      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2195as_fn_error $? "failed to load site script $ac_site_file
2196See \`config.log' for more details" "$LINENO" 5; }
2197  fi
2198done
2199
2200if test -r "$cache_file"; then
2201  # Some versions of bash will fail to source /dev/null (special files
2202  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2203  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2204    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2205$as_echo "$as_me: loading cache $cache_file" >&6;}
2206    case $cache_file in
2207      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2208      *)                      . "./$cache_file";;
2209    esac
2210  fi
2211else
2212  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2213$as_echo "$as_me: creating cache $cache_file" >&6;}
2214  >$cache_file
2215fi
2216
2217# Check that the precious variables saved in the cache have kept the same
2218# value.
2219ac_cache_corrupted=false
2220for ac_var in $ac_precious_vars; do
2221  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2222  eval ac_new_set=\$ac_env_${ac_var}_set
2223  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2224  eval ac_new_val=\$ac_env_${ac_var}_value
2225  case $ac_old_set,$ac_new_set in
2226    set,)
2227      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2228$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2229      ac_cache_corrupted=: ;;
2230    ,set)
2231      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2232$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2233      ac_cache_corrupted=: ;;
2234    ,);;
2235    *)
2236      if test "x$ac_old_val" != "x$ac_new_val"; then
2237	# differences in whitespace do not lead to failure.
2238	ac_old_val_w=`echo x $ac_old_val`
2239	ac_new_val_w=`echo x $ac_new_val`
2240	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2241	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2242$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2243	  ac_cache_corrupted=:
2244	else
2245	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2246$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2247	  eval $ac_var=\$ac_old_val
2248	fi
2249	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2250$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2251	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2252$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2253      fi;;
2254  esac
2255  # Pass precious variables to config.status.
2256  if test "$ac_new_set" = set; then
2257    case $ac_new_val in
2258    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2259    *) ac_arg=$ac_var=$ac_new_val ;;
2260    esac
2261    case " $ac_configure_args " in
2262      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2263      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2264    esac
2265  fi
2266done
2267if $ac_cache_corrupted; then
2268  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2270  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2271$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2272  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2273fi
2274## -------------------- ##
2275## Main body of script. ##
2276## -------------------- ##
2277
2278ac_ext=c
2279ac_cpp='$CPP $CPPFLAGS'
2280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
2284
2285
2286ac_config_headers="$ac_config_headers config.h"
2287
2288
2289# Initialize Automake
2290am__api_version='1.11'
2291
2292ac_aux_dir=
2293for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2294  if test -f "$ac_dir/install-sh"; then
2295    ac_aux_dir=$ac_dir
2296    ac_install_sh="$ac_aux_dir/install-sh -c"
2297    break
2298  elif test -f "$ac_dir/install.sh"; then
2299    ac_aux_dir=$ac_dir
2300    ac_install_sh="$ac_aux_dir/install.sh -c"
2301    break
2302  elif test -f "$ac_dir/shtool"; then
2303    ac_aux_dir=$ac_dir
2304    ac_install_sh="$ac_aux_dir/shtool install -c"
2305    break
2306  fi
2307done
2308if test -z "$ac_aux_dir"; then
2309  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2310fi
2311
2312# These three variables are undocumented and unsupported,
2313# and are intended to be withdrawn in a future Autoconf release.
2314# They can cause serious problems if a builder's source tree is in a directory
2315# whose full name contains unusual characters.
2316ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2317ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2318ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2319
2320
2321# Find a good install program.  We prefer a C program (faster),
2322# so one script is as good as another.  But avoid the broken or
2323# incompatible versions:
2324# SysV /etc/install, /usr/sbin/install
2325# SunOS /usr/etc/install
2326# IRIX /sbin/install
2327# AIX /bin/install
2328# AmigaOS /C/install, which installs bootblocks on floppy discs
2329# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2330# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2331# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2332# OS/2's system install, which has a completely different semantic
2333# ./install, which can be erroneously created by make from ./install.sh.
2334# Reject install programs that cannot install multiple files.
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2336$as_echo_n "checking for a BSD-compatible install... " >&6; }
2337if test -z "$INSTALL"; then
2338if ${ac_cv_path_install+:} false; then :
2339  $as_echo_n "(cached) " >&6
2340else
2341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344  IFS=$as_save_IFS
2345  test -z "$as_dir" && as_dir=.
2346    # Account for people who put trailing slashes in PATH elements.
2347case $as_dir/ in #((
2348  ./ | .// | /[cC]/* | \
2349  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2351  /usr/ucb/* ) ;;
2352  *)
2353    # OSF1 and SCO ODT 3.0 have their own names for install.
2354    # Don't use installbsd from OSF since it installs stuff as root
2355    # by default.
2356    for ac_prog in ginstall scoinst install; do
2357      for ac_exec_ext in '' $ac_executable_extensions; do
2358	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2359	  if test $ac_prog = install &&
2360	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361	    # AIX install.  It has an incompatible calling convention.
2362	    :
2363	  elif test $ac_prog = install &&
2364	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365	    # program-specific install script used by HP pwplus--don't use.
2366	    :
2367	  else
2368	    rm -rf conftest.one conftest.two conftest.dir
2369	    echo one > conftest.one
2370	    echo two > conftest.two
2371	    mkdir conftest.dir
2372	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2373	      test -s conftest.one && test -s conftest.two &&
2374	      test -s conftest.dir/conftest.one &&
2375	      test -s conftest.dir/conftest.two
2376	    then
2377	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2378	      break 3
2379	    fi
2380	  fi
2381	fi
2382      done
2383    done
2384    ;;
2385esac
2386
2387  done
2388IFS=$as_save_IFS
2389
2390rm -rf conftest.one conftest.two conftest.dir
2391
2392fi
2393  if test "${ac_cv_path_install+set}" = set; then
2394    INSTALL=$ac_cv_path_install
2395  else
2396    # As a last resort, use the slow shell script.  Don't cache a
2397    # value for INSTALL within a source directory, because that will
2398    # break other packages using the cache if that directory is
2399    # removed, or if the value is a relative name.
2400    INSTALL=$ac_install_sh
2401  fi
2402fi
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2404$as_echo "$INSTALL" >&6; }
2405
2406# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2407# It thinks the first close brace ends the variable substitution.
2408test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2409
2410test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2411
2412test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2413
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2415$as_echo_n "checking whether build environment is sane... " >&6; }
2416# Just in case
2417sleep 1
2418echo timestamp > conftest.file
2419# Reject unsafe characters in $srcdir or the absolute working directory
2420# name.  Accept space and tab only in the latter.
2421am_lf='
2422'
2423case `pwd` in
2424  *[\\\"\#\$\&\'\`$am_lf]*)
2425    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2426esac
2427case $srcdir in
2428  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2429    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2430esac
2431
2432# Do `set' in a subshell so we don't clobber the current shell's
2433# arguments.  Must try -L first in case configure is actually a
2434# symlink; some systems play weird games with the mod time of symlinks
2435# (eg FreeBSD returns the mod time of the symlink's containing
2436# directory).
2437if (
2438   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2439   if test "$*" = "X"; then
2440      # -L didn't work.
2441      set X `ls -t "$srcdir/configure" conftest.file`
2442   fi
2443   rm -f conftest.file
2444   if test "$*" != "X $srcdir/configure conftest.file" \
2445      && test "$*" != "X conftest.file $srcdir/configure"; then
2446
2447      # If neither matched, then we have a broken ls.  This can happen
2448      # if, for instance, CONFIG_SHELL is bash and it inherits a
2449      # broken ls alias from the environment.  This has actually
2450      # happened.  Such a system could not be considered "sane".
2451      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2452alias in your environment" "$LINENO" 5
2453   fi
2454
2455   test "$2" = conftest.file
2456   )
2457then
2458   # Ok.
2459   :
2460else
2461   as_fn_error $? "newly created file is older than distributed files!
2462Check your system clock" "$LINENO" 5
2463fi
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465$as_echo "yes" >&6; }
2466test "$program_prefix" != NONE &&
2467  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2468# Use a double $ so make ignores it.
2469test "$program_suffix" != NONE &&
2470  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2471# Double any \ or $.
2472# By default was `s,x,x', remove it if useless.
2473ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2474program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2475
2476# expand $ac_aux_dir to an absolute path
2477am_aux_dir=`cd $ac_aux_dir && pwd`
2478
2479if test x"${MISSING+set}" != xset; then
2480  case $am_aux_dir in
2481  *\ * | *\	*)
2482    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2483  *)
2484    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2485  esac
2486fi
2487# Use eval to expand $SHELL
2488if eval "$MISSING --run true"; then
2489  am_missing_run="$MISSING --run "
2490else
2491  am_missing_run=
2492  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2493$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2494fi
2495
2496if test x"${install_sh}" != xset; then
2497  case $am_aux_dir in
2498  *\ * | *\	*)
2499    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2500  *)
2501    install_sh="\${SHELL} $am_aux_dir/install-sh"
2502  esac
2503fi
2504
2505# Installed binaries are usually stripped using `strip' when the user
2506# run `make install-strip'.  However `strip' might not be the right
2507# tool to use in cross-compilation environments, therefore Automake
2508# will honor the `STRIP' environment variable to overrule this program.
2509if test "$cross_compiling" != no; then
2510  if test -n "$ac_tool_prefix"; then
2511  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2512set dummy ${ac_tool_prefix}strip; ac_word=$2
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if ${ac_cv_prog_STRIP+:} false; then :
2516  $as_echo_n "(cached) " >&6
2517else
2518  if test -n "$STRIP"; then
2519  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524  IFS=$as_save_IFS
2525  test -z "$as_dir" && as_dir=.
2526    for ac_exec_ext in '' $ac_executable_extensions; do
2527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530    break 2
2531  fi
2532done
2533  done
2534IFS=$as_save_IFS
2535
2536fi
2537fi
2538STRIP=$ac_cv_prog_STRIP
2539if test -n "$STRIP"; then
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2541$as_echo "$STRIP" >&6; }
2542else
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
2545fi
2546
2547
2548fi
2549if test -z "$ac_cv_prog_STRIP"; then
2550  ac_ct_STRIP=$STRIP
2551  # Extract the first word of "strip", so it can be a program name with args.
2552set dummy strip; ac_word=$2
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2556  $as_echo_n "(cached) " >&6
2557else
2558  if test -n "$ac_ct_STRIP"; then
2559  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564  IFS=$as_save_IFS
2565  test -z "$as_dir" && as_dir=.
2566    for ac_exec_ext in '' $ac_executable_extensions; do
2567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568    ac_cv_prog_ac_ct_STRIP="strip"
2569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570    break 2
2571  fi
2572done
2573  done
2574IFS=$as_save_IFS
2575
2576fi
2577fi
2578ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2579if test -n "$ac_ct_STRIP"; then
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2581$as_echo "$ac_ct_STRIP" >&6; }
2582else
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
2585fi
2586
2587  if test "x$ac_ct_STRIP" = x; then
2588    STRIP=":"
2589  else
2590    case $cross_compiling:$ac_tool_warned in
2591yes:)
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594ac_tool_warned=yes ;;
2595esac
2596    STRIP=$ac_ct_STRIP
2597  fi
2598else
2599  STRIP="$ac_cv_prog_STRIP"
2600fi
2601
2602fi
2603INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2604
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2606$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2607if test -z "$MKDIR_P"; then
2608  if ${ac_cv_path_mkdir+:} false; then :
2609  $as_echo_n "(cached) " >&6
2610else
2611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616    for ac_prog in mkdir gmkdir; do
2617	 for ac_exec_ext in '' $ac_executable_extensions; do
2618	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2619	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2620	     'mkdir (GNU coreutils) '* | \
2621	     'mkdir (coreutils) '* | \
2622	     'mkdir (fileutils) '4.1*)
2623	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2624	       break 3;;
2625	   esac
2626	 done
2627       done
2628  done
2629IFS=$as_save_IFS
2630
2631fi
2632
2633  test -d ./--version && rmdir ./--version
2634  if test "${ac_cv_path_mkdir+set}" = set; then
2635    MKDIR_P="$ac_cv_path_mkdir -p"
2636  else
2637    # As a last resort, use the slow shell script.  Don't cache a
2638    # value for MKDIR_P within a source directory, because that will
2639    # break other packages using the cache if that directory is
2640    # removed, or if the value is a relative name.
2641    MKDIR_P="$ac_install_sh -d"
2642  fi
2643fi
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2645$as_echo "$MKDIR_P" >&6; }
2646
2647mkdir_p="$MKDIR_P"
2648case $mkdir_p in
2649  [\\/$]* | ?:[\\/]*) ;;
2650  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2651esac
2652
2653for ac_prog in gawk mawk nawk awk
2654do
2655  # Extract the first word of "$ac_prog", so it can be a program name with args.
2656set dummy $ac_prog; ac_word=$2
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658$as_echo_n "checking for $ac_word... " >&6; }
2659if ${ac_cv_prog_AWK+:} false; then :
2660  $as_echo_n "(cached) " >&6
2661else
2662  if test -n "$AWK"; then
2663  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668  IFS=$as_save_IFS
2669  test -z "$as_dir" && as_dir=.
2670    for ac_exec_ext in '' $ac_executable_extensions; do
2671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672    ac_cv_prog_AWK="$ac_prog"
2673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674    break 2
2675  fi
2676done
2677  done
2678IFS=$as_save_IFS
2679
2680fi
2681fi
2682AWK=$ac_cv_prog_AWK
2683if test -n "$AWK"; then
2684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2685$as_echo "$AWK" >&6; }
2686else
2687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688$as_echo "no" >&6; }
2689fi
2690
2691
2692  test -n "$AWK" && break
2693done
2694
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2696$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2697set x ${MAKE-make}
2698ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2699if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2700  $as_echo_n "(cached) " >&6
2701else
2702  cat >conftest.make <<\_ACEOF
2703SHELL = /bin/sh
2704all:
2705	@echo '@@@%%%=$(MAKE)=@@@%%%'
2706_ACEOF
2707# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2708case `${MAKE-make} -f conftest.make 2>/dev/null` in
2709  *@@@%%%=?*=@@@%%%*)
2710    eval ac_cv_prog_make_${ac_make}_set=yes;;
2711  *)
2712    eval ac_cv_prog_make_${ac_make}_set=no;;
2713esac
2714rm -f conftest.make
2715fi
2716if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2718$as_echo "yes" >&6; }
2719  SET_MAKE=
2720else
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722$as_echo "no" >&6; }
2723  SET_MAKE="MAKE=${MAKE-make}"
2724fi
2725
2726rm -rf .tst 2>/dev/null
2727mkdir .tst 2>/dev/null
2728if test -d .tst; then
2729  am__leading_dot=.
2730else
2731  am__leading_dot=_
2732fi
2733rmdir .tst 2>/dev/null
2734
2735if test "`cd $srcdir && pwd`" != "`pwd`"; then
2736  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2737  # is not polluted with repeated "-I."
2738  am__isrc=' -I$(srcdir)'
2739  # test to see if srcdir already configured
2740  if test -f $srcdir/config.status; then
2741    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2742  fi
2743fi
2744
2745# test whether we have cygpath
2746if test -z "$CYGPATH_W"; then
2747  if (cygpath --version) >/dev/null 2>/dev/null; then
2748    CYGPATH_W='cygpath -w'
2749  else
2750    CYGPATH_W=echo
2751  fi
2752fi
2753
2754
2755# Define the identity of the package.
2756 PACKAGE='libfontenc'
2757 VERSION='1.1.2'
2758
2759
2760cat >>confdefs.h <<_ACEOF
2761#define PACKAGE "$PACKAGE"
2762_ACEOF
2763
2764
2765cat >>confdefs.h <<_ACEOF
2766#define VERSION "$VERSION"
2767_ACEOF
2768
2769# Some tools Automake needs.
2770
2771ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2772
2773
2774AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2775
2776
2777AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2778
2779
2780AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2781
2782
2783MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2784
2785# We need awk for the "check" target.  The system "awk" is bad on
2786# some platforms.
2787# Always define AMTAR for backward compatibility.
2788
2789AMTAR=${AMTAR-"${am_missing_run}tar"}
2790
2791am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2792
2793
2794
2795
2796
2797
2798# Initialize libtool
2799case `pwd` in
2800  *\ * | *\	*)
2801    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2802$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2803esac
2804
2805
2806
2807macro_version='2.4.2'
2808macro_revision='1.3337'
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822ltmain="$ac_aux_dir/ltmain.sh"
2823
2824# Make sure we can run config.sub.
2825$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2826  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2827
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2829$as_echo_n "checking build system type... " >&6; }
2830if ${ac_cv_build+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  ac_build_alias=$build_alias
2834test "x$ac_build_alias" = x &&
2835  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2836test "x$ac_build_alias" = x &&
2837  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2838ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2839  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2840
2841fi
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2843$as_echo "$ac_cv_build" >&6; }
2844case $ac_cv_build in
2845*-*-*) ;;
2846*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2847esac
2848build=$ac_cv_build
2849ac_save_IFS=$IFS; IFS='-'
2850set x $ac_cv_build
2851shift
2852build_cpu=$1
2853build_vendor=$2
2854shift; shift
2855# Remember, the first character of IFS is used to create $*,
2856# except with old shells:
2857build_os=$*
2858IFS=$ac_save_IFS
2859case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2860
2861
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2863$as_echo_n "checking host system type... " >&6; }
2864if ${ac_cv_host+:} false; then :
2865  $as_echo_n "(cached) " >&6
2866else
2867  if test "x$host_alias" = x; then
2868  ac_cv_host=$ac_cv_build
2869else
2870  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2871    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2872fi
2873
2874fi
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2876$as_echo "$ac_cv_host" >&6; }
2877case $ac_cv_host in
2878*-*-*) ;;
2879*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2880esac
2881host=$ac_cv_host
2882ac_save_IFS=$IFS; IFS='-'
2883set x $ac_cv_host
2884shift
2885host_cpu=$1
2886host_vendor=$2
2887shift; shift
2888# Remember, the first character of IFS is used to create $*,
2889# except with old shells:
2890host_os=$*
2891IFS=$ac_save_IFS
2892case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2893
2894
2895# Backslashify metacharacters that are still active within
2896# double-quoted strings.
2897sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2898
2899# Same as above, but do not quote variable references.
2900double_quote_subst='s/\(["`\\]\)/\\\1/g'
2901
2902# Sed substitution to delay expansion of an escaped shell variable in a
2903# double_quote_subst'ed string.
2904delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2905
2906# Sed substitution to delay expansion of an escaped single quote.
2907delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2908
2909# Sed substitution to avoid accidental globbing in evaled expressions
2910no_glob_subst='s/\*/\\\*/g'
2911
2912ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2913ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2914ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2915
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2917$as_echo_n "checking how to print strings... " >&6; }
2918# Test print first, because it will be a builtin if present.
2919if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2920   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2921  ECHO='print -r --'
2922elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2923  ECHO='printf %s\n'
2924else
2925  # Use this function as a fallback that always works.
2926  func_fallback_echo ()
2927  {
2928    eval 'cat <<_LTECHO_EOF
2929$1
2930_LTECHO_EOF'
2931  }
2932  ECHO='func_fallback_echo'
2933fi
2934
2935# func_echo_all arg...
2936# Invoke $ECHO with all args, space-separated.
2937func_echo_all ()
2938{
2939    $ECHO ""
2940}
2941
2942case "$ECHO" in
2943  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2944$as_echo "printf" >&6; } ;;
2945  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2946$as_echo "print -r" >&6; } ;;
2947  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2948$as_echo "cat" >&6; } ;;
2949esac
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964DEPDIR="${am__leading_dot}deps"
2965
2966ac_config_commands="$ac_config_commands depfiles"
2967
2968
2969am_make=${MAKE-make}
2970cat > confinc << 'END'
2971am__doit:
2972	@echo this is the am__doit target
2973.PHONY: am__doit
2974END
2975# If we don't find an include directive, just comment out the code.
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2977$as_echo_n "checking for style of include used by $am_make... " >&6; }
2978am__include="#"
2979am__quote=
2980_am_result=none
2981# First try GNU make style include.
2982echo "include confinc" > confmf
2983# Ignore all kinds of additional output from `make'.
2984case `$am_make -s -f confmf 2> /dev/null` in #(
2985*the\ am__doit\ target*)
2986  am__include=include
2987  am__quote=
2988  _am_result=GNU
2989  ;;
2990esac
2991# Now try BSD make style include.
2992if test "$am__include" = "#"; then
2993   echo '.include "confinc"' > confmf
2994   case `$am_make -s -f confmf 2> /dev/null` in #(
2995   *the\ am__doit\ target*)
2996     am__include=.include
2997     am__quote="\""
2998     _am_result=BSD
2999     ;;
3000   esac
3001fi
3002
3003
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3005$as_echo "$_am_result" >&6; }
3006rm -f confinc confmf
3007
3008# Check whether --enable-dependency-tracking was given.
3009if test "${enable_dependency_tracking+set}" = set; then :
3010  enableval=$enable_dependency_tracking;
3011fi
3012
3013if test "x$enable_dependency_tracking" != xno; then
3014  am_depcomp="$ac_aux_dir/depcomp"
3015  AMDEPBACKSLASH='\'
3016  am__nodep='_no'
3017fi
3018 if test "x$enable_dependency_tracking" != xno; then
3019  AMDEP_TRUE=
3020  AMDEP_FALSE='#'
3021else
3022  AMDEP_TRUE='#'
3023  AMDEP_FALSE=
3024fi
3025
3026
3027ac_ext=c
3028ac_cpp='$CPP $CPPFLAGS'
3029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032if test -n "$ac_tool_prefix"; then
3033  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3034set dummy ${ac_tool_prefix}gcc; ac_word=$2
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036$as_echo_n "checking for $ac_word... " >&6; }
3037if ${ac_cv_prog_CC+:} false; then :
3038  $as_echo_n "(cached) " >&6
3039else
3040  if test -n "$CC"; then
3041  ac_cv_prog_CC="$CC" # Let the user override the test.
3042else
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046  IFS=$as_save_IFS
3047  test -z "$as_dir" && as_dir=.
3048    for ac_exec_ext in '' $ac_executable_extensions; do
3049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054done
3055  done
3056IFS=$as_save_IFS
3057
3058fi
3059fi
3060CC=$ac_cv_prog_CC
3061if test -n "$CC"; then
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063$as_echo "$CC" >&6; }
3064else
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066$as_echo "no" >&6; }
3067fi
3068
3069
3070fi
3071if test -z "$ac_cv_prog_CC"; then
3072  ac_ct_CC=$CC
3073  # Extract the first word of "gcc", so it can be a program name with args.
3074set dummy gcc; ac_word=$2
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076$as_echo_n "checking for $ac_word... " >&6; }
3077if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078  $as_echo_n "(cached) " >&6
3079else
3080  if test -n "$ac_ct_CC"; then
3081  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088    for ac_exec_ext in '' $ac_executable_extensions; do
3089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090    ac_cv_prog_ac_ct_CC="gcc"
3091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092    break 2
3093  fi
3094done
3095  done
3096IFS=$as_save_IFS
3097
3098fi
3099fi
3100ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101if test -n "$ac_ct_CC"; then
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103$as_echo "$ac_ct_CC" >&6; }
3104else
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106$as_echo "no" >&6; }
3107fi
3108
3109  if test "x$ac_ct_CC" = x; then
3110    CC=""
3111  else
3112    case $cross_compiling:$ac_tool_warned in
3113yes:)
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116ac_tool_warned=yes ;;
3117esac
3118    CC=$ac_ct_CC
3119  fi
3120else
3121  CC="$ac_cv_prog_CC"
3122fi
3123
3124if test -z "$CC"; then
3125          if test -n "$ac_tool_prefix"; then
3126    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3127set dummy ${ac_tool_prefix}cc; ac_word=$2
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129$as_echo_n "checking for $ac_word... " >&6; }
3130if ${ac_cv_prog_CC+:} false; then :
3131  $as_echo_n "(cached) " >&6
3132else
3133  if test -n "$CC"; then
3134  ac_cv_prog_CC="$CC" # Let the user override the test.
3135else
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139  IFS=$as_save_IFS
3140  test -z "$as_dir" && as_dir=.
3141    for ac_exec_ext in '' $ac_executable_extensions; do
3142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143    ac_cv_prog_CC="${ac_tool_prefix}cc"
3144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145    break 2
3146  fi
3147done
3148  done
3149IFS=$as_save_IFS
3150
3151fi
3152fi
3153CC=$ac_cv_prog_CC
3154if test -n "$CC"; then
3155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156$as_echo "$CC" >&6; }
3157else
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159$as_echo "no" >&6; }
3160fi
3161
3162
3163  fi
3164fi
3165if test -z "$CC"; then
3166  # Extract the first word of "cc", so it can be a program name with args.
3167set dummy cc; ac_word=$2
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169$as_echo_n "checking for $ac_word... " >&6; }
3170if ${ac_cv_prog_CC+:} false; then :
3171  $as_echo_n "(cached) " >&6
3172else
3173  if test -n "$CC"; then
3174  ac_cv_prog_CC="$CC" # Let the user override the test.
3175else
3176  ac_prog_rejected=no
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180  IFS=$as_save_IFS
3181  test -z "$as_dir" && as_dir=.
3182    for ac_exec_ext in '' $ac_executable_extensions; do
3183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3185       ac_prog_rejected=yes
3186       continue
3187     fi
3188    ac_cv_prog_CC="cc"
3189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190    break 2
3191  fi
3192done
3193  done
3194IFS=$as_save_IFS
3195
3196if test $ac_prog_rejected = yes; then
3197  # We found a bogon in the path, so make sure we never use it.
3198  set dummy $ac_cv_prog_CC
3199  shift
3200  if test $# != 0; then
3201    # We chose a different compiler from the bogus one.
3202    # However, it has the same basename, so the bogon will be chosen
3203    # first if we set CC to just the basename; use the full file name.
3204    shift
3205    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3206  fi
3207fi
3208fi
3209fi
3210CC=$ac_cv_prog_CC
3211if test -n "$CC"; then
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213$as_echo "$CC" >&6; }
3214else
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217fi
3218
3219
3220fi
3221if test -z "$CC"; then
3222  if test -n "$ac_tool_prefix"; then
3223  for ac_prog in cl.exe
3224  do
3225    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228$as_echo_n "checking for $ac_word... " >&6; }
3229if ${ac_cv_prog_CC+:} false; then :
3230  $as_echo_n "(cached) " >&6
3231else
3232  if test -n "$CC"; then
3233  ac_cv_prog_CC="$CC" # Let the user override the test.
3234else
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238  IFS=$as_save_IFS
3239  test -z "$as_dir" && as_dir=.
3240    for ac_exec_ext in '' $ac_executable_extensions; do
3241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244    break 2
3245  fi
3246done
3247  done
3248IFS=$as_save_IFS
3249
3250fi
3251fi
3252CC=$ac_cv_prog_CC
3253if test -n "$CC"; then
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255$as_echo "$CC" >&6; }
3256else
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258$as_echo "no" >&6; }
3259fi
3260
3261
3262    test -n "$CC" && break
3263  done
3264fi
3265if test -z "$CC"; then
3266  ac_ct_CC=$CC
3267  for ac_prog in cl.exe
3268do
3269  # Extract the first word of "$ac_prog", so it can be a program name with args.
3270set dummy $ac_prog; ac_word=$2
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272$as_echo_n "checking for $ac_word... " >&6; }
3273if ${ac_cv_prog_ac_ct_CC+:} false; then :
3274  $as_echo_n "(cached) " >&6
3275else
3276  if test -n "$ac_ct_CC"; then
3277  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284    for ac_exec_ext in '' $ac_executable_extensions; do
3285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286    ac_cv_prog_ac_ct_CC="$ac_prog"
3287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288    break 2
3289  fi
3290done
3291  done
3292IFS=$as_save_IFS
3293
3294fi
3295fi
3296ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297if test -n "$ac_ct_CC"; then
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3299$as_echo "$ac_ct_CC" >&6; }
3300else
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
3304
3305
3306  test -n "$ac_ct_CC" && break
3307done
3308
3309  if test "x$ac_ct_CC" = x; then
3310    CC=""
3311  else
3312    case $cross_compiling:$ac_tool_warned in
3313yes:)
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316ac_tool_warned=yes ;;
3317esac
3318    CC=$ac_ct_CC
3319  fi
3320fi
3321
3322fi
3323
3324
3325test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327as_fn_error $? "no acceptable C compiler found in \$PATH
3328See \`config.log' for more details" "$LINENO" 5; }
3329
3330# Provide some information about the compiler.
3331$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3332set X $ac_compile
3333ac_compiler=$2
3334for ac_option in --version -v -V -qversion; do
3335  { { ac_try="$ac_compiler $ac_option >&5"
3336case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341$as_echo "$ac_try_echo"; } >&5
3342  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3343  ac_status=$?
3344  if test -s conftest.err; then
3345    sed '10a\
3346... rest of stderr output deleted ...
3347         10q' conftest.err >conftest.er1
3348    cat conftest.er1 >&5
3349  fi
3350  rm -f conftest.er1 conftest.err
3351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352  test $ac_status = 0; }
3353done
3354
3355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h.  */
3357
3358int
3359main ()
3360{
3361
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366ac_clean_files_save=$ac_clean_files
3367ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3368# Try to create an executable without -o first, disregard a.out.
3369# It will help us diagnose broken compilers, and finding out an intuition
3370# of exeext.
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3372$as_echo_n "checking whether the C compiler works... " >&6; }
3373ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3374
3375# The possible output files:
3376ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3377
3378ac_rmfiles=
3379for ac_file in $ac_files
3380do
3381  case $ac_file in
3382    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3384  esac
3385done
3386rm -f $ac_rmfiles
3387
3388if { { ac_try="$ac_link_default"
3389case "(($ac_try" in
3390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391  *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395  (eval "$ac_link_default") 2>&5
3396  ac_status=$?
3397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398  test $ac_status = 0; }; then :
3399  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3400# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3401# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3402# so that the user can short-circuit this test for compilers unknown to
3403# Autoconf.
3404for ac_file in $ac_files ''
3405do
3406  test -f "$ac_file" || continue
3407  case $ac_file in
3408    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3409	;;
3410    [ab].out )
3411	# We found the default executable, but exeext='' is most
3412	# certainly right.
3413	break;;
3414    *.* )
3415	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3416	then :; else
3417	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3418	fi
3419	# We set ac_cv_exeext here because the later test for it is not
3420	# safe: cross compilers may not add the suffix if given an `-o'
3421	# argument, so we may need to know it at that point already.
3422	# Even if this section looks crufty: it has the advantage of
3423	# actually working.
3424	break;;
3425    * )
3426	break;;
3427  esac
3428done
3429test "$ac_cv_exeext" = no && ac_cv_exeext=
3430
3431else
3432  ac_file=''
3433fi
3434if test -z "$ac_file"; then :
3435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436$as_echo "no" >&6; }
3437$as_echo "$as_me: failed program was:" >&5
3438sed 's/^/| /' conftest.$ac_ext >&5
3439
3440{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442as_fn_error 77 "C compiler cannot create executables
3443See \`config.log' for more details" "$LINENO" 5; }
3444else
3445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3446$as_echo "yes" >&6; }
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3449$as_echo_n "checking for C compiler default output file name... " >&6; }
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3451$as_echo "$ac_file" >&6; }
3452ac_exeext=$ac_cv_exeext
3453
3454rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3455ac_clean_files=$ac_clean_files_save
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3457$as_echo_n "checking for suffix of executables... " >&6; }
3458if { { ac_try="$ac_link"
3459case "(($ac_try" in
3460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461  *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465  (eval "$ac_link") 2>&5
3466  ac_status=$?
3467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468  test $ac_status = 0; }; then :
3469  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3470# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3471# work properly (i.e., refer to `conftest.exe'), while it won't with
3472# `rm'.
3473for ac_file in conftest.exe conftest conftest.*; do
3474  test -f "$ac_file" || continue
3475  case $ac_file in
3476    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478	  break;;
3479    * ) break;;
3480  esac
3481done
3482else
3483  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3486See \`config.log' for more details" "$LINENO" 5; }
3487fi
3488rm -f conftest conftest$ac_cv_exeext
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3490$as_echo "$ac_cv_exeext" >&6; }
3491
3492rm -f conftest.$ac_ext
3493EXEEXT=$ac_cv_exeext
3494ac_exeext=$EXEEXT
3495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496/* end confdefs.h.  */
3497#include <stdio.h>
3498int
3499main ()
3500{
3501FILE *f = fopen ("conftest.out", "w");
3502 return ferror (f) || fclose (f) != 0;
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508ac_clean_files="$ac_clean_files conftest.out"
3509# Check that the compiler produces executables we can run.  If not, either
3510# the compiler is broken, or we cross compile.
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3512$as_echo_n "checking whether we are cross compiling... " >&6; }
3513if test "$cross_compiling" != yes; then
3514  { { ac_try="$ac_link"
3515case "(($ac_try" in
3516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517  *) ac_try_echo=$ac_try;;
3518esac
3519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520$as_echo "$ac_try_echo"; } >&5
3521  (eval "$ac_link") 2>&5
3522  ac_status=$?
3523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524  test $ac_status = 0; }
3525  if { ac_try='./conftest$ac_cv_exeext'
3526  { { case "(($ac_try" in
3527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528  *) ac_try_echo=$ac_try;;
3529esac
3530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531$as_echo "$ac_try_echo"; } >&5
3532  (eval "$ac_try") 2>&5
3533  ac_status=$?
3534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535  test $ac_status = 0; }; }; then
3536    cross_compiling=no
3537  else
3538    if test "$cross_compiling" = maybe; then
3539	cross_compiling=yes
3540    else
3541	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543as_fn_error $? "cannot run C compiled programs.
3544If you meant to cross compile, use \`--host'.
3545See \`config.log' for more details" "$LINENO" 5; }
3546    fi
3547  fi
3548fi
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3550$as_echo "$cross_compiling" >&6; }
3551
3552rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3553ac_clean_files=$ac_clean_files_save
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3555$as_echo_n "checking for suffix of object files... " >&6; }
3556if ${ac_cv_objext+:} false; then :
3557  $as_echo_n "(cached) " >&6
3558else
3559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561
3562int
3563main ()
3564{
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570rm -f conftest.o conftest.obj
3571if { { ac_try="$ac_compile"
3572case "(($ac_try" in
3573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574  *) ac_try_echo=$ac_try;;
3575esac
3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577$as_echo "$ac_try_echo"; } >&5
3578  (eval "$ac_compile") 2>&5
3579  ac_status=$?
3580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581  test $ac_status = 0; }; then :
3582  for ac_file in conftest.o conftest.obj conftest.*; do
3583  test -f "$ac_file" || continue;
3584  case $ac_file in
3585    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3586    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3587       break;;
3588  esac
3589done
3590else
3591  $as_echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596as_fn_error $? "cannot compute suffix of object files: cannot compile
3597See \`config.log' for more details" "$LINENO" 5; }
3598fi
3599rm -f conftest.$ac_cv_objext conftest.$ac_ext
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3602$as_echo "$ac_cv_objext" >&6; }
3603OBJEXT=$ac_cv_objext
3604ac_objext=$OBJEXT
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3606$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3607if ${ac_cv_c_compiler_gnu+:} false; then :
3608  $as_echo_n "(cached) " >&6
3609else
3610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612
3613int
3614main ()
3615{
3616#ifndef __GNUC__
3617       choke me
3618#endif
3619
3620  ;
3621  return 0;
3622}
3623_ACEOF
3624if ac_fn_c_try_compile "$LINENO"; then :
3625  ac_compiler_gnu=yes
3626else
3627  ac_compiler_gnu=no
3628fi
3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630ac_cv_c_compiler_gnu=$ac_compiler_gnu
3631
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3634$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3635if test $ac_compiler_gnu = yes; then
3636  GCC=yes
3637else
3638  GCC=
3639fi
3640ac_test_CFLAGS=${CFLAGS+set}
3641ac_save_CFLAGS=$CFLAGS
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3643$as_echo_n "checking whether $CC accepts -g... " >&6; }
3644if ${ac_cv_prog_cc_g+:} false; then :
3645  $as_echo_n "(cached) " >&6
3646else
3647  ac_save_c_werror_flag=$ac_c_werror_flag
3648   ac_c_werror_flag=yes
3649   ac_cv_prog_cc_g=no
3650   CFLAGS="-g"
3651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h.  */
3653
3654int
3655main ()
3656{
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662if ac_fn_c_try_compile "$LINENO"; then :
3663  ac_cv_prog_cc_g=yes
3664else
3665  CFLAGS=""
3666      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h.  */
3668
3669int
3670main ()
3671{
3672
3673  ;
3674  return 0;
3675}
3676_ACEOF
3677if ac_fn_c_try_compile "$LINENO"; then :
3678
3679else
3680  ac_c_werror_flag=$ac_save_c_werror_flag
3681	 CFLAGS="-g"
3682	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693if ac_fn_c_try_compile "$LINENO"; then :
3694  ac_cv_prog_cc_g=yes
3695fi
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697fi
3698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699fi
3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701   ac_c_werror_flag=$ac_save_c_werror_flag
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3704$as_echo "$ac_cv_prog_cc_g" >&6; }
3705if test "$ac_test_CFLAGS" = set; then
3706  CFLAGS=$ac_save_CFLAGS
3707elif test $ac_cv_prog_cc_g = yes; then
3708  if test "$GCC" = yes; then
3709    CFLAGS="-g -O2"
3710  else
3711    CFLAGS="-g"
3712  fi
3713else
3714  if test "$GCC" = yes; then
3715    CFLAGS="-O2"
3716  else
3717    CFLAGS=
3718  fi
3719fi
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3721$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3722if ${ac_cv_prog_cc_c89+:} false; then :
3723  $as_echo_n "(cached) " >&6
3724else
3725  ac_cv_prog_cc_c89=no
3726ac_save_CC=$CC
3727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728/* end confdefs.h.  */
3729#include <stdarg.h>
3730#include <stdio.h>
3731#include <sys/types.h>
3732#include <sys/stat.h>
3733/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3734struct buf { int x; };
3735FILE * (*rcsopen) (struct buf *, struct stat *, int);
3736static char *e (p, i)
3737     char **p;
3738     int i;
3739{
3740  return p[i];
3741}
3742static char *f (char * (*g) (char **, int), char **p, ...)
3743{
3744  char *s;
3745  va_list v;
3746  va_start (v,p);
3747  s = g (p, va_arg (v,int));
3748  va_end (v);
3749  return s;
3750}
3751
3752/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3753   function prototypes and stuff, but not '\xHH' hex character constants.
3754   These don't provoke an error unfortunately, instead are silently treated
3755   as 'x'.  The following induces an error, until -std is added to get
3756   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3757   array size at least.  It's necessary to write '\x00'==0 to get something
3758   that's true only with -std.  */
3759int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3760
3761/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3762   inside strings and character constants.  */
3763#define FOO(x) 'x'
3764int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3765
3766int test (int i, double x);
3767struct s1 {int (*f) (int a);};
3768struct s2 {int (*f) (double a);};
3769int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3770int argc;
3771char **argv;
3772int
3773main ()
3774{
3775return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3776  ;
3777  return 0;
3778}
3779_ACEOF
3780for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3781	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3782do
3783  CC="$ac_save_CC $ac_arg"
3784  if ac_fn_c_try_compile "$LINENO"; then :
3785  ac_cv_prog_cc_c89=$ac_arg
3786fi
3787rm -f core conftest.err conftest.$ac_objext
3788  test "x$ac_cv_prog_cc_c89" != "xno" && break
3789done
3790rm -f conftest.$ac_ext
3791CC=$ac_save_CC
3792
3793fi
3794# AC_CACHE_VAL
3795case "x$ac_cv_prog_cc_c89" in
3796  x)
3797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3798$as_echo "none needed" >&6; } ;;
3799  xno)
3800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3801$as_echo "unsupported" >&6; } ;;
3802  *)
3803    CC="$CC $ac_cv_prog_cc_c89"
3804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3805$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3806esac
3807if test "x$ac_cv_prog_cc_c89" != xno; then :
3808
3809fi
3810
3811ac_ext=c
3812ac_cpp='$CPP $CPPFLAGS'
3813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816
3817depcc="$CC"   am_compiler_list=
3818
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3820$as_echo_n "checking dependency style of $depcc... " >&6; }
3821if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3822  $as_echo_n "(cached) " >&6
3823else
3824  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3825  # We make a subdir and do the tests there.  Otherwise we can end up
3826  # making bogus files that we don't know about and never remove.  For
3827  # instance it was reported that on HP-UX the gcc test will end up
3828  # making a dummy file named `D' -- because `-MD' means `put the output
3829  # in D'.
3830  rm -rf conftest.dir
3831  mkdir conftest.dir
3832  # Copy depcomp to subdir because otherwise we won't find it if we're
3833  # using a relative directory.
3834  cp "$am_depcomp" conftest.dir
3835  cd conftest.dir
3836  # We will build objects and dependencies in a subdirectory because
3837  # it helps to detect inapplicable dependency modes.  For instance
3838  # both Tru64's cc and ICC support -MD to output dependencies as a
3839  # side effect of compilation, but ICC will put the dependencies in
3840  # the current directory while Tru64 will put them in the object
3841  # directory.
3842  mkdir sub
3843
3844  am_cv_CC_dependencies_compiler_type=none
3845  if test "$am_compiler_list" = ""; then
3846     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3847  fi
3848  am__universal=false
3849  case " $depcc " in #(
3850     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3851     esac
3852
3853  for depmode in $am_compiler_list; do
3854    # Setup a source with many dependencies, because some compilers
3855    # like to wrap large dependency lists on column 80 (with \), and
3856    # we should not choose a depcomp mode which is confused by this.
3857    #
3858    # We need to recreate these files for each test, as the compiler may
3859    # overwrite some of them when testing with obscure command lines.
3860    # This happens at least with the AIX C compiler.
3861    : > sub/conftest.c
3862    for i in 1 2 3 4 5 6; do
3863      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3864      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3865      # Solaris 8's {/usr,}/bin/sh.
3866      touch sub/conftst$i.h
3867    done
3868    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3869
3870    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3871    # mode.  It turns out that the SunPro C++ compiler does not properly
3872    # handle `-M -o', and we need to detect this.  Also, some Intel
3873    # versions had trouble with output in subdirs
3874    am__obj=sub/conftest.${OBJEXT-o}
3875    am__minus_obj="-o $am__obj"
3876    case $depmode in
3877    gcc)
3878      # This depmode causes a compiler race in universal mode.
3879      test "$am__universal" = false || continue
3880      ;;
3881    nosideeffect)
3882      # after this tag, mechanisms are not by side-effect, so they'll
3883      # only be used when explicitly requested
3884      if test "x$enable_dependency_tracking" = xyes; then
3885	continue
3886      else
3887	break
3888      fi
3889      ;;
3890    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3891      # This compiler won't grok `-c -o', but also, the minuso test has
3892      # not run yet.  These depmodes are late enough in the game, and
3893      # so weak that their functioning should not be impacted.
3894      am__obj=conftest.${OBJEXT-o}
3895      am__minus_obj=
3896      ;;
3897    none) break ;;
3898    esac
3899    if depmode=$depmode \
3900       source=sub/conftest.c object=$am__obj \
3901       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3902       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3903         >/dev/null 2>conftest.err &&
3904       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3905       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3906       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3907       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3908      # icc doesn't choke on unknown options, it will just issue warnings
3909      # or remarks (even with -Werror).  So we grep stderr for any message
3910      # that says an option was ignored or not supported.
3911      # When given -MP, icc 7.0 and 7.1 complain thusly:
3912      #   icc: Command line warning: ignoring option '-M'; no argument required
3913      # The diagnosis changed in icc 8.0:
3914      #   icc: Command line remark: option '-MP' not supported
3915      if (grep 'ignoring option' conftest.err ||
3916          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3917        am_cv_CC_dependencies_compiler_type=$depmode
3918        break
3919      fi
3920    fi
3921  done
3922
3923  cd ..
3924  rm -rf conftest.dir
3925else
3926  am_cv_CC_dependencies_compiler_type=none
3927fi
3928
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3931$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3932CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3933
3934 if
3935  test "x$enable_dependency_tracking" != xno \
3936  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3937  am__fastdepCC_TRUE=
3938  am__fastdepCC_FALSE='#'
3939else
3940  am__fastdepCC_TRUE='#'
3941  am__fastdepCC_FALSE=
3942fi
3943
3944
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3946$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3947if ${ac_cv_path_SED+:} false; then :
3948  $as_echo_n "(cached) " >&6
3949else
3950            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3951     for ac_i in 1 2 3 4 5 6 7; do
3952       ac_script="$ac_script$as_nl$ac_script"
3953     done
3954     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3955     { ac_script=; unset ac_script;}
3956     if test -z "$SED"; then
3957  ac_path_SED_found=false
3958  # Loop through the user's path and test for each of PROGNAME-LIST
3959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964    for ac_prog in sed gsed; do
3965    for ac_exec_ext in '' $ac_executable_extensions; do
3966      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3967      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3968# Check for GNU ac_path_SED and select it if it is found.
3969  # Check for GNU $ac_path_SED
3970case `"$ac_path_SED" --version 2>&1` in
3971*GNU*)
3972  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3973*)
3974  ac_count=0
3975  $as_echo_n 0123456789 >"conftest.in"
3976  while :
3977  do
3978    cat "conftest.in" "conftest.in" >"conftest.tmp"
3979    mv "conftest.tmp" "conftest.in"
3980    cp "conftest.in" "conftest.nl"
3981    $as_echo '' >> "conftest.nl"
3982    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984    as_fn_arith $ac_count + 1 && ac_count=$as_val
3985    if test $ac_count -gt ${ac_path_SED_max-0}; then
3986      # Best one so far, save it but keep looking for a better one
3987      ac_cv_path_SED="$ac_path_SED"
3988      ac_path_SED_max=$ac_count
3989    fi
3990    # 10*(2^10) chars as input seems more than enough
3991    test $ac_count -gt 10 && break
3992  done
3993  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994esac
3995
3996      $ac_path_SED_found && break 3
3997    done
3998  done
3999  done
4000IFS=$as_save_IFS
4001  if test -z "$ac_cv_path_SED"; then
4002    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4003  fi
4004else
4005  ac_cv_path_SED=$SED
4006fi
4007
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4010$as_echo "$ac_cv_path_SED" >&6; }
4011 SED="$ac_cv_path_SED"
4012  rm -f conftest.sed
4013
4014test -z "$SED" && SED=sed
4015Xsed="$SED -e 1s/^X//"
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4028$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4029if ${ac_cv_path_GREP+:} false; then :
4030  $as_echo_n "(cached) " >&6
4031else
4032  if test -z "$GREP"; then
4033  ac_path_GREP_found=false
4034  # Loop through the user's path and test for each of PROGNAME-LIST
4035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4037do
4038  IFS=$as_save_IFS
4039  test -z "$as_dir" && as_dir=.
4040    for ac_prog in grep ggrep; do
4041    for ac_exec_ext in '' $ac_executable_extensions; do
4042      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4043      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4044# Check for GNU ac_path_GREP and select it if it is found.
4045  # Check for GNU $ac_path_GREP
4046case `"$ac_path_GREP" --version 2>&1` in
4047*GNU*)
4048  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4049*)
4050  ac_count=0
4051  $as_echo_n 0123456789 >"conftest.in"
4052  while :
4053  do
4054    cat "conftest.in" "conftest.in" >"conftest.tmp"
4055    mv "conftest.tmp" "conftest.in"
4056    cp "conftest.in" "conftest.nl"
4057    $as_echo 'GREP' >> "conftest.nl"
4058    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4059    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4060    as_fn_arith $ac_count + 1 && ac_count=$as_val
4061    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4062      # Best one so far, save it but keep looking for a better one
4063      ac_cv_path_GREP="$ac_path_GREP"
4064      ac_path_GREP_max=$ac_count
4065    fi
4066    # 10*(2^10) chars as input seems more than enough
4067    test $ac_count -gt 10 && break
4068  done
4069  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4070esac
4071
4072      $ac_path_GREP_found && break 3
4073    done
4074  done
4075  done
4076IFS=$as_save_IFS
4077  if test -z "$ac_cv_path_GREP"; then
4078    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4079  fi
4080else
4081  ac_cv_path_GREP=$GREP
4082fi
4083
4084fi
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4086$as_echo "$ac_cv_path_GREP" >&6; }
4087 GREP="$ac_cv_path_GREP"
4088
4089
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4091$as_echo_n "checking for egrep... " >&6; }
4092if ${ac_cv_path_EGREP+:} false; then :
4093  $as_echo_n "(cached) " >&6
4094else
4095  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4096   then ac_cv_path_EGREP="$GREP -E"
4097   else
4098     if test -z "$EGREP"; then
4099  ac_path_EGREP_found=false
4100  # Loop through the user's path and test for each of PROGNAME-LIST
4101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106    for ac_prog in egrep; do
4107    for ac_exec_ext in '' $ac_executable_extensions; do
4108      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4109      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4110# Check for GNU ac_path_EGREP and select it if it is found.
4111  # Check for GNU $ac_path_EGREP
4112case `"$ac_path_EGREP" --version 2>&1` in
4113*GNU*)
4114  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4115*)
4116  ac_count=0
4117  $as_echo_n 0123456789 >"conftest.in"
4118  while :
4119  do
4120    cat "conftest.in" "conftest.in" >"conftest.tmp"
4121    mv "conftest.tmp" "conftest.in"
4122    cp "conftest.in" "conftest.nl"
4123    $as_echo 'EGREP' >> "conftest.nl"
4124    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126    as_fn_arith $ac_count + 1 && ac_count=$as_val
4127    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4128      # Best one so far, save it but keep looking for a better one
4129      ac_cv_path_EGREP="$ac_path_EGREP"
4130      ac_path_EGREP_max=$ac_count
4131    fi
4132    # 10*(2^10) chars as input seems more than enough
4133    test $ac_count -gt 10 && break
4134  done
4135  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136esac
4137
4138      $ac_path_EGREP_found && break 3
4139    done
4140  done
4141  done
4142IFS=$as_save_IFS
4143  if test -z "$ac_cv_path_EGREP"; then
4144    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145  fi
4146else
4147  ac_cv_path_EGREP=$EGREP
4148fi
4149
4150   fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4153$as_echo "$ac_cv_path_EGREP" >&6; }
4154 EGREP="$ac_cv_path_EGREP"
4155
4156
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4158$as_echo_n "checking for fgrep... " >&6; }
4159if ${ac_cv_path_FGREP+:} false; then :
4160  $as_echo_n "(cached) " >&6
4161else
4162  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4163   then ac_cv_path_FGREP="$GREP -F"
4164   else
4165     if test -z "$FGREP"; then
4166  ac_path_FGREP_found=false
4167  # Loop through the user's path and test for each of PROGNAME-LIST
4168  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4170do
4171  IFS=$as_save_IFS
4172  test -z "$as_dir" && as_dir=.
4173    for ac_prog in fgrep; do
4174    for ac_exec_ext in '' $ac_executable_extensions; do
4175      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4176      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4177# Check for GNU ac_path_FGREP and select it if it is found.
4178  # Check for GNU $ac_path_FGREP
4179case `"$ac_path_FGREP" --version 2>&1` in
4180*GNU*)
4181  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4182*)
4183  ac_count=0
4184  $as_echo_n 0123456789 >"conftest.in"
4185  while :
4186  do
4187    cat "conftest.in" "conftest.in" >"conftest.tmp"
4188    mv "conftest.tmp" "conftest.in"
4189    cp "conftest.in" "conftest.nl"
4190    $as_echo 'FGREP' >> "conftest.nl"
4191    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4192    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4193    as_fn_arith $ac_count + 1 && ac_count=$as_val
4194    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4195      # Best one so far, save it but keep looking for a better one
4196      ac_cv_path_FGREP="$ac_path_FGREP"
4197      ac_path_FGREP_max=$ac_count
4198    fi
4199    # 10*(2^10) chars as input seems more than enough
4200    test $ac_count -gt 10 && break
4201  done
4202  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4203esac
4204
4205      $ac_path_FGREP_found && break 3
4206    done
4207  done
4208  done
4209IFS=$as_save_IFS
4210  if test -z "$ac_cv_path_FGREP"; then
4211    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4212  fi
4213else
4214  ac_cv_path_FGREP=$FGREP
4215fi
4216
4217   fi
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4220$as_echo "$ac_cv_path_FGREP" >&6; }
4221 FGREP="$ac_cv_path_FGREP"
4222
4223
4224test -z "$GREP" && GREP=grep
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244# Check whether --with-gnu-ld was given.
4245if test "${with_gnu_ld+set}" = set; then :
4246  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4247else
4248  with_gnu_ld=no
4249fi
4250
4251ac_prog=ld
4252if test "$GCC" = yes; then
4253  # Check if gcc -print-prog-name=ld gives a path.
4254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4255$as_echo_n "checking for ld used by $CC... " >&6; }
4256  case $host in
4257  *-*-mingw*)
4258    # gcc leaves a trailing carriage return which upsets mingw
4259    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4260  *)
4261    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4262  esac
4263  case $ac_prog in
4264    # Accept absolute paths.
4265    [\\/]* | ?:[\\/]*)
4266      re_direlt='/[^/][^/]*/\.\./'
4267      # Canonicalize the pathname of ld
4268      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4269      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4270	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4271      done
4272      test -z "$LD" && LD="$ac_prog"
4273      ;;
4274  "")
4275    # If it fails, then pretend we aren't using GCC.
4276    ac_prog=ld
4277    ;;
4278  *)
4279    # If it is relative, then search for the first ld in PATH.
4280    with_gnu_ld=unknown
4281    ;;
4282  esac
4283elif test "$with_gnu_ld" = yes; then
4284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4285$as_echo_n "checking for GNU ld... " >&6; }
4286else
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4288$as_echo_n "checking for non-GNU ld... " >&6; }
4289fi
4290if ${lt_cv_path_LD+:} false; then :
4291  $as_echo_n "(cached) " >&6
4292else
4293  if test -z "$LD"; then
4294  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4295  for ac_dir in $PATH; do
4296    IFS="$lt_save_ifs"
4297    test -z "$ac_dir" && ac_dir=.
4298    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4299      lt_cv_path_LD="$ac_dir/$ac_prog"
4300      # Check to see if the program is GNU ld.  I'd rather use --version,
4301      # but apparently some variants of GNU ld only accept -v.
4302      # Break only if it was the GNU/non-GNU ld that we prefer.
4303      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4304      *GNU* | *'with BFD'*)
4305	test "$with_gnu_ld" != no && break
4306	;;
4307      *)
4308	test "$with_gnu_ld" != yes && break
4309	;;
4310      esac
4311    fi
4312  done
4313  IFS="$lt_save_ifs"
4314else
4315  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4316fi
4317fi
4318
4319LD="$lt_cv_path_LD"
4320if test -n "$LD"; then
4321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4322$as_echo "$LD" >&6; }
4323else
4324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325$as_echo "no" >&6; }
4326fi
4327test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4329$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4330if ${lt_cv_prog_gnu_ld+:} false; then :
4331  $as_echo_n "(cached) " >&6
4332else
4333  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4334case `$LD -v 2>&1 </dev/null` in
4335*GNU* | *'with BFD'*)
4336  lt_cv_prog_gnu_ld=yes
4337  ;;
4338*)
4339  lt_cv_prog_gnu_ld=no
4340  ;;
4341esac
4342fi
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4344$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4345with_gnu_ld=$lt_cv_prog_gnu_ld
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4356$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4357if ${lt_cv_path_NM+:} false; then :
4358  $as_echo_n "(cached) " >&6
4359else
4360  if test -n "$NM"; then
4361  # Let the user override the test.
4362  lt_cv_path_NM="$NM"
4363else
4364  lt_nm_to_check="${ac_tool_prefix}nm"
4365  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4366    lt_nm_to_check="$lt_nm_to_check nm"
4367  fi
4368  for lt_tmp_nm in $lt_nm_to_check; do
4369    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4370    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4371      IFS="$lt_save_ifs"
4372      test -z "$ac_dir" && ac_dir=.
4373      tmp_nm="$ac_dir/$lt_tmp_nm"
4374      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4375	# Check to see if the nm accepts a BSD-compat flag.
4376	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4377	#   nm: unknown option "B" ignored
4378	# Tru64's nm complains that /dev/null is an invalid object file
4379	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4380	*/dev/null* | *'Invalid file or object type'*)
4381	  lt_cv_path_NM="$tmp_nm -B"
4382	  break
4383	  ;;
4384	*)
4385	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4386	  */dev/null*)
4387	    lt_cv_path_NM="$tmp_nm -p"
4388	    break
4389	    ;;
4390	  *)
4391	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4392	    continue # so that we can try to find one that supports BSD flags
4393	    ;;
4394	  esac
4395	  ;;
4396	esac
4397      fi
4398    done
4399    IFS="$lt_save_ifs"
4400  done
4401  : ${lt_cv_path_NM=no}
4402fi
4403fi
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4405$as_echo "$lt_cv_path_NM" >&6; }
4406if test "$lt_cv_path_NM" != "no"; then
4407  NM="$lt_cv_path_NM"
4408else
4409  # Didn't find any BSD compatible name lister, look for dumpbin.
4410  if test -n "$DUMPBIN"; then :
4411    # Let the user override the test.
4412  else
4413    if test -n "$ac_tool_prefix"; then
4414  for ac_prog in dumpbin "link -dump"
4415  do
4416    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419$as_echo_n "checking for $ac_word... " >&6; }
4420if ${ac_cv_prog_DUMPBIN+:} false; then :
4421  $as_echo_n "(cached) " >&6
4422else
4423  if test -n "$DUMPBIN"; then
4424  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4425else
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429  IFS=$as_save_IFS
4430  test -z "$as_dir" && as_dir=.
4431    for ac_exec_ext in '' $ac_executable_extensions; do
4432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435    break 2
4436  fi
4437done
4438  done
4439IFS=$as_save_IFS
4440
4441fi
4442fi
4443DUMPBIN=$ac_cv_prog_DUMPBIN
4444if test -n "$DUMPBIN"; then
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4446$as_echo "$DUMPBIN" >&6; }
4447else
4448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449$as_echo "no" >&6; }
4450fi
4451
4452
4453    test -n "$DUMPBIN" && break
4454  done
4455fi
4456if test -z "$DUMPBIN"; then
4457  ac_ct_DUMPBIN=$DUMPBIN
4458  for ac_prog in dumpbin "link -dump"
4459do
4460  # Extract the first word of "$ac_prog", so it can be a program name with args.
4461set dummy $ac_prog; ac_word=$2
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463$as_echo_n "checking for $ac_word... " >&6; }
4464if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467  if test -n "$ac_ct_DUMPBIN"; then
4468  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4469else
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473  IFS=$as_save_IFS
4474  test -z "$as_dir" && as_dir=.
4475    for ac_exec_ext in '' $ac_executable_extensions; do
4476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479    break 2
4480  fi
4481done
4482  done
4483IFS=$as_save_IFS
4484
4485fi
4486fi
4487ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4488if test -n "$ac_ct_DUMPBIN"; then
4489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4490$as_echo "$ac_ct_DUMPBIN" >&6; }
4491else
4492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493$as_echo "no" >&6; }
4494fi
4495
4496
4497  test -n "$ac_ct_DUMPBIN" && break
4498done
4499
4500  if test "x$ac_ct_DUMPBIN" = x; then
4501    DUMPBIN=":"
4502  else
4503    case $cross_compiling:$ac_tool_warned in
4504yes:)
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507ac_tool_warned=yes ;;
4508esac
4509    DUMPBIN=$ac_ct_DUMPBIN
4510  fi
4511fi
4512
4513    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4514    *COFF*)
4515      DUMPBIN="$DUMPBIN -symbols"
4516      ;;
4517    *)
4518      DUMPBIN=:
4519      ;;
4520    esac
4521  fi
4522
4523  if test "$DUMPBIN" != ":"; then
4524    NM="$DUMPBIN"
4525  fi
4526fi
4527test -z "$NM" && NM=nm
4528
4529
4530
4531
4532
4533
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4535$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4536if ${lt_cv_nm_interface+:} false; then :
4537  $as_echo_n "(cached) " >&6
4538else
4539  lt_cv_nm_interface="BSD nm"
4540  echo "int some_variable = 0;" > conftest.$ac_ext
4541  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4542  (eval "$ac_compile" 2>conftest.err)
4543  cat conftest.err >&5
4544  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4545  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4546  cat conftest.err >&5
4547  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4548  cat conftest.out >&5
4549  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4550    lt_cv_nm_interface="MS dumpbin"
4551  fi
4552  rm -f conftest*
4553fi
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4555$as_echo "$lt_cv_nm_interface" >&6; }
4556
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4558$as_echo_n "checking whether ln -s works... " >&6; }
4559LN_S=$as_ln_s
4560if test "$LN_S" = "ln -s"; then
4561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562$as_echo "yes" >&6; }
4563else
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4565$as_echo "no, using $LN_S" >&6; }
4566fi
4567
4568# find the maximum length of command line arguments
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4570$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4571if ${lt_cv_sys_max_cmd_len+:} false; then :
4572  $as_echo_n "(cached) " >&6
4573else
4574    i=0
4575  teststring="ABCD"
4576
4577  case $build_os in
4578  msdosdjgpp*)
4579    # On DJGPP, this test can blow up pretty badly due to problems in libc
4580    # (any single argument exceeding 2000 bytes causes a buffer overrun
4581    # during glob expansion).  Even if it were fixed, the result of this
4582    # check would be larger than it should be.
4583    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4584    ;;
4585
4586  gnu*)
4587    # Under GNU Hurd, this test is not required because there is
4588    # no limit to the length of command line arguments.
4589    # Libtool will interpret -1 as no limit whatsoever
4590    lt_cv_sys_max_cmd_len=-1;
4591    ;;
4592
4593  cygwin* | mingw* | cegcc*)
4594    # On Win9x/ME, this test blows up -- it succeeds, but takes
4595    # about 5 minutes as the teststring grows exponentially.
4596    # Worse, since 9x/ME are not pre-emptively multitasking,
4597    # you end up with a "frozen" computer, even though with patience
4598    # the test eventually succeeds (with a max line length of 256k).
4599    # Instead, let's just punt: use the minimum linelength reported by
4600    # all of the supported platforms: 8192 (on NT/2K/XP).
4601    lt_cv_sys_max_cmd_len=8192;
4602    ;;
4603
4604  mint*)
4605    # On MiNT this can take a long time and run out of memory.
4606    lt_cv_sys_max_cmd_len=8192;
4607    ;;
4608
4609  amigaos*)
4610    # On AmigaOS with pdksh, this test takes hours, literally.
4611    # So we just punt and use a minimum line length of 8192.
4612    lt_cv_sys_max_cmd_len=8192;
4613    ;;
4614
4615  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4616    # This has been around since 386BSD, at least.  Likely further.
4617    if test -x /sbin/sysctl; then
4618      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4619    elif test -x /usr/sbin/sysctl; then
4620      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4621    else
4622      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4623    fi
4624    # And add a safety zone
4625    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4626    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4627    ;;
4628
4629  interix*)
4630    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4631    lt_cv_sys_max_cmd_len=196608
4632    ;;
4633
4634  os2*)
4635    # The test takes a long time on OS/2.
4636    lt_cv_sys_max_cmd_len=8192
4637    ;;
4638
4639  osf*)
4640    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4641    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4642    # nice to cause kernel panics so lets avoid the loop below.
4643    # First set a reasonable default.
4644    lt_cv_sys_max_cmd_len=16384
4645    #
4646    if test -x /sbin/sysconfig; then
4647      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4648        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4649      esac
4650    fi
4651    ;;
4652  sco3.2v5*)
4653    lt_cv_sys_max_cmd_len=102400
4654    ;;
4655  sysv5* | sco5v6* | sysv4.2uw2*)
4656    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4657    if test -n "$kargmax"; then
4658      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4659    else
4660      lt_cv_sys_max_cmd_len=32768
4661    fi
4662    ;;
4663  *)
4664    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4665    if test -n "$lt_cv_sys_max_cmd_len"; then
4666      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4667      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4668    else
4669      # Make teststring a little bigger before we do anything with it.
4670      # a 1K string should be a reasonable start.
4671      for i in 1 2 3 4 5 6 7 8 ; do
4672        teststring=$teststring$teststring
4673      done
4674      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4675      # If test is not a shell built-in, we'll probably end up computing a
4676      # maximum length that is only half of the actual maximum length, but
4677      # we can't tell.
4678      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4679	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4680	      test $i != 17 # 1/2 MB should be enough
4681      do
4682        i=`expr $i + 1`
4683        teststring=$teststring$teststring
4684      done
4685      # Only check the string length outside the loop.
4686      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4687      teststring=
4688      # Add a significant safety factor because C++ compilers can tack on
4689      # massive amounts of additional arguments before passing them to the
4690      # linker.  It appears as though 1/2 is a usable value.
4691      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4692    fi
4693    ;;
4694  esac
4695
4696fi
4697
4698if test -n $lt_cv_sys_max_cmd_len ; then
4699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4700$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4701else
4702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4703$as_echo "none" >&6; }
4704fi
4705max_cmd_len=$lt_cv_sys_max_cmd_len
4706
4707
4708
4709
4710
4711
4712: ${CP="cp -f"}
4713: ${MV="mv -f"}
4714: ${RM="rm -f"}
4715
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4717$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4718# Try some XSI features
4719xsi_shell=no
4720( _lt_dummy="a/b/c"
4721  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4722      = c,a/b,b/c, \
4723    && eval 'test $(( 1 + 1 )) -eq 2 \
4724    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4725  && xsi_shell=yes
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4727$as_echo "$xsi_shell" >&6; }
4728
4729
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4731$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4732lt_shell_append=no
4733( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4734    >/dev/null 2>&1 \
4735  && lt_shell_append=yes
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4737$as_echo "$lt_shell_append" >&6; }
4738
4739
4740if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4741  lt_unset=unset
4742else
4743  lt_unset=false
4744fi
4745
4746
4747
4748
4749
4750# test EBCDIC or ASCII
4751case `echo X|tr X '\101'` in
4752 A) # ASCII based system
4753    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4754  lt_SP2NL='tr \040 \012'
4755  lt_NL2SP='tr \015\012 \040\040'
4756  ;;
4757 *) # EBCDIC based system
4758  lt_SP2NL='tr \100 \n'
4759  lt_NL2SP='tr \r\n \100\100'
4760  ;;
4761esac
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4772$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4773if ${lt_cv_to_host_file_cmd+:} false; then :
4774  $as_echo_n "(cached) " >&6
4775else
4776  case $host in
4777  *-*-mingw* )
4778    case $build in
4779      *-*-mingw* ) # actually msys
4780        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4781        ;;
4782      *-*-cygwin* )
4783        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4784        ;;
4785      * ) # otherwise, assume *nix
4786        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4787        ;;
4788    esac
4789    ;;
4790  *-*-cygwin* )
4791    case $build in
4792      *-*-mingw* ) # actually msys
4793        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4794        ;;
4795      *-*-cygwin* )
4796        lt_cv_to_host_file_cmd=func_convert_file_noop
4797        ;;
4798      * ) # otherwise, assume *nix
4799        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4800        ;;
4801    esac
4802    ;;
4803  * ) # unhandled hosts (and "normal" native builds)
4804    lt_cv_to_host_file_cmd=func_convert_file_noop
4805    ;;
4806esac
4807
4808fi
4809
4810to_host_file_cmd=$lt_cv_to_host_file_cmd
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4812$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4813
4814
4815
4816
4817
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4819$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4820if ${lt_cv_to_tool_file_cmd+:} false; then :
4821  $as_echo_n "(cached) " >&6
4822else
4823  #assume ordinary cross tools, or native build.
4824lt_cv_to_tool_file_cmd=func_convert_file_noop
4825case $host in
4826  *-*-mingw* )
4827    case $build in
4828      *-*-mingw* ) # actually msys
4829        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4830        ;;
4831    esac
4832    ;;
4833esac
4834
4835fi
4836
4837to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4839$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4840
4841
4842
4843
4844
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4846$as_echo_n "checking for $LD option to reload object files... " >&6; }
4847if ${lt_cv_ld_reload_flag+:} false; then :
4848  $as_echo_n "(cached) " >&6
4849else
4850  lt_cv_ld_reload_flag='-r'
4851fi
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4853$as_echo "$lt_cv_ld_reload_flag" >&6; }
4854reload_flag=$lt_cv_ld_reload_flag
4855case $reload_flag in
4856"" | " "*) ;;
4857*) reload_flag=" $reload_flag" ;;
4858esac
4859reload_cmds='$LD$reload_flag -o $output$reload_objs'
4860case $host_os in
4861  cygwin* | mingw* | pw32* | cegcc*)
4862    if test "$GCC" != yes; then
4863      reload_cmds=false
4864    fi
4865    ;;
4866  darwin*)
4867    if test "$GCC" = yes; then
4868      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4869    else
4870      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4871    fi
4872    ;;
4873esac
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883if test -n "$ac_tool_prefix"; then
4884  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4885set dummy ${ac_tool_prefix}objdump; ac_word=$2
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887$as_echo_n "checking for $ac_word... " >&6; }
4888if ${ac_cv_prog_OBJDUMP+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  if test -n "$OBJDUMP"; then
4892  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897  IFS=$as_save_IFS
4898  test -z "$as_dir" && as_dir=.
4899    for ac_exec_ext in '' $ac_executable_extensions; do
4900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903    break 2
4904  fi
4905done
4906  done
4907IFS=$as_save_IFS
4908
4909fi
4910fi
4911OBJDUMP=$ac_cv_prog_OBJDUMP
4912if test -n "$OBJDUMP"; then
4913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4914$as_echo "$OBJDUMP" >&6; }
4915else
4916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917$as_echo "no" >&6; }
4918fi
4919
4920
4921fi
4922if test -z "$ac_cv_prog_OBJDUMP"; then
4923  ac_ct_OBJDUMP=$OBJDUMP
4924  # Extract the first word of "objdump", so it can be a program name with args.
4925set dummy objdump; ac_word=$2
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927$as_echo_n "checking for $ac_word... " >&6; }
4928if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  if test -n "$ac_ct_OBJDUMP"; then
4932  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4933else
4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937  IFS=$as_save_IFS
4938  test -z "$as_dir" && as_dir=.
4939    for ac_exec_ext in '' $ac_executable_extensions; do
4940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943    break 2
4944  fi
4945done
4946  done
4947IFS=$as_save_IFS
4948
4949fi
4950fi
4951ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4952if test -n "$ac_ct_OBJDUMP"; then
4953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4954$as_echo "$ac_ct_OBJDUMP" >&6; }
4955else
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
4958fi
4959
4960  if test "x$ac_ct_OBJDUMP" = x; then
4961    OBJDUMP="false"
4962  else
4963    case $cross_compiling:$ac_tool_warned in
4964yes:)
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967ac_tool_warned=yes ;;
4968esac
4969    OBJDUMP=$ac_ct_OBJDUMP
4970  fi
4971else
4972  OBJDUMP="$ac_cv_prog_OBJDUMP"
4973fi
4974
4975test -z "$OBJDUMP" && OBJDUMP=objdump
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4986$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4987if ${lt_cv_deplibs_check_method+:} false; then :
4988  $as_echo_n "(cached) " >&6
4989else
4990  lt_cv_file_magic_cmd='$MAGIC_CMD'
4991lt_cv_file_magic_test_file=
4992lt_cv_deplibs_check_method='unknown'
4993# Need to set the preceding variable on all platforms that support
4994# interlibrary dependencies.
4995# 'none' -- dependencies not supported.
4996# `unknown' -- same as none, but documents that we really don't know.
4997# 'pass_all' -- all dependencies passed with no checks.
4998# 'test_compile' -- check by making test program.
4999# 'file_magic [[regex]]' -- check by looking for files in library path
5000# which responds to the $file_magic_cmd with a given extended regex.
5001# If you have `file' or equivalent on your system and you're not sure
5002# whether `pass_all' will *always* work, you probably want this one.
5003
5004case $host_os in
5005aix[4-9]*)
5006  lt_cv_deplibs_check_method=pass_all
5007  ;;
5008
5009beos*)
5010  lt_cv_deplibs_check_method=pass_all
5011  ;;
5012
5013bsdi[45]*)
5014  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5015  lt_cv_file_magic_cmd='/usr/bin/file -L'
5016  lt_cv_file_magic_test_file=/shlib/libc.so
5017  ;;
5018
5019cygwin*)
5020  # func_win32_libid is a shell function defined in ltmain.sh
5021  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5022  lt_cv_file_magic_cmd='func_win32_libid'
5023  ;;
5024
5025mingw* | pw32*)
5026  # Base MSYS/MinGW do not provide the 'file' command needed by
5027  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5028  # unless we find 'file', for example because we are cross-compiling.
5029  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5030  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5031    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5032    lt_cv_file_magic_cmd='func_win32_libid'
5033  else
5034    # Keep this pattern in sync with the one in func_win32_libid.
5035    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5036    lt_cv_file_magic_cmd='$OBJDUMP -f'
5037  fi
5038  ;;
5039
5040cegcc*)
5041  # use the weaker test based on 'objdump'. See mingw*.
5042  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5043  lt_cv_file_magic_cmd='$OBJDUMP -f'
5044  ;;
5045
5046darwin* | rhapsody*)
5047  lt_cv_deplibs_check_method=pass_all
5048  ;;
5049
5050freebsd* | dragonfly*)
5051  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5052    case $host_cpu in
5053    i*86 )
5054      # Not sure whether the presence of OpenBSD here was a mistake.
5055      # Let's accept both of them until this is cleared up.
5056      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5057      lt_cv_file_magic_cmd=/usr/bin/file
5058      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5059      ;;
5060    esac
5061  else
5062    lt_cv_deplibs_check_method=pass_all
5063  fi
5064  ;;
5065
5066gnu*)
5067  lt_cv_deplibs_check_method=pass_all
5068  ;;
5069
5070haiku*)
5071  lt_cv_deplibs_check_method=pass_all
5072  ;;
5073
5074hpux10.20* | hpux11*)
5075  lt_cv_file_magic_cmd=/usr/bin/file
5076  case $host_cpu in
5077  ia64*)
5078    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5079    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5080    ;;
5081  hppa*64*)
5082    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]'
5083    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5084    ;;
5085  *)
5086    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5087    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5088    ;;
5089  esac
5090  ;;
5091
5092interix[3-9]*)
5093  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5094  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5095  ;;
5096
5097irix5* | irix6* | nonstopux*)
5098  case $LD in
5099  *-32|*"-32 ") libmagic=32-bit;;
5100  *-n32|*"-n32 ") libmagic=N32;;
5101  *-64|*"-64 ") libmagic=64-bit;;
5102  *) libmagic=never-match;;
5103  esac
5104  lt_cv_deplibs_check_method=pass_all
5105  ;;
5106
5107# This must be glibc/ELF.
5108linux* | k*bsd*-gnu | kopensolaris*-gnu)
5109  lt_cv_deplibs_check_method=pass_all
5110  ;;
5111
5112netbsd*)
5113  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5114    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5115  else
5116    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5117  fi
5118  ;;
5119
5120newos6*)
5121  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5122  lt_cv_file_magic_cmd=/usr/bin/file
5123  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5124  ;;
5125
5126*nto* | *qnx*)
5127  lt_cv_deplibs_check_method=pass_all
5128  ;;
5129
5130openbsd*)
5131  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5132    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5133  else
5134    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5135  fi
5136  ;;
5137
5138osf3* | osf4* | osf5*)
5139  lt_cv_deplibs_check_method=pass_all
5140  ;;
5141
5142rdos*)
5143  lt_cv_deplibs_check_method=pass_all
5144  ;;
5145
5146solaris*)
5147  lt_cv_deplibs_check_method=pass_all
5148  ;;
5149
5150sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5151  lt_cv_deplibs_check_method=pass_all
5152  ;;
5153
5154sysv4 | sysv4.3*)
5155  case $host_vendor in
5156  motorola)
5157    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]'
5158    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5159    ;;
5160  ncr)
5161    lt_cv_deplibs_check_method=pass_all
5162    ;;
5163  sequent)
5164    lt_cv_file_magic_cmd='/bin/file'
5165    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5166    ;;
5167  sni)
5168    lt_cv_file_magic_cmd='/bin/file'
5169    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5170    lt_cv_file_magic_test_file=/lib/libc.so
5171    ;;
5172  siemens)
5173    lt_cv_deplibs_check_method=pass_all
5174    ;;
5175  pc)
5176    lt_cv_deplibs_check_method=pass_all
5177    ;;
5178  esac
5179  ;;
5180
5181tpf*)
5182  lt_cv_deplibs_check_method=pass_all
5183  ;;
5184esac
5185
5186fi
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5188$as_echo "$lt_cv_deplibs_check_method" >&6; }
5189
5190file_magic_glob=
5191want_nocaseglob=no
5192if test "$build" = "$host"; then
5193  case $host_os in
5194  mingw* | pw32*)
5195    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5196      want_nocaseglob=yes
5197    else
5198      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5199    fi
5200    ;;
5201  esac
5202fi
5203
5204file_magic_cmd=$lt_cv_file_magic_cmd
5205deplibs_check_method=$lt_cv_deplibs_check_method
5206test -z "$deplibs_check_method" && deplibs_check_method=unknown
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229if test -n "$ac_tool_prefix"; then
5230  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5231set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233$as_echo_n "checking for $ac_word... " >&6; }
5234if ${ac_cv_prog_DLLTOOL+:} false; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237  if test -n "$DLLTOOL"; then
5238  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243  IFS=$as_save_IFS
5244  test -z "$as_dir" && as_dir=.
5245    for ac_exec_ext in '' $ac_executable_extensions; do
5246  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249    break 2
5250  fi
5251done
5252  done
5253IFS=$as_save_IFS
5254
5255fi
5256fi
5257DLLTOOL=$ac_cv_prog_DLLTOOL
5258if test -n "$DLLTOOL"; then
5259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5260$as_echo "$DLLTOOL" >&6; }
5261else
5262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263$as_echo "no" >&6; }
5264fi
5265
5266
5267fi
5268if test -z "$ac_cv_prog_DLLTOOL"; then
5269  ac_ct_DLLTOOL=$DLLTOOL
5270  # Extract the first word of "dlltool", so it can be a program name with args.
5271set dummy dlltool; ac_word=$2
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273$as_echo_n "checking for $ac_word... " >&6; }
5274if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5275  $as_echo_n "(cached) " >&6
5276else
5277  if test -n "$ac_ct_DLLTOOL"; then
5278  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5279else
5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH
5282do
5283  IFS=$as_save_IFS
5284  test -z "$as_dir" && as_dir=.
5285    for ac_exec_ext in '' $ac_executable_extensions; do
5286  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289    break 2
5290  fi
5291done
5292  done
5293IFS=$as_save_IFS
5294
5295fi
5296fi
5297ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5298if test -n "$ac_ct_DLLTOOL"; then
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5300$as_echo "$ac_ct_DLLTOOL" >&6; }
5301else
5302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }
5304fi
5305
5306  if test "x$ac_ct_DLLTOOL" = x; then
5307    DLLTOOL="false"
5308  else
5309    case $cross_compiling:$ac_tool_warned in
5310yes:)
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5313ac_tool_warned=yes ;;
5314esac
5315    DLLTOOL=$ac_ct_DLLTOOL
5316  fi
5317else
5318  DLLTOOL="$ac_cv_prog_DLLTOOL"
5319fi
5320
5321test -z "$DLLTOOL" && DLLTOOL=dlltool
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5333$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5334if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337  lt_cv_sharedlib_from_linklib_cmd='unknown'
5338
5339case $host_os in
5340cygwin* | mingw* | pw32* | cegcc*)
5341  # two different shell functions defined in ltmain.sh
5342  # decide which to use based on capabilities of $DLLTOOL
5343  case `$DLLTOOL --help 2>&1` in
5344  *--identify-strict*)
5345    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5346    ;;
5347  *)
5348    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5349    ;;
5350  esac
5351  ;;
5352*)
5353  # fallback: assume linklib IS sharedlib
5354  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5355  ;;
5356esac
5357
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5360$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5361sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5362test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5363
5364
5365
5366
5367
5368
5369
5370
5371if test -n "$ac_tool_prefix"; then
5372  for ac_prog in ar
5373  do
5374    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5375set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377$as_echo_n "checking for $ac_word... " >&6; }
5378if ${ac_cv_prog_AR+:} false; then :
5379  $as_echo_n "(cached) " >&6
5380else
5381  if test -n "$AR"; then
5382  ac_cv_prog_AR="$AR" # Let the user override the test.
5383else
5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH
5386do
5387  IFS=$as_save_IFS
5388  test -z "$as_dir" && as_dir=.
5389    for ac_exec_ext in '' $ac_executable_extensions; do
5390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393    break 2
5394  fi
5395done
5396  done
5397IFS=$as_save_IFS
5398
5399fi
5400fi
5401AR=$ac_cv_prog_AR
5402if test -n "$AR"; then
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5404$as_echo "$AR" >&6; }
5405else
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408fi
5409
5410
5411    test -n "$AR" && break
5412  done
5413fi
5414if test -z "$AR"; then
5415  ac_ct_AR=$AR
5416  for ac_prog in ar
5417do
5418  # Extract the first word of "$ac_prog", so it can be a program name with args.
5419set dummy $ac_prog; ac_word=$2
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421$as_echo_n "checking for $ac_word... " >&6; }
5422if ${ac_cv_prog_ac_ct_AR+:} false; then :
5423  $as_echo_n "(cached) " >&6
5424else
5425  if test -n "$ac_ct_AR"; then
5426  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5427else
5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431  IFS=$as_save_IFS
5432  test -z "$as_dir" && as_dir=.
5433    for ac_exec_ext in '' $ac_executable_extensions; do
5434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435    ac_cv_prog_ac_ct_AR="$ac_prog"
5436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437    break 2
5438  fi
5439done
5440  done
5441IFS=$as_save_IFS
5442
5443fi
5444fi
5445ac_ct_AR=$ac_cv_prog_ac_ct_AR
5446if test -n "$ac_ct_AR"; then
5447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5448$as_echo "$ac_ct_AR" >&6; }
5449else
5450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451$as_echo "no" >&6; }
5452fi
5453
5454
5455  test -n "$ac_ct_AR" && break
5456done
5457
5458  if test "x$ac_ct_AR" = x; then
5459    AR="false"
5460  else
5461    case $cross_compiling:$ac_tool_warned in
5462yes:)
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5465ac_tool_warned=yes ;;
5466esac
5467    AR=$ac_ct_AR
5468  fi
5469fi
5470
5471: ${AR=ar}
5472: ${AR_FLAGS=cru}
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5485$as_echo_n "checking for archiver @FILE support... " >&6; }
5486if ${lt_cv_ar_at_file+:} false; then :
5487  $as_echo_n "(cached) " >&6
5488else
5489  lt_cv_ar_at_file=no
5490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h.  */
5492
5493int
5494main ()
5495{
5496
5497  ;
5498  return 0;
5499}
5500_ACEOF
5501if ac_fn_c_try_compile "$LINENO"; then :
5502  echo conftest.$ac_objext > conftest.lst
5503      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5504      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5505  (eval $lt_ar_try) 2>&5
5506  ac_status=$?
5507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5508  test $ac_status = 0; }
5509      if test "$ac_status" -eq 0; then
5510	# Ensure the archiver fails upon bogus file names.
5511	rm -f conftest.$ac_objext libconftest.a
5512	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5513  (eval $lt_ar_try) 2>&5
5514  ac_status=$?
5515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5516  test $ac_status = 0; }
5517	if test "$ac_status" -ne 0; then
5518          lt_cv_ar_at_file=@
5519        fi
5520      fi
5521      rm -f conftest.* libconftest.a
5522
5523fi
5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525
5526fi
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5528$as_echo "$lt_cv_ar_at_file" >&6; }
5529
5530if test "x$lt_cv_ar_at_file" = xno; then
5531  archiver_list_spec=
5532else
5533  archiver_list_spec=$lt_cv_ar_at_file
5534fi
5535
5536
5537
5538
5539
5540
5541
5542if test -n "$ac_tool_prefix"; then
5543  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5544set dummy ${ac_tool_prefix}strip; ac_word=$2
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546$as_echo_n "checking for $ac_word... " >&6; }
5547if ${ac_cv_prog_STRIP+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  if test -n "$STRIP"; then
5551  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5552else
5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556  IFS=$as_save_IFS
5557  test -z "$as_dir" && as_dir=.
5558    for ac_exec_ext in '' $ac_executable_extensions; do
5559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562    break 2
5563  fi
5564done
5565  done
5566IFS=$as_save_IFS
5567
5568fi
5569fi
5570STRIP=$ac_cv_prog_STRIP
5571if test -n "$STRIP"; then
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5573$as_echo "$STRIP" >&6; }
5574else
5575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576$as_echo "no" >&6; }
5577fi
5578
5579
5580fi
5581if test -z "$ac_cv_prog_STRIP"; then
5582  ac_ct_STRIP=$STRIP
5583  # Extract the first word of "strip", so it can be a program name with args.
5584set dummy strip; ac_word=$2
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586$as_echo_n "checking for $ac_word... " >&6; }
5587if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5588  $as_echo_n "(cached) " >&6
5589else
5590  if test -n "$ac_ct_STRIP"; then
5591  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5592else
5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in $PATH
5595do
5596  IFS=$as_save_IFS
5597  test -z "$as_dir" && as_dir=.
5598    for ac_exec_ext in '' $ac_executable_extensions; do
5599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600    ac_cv_prog_ac_ct_STRIP="strip"
5601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602    break 2
5603  fi
5604done
5605  done
5606IFS=$as_save_IFS
5607
5608fi
5609fi
5610ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5611if test -n "$ac_ct_STRIP"; then
5612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5613$as_echo "$ac_ct_STRIP" >&6; }
5614else
5615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616$as_echo "no" >&6; }
5617fi
5618
5619  if test "x$ac_ct_STRIP" = x; then
5620    STRIP=":"
5621  else
5622    case $cross_compiling:$ac_tool_warned in
5623yes:)
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5626ac_tool_warned=yes ;;
5627esac
5628    STRIP=$ac_ct_STRIP
5629  fi
5630else
5631  STRIP="$ac_cv_prog_STRIP"
5632fi
5633
5634test -z "$STRIP" && STRIP=:
5635
5636
5637
5638
5639
5640
5641if test -n "$ac_tool_prefix"; then
5642  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5643set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645$as_echo_n "checking for $ac_word... " >&6; }
5646if ${ac_cv_prog_RANLIB+:} false; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649  if test -n "$RANLIB"; then
5650  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655  IFS=$as_save_IFS
5656  test -z "$as_dir" && as_dir=.
5657    for ac_exec_ext in '' $ac_executable_extensions; do
5658  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5659    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661    break 2
5662  fi
5663done
5664  done
5665IFS=$as_save_IFS
5666
5667fi
5668fi
5669RANLIB=$ac_cv_prog_RANLIB
5670if test -n "$RANLIB"; then
5671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5672$as_echo "$RANLIB" >&6; }
5673else
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677
5678
5679fi
5680if test -z "$ac_cv_prog_RANLIB"; then
5681  ac_ct_RANLIB=$RANLIB
5682  # Extract the first word of "ranlib", so it can be a program name with args.
5683set dummy ranlib; ac_word=$2
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685$as_echo_n "checking for $ac_word... " >&6; }
5686if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5687  $as_echo_n "(cached) " >&6
5688else
5689  if test -n "$ac_ct_RANLIB"; then
5690  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695  IFS=$as_save_IFS
5696  test -z "$as_dir" && as_dir=.
5697    for ac_exec_ext in '' $ac_executable_extensions; do
5698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5699    ac_cv_prog_ac_ct_RANLIB="ranlib"
5700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701    break 2
5702  fi
5703done
5704  done
5705IFS=$as_save_IFS
5706
5707fi
5708fi
5709ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5710if test -n "$ac_ct_RANLIB"; then
5711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5712$as_echo "$ac_ct_RANLIB" >&6; }
5713else
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715$as_echo "no" >&6; }
5716fi
5717
5718  if test "x$ac_ct_RANLIB" = x; then
5719    RANLIB=":"
5720  else
5721    case $cross_compiling:$ac_tool_warned in
5722yes:)
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5725ac_tool_warned=yes ;;
5726esac
5727    RANLIB=$ac_ct_RANLIB
5728  fi
5729else
5730  RANLIB="$ac_cv_prog_RANLIB"
5731fi
5732
5733test -z "$RANLIB" && RANLIB=:
5734
5735
5736
5737
5738
5739
5740# Determine commands to create old-style static archives.
5741old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5742old_postinstall_cmds='chmod 644 $oldlib'
5743old_postuninstall_cmds=
5744
5745if test -n "$RANLIB"; then
5746  case $host_os in
5747  openbsd*)
5748    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5749    ;;
5750  *)
5751    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5752    ;;
5753  esac
5754  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5755fi
5756
5757case $host_os in
5758  darwin*)
5759    lock_old_archive_extraction=yes ;;
5760  *)
5761    lock_old_archive_extraction=no ;;
5762esac
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802# If no C compiler was specified, use CC.
5803LTCC=${LTCC-"$CC"}
5804
5805# If no C compiler flags were specified, use CFLAGS.
5806LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5807
5808# Allow CC to be a program name with arguments.
5809compiler=$CC
5810
5811
5812# Check for command to grab the raw symbol name followed by C symbol from nm.
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5814$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5815if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818
5819# These are sane defaults that work on at least a few old systems.
5820# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5821
5822# Character class describing NM global symbol codes.
5823symcode='[BCDEGRST]'
5824
5825# Regexp to match symbols that can be accessed directly from C.
5826sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5827
5828# Define system-specific variables.
5829case $host_os in
5830aix*)
5831  symcode='[BCDT]'
5832  ;;
5833cygwin* | mingw* | pw32* | cegcc*)
5834  symcode='[ABCDGISTW]'
5835  ;;
5836hpux*)
5837  if test "$host_cpu" = ia64; then
5838    symcode='[ABCDEGRST]'
5839  fi
5840  ;;
5841irix* | nonstopux*)
5842  symcode='[BCDEGRST]'
5843  ;;
5844osf*)
5845  symcode='[BCDEGQRST]'
5846  ;;
5847solaris*)
5848  symcode='[BDRT]'
5849  ;;
5850sco3.2v5*)
5851  symcode='[DT]'
5852  ;;
5853sysv4.2uw2*)
5854  symcode='[DT]'
5855  ;;
5856sysv5* | sco5v6* | unixware* | OpenUNIX*)
5857  symcode='[ABDT]'
5858  ;;
5859sysv4)
5860  symcode='[DFNSTU]'
5861  ;;
5862esac
5863
5864# If we're using GNU nm, then use its standard symbol codes.
5865case `$NM -V 2>&1` in
5866*GNU* | *'with BFD'*)
5867  symcode='[ABCDGIRSTW]' ;;
5868esac
5869
5870# Transform an extracted symbol line into a proper C declaration.
5871# Some systems (esp. on ia64) link data and code symbols differently,
5872# so use this general approach.
5873lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5874
5875# Transform an extracted symbol line into symbol name and symbol address
5876lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5877lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5878
5879# Handle CRLF in mingw tool chain
5880opt_cr=
5881case $build_os in
5882mingw*)
5883  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5884  ;;
5885esac
5886
5887# Try without a prefix underscore, then with it.
5888for ac_symprfx in "" "_"; do
5889
5890  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5891  symxfrm="\\1 $ac_symprfx\\2 \\2"
5892
5893  # Write the raw and C identifiers.
5894  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5895    # Fake it for dumpbin and say T for any non-static function
5896    # and D for any global variable.
5897    # Also find C++ and __fastcall symbols from MSVC++,
5898    # which start with @ or ?.
5899    lt_cv_sys_global_symbol_pipe="$AWK '"\
5900"     {last_section=section; section=\$ 3};"\
5901"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5902"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5903"     \$ 0!~/External *\|/{next};"\
5904"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5905"     {if(hide[section]) next};"\
5906"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5907"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5908"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5909"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5910"     ' prfx=^$ac_symprfx"
5911  else
5912    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5913  fi
5914  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5915
5916  # Check to see that the pipe works correctly.
5917  pipe_works=no
5918
5919  rm -f conftest*
5920  cat > conftest.$ac_ext <<_LT_EOF
5921#ifdef __cplusplus
5922extern "C" {
5923#endif
5924char nm_test_var;
5925void nm_test_func(void);
5926void nm_test_func(void){}
5927#ifdef __cplusplus
5928}
5929#endif
5930int main(){nm_test_var='a';nm_test_func();return(0);}
5931_LT_EOF
5932
5933  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5934  (eval $ac_compile) 2>&5
5935  ac_status=$?
5936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937  test $ac_status = 0; }; then
5938    # Now try to grab the symbols.
5939    nlist=conftest.nm
5940    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5941  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5942  ac_status=$?
5943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5944  test $ac_status = 0; } && test -s "$nlist"; then
5945      # Try sorting and uniquifying the output.
5946      if sort "$nlist" | uniq > "$nlist"T; then
5947	mv -f "$nlist"T "$nlist"
5948      else
5949	rm -f "$nlist"T
5950      fi
5951
5952      # Make sure that we snagged all the symbols we need.
5953      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5954	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5955	  cat <<_LT_EOF > conftest.$ac_ext
5956/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5957#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5958/* DATA imports from DLLs on WIN32 con't be const, because runtime
5959   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5960# define LT_DLSYM_CONST
5961#elif defined(__osf__)
5962/* This system does not cope well with relocations in const data.  */
5963# define LT_DLSYM_CONST
5964#else
5965# define LT_DLSYM_CONST const
5966#endif
5967
5968#ifdef __cplusplus
5969extern "C" {
5970#endif
5971
5972_LT_EOF
5973	  # Now generate the symbol file.
5974	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5975
5976	  cat <<_LT_EOF >> conftest.$ac_ext
5977
5978/* The mapping between symbol names and symbols.  */
5979LT_DLSYM_CONST struct {
5980  const char *name;
5981  void       *address;
5982}
5983lt__PROGRAM__LTX_preloaded_symbols[] =
5984{
5985  { "@PROGRAM@", (void *) 0 },
5986_LT_EOF
5987	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5988	  cat <<\_LT_EOF >> conftest.$ac_ext
5989  {0, (void *) 0}
5990};
5991
5992/* This works around a problem in FreeBSD linker */
5993#ifdef FREEBSD_WORKAROUND
5994static const void *lt_preloaded_setup() {
5995  return lt__PROGRAM__LTX_preloaded_symbols;
5996}
5997#endif
5998
5999#ifdef __cplusplus
6000}
6001#endif
6002_LT_EOF
6003	  # Now try linking the two files.
6004	  mv conftest.$ac_objext conftstm.$ac_objext
6005	  lt_globsym_save_LIBS=$LIBS
6006	  lt_globsym_save_CFLAGS=$CFLAGS
6007	  LIBS="conftstm.$ac_objext"
6008	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6009	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6010  (eval $ac_link) 2>&5
6011  ac_status=$?
6012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6013  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6014	    pipe_works=yes
6015	  fi
6016	  LIBS=$lt_globsym_save_LIBS
6017	  CFLAGS=$lt_globsym_save_CFLAGS
6018	else
6019	  echo "cannot find nm_test_func in $nlist" >&5
6020	fi
6021      else
6022	echo "cannot find nm_test_var in $nlist" >&5
6023      fi
6024    else
6025      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6026    fi
6027  else
6028    echo "$progname: failed program was:" >&5
6029    cat conftest.$ac_ext >&5
6030  fi
6031  rm -rf conftest* conftst*
6032
6033  # Do not use the global_symbol_pipe unless it works.
6034  if test "$pipe_works" = yes; then
6035    break
6036  else
6037    lt_cv_sys_global_symbol_pipe=
6038  fi
6039done
6040
6041fi
6042
6043if test -z "$lt_cv_sys_global_symbol_pipe"; then
6044  lt_cv_sys_global_symbol_to_cdecl=
6045fi
6046if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6048$as_echo "failed" >&6; }
6049else
6050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6051$as_echo "ok" >&6; }
6052fi
6053
6054# Response file support.
6055if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6056  nm_file_list_spec='@'
6057elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6058  nm_file_list_spec='@'
6059fi
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6088$as_echo_n "checking for sysroot... " >&6; }
6089
6090# Check whether --with-sysroot was given.
6091if test "${with_sysroot+set}" = set; then :
6092  withval=$with_sysroot;
6093else
6094  with_sysroot=no
6095fi
6096
6097
6098lt_sysroot=
6099case ${with_sysroot} in #(
6100 yes)
6101   if test "$GCC" = yes; then
6102     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6103   fi
6104   ;; #(
6105 /*)
6106   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6107   ;; #(
6108 no|'')
6109   ;; #(
6110 *)
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6112$as_echo "${with_sysroot}" >&6; }
6113   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6114   ;;
6115esac
6116
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6118$as_echo "${lt_sysroot:-no}" >&6; }
6119
6120
6121
6122
6123
6124# Check whether --enable-libtool-lock was given.
6125if test "${enable_libtool_lock+set}" = set; then :
6126  enableval=$enable_libtool_lock;
6127fi
6128
6129test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6130
6131# Some flags need to be propagated to the compiler or linker for good
6132# libtool support.
6133case $host in
6134ia64-*-hpux*)
6135  # Find out which ABI we are using.
6136  echo 'int i;' > conftest.$ac_ext
6137  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6138  (eval $ac_compile) 2>&5
6139  ac_status=$?
6140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141  test $ac_status = 0; }; then
6142    case `/usr/bin/file conftest.$ac_objext` in
6143      *ELF-32*)
6144	HPUX_IA64_MODE="32"
6145	;;
6146      *ELF-64*)
6147	HPUX_IA64_MODE="64"
6148	;;
6149    esac
6150  fi
6151  rm -rf conftest*
6152  ;;
6153*-*-irix6*)
6154  # Find out which ABI we are using.
6155  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6156  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6157  (eval $ac_compile) 2>&5
6158  ac_status=$?
6159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160  test $ac_status = 0; }; then
6161    if test "$lt_cv_prog_gnu_ld" = yes; then
6162      case `/usr/bin/file conftest.$ac_objext` in
6163	*32-bit*)
6164	  LD="${LD-ld} -melf32bsmip"
6165	  ;;
6166	*N32*)
6167	  LD="${LD-ld} -melf32bmipn32"
6168	  ;;
6169	*64-bit*)
6170	  LD="${LD-ld} -melf64bmip"
6171	;;
6172      esac
6173    else
6174      case `/usr/bin/file conftest.$ac_objext` in
6175	*32-bit*)
6176	  LD="${LD-ld} -32"
6177	  ;;
6178	*N32*)
6179	  LD="${LD-ld} -n32"
6180	  ;;
6181	*64-bit*)
6182	  LD="${LD-ld} -64"
6183	  ;;
6184      esac
6185    fi
6186  fi
6187  rm -rf conftest*
6188  ;;
6189
6190x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6191s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6192  # Find out which ABI we are using.
6193  echo 'int i;' > conftest.$ac_ext
6194  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6195  (eval $ac_compile) 2>&5
6196  ac_status=$?
6197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198  test $ac_status = 0; }; then
6199    case `/usr/bin/file conftest.o` in
6200      *32-bit*)
6201	case $host in
6202	  x86_64-*kfreebsd*-gnu)
6203	    LD="${LD-ld} -m elf_i386_fbsd"
6204	    ;;
6205	  x86_64-*linux*)
6206	    LD="${LD-ld} -m elf_i386"
6207	    ;;
6208	  ppc64-*linux*|powerpc64-*linux*)
6209	    LD="${LD-ld} -m elf32ppclinux"
6210	    ;;
6211	  s390x-*linux*)
6212	    LD="${LD-ld} -m elf_s390"
6213	    ;;
6214	  sparc64-*linux*)
6215	    LD="${LD-ld} -m elf32_sparc"
6216	    ;;
6217	esac
6218	;;
6219      *64-bit*)
6220	case $host in
6221	  x86_64-*kfreebsd*-gnu)
6222	    LD="${LD-ld} -m elf_x86_64_fbsd"
6223	    ;;
6224	  x86_64-*linux*)
6225	    LD="${LD-ld} -m elf_x86_64"
6226	    ;;
6227	  ppc*-*linux*|powerpc*-*linux*)
6228	    LD="${LD-ld} -m elf64ppc"
6229	    ;;
6230	  s390*-*linux*|s390*-*tpf*)
6231	    LD="${LD-ld} -m elf64_s390"
6232	    ;;
6233	  sparc*-*linux*)
6234	    LD="${LD-ld} -m elf64_sparc"
6235	    ;;
6236	esac
6237	;;
6238    esac
6239  fi
6240  rm -rf conftest*
6241  ;;
6242
6243*-*-sco3.2v5*)
6244  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6245  SAVE_CFLAGS="$CFLAGS"
6246  CFLAGS="$CFLAGS -belf"
6247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6248$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6249if ${lt_cv_cc_needs_belf+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252  ac_ext=c
6253ac_cpp='$CPP $CPPFLAGS'
6254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257
6258     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h.  */
6260
6261int
6262main ()
6263{
6264
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269if ac_fn_c_try_link "$LINENO"; then :
6270  lt_cv_cc_needs_belf=yes
6271else
6272  lt_cv_cc_needs_belf=no
6273fi
6274rm -f core conftest.err conftest.$ac_objext \
6275    conftest$ac_exeext conftest.$ac_ext
6276     ac_ext=c
6277ac_cpp='$CPP $CPPFLAGS'
6278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281
6282fi
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6284$as_echo "$lt_cv_cc_needs_belf" >&6; }
6285  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6286    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6287    CFLAGS="$SAVE_CFLAGS"
6288  fi
6289  ;;
6290*-*solaris*)
6291  # Find out which ABI we are using.
6292  echo 'int i;' > conftest.$ac_ext
6293  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6294  (eval $ac_compile) 2>&5
6295  ac_status=$?
6296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297  test $ac_status = 0; }; then
6298    case `/usr/bin/file conftest.o` in
6299    *64-bit*)
6300      case $lt_cv_prog_gnu_ld in
6301      yes*)
6302        case $host in
6303        i?86-*-solaris*)
6304          LD="${LD-ld} -m elf_x86_64"
6305          ;;
6306        sparc*-*-solaris*)
6307          LD="${LD-ld} -m elf64_sparc"
6308          ;;
6309        esac
6310        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6311        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6312          LD="${LD-ld}_sol2"
6313        fi
6314        ;;
6315      *)
6316	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6317	  LD="${LD-ld} -64"
6318	fi
6319	;;
6320      esac
6321      ;;
6322    esac
6323  fi
6324  rm -rf conftest*
6325  ;;
6326esac
6327
6328need_locks="$enable_libtool_lock"
6329
6330if test -n "$ac_tool_prefix"; then
6331  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6332set dummy ${ac_tool_prefix}mt; ac_word=$2
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334$as_echo_n "checking for $ac_word... " >&6; }
6335if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  if test -n "$MANIFEST_TOOL"; then
6339  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6340else
6341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342for as_dir in $PATH
6343do
6344  IFS=$as_save_IFS
6345  test -z "$as_dir" && as_dir=.
6346    for ac_exec_ext in '' $ac_executable_extensions; do
6347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350    break 2
6351  fi
6352done
6353  done
6354IFS=$as_save_IFS
6355
6356fi
6357fi
6358MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6359if test -n "$MANIFEST_TOOL"; then
6360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6361$as_echo "$MANIFEST_TOOL" >&6; }
6362else
6363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364$as_echo "no" >&6; }
6365fi
6366
6367
6368fi
6369if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6370  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6371  # Extract the first word of "mt", so it can be a program name with args.
6372set dummy mt; ac_word=$2
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; }
6375if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6376  $as_echo_n "(cached) " >&6
6377else
6378  if test -n "$ac_ct_MANIFEST_TOOL"; then
6379  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6380else
6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384  IFS=$as_save_IFS
6385  test -z "$as_dir" && as_dir=.
6386    for ac_exec_ext in '' $ac_executable_extensions; do
6387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390    break 2
6391  fi
6392done
6393  done
6394IFS=$as_save_IFS
6395
6396fi
6397fi
6398ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6399if test -n "$ac_ct_MANIFEST_TOOL"; then
6400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6401$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6402else
6403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404$as_echo "no" >&6; }
6405fi
6406
6407  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6408    MANIFEST_TOOL=":"
6409  else
6410    case $cross_compiling:$ac_tool_warned in
6411yes:)
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414ac_tool_warned=yes ;;
6415esac
6416    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6417  fi
6418else
6419  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6420fi
6421
6422test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6424$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6425if ${lt_cv_path_mainfest_tool+:} false; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  lt_cv_path_mainfest_tool=no
6429  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6430  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6431  cat conftest.err >&5
6432  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6433    lt_cv_path_mainfest_tool=yes
6434  fi
6435  rm -f conftest*
6436fi
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6438$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6439if test "x$lt_cv_path_mainfest_tool" != xyes; then
6440  MANIFEST_TOOL=:
6441fi
6442
6443
6444
6445
6446
6447
6448  case $host_os in
6449    rhapsody* | darwin*)
6450    if test -n "$ac_tool_prefix"; then
6451  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6452set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454$as_echo_n "checking for $ac_word... " >&6; }
6455if ${ac_cv_prog_DSYMUTIL+:} false; then :
6456  $as_echo_n "(cached) " >&6
6457else
6458  if test -n "$DSYMUTIL"; then
6459  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6460else
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464  IFS=$as_save_IFS
6465  test -z "$as_dir" && as_dir=.
6466    for ac_exec_ext in '' $ac_executable_extensions; do
6467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470    break 2
6471  fi
6472done
6473  done
6474IFS=$as_save_IFS
6475
6476fi
6477fi
6478DSYMUTIL=$ac_cv_prog_DSYMUTIL
6479if test -n "$DSYMUTIL"; then
6480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6481$as_echo "$DSYMUTIL" >&6; }
6482else
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484$as_echo "no" >&6; }
6485fi
6486
6487
6488fi
6489if test -z "$ac_cv_prog_DSYMUTIL"; then
6490  ac_ct_DSYMUTIL=$DSYMUTIL
6491  # Extract the first word of "dsymutil", so it can be a program name with args.
6492set dummy dsymutil; ac_word=$2
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494$as_echo_n "checking for $ac_word... " >&6; }
6495if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6496  $as_echo_n "(cached) " >&6
6497else
6498  if test -n "$ac_ct_DSYMUTIL"; then
6499  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504  IFS=$as_save_IFS
6505  test -z "$as_dir" && as_dir=.
6506    for ac_exec_ext in '' $ac_executable_extensions; do
6507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510    break 2
6511  fi
6512done
6513  done
6514IFS=$as_save_IFS
6515
6516fi
6517fi
6518ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6519if test -n "$ac_ct_DSYMUTIL"; then
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6521$as_echo "$ac_ct_DSYMUTIL" >&6; }
6522else
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524$as_echo "no" >&6; }
6525fi
6526
6527  if test "x$ac_ct_DSYMUTIL" = x; then
6528    DSYMUTIL=":"
6529  else
6530    case $cross_compiling:$ac_tool_warned in
6531yes:)
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534ac_tool_warned=yes ;;
6535esac
6536    DSYMUTIL=$ac_ct_DSYMUTIL
6537  fi
6538else
6539  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6540fi
6541
6542    if test -n "$ac_tool_prefix"; then
6543  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6544set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546$as_echo_n "checking for $ac_word... " >&6; }
6547if ${ac_cv_prog_NMEDIT+:} false; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550  if test -n "$NMEDIT"; then
6551  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556  IFS=$as_save_IFS
6557  test -z "$as_dir" && as_dir=.
6558    for ac_exec_ext in '' $ac_executable_extensions; do
6559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562    break 2
6563  fi
6564done
6565  done
6566IFS=$as_save_IFS
6567
6568fi
6569fi
6570NMEDIT=$ac_cv_prog_NMEDIT
6571if test -n "$NMEDIT"; then
6572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6573$as_echo "$NMEDIT" >&6; }
6574else
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576$as_echo "no" >&6; }
6577fi
6578
6579
6580fi
6581if test -z "$ac_cv_prog_NMEDIT"; then
6582  ac_ct_NMEDIT=$NMEDIT
6583  # Extract the first word of "nmedit", so it can be a program name with args.
6584set dummy nmedit; ac_word=$2
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586$as_echo_n "checking for $ac_word... " >&6; }
6587if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  if test -n "$ac_ct_NMEDIT"; then
6591  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596  IFS=$as_save_IFS
6597  test -z "$as_dir" && as_dir=.
6598    for ac_exec_ext in '' $ac_executable_extensions; do
6599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602    break 2
6603  fi
6604done
6605  done
6606IFS=$as_save_IFS
6607
6608fi
6609fi
6610ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6611if test -n "$ac_ct_NMEDIT"; then
6612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6613$as_echo "$ac_ct_NMEDIT" >&6; }
6614else
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616$as_echo "no" >&6; }
6617fi
6618
6619  if test "x$ac_ct_NMEDIT" = x; then
6620    NMEDIT=":"
6621  else
6622    case $cross_compiling:$ac_tool_warned in
6623yes:)
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626ac_tool_warned=yes ;;
6627esac
6628    NMEDIT=$ac_ct_NMEDIT
6629  fi
6630else
6631  NMEDIT="$ac_cv_prog_NMEDIT"
6632fi
6633
6634    if test -n "$ac_tool_prefix"; then
6635  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6636set dummy ${ac_tool_prefix}lipo; ac_word=$2
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638$as_echo_n "checking for $ac_word... " >&6; }
6639if ${ac_cv_prog_LIPO+:} false; then :
6640  $as_echo_n "(cached) " >&6
6641else
6642  if test -n "$LIPO"; then
6643  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6644else
6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648  IFS=$as_save_IFS
6649  test -z "$as_dir" && as_dir=.
6650    for ac_exec_ext in '' $ac_executable_extensions; do
6651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654    break 2
6655  fi
6656done
6657  done
6658IFS=$as_save_IFS
6659
6660fi
6661fi
6662LIPO=$ac_cv_prog_LIPO
6663if test -n "$LIPO"; then
6664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6665$as_echo "$LIPO" >&6; }
6666else
6667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668$as_echo "no" >&6; }
6669fi
6670
6671
6672fi
6673if test -z "$ac_cv_prog_LIPO"; then
6674  ac_ct_LIPO=$LIPO
6675  # Extract the first word of "lipo", so it can be a program name with args.
6676set dummy lipo; ac_word=$2
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678$as_echo_n "checking for $ac_word... " >&6; }
6679if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  if test -n "$ac_ct_LIPO"; then
6683  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6684else
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688  IFS=$as_save_IFS
6689  test -z "$as_dir" && as_dir=.
6690    for ac_exec_ext in '' $ac_executable_extensions; do
6691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692    ac_cv_prog_ac_ct_LIPO="lipo"
6693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694    break 2
6695  fi
6696done
6697  done
6698IFS=$as_save_IFS
6699
6700fi
6701fi
6702ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6703if test -n "$ac_ct_LIPO"; then
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6705$as_echo "$ac_ct_LIPO" >&6; }
6706else
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708$as_echo "no" >&6; }
6709fi
6710
6711  if test "x$ac_ct_LIPO" = x; then
6712    LIPO=":"
6713  else
6714    case $cross_compiling:$ac_tool_warned in
6715yes:)
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6718ac_tool_warned=yes ;;
6719esac
6720    LIPO=$ac_ct_LIPO
6721  fi
6722else
6723  LIPO="$ac_cv_prog_LIPO"
6724fi
6725
6726    if test -n "$ac_tool_prefix"; then
6727  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6728set dummy ${ac_tool_prefix}otool; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
6731if ${ac_cv_prog_OTOOL+:} false; then :
6732  $as_echo_n "(cached) " >&6
6733else
6734  if test -n "$OTOOL"; then
6735  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742    for ac_exec_ext in '' $ac_executable_extensions; do
6743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749  done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754OTOOL=$ac_cv_prog_OTOOL
6755if test -n "$OTOOL"; then
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6757$as_echo "$OTOOL" >&6; }
6758else
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763
6764fi
6765if test -z "$ac_cv_prog_OTOOL"; then
6766  ac_ct_OTOOL=$OTOOL
6767  # Extract the first word of "otool", so it can be a program name with args.
6768set dummy otool; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
6771if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  if test -n "$ac_ct_OTOOL"; then
6775  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782    for ac_exec_ext in '' $ac_executable_extensions; do
6783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784    ac_cv_prog_ac_ct_OTOOL="otool"
6785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786    break 2
6787  fi
6788done
6789  done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6795if test -n "$ac_ct_OTOOL"; then
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6797$as_echo "$ac_ct_OTOOL" >&6; }
6798else
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803  if test "x$ac_ct_OTOOL" = x; then
6804    OTOOL=":"
6805  else
6806    case $cross_compiling:$ac_tool_warned in
6807yes:)
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810ac_tool_warned=yes ;;
6811esac
6812    OTOOL=$ac_ct_OTOOL
6813  fi
6814else
6815  OTOOL="$ac_cv_prog_OTOOL"
6816fi
6817
6818    if test -n "$ac_tool_prefix"; then
6819  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6820set dummy ${ac_tool_prefix}otool64; ac_word=$2
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
6823if ${ac_cv_prog_OTOOL64+:} false; then :
6824  $as_echo_n "(cached) " >&6
6825else
6826  if test -n "$OTOOL64"; then
6827  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832  IFS=$as_save_IFS
6833  test -z "$as_dir" && as_dir=.
6834    for ac_exec_ext in '' $ac_executable_extensions; do
6835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838    break 2
6839  fi
6840done
6841  done
6842IFS=$as_save_IFS
6843
6844fi
6845fi
6846OTOOL64=$ac_cv_prog_OTOOL64
6847if test -n "$OTOOL64"; then
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6849$as_echo "$OTOOL64" >&6; }
6850else
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853fi
6854
6855
6856fi
6857if test -z "$ac_cv_prog_OTOOL64"; then
6858  ac_ct_OTOOL64=$OTOOL64
6859  # Extract the first word of "otool64", so it can be a program name with args.
6860set dummy otool64; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
6863if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  if test -n "$ac_ct_OTOOL64"; then
6867  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872  IFS=$as_save_IFS
6873  test -z "$as_dir" && as_dir=.
6874    for ac_exec_ext in '' $ac_executable_extensions; do
6875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876    ac_cv_prog_ac_ct_OTOOL64="otool64"
6877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878    break 2
6879  fi
6880done
6881  done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6887if test -n "$ac_ct_OTOOL64"; then
6888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6889$as_echo "$ac_ct_OTOOL64" >&6; }
6890else
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895  if test "x$ac_ct_OTOOL64" = x; then
6896    OTOOL64=":"
6897  else
6898    case $cross_compiling:$ac_tool_warned in
6899yes:)
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904    OTOOL64=$ac_ct_OTOOL64
6905  fi
6906else
6907  OTOOL64="$ac_cv_prog_OTOOL64"
6908fi
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6937$as_echo_n "checking for -single_module linker flag... " >&6; }
6938if ${lt_cv_apple_cc_single_mod+:} false; then :
6939  $as_echo_n "(cached) " >&6
6940else
6941  lt_cv_apple_cc_single_mod=no
6942      if test -z "${LT_MULTI_MODULE}"; then
6943	# By default we will add the -single_module flag. You can override
6944	# by either setting the environment variable LT_MULTI_MODULE
6945	# non-empty at configure time, or by adding -multi_module to the
6946	# link flags.
6947	rm -rf libconftest.dylib*
6948	echo "int foo(void){return 1;}" > conftest.c
6949	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6950-dynamiclib -Wl,-single_module conftest.c" >&5
6951	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6952	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6953        _lt_result=$?
6954	# If there is a non-empty error log, and "single_module"
6955	# appears in it, assume the flag caused a linker warning
6956        if test -s conftest.err && $GREP single_module conftest.err; then
6957	  cat conftest.err >&5
6958	# Otherwise, if the output was created with a 0 exit code from
6959	# the compiler, it worked.
6960	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6961	  lt_cv_apple_cc_single_mod=yes
6962	else
6963	  cat conftest.err >&5
6964	fi
6965	rm -rf libconftest.dylib*
6966	rm -f conftest.*
6967      fi
6968fi
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6970$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6971
6972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6973$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6974if ${lt_cv_ld_exported_symbols_list+:} false; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977  lt_cv_ld_exported_symbols_list=no
6978      save_LDFLAGS=$LDFLAGS
6979      echo "_main" > conftest.sym
6980      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6981      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983
6984int
6985main ()
6986{
6987
6988  ;
6989  return 0;
6990}
6991_ACEOF
6992if ac_fn_c_try_link "$LINENO"; then :
6993  lt_cv_ld_exported_symbols_list=yes
6994else
6995  lt_cv_ld_exported_symbols_list=no
6996fi
6997rm -f core conftest.err conftest.$ac_objext \
6998    conftest$ac_exeext conftest.$ac_ext
6999	LDFLAGS="$save_LDFLAGS"
7000
7001fi
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7003$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7004
7005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7006$as_echo_n "checking for -force_load linker flag... " >&6; }
7007if ${lt_cv_ld_force_load+:} false; then :
7008  $as_echo_n "(cached) " >&6
7009else
7010  lt_cv_ld_force_load=no
7011      cat > conftest.c << _LT_EOF
7012int forced_loaded() { return 2;}
7013_LT_EOF
7014      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7015      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7016      echo "$AR cru libconftest.a conftest.o" >&5
7017      $AR cru libconftest.a conftest.o 2>&5
7018      echo "$RANLIB libconftest.a" >&5
7019      $RANLIB libconftest.a 2>&5
7020      cat > conftest.c << _LT_EOF
7021int main() { return 0;}
7022_LT_EOF
7023      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7024      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7025      _lt_result=$?
7026      if test -s conftest.err && $GREP force_load conftest.err; then
7027	cat conftest.err >&5
7028      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7029	lt_cv_ld_force_load=yes
7030      else
7031	cat conftest.err >&5
7032      fi
7033        rm -f conftest.err libconftest.a conftest conftest.c
7034        rm -rf conftest.dSYM
7035
7036fi
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7038$as_echo "$lt_cv_ld_force_load" >&6; }
7039    case $host_os in
7040    rhapsody* | darwin1.[012])
7041      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7042    darwin1.*)
7043      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7044    darwin*) # darwin 5.x on
7045      # if running on 10.5 or later, the deployment target defaults
7046      # to the OS version, if on x86, and 10.4, the deployment
7047      # target defaults to 10.4. Don't you love it?
7048      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7049	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7050	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7051	10.[012]*)
7052	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7053	10.*)
7054	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7055      esac
7056    ;;
7057  esac
7058    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7059      _lt_dar_single_mod='$single_module'
7060    fi
7061    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7062      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7063    else
7064      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7065    fi
7066    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7067      _lt_dsymutil='~$DSYMUTIL $lib || :'
7068    else
7069      _lt_dsymutil=
7070    fi
7071    ;;
7072  esac
7073
7074ac_ext=c
7075ac_cpp='$CPP $CPPFLAGS'
7076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7080$as_echo_n "checking how to run the C preprocessor... " >&6; }
7081# On Suns, sometimes $CPP names a directory.
7082if test -n "$CPP" && test -d "$CPP"; then
7083  CPP=
7084fi
7085if test -z "$CPP"; then
7086  if ${ac_cv_prog_CPP+:} false; then :
7087  $as_echo_n "(cached) " >&6
7088else
7089      # Double quotes because CPP needs to be expanded
7090    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7091    do
7092      ac_preproc_ok=false
7093for ac_c_preproc_warn_flag in '' yes
7094do
7095  # Use a header file that comes with gcc, so configuring glibc
7096  # with a fresh cross-compiler works.
7097  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098  # <limits.h> exists even on freestanding compilers.
7099  # On the NeXT, cc -E runs the code through the compiler's parser,
7100  # not just through cpp. "Syntax error" is here to catch this case.
7101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103#ifdef __STDC__
7104# include <limits.h>
7105#else
7106# include <assert.h>
7107#endif
7108		     Syntax error
7109_ACEOF
7110if ac_fn_c_try_cpp "$LINENO"; then :
7111
7112else
7113  # Broken: fails on valid input.
7114continue
7115fi
7116rm -f conftest.err conftest.i conftest.$ac_ext
7117
7118  # OK, works on sane cases.  Now check whether nonexistent headers
7119  # can be detected and how.
7120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h.  */
7122#include <ac_nonexistent.h>
7123_ACEOF
7124if ac_fn_c_try_cpp "$LINENO"; then :
7125  # Broken: success on invalid input.
7126continue
7127else
7128  # Passes both tests.
7129ac_preproc_ok=:
7130break
7131fi
7132rm -f conftest.err conftest.i conftest.$ac_ext
7133
7134done
7135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7136rm -f conftest.i conftest.err conftest.$ac_ext
7137if $ac_preproc_ok; then :
7138  break
7139fi
7140
7141    done
7142    ac_cv_prog_CPP=$CPP
7143
7144fi
7145  CPP=$ac_cv_prog_CPP
7146else
7147  ac_cv_prog_CPP=$CPP
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7150$as_echo "$CPP" >&6; }
7151ac_preproc_ok=false
7152for ac_c_preproc_warn_flag in '' yes
7153do
7154  # Use a header file that comes with gcc, so configuring glibc
7155  # with a fresh cross-compiler works.
7156  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157  # <limits.h> exists even on freestanding compilers.
7158  # On the NeXT, cc -E runs the code through the compiler's parser,
7159  # not just through cpp. "Syntax error" is here to catch this case.
7160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161/* end confdefs.h.  */
7162#ifdef __STDC__
7163# include <limits.h>
7164#else
7165# include <assert.h>
7166#endif
7167		     Syntax error
7168_ACEOF
7169if ac_fn_c_try_cpp "$LINENO"; then :
7170
7171else
7172  # Broken: fails on valid input.
7173continue
7174fi
7175rm -f conftest.err conftest.i conftest.$ac_ext
7176
7177  # OK, works on sane cases.  Now check whether nonexistent headers
7178  # can be detected and how.
7179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h.  */
7181#include <ac_nonexistent.h>
7182_ACEOF
7183if ac_fn_c_try_cpp "$LINENO"; then :
7184  # Broken: success on invalid input.
7185continue
7186else
7187  # Passes both tests.
7188ac_preproc_ok=:
7189break
7190fi
7191rm -f conftest.err conftest.i conftest.$ac_ext
7192
7193done
7194# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7195rm -f conftest.i conftest.err conftest.$ac_ext
7196if $ac_preproc_ok; then :
7197
7198else
7199  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7201as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7202See \`config.log' for more details" "$LINENO" 5; }
7203fi
7204
7205ac_ext=c
7206ac_cpp='$CPP $CPPFLAGS'
7207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7209ac_compiler_gnu=$ac_cv_c_compiler_gnu
7210
7211
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7213$as_echo_n "checking for ANSI C header files... " >&6; }
7214if ${ac_cv_header_stdc+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218/* end confdefs.h.  */
7219#include <stdlib.h>
7220#include <stdarg.h>
7221#include <string.h>
7222#include <float.h>
7223
7224int
7225main ()
7226{
7227
7228  ;
7229  return 0;
7230}
7231_ACEOF
7232if ac_fn_c_try_compile "$LINENO"; then :
7233  ac_cv_header_stdc=yes
7234else
7235  ac_cv_header_stdc=no
7236fi
7237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238
7239if test $ac_cv_header_stdc = yes; then
7240  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243#include <string.h>
7244
7245_ACEOF
7246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7247  $EGREP "memchr" >/dev/null 2>&1; then :
7248
7249else
7250  ac_cv_header_stdc=no
7251fi
7252rm -f conftest*
7253
7254fi
7255
7256if test $ac_cv_header_stdc = yes; then
7257  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h.  */
7260#include <stdlib.h>
7261
7262_ACEOF
7263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7264  $EGREP "free" >/dev/null 2>&1; then :
7265
7266else
7267  ac_cv_header_stdc=no
7268fi
7269rm -f conftest*
7270
7271fi
7272
7273if test $ac_cv_header_stdc = yes; then
7274  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7275  if test "$cross_compiling" = yes; then :
7276  :
7277else
7278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h.  */
7280#include <ctype.h>
7281#include <stdlib.h>
7282#if ((' ' & 0x0FF) == 0x020)
7283# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7284# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7285#else
7286# define ISLOWER(c) \
7287		   (('a' <= (c) && (c) <= 'i') \
7288		     || ('j' <= (c) && (c) <= 'r') \
7289		     || ('s' <= (c) && (c) <= 'z'))
7290# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7291#endif
7292
7293#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7294int
7295main ()
7296{
7297  int i;
7298  for (i = 0; i < 256; i++)
7299    if (XOR (islower (i), ISLOWER (i))
7300	|| toupper (i) != TOUPPER (i))
7301      return 2;
7302  return 0;
7303}
7304_ACEOF
7305if ac_fn_c_try_run "$LINENO"; then :
7306
7307else
7308  ac_cv_header_stdc=no
7309fi
7310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7311  conftest.$ac_objext conftest.beam conftest.$ac_ext
7312fi
7313
7314fi
7315fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7317$as_echo "$ac_cv_header_stdc" >&6; }
7318if test $ac_cv_header_stdc = yes; then
7319
7320$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7321
7322fi
7323
7324# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7325for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7326		  inttypes.h stdint.h unistd.h
7327do :
7328  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7329ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7330"
7331if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7332  cat >>confdefs.h <<_ACEOF
7333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7334_ACEOF
7335
7336fi
7337
7338done
7339
7340
7341for ac_header in dlfcn.h
7342do :
7343  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7344"
7345if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7346  cat >>confdefs.h <<_ACEOF
7347#define HAVE_DLFCN_H 1
7348_ACEOF
7349
7350fi
7351
7352done
7353
7354
7355
7356
7357
7358# Set options
7359
7360
7361
7362        enable_dlopen=no
7363
7364
7365  enable_win32_dll=no
7366
7367
7368            # Check whether --enable-shared was given.
7369if test "${enable_shared+set}" = set; then :
7370  enableval=$enable_shared; p=${PACKAGE-default}
7371    case $enableval in
7372    yes) enable_shared=yes ;;
7373    no) enable_shared=no ;;
7374    *)
7375      enable_shared=no
7376      # Look at the argument we got.  We use all the common list separators.
7377      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378      for pkg in $enableval; do
7379	IFS="$lt_save_ifs"
7380	if test "X$pkg" = "X$p"; then
7381	  enable_shared=yes
7382	fi
7383      done
7384      IFS="$lt_save_ifs"
7385      ;;
7386    esac
7387else
7388  enable_shared=yes
7389fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399  # Check whether --enable-static was given.
7400if test "${enable_static+set}" = set; then :
7401  enableval=$enable_static; p=${PACKAGE-default}
7402    case $enableval in
7403    yes) enable_static=yes ;;
7404    no) enable_static=no ;;
7405    *)
7406     enable_static=no
7407      # Look at the argument we got.  We use all the common list separators.
7408      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409      for pkg in $enableval; do
7410	IFS="$lt_save_ifs"
7411	if test "X$pkg" = "X$p"; then
7412	  enable_static=yes
7413	fi
7414      done
7415      IFS="$lt_save_ifs"
7416      ;;
7417    esac
7418else
7419  enable_static=yes
7420fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431# Check whether --with-pic was given.
7432if test "${with_pic+set}" = set; then :
7433  withval=$with_pic; lt_p=${PACKAGE-default}
7434    case $withval in
7435    yes|no) pic_mode=$withval ;;
7436    *)
7437      pic_mode=default
7438      # Look at the argument we got.  We use all the common list separators.
7439      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7440      for lt_pkg in $withval; do
7441	IFS="$lt_save_ifs"
7442	if test "X$lt_pkg" = "X$lt_p"; then
7443	  pic_mode=yes
7444	fi
7445      done
7446      IFS="$lt_save_ifs"
7447      ;;
7448    esac
7449else
7450  pic_mode=default
7451fi
7452
7453
7454test -z "$pic_mode" && pic_mode=default
7455
7456
7457
7458
7459
7460
7461
7462  # Check whether --enable-fast-install was given.
7463if test "${enable_fast_install+set}" = set; then :
7464  enableval=$enable_fast_install; p=${PACKAGE-default}
7465    case $enableval in
7466    yes) enable_fast_install=yes ;;
7467    no) enable_fast_install=no ;;
7468    *)
7469      enable_fast_install=no
7470      # Look at the argument we got.  We use all the common list separators.
7471      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7472      for pkg in $enableval; do
7473	IFS="$lt_save_ifs"
7474	if test "X$pkg" = "X$p"; then
7475	  enable_fast_install=yes
7476	fi
7477      done
7478      IFS="$lt_save_ifs"
7479      ;;
7480    esac
7481else
7482  enable_fast_install=yes
7483fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495# This can be used to rebuild libtool when needed
7496LIBTOOL_DEPS="$ltmain"
7497
7498# Always use our own libtool.
7499LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530test -z "$LN_S" && LN_S="ln -s"
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545if test -n "${ZSH_VERSION+set}" ; then
7546   setopt NO_GLOB_SUBST
7547fi
7548
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7550$as_echo_n "checking for objdir... " >&6; }
7551if ${lt_cv_objdir+:} false; then :
7552  $as_echo_n "(cached) " >&6
7553else
7554  rm -f .libs 2>/dev/null
7555mkdir .libs 2>/dev/null
7556if test -d .libs; then
7557  lt_cv_objdir=.libs
7558else
7559  # MS-DOS does not allow filenames that begin with a dot.
7560  lt_cv_objdir=_libs
7561fi
7562rmdir .libs 2>/dev/null
7563fi
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7565$as_echo "$lt_cv_objdir" >&6; }
7566objdir=$lt_cv_objdir
7567
7568
7569
7570
7571
7572cat >>confdefs.h <<_ACEOF
7573#define LT_OBJDIR "$lt_cv_objdir/"
7574_ACEOF
7575
7576
7577
7578
7579case $host_os in
7580aix3*)
7581  # AIX sometimes has problems with the GCC collect2 program.  For some
7582  # reason, if we set the COLLECT_NAMES environment variable, the problems
7583  # vanish in a puff of smoke.
7584  if test "X${COLLECT_NAMES+set}" != Xset; then
7585    COLLECT_NAMES=
7586    export COLLECT_NAMES
7587  fi
7588  ;;
7589esac
7590
7591# Global variables:
7592ofile=libtool
7593can_build_shared=yes
7594
7595# All known linkers require a `.a' archive for static linking (except MSVC,
7596# which needs '.lib').
7597libext=a
7598
7599with_gnu_ld="$lt_cv_prog_gnu_ld"
7600
7601old_CC="$CC"
7602old_CFLAGS="$CFLAGS"
7603
7604# Set sane defaults for various variables
7605test -z "$CC" && CC=cc
7606test -z "$LTCC" && LTCC=$CC
7607test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7608test -z "$LD" && LD=ld
7609test -z "$ac_objext" && ac_objext=o
7610
7611for cc_temp in $compiler""; do
7612  case $cc_temp in
7613    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7614    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7615    \-*) ;;
7616    *) break;;
7617  esac
7618done
7619cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7620
7621
7622# Only perform the check for file, if the check method requires it
7623test -z "$MAGIC_CMD" && MAGIC_CMD=file
7624case $deplibs_check_method in
7625file_magic*)
7626  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7627    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7628$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7629if ${lt_cv_path_MAGIC_CMD+:} false; then :
7630  $as_echo_n "(cached) " >&6
7631else
7632  case $MAGIC_CMD in
7633[\\/*] |  ?:[\\/]*)
7634  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7635  ;;
7636*)
7637  lt_save_MAGIC_CMD="$MAGIC_CMD"
7638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7640  for ac_dir in $ac_dummy; do
7641    IFS="$lt_save_ifs"
7642    test -z "$ac_dir" && ac_dir=.
7643    if test -f $ac_dir/${ac_tool_prefix}file; then
7644      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7645      if test -n "$file_magic_test_file"; then
7646	case $deplibs_check_method in
7647	"file_magic "*)
7648	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7649	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7651	    $EGREP "$file_magic_regex" > /dev/null; then
7652	    :
7653	  else
7654	    cat <<_LT_EOF 1>&2
7655
7656*** Warning: the command libtool uses to detect shared libraries,
7657*** $file_magic_cmd, produces output that libtool cannot recognize.
7658*** The result is that libtool may fail to recognize shared libraries
7659*** as such.  This will affect the creation of libtool libraries that
7660*** depend on shared libraries, but programs linked with such libtool
7661*** libraries will work regardless of this problem.  Nevertheless, you
7662*** may want to report the problem to your system manager and/or to
7663*** bug-libtool@gnu.org
7664
7665_LT_EOF
7666	  fi ;;
7667	esac
7668      fi
7669      break
7670    fi
7671  done
7672  IFS="$lt_save_ifs"
7673  MAGIC_CMD="$lt_save_MAGIC_CMD"
7674  ;;
7675esac
7676fi
7677
7678MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679if test -n "$MAGIC_CMD"; then
7680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7681$as_echo "$MAGIC_CMD" >&6; }
7682else
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684$as_echo "no" >&6; }
7685fi
7686
7687
7688
7689
7690
7691if test -z "$lt_cv_path_MAGIC_CMD"; then
7692  if test -n "$ac_tool_prefix"; then
7693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7694$as_echo_n "checking for file... " >&6; }
7695if ${lt_cv_path_MAGIC_CMD+:} false; then :
7696  $as_echo_n "(cached) " >&6
7697else
7698  case $MAGIC_CMD in
7699[\\/*] |  ?:[\\/]*)
7700  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7701  ;;
7702*)
7703  lt_save_MAGIC_CMD="$MAGIC_CMD"
7704  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7705  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7706  for ac_dir in $ac_dummy; do
7707    IFS="$lt_save_ifs"
7708    test -z "$ac_dir" && ac_dir=.
7709    if test -f $ac_dir/file; then
7710      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7711      if test -n "$file_magic_test_file"; then
7712	case $deplibs_check_method in
7713	"file_magic "*)
7714	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7715	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7716	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7717	    $EGREP "$file_magic_regex" > /dev/null; then
7718	    :
7719	  else
7720	    cat <<_LT_EOF 1>&2
7721
7722*** Warning: the command libtool uses to detect shared libraries,
7723*** $file_magic_cmd, produces output that libtool cannot recognize.
7724*** The result is that libtool may fail to recognize shared libraries
7725*** as such.  This will affect the creation of libtool libraries that
7726*** depend on shared libraries, but programs linked with such libtool
7727*** libraries will work regardless of this problem.  Nevertheless, you
7728*** may want to report the problem to your system manager and/or to
7729*** bug-libtool@gnu.org
7730
7731_LT_EOF
7732	  fi ;;
7733	esac
7734      fi
7735      break
7736    fi
7737  done
7738  IFS="$lt_save_ifs"
7739  MAGIC_CMD="$lt_save_MAGIC_CMD"
7740  ;;
7741esac
7742fi
7743
7744MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7745if test -n "$MAGIC_CMD"; then
7746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7747$as_echo "$MAGIC_CMD" >&6; }
7748else
7749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
7751fi
7752
7753
7754  else
7755    MAGIC_CMD=:
7756  fi
7757fi
7758
7759  fi
7760  ;;
7761esac
7762
7763# Use C for the default configuration in the libtool script
7764
7765lt_save_CC="$CC"
7766ac_ext=c
7767ac_cpp='$CPP $CPPFLAGS'
7768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770ac_compiler_gnu=$ac_cv_c_compiler_gnu
7771
7772
7773# Source file extension for C test sources.
7774ac_ext=c
7775
7776# Object file extension for compiled C test sources.
7777objext=o
7778objext=$objext
7779
7780# Code to be used in simple compile tests
7781lt_simple_compile_test_code="int some_variable = 0;"
7782
7783# Code to be used in simple link tests
7784lt_simple_link_test_code='int main(){return(0);}'
7785
7786
7787
7788
7789
7790
7791
7792# If no C compiler was specified, use CC.
7793LTCC=${LTCC-"$CC"}
7794
7795# If no C compiler flags were specified, use CFLAGS.
7796LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7797
7798# Allow CC to be a program name with arguments.
7799compiler=$CC
7800
7801# Save the default compiler, since it gets overwritten when the other
7802# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7803compiler_DEFAULT=$CC
7804
7805# save warnings/boilerplate of simple test code
7806ac_outfile=conftest.$ac_objext
7807echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7808eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7809_lt_compiler_boilerplate=`cat conftest.err`
7810$RM conftest*
7811
7812ac_outfile=conftest.$ac_objext
7813echo "$lt_simple_link_test_code" >conftest.$ac_ext
7814eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7815_lt_linker_boilerplate=`cat conftest.err`
7816$RM -r conftest*
7817
7818
7819if test -n "$compiler"; then
7820
7821lt_prog_compiler_no_builtin_flag=
7822
7823if test "$GCC" = yes; then
7824  case $cc_basename in
7825  nvcc*)
7826    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7827  *)
7828    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7829  esac
7830
7831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7832$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7833if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  lt_cv_prog_compiler_rtti_exceptions=no
7837   ac_outfile=conftest.$ac_objext
7838   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7839   lt_compiler_flag="-fno-rtti -fno-exceptions"
7840   # Insert the option either (1) after the last *FLAGS variable, or
7841   # (2) before a word containing "conftest.", or (3) at the end.
7842   # Note that $ac_compile itself does not contain backslashes and begins
7843   # with a dollar sign (not a hyphen), so the echo should work correctly.
7844   # The option is referenced via a variable to avoid confusing sed.
7845   lt_compile=`echo "$ac_compile" | $SED \
7846   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7847   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7848   -e 's:$: $lt_compiler_flag:'`
7849   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7850   (eval "$lt_compile" 2>conftest.err)
7851   ac_status=$?
7852   cat conftest.err >&5
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   if (exit $ac_status) && test -s "$ac_outfile"; then
7855     # The compiler can only warn and ignore the option if not recognized
7856     # So say no if there are warnings other than the usual output.
7857     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7858     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7859     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7860       lt_cv_prog_compiler_rtti_exceptions=yes
7861     fi
7862   fi
7863   $RM conftest*
7864
7865fi
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7867$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7868
7869if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7870    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7871else
7872    :
7873fi
7874
7875fi
7876
7877
7878
7879
7880
7881
7882  lt_prog_compiler_wl=
7883lt_prog_compiler_pic=
7884lt_prog_compiler_static=
7885
7886
7887  if test "$GCC" = yes; then
7888    lt_prog_compiler_wl='-Wl,'
7889    lt_prog_compiler_static='-static'
7890
7891    case $host_os in
7892      aix*)
7893      # All AIX code is PIC.
7894      if test "$host_cpu" = ia64; then
7895	# AIX 5 now supports IA64 processor
7896	lt_prog_compiler_static='-Bstatic'
7897      fi
7898      ;;
7899
7900    amigaos*)
7901      case $host_cpu in
7902      powerpc)
7903            # see comment about AmigaOS4 .so support
7904            lt_prog_compiler_pic='-fPIC'
7905        ;;
7906      m68k)
7907            # FIXME: we need at least 68020 code to build shared libraries, but
7908            # adding the `-m68020' flag to GCC prevents building anything better,
7909            # like `-m68040'.
7910            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7911        ;;
7912      esac
7913      ;;
7914
7915    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7916      # PIC is the default for these OSes.
7917      ;;
7918
7919    mingw* | cygwin* | pw32* | os2* | cegcc*)
7920      # This hack is so that the source file can tell whether it is being
7921      # built for inclusion in a dll (and should export symbols for example).
7922      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7923      # (--disable-auto-import) libraries
7924      lt_prog_compiler_pic='-DDLL_EXPORT'
7925      ;;
7926
7927    darwin* | rhapsody*)
7928      # PIC is the default on this platform
7929      # Common symbols not allowed in MH_DYLIB files
7930      lt_prog_compiler_pic='-fno-common'
7931      ;;
7932
7933    haiku*)
7934      # PIC is the default for Haiku.
7935      # The "-static" flag exists, but is broken.
7936      lt_prog_compiler_static=
7937      ;;
7938
7939    hpux*)
7940      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7941      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7942      # sets the default TLS model and affects inlining.
7943      case $host_cpu in
7944      hppa*64*)
7945	# +Z the default
7946	;;
7947      *)
7948	lt_prog_compiler_pic='-fPIC'
7949	;;
7950      esac
7951      ;;
7952
7953    interix[3-9]*)
7954      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7955      # Instead, we relocate shared libraries at runtime.
7956      ;;
7957
7958    msdosdjgpp*)
7959      # Just because we use GCC doesn't mean we suddenly get shared libraries
7960      # on systems that don't support them.
7961      lt_prog_compiler_can_build_shared=no
7962      enable_shared=no
7963      ;;
7964
7965    *nto* | *qnx*)
7966      # QNX uses GNU C++, but need to define -shared option too, otherwise
7967      # it will coredump.
7968      lt_prog_compiler_pic='-fPIC -shared'
7969      ;;
7970
7971    sysv4*MP*)
7972      if test -d /usr/nec; then
7973	lt_prog_compiler_pic=-Kconform_pic
7974      fi
7975      ;;
7976
7977    *)
7978      lt_prog_compiler_pic='-fPIC'
7979      ;;
7980    esac
7981
7982    case $cc_basename in
7983    nvcc*) # Cuda Compiler Driver 2.2
7984      lt_prog_compiler_wl='-Xlinker '
7985      if test -n "$lt_prog_compiler_pic"; then
7986        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7987      fi
7988      ;;
7989    esac
7990  else
7991    # PORTME Check for flag to pass linker flags through the system compiler.
7992    case $host_os in
7993    aix*)
7994      lt_prog_compiler_wl='-Wl,'
7995      if test "$host_cpu" = ia64; then
7996	# AIX 5 now supports IA64 processor
7997	lt_prog_compiler_static='-Bstatic'
7998      else
7999	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8000      fi
8001      ;;
8002
8003    mingw* | cygwin* | pw32* | os2* | cegcc*)
8004      # This hack is so that the source file can tell whether it is being
8005      # built for inclusion in a dll (and should export symbols for example).
8006      lt_prog_compiler_pic='-DDLL_EXPORT'
8007      ;;
8008
8009    hpux9* | hpux10* | hpux11*)
8010      lt_prog_compiler_wl='-Wl,'
8011      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8012      # not for PA HP-UX.
8013      case $host_cpu in
8014      hppa*64*|ia64*)
8015	# +Z the default
8016	;;
8017      *)
8018	lt_prog_compiler_pic='+Z'
8019	;;
8020      esac
8021      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8022      lt_prog_compiler_static='${wl}-a ${wl}archive'
8023      ;;
8024
8025    irix5* | irix6* | nonstopux*)
8026      lt_prog_compiler_wl='-Wl,'
8027      # PIC (with -KPIC) is the default.
8028      lt_prog_compiler_static='-non_shared'
8029      ;;
8030
8031    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8032      case $cc_basename in
8033      # old Intel for x86_64 which still supported -KPIC.
8034      ecc*)
8035	lt_prog_compiler_wl='-Wl,'
8036	lt_prog_compiler_pic='-KPIC'
8037	lt_prog_compiler_static='-static'
8038        ;;
8039      # icc used to be incompatible with GCC.
8040      # ICC 10 doesn't accept -KPIC any more.
8041      icc* | ifort*)
8042	lt_prog_compiler_wl='-Wl,'
8043	lt_prog_compiler_pic='-fPIC'
8044	lt_prog_compiler_static='-static'
8045        ;;
8046      # Lahey Fortran 8.1.
8047      lf95*)
8048	lt_prog_compiler_wl='-Wl,'
8049	lt_prog_compiler_pic='--shared'
8050	lt_prog_compiler_static='--static'
8051	;;
8052      nagfor*)
8053	# NAG Fortran compiler
8054	lt_prog_compiler_wl='-Wl,-Wl,,'
8055	lt_prog_compiler_pic='-PIC'
8056	lt_prog_compiler_static='-Bstatic'
8057	;;
8058      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8059        # Portland Group compilers (*not* the Pentium gcc compiler,
8060	# which looks to be a dead project)
8061	lt_prog_compiler_wl='-Wl,'
8062	lt_prog_compiler_pic='-fpic'
8063	lt_prog_compiler_static='-Bstatic'
8064        ;;
8065      ccc*)
8066        lt_prog_compiler_wl='-Wl,'
8067        # All Alpha code is PIC.
8068        lt_prog_compiler_static='-non_shared'
8069        ;;
8070      xl* | bgxl* | bgf* | mpixl*)
8071	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8072	lt_prog_compiler_wl='-Wl,'
8073	lt_prog_compiler_pic='-qpic'
8074	lt_prog_compiler_static='-qstaticlink'
8075	;;
8076      *)
8077	case `$CC -V 2>&1 | sed 5q` in
8078	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8079	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8080	  lt_prog_compiler_pic='-KPIC'
8081	  lt_prog_compiler_static='-Bstatic'
8082	  lt_prog_compiler_wl=''
8083	  ;;
8084	*Sun\ F* | *Sun*Fortran*)
8085	  lt_prog_compiler_pic='-KPIC'
8086	  lt_prog_compiler_static='-Bstatic'
8087	  lt_prog_compiler_wl='-Qoption ld '
8088	  ;;
8089	*Sun\ C*)
8090	  # Sun C 5.9
8091	  lt_prog_compiler_pic='-KPIC'
8092	  lt_prog_compiler_static='-Bstatic'
8093	  lt_prog_compiler_wl='-Wl,'
8094	  ;;
8095        *Intel*\ [CF]*Compiler*)
8096	  lt_prog_compiler_wl='-Wl,'
8097	  lt_prog_compiler_pic='-fPIC'
8098	  lt_prog_compiler_static='-static'
8099	  ;;
8100	*Portland\ Group*)
8101	  lt_prog_compiler_wl='-Wl,'
8102	  lt_prog_compiler_pic='-fpic'
8103	  lt_prog_compiler_static='-Bstatic'
8104	  ;;
8105	esac
8106	;;
8107      esac
8108      ;;
8109
8110    newsos6)
8111      lt_prog_compiler_pic='-KPIC'
8112      lt_prog_compiler_static='-Bstatic'
8113      ;;
8114
8115    *nto* | *qnx*)
8116      # QNX uses GNU C++, but need to define -shared option too, otherwise
8117      # it will coredump.
8118      lt_prog_compiler_pic='-fPIC -shared'
8119      ;;
8120
8121    osf3* | osf4* | osf5*)
8122      lt_prog_compiler_wl='-Wl,'
8123      # All OSF/1 code is PIC.
8124      lt_prog_compiler_static='-non_shared'
8125      ;;
8126
8127    rdos*)
8128      lt_prog_compiler_static='-non_shared'
8129      ;;
8130
8131    solaris*)
8132      lt_prog_compiler_pic='-KPIC'
8133      lt_prog_compiler_static='-Bstatic'
8134      case $cc_basename in
8135      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8136	lt_prog_compiler_wl='-Qoption ld ';;
8137      *)
8138	lt_prog_compiler_wl='-Wl,';;
8139      esac
8140      ;;
8141
8142    sunos4*)
8143      lt_prog_compiler_wl='-Qoption ld '
8144      lt_prog_compiler_pic='-PIC'
8145      lt_prog_compiler_static='-Bstatic'
8146      ;;
8147
8148    sysv4 | sysv4.2uw2* | sysv4.3*)
8149      lt_prog_compiler_wl='-Wl,'
8150      lt_prog_compiler_pic='-KPIC'
8151      lt_prog_compiler_static='-Bstatic'
8152      ;;
8153
8154    sysv4*MP*)
8155      if test -d /usr/nec ;then
8156	lt_prog_compiler_pic='-Kconform_pic'
8157	lt_prog_compiler_static='-Bstatic'
8158      fi
8159      ;;
8160
8161    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8162      lt_prog_compiler_wl='-Wl,'
8163      lt_prog_compiler_pic='-KPIC'
8164      lt_prog_compiler_static='-Bstatic'
8165      ;;
8166
8167    unicos*)
8168      lt_prog_compiler_wl='-Wl,'
8169      lt_prog_compiler_can_build_shared=no
8170      ;;
8171
8172    uts4*)
8173      lt_prog_compiler_pic='-pic'
8174      lt_prog_compiler_static='-Bstatic'
8175      ;;
8176
8177    *)
8178      lt_prog_compiler_can_build_shared=no
8179      ;;
8180    esac
8181  fi
8182
8183case $host_os in
8184  # For platforms which do not support PIC, -DPIC is meaningless:
8185  *djgpp*)
8186    lt_prog_compiler_pic=
8187    ;;
8188  *)
8189    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8190    ;;
8191esac
8192
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8194$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8195if ${lt_cv_prog_compiler_pic+:} false; then :
8196  $as_echo_n "(cached) " >&6
8197else
8198  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8199fi
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8201$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8202lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8203
8204#
8205# Check to make sure the PIC flag actually works.
8206#
8207if test -n "$lt_prog_compiler_pic"; then
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8209$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8210if ${lt_cv_prog_compiler_pic_works+:} false; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  lt_cv_prog_compiler_pic_works=no
8214   ac_outfile=conftest.$ac_objext
8215   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8216   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8217   # Insert the option either (1) after the last *FLAGS variable, or
8218   # (2) before a word containing "conftest.", or (3) at the end.
8219   # Note that $ac_compile itself does not contain backslashes and begins
8220   # with a dollar sign (not a hyphen), so the echo should work correctly.
8221   # The option is referenced via a variable to avoid confusing sed.
8222   lt_compile=`echo "$ac_compile" | $SED \
8223   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8224   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8225   -e 's:$: $lt_compiler_flag:'`
8226   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8227   (eval "$lt_compile" 2>conftest.err)
8228   ac_status=$?
8229   cat conftest.err >&5
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   if (exit $ac_status) && test -s "$ac_outfile"; then
8232     # The compiler can only warn and ignore the option if not recognized
8233     # So say no if there are warnings other than the usual output.
8234     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8235     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8236     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8237       lt_cv_prog_compiler_pic_works=yes
8238     fi
8239   fi
8240   $RM conftest*
8241
8242fi
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8244$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8245
8246if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8247    case $lt_prog_compiler_pic in
8248     "" | " "*) ;;
8249     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8250     esac
8251else
8252    lt_prog_compiler_pic=
8253     lt_prog_compiler_can_build_shared=no
8254fi
8255
8256fi
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268#
8269# Check to make sure the static flag actually works.
8270#
8271wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8273$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8274if ${lt_cv_prog_compiler_static_works+:} false; then :
8275  $as_echo_n "(cached) " >&6
8276else
8277  lt_cv_prog_compiler_static_works=no
8278   save_LDFLAGS="$LDFLAGS"
8279   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8280   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8281   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8282     # The linker can only warn and ignore the option if not recognized
8283     # So say no if there are warnings
8284     if test -s conftest.err; then
8285       # Append any errors to the config.log.
8286       cat conftest.err 1>&5
8287       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8288       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8289       if diff conftest.exp conftest.er2 >/dev/null; then
8290         lt_cv_prog_compiler_static_works=yes
8291       fi
8292     else
8293       lt_cv_prog_compiler_static_works=yes
8294     fi
8295   fi
8296   $RM -r conftest*
8297   LDFLAGS="$save_LDFLAGS"
8298
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8301$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8302
8303if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8304    :
8305else
8306    lt_prog_compiler_static=
8307fi
8308
8309
8310
8311
8312
8313
8314
8315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8316$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8317if ${lt_cv_prog_compiler_c_o+:} false; then :
8318  $as_echo_n "(cached) " >&6
8319else
8320  lt_cv_prog_compiler_c_o=no
8321   $RM -r conftest 2>/dev/null
8322   mkdir conftest
8323   cd conftest
8324   mkdir out
8325   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8326
8327   lt_compiler_flag="-o out/conftest2.$ac_objext"
8328   # Insert the option either (1) after the last *FLAGS variable, or
8329   # (2) before a word containing "conftest.", or (3) at the end.
8330   # Note that $ac_compile itself does not contain backslashes and begins
8331   # with a dollar sign (not a hyphen), so the echo should work correctly.
8332   lt_compile=`echo "$ac_compile" | $SED \
8333   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335   -e 's:$: $lt_compiler_flag:'`
8336   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8337   (eval "$lt_compile" 2>out/conftest.err)
8338   ac_status=$?
8339   cat out/conftest.err >&5
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8342   then
8343     # The compiler can only warn and ignore the option if not recognized
8344     # So say no if there are warnings
8345     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8346     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8347     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8348       lt_cv_prog_compiler_c_o=yes
8349     fi
8350   fi
8351   chmod u+w . 2>&5
8352   $RM conftest*
8353   # SGI C++ compiler will create directory out/ii_files/ for
8354   # template instantiation
8355   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8356   $RM out/* && rmdir out
8357   cd ..
8358   $RM -r conftest
8359   $RM conftest*
8360
8361fi
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8363$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8364
8365
8366
8367
8368
8369
8370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8371$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8372if ${lt_cv_prog_compiler_c_o+:} false; then :
8373  $as_echo_n "(cached) " >&6
8374else
8375  lt_cv_prog_compiler_c_o=no
8376   $RM -r conftest 2>/dev/null
8377   mkdir conftest
8378   cd conftest
8379   mkdir out
8380   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8381
8382   lt_compiler_flag="-o out/conftest2.$ac_objext"
8383   # Insert the option either (1) after the last *FLAGS variable, or
8384   # (2) before a word containing "conftest.", or (3) at the end.
8385   # Note that $ac_compile itself does not contain backslashes and begins
8386   # with a dollar sign (not a hyphen), so the echo should work correctly.
8387   lt_compile=`echo "$ac_compile" | $SED \
8388   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8389   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8390   -e 's:$: $lt_compiler_flag:'`
8391   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8392   (eval "$lt_compile" 2>out/conftest.err)
8393   ac_status=$?
8394   cat out/conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8397   then
8398     # The compiler can only warn and ignore the option if not recognized
8399     # So say no if there are warnings
8400     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8401     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8402     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8403       lt_cv_prog_compiler_c_o=yes
8404     fi
8405   fi
8406   chmod u+w . 2>&5
8407   $RM conftest*
8408   # SGI C++ compiler will create directory out/ii_files/ for
8409   # template instantiation
8410   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8411   $RM out/* && rmdir out
8412   cd ..
8413   $RM -r conftest
8414   $RM conftest*
8415
8416fi
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8418$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8419
8420
8421
8422
8423hard_links="nottested"
8424if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8425  # do not overwrite the value of need_locks provided by the user
8426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8427$as_echo_n "checking if we can lock with hard links... " >&6; }
8428  hard_links=yes
8429  $RM conftest*
8430  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8431  touch conftest.a
8432  ln conftest.a conftest.b 2>&5 || hard_links=no
8433  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8435$as_echo "$hard_links" >&6; }
8436  if test "$hard_links" = no; then
8437    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8438$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8439    need_locks=warn
8440  fi
8441else
8442  need_locks=no
8443fi
8444
8445
8446
8447
8448
8449
8450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8451$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8452
8453  runpath_var=
8454  allow_undefined_flag=
8455  always_export_symbols=no
8456  archive_cmds=
8457  archive_expsym_cmds=
8458  compiler_needs_object=no
8459  enable_shared_with_static_runtimes=no
8460  export_dynamic_flag_spec=
8461  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8462  hardcode_automatic=no
8463  hardcode_direct=no
8464  hardcode_direct_absolute=no
8465  hardcode_libdir_flag_spec=
8466  hardcode_libdir_separator=
8467  hardcode_minus_L=no
8468  hardcode_shlibpath_var=unsupported
8469  inherit_rpath=no
8470  link_all_deplibs=unknown
8471  module_cmds=
8472  module_expsym_cmds=
8473  old_archive_from_new_cmds=
8474  old_archive_from_expsyms_cmds=
8475  thread_safe_flag_spec=
8476  whole_archive_flag_spec=
8477  # include_expsyms should be a list of space-separated symbols to be *always*
8478  # included in the symbol list
8479  include_expsyms=
8480  # exclude_expsyms can be an extended regexp of symbols to exclude
8481  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8482  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8483  # as well as any symbol that contains `d'.
8484  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8485  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8486  # platforms (ab)use it in PIC code, but their linkers get confused if
8487  # the symbol is explicitly referenced.  Since portable code cannot
8488  # rely on this symbol name, it's probably fine to never include it in
8489  # preloaded symbol tables.
8490  # Exclude shared library initialization/finalization symbols.
8491  extract_expsyms_cmds=
8492
8493  case $host_os in
8494  cygwin* | mingw* | pw32* | cegcc*)
8495    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8496    # When not using gcc, we currently assume that we are using
8497    # Microsoft Visual C++.
8498    if test "$GCC" != yes; then
8499      with_gnu_ld=no
8500    fi
8501    ;;
8502  interix*)
8503    # we just hope/assume this is gcc and not c89 (= MSVC++)
8504    with_gnu_ld=yes
8505    ;;
8506  openbsd*)
8507    with_gnu_ld=no
8508    ;;
8509  esac
8510
8511  ld_shlibs=yes
8512
8513  # On some targets, GNU ld is compatible enough with the native linker
8514  # that we're better off using the native interface for both.
8515  lt_use_gnu_ld_interface=no
8516  if test "$with_gnu_ld" = yes; then
8517    case $host_os in
8518      aix*)
8519	# The AIX port of GNU ld has always aspired to compatibility
8520	# with the native linker.  However, as the warning in the GNU ld
8521	# block says, versions before 2.19.5* couldn't really create working
8522	# shared libraries, regardless of the interface used.
8523	case `$LD -v 2>&1` in
8524	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8525	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8526	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8527	  *)
8528	    lt_use_gnu_ld_interface=yes
8529	    ;;
8530	esac
8531	;;
8532      *)
8533	lt_use_gnu_ld_interface=yes
8534	;;
8535    esac
8536  fi
8537
8538  if test "$lt_use_gnu_ld_interface" = yes; then
8539    # If archive_cmds runs LD, not CC, wlarc should be empty
8540    wlarc='${wl}'
8541
8542    # Set some defaults for GNU ld with shared library support. These
8543    # are reset later if shared libraries are not supported. Putting them
8544    # here allows them to be overridden if necessary.
8545    runpath_var=LD_RUN_PATH
8546    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8547    export_dynamic_flag_spec='${wl}--export-dynamic'
8548    # ancient GNU ld didn't support --whole-archive et. al.
8549    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8550      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8551    else
8552      whole_archive_flag_spec=
8553    fi
8554    supports_anon_versioning=no
8555    case `$LD -v 2>&1` in
8556      *GNU\ gold*) supports_anon_versioning=yes ;;
8557      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8558      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8559      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8560      *\ 2.11.*) ;; # other 2.11 versions
8561      *) supports_anon_versioning=yes ;;
8562    esac
8563
8564    # See if GNU ld supports shared libraries.
8565    case $host_os in
8566    aix[3-9]*)
8567      # On AIX/PPC, the GNU linker is very broken
8568      if test "$host_cpu" != ia64; then
8569	ld_shlibs=no
8570	cat <<_LT_EOF 1>&2
8571
8572*** Warning: the GNU linker, at least up to release 2.19, is reported
8573*** to be unable to reliably create shared libraries on AIX.
8574*** Therefore, libtool is disabling shared libraries support.  If you
8575*** really care for shared libraries, you may want to install binutils
8576*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8577*** You will then need to restart the configuration process.
8578
8579_LT_EOF
8580      fi
8581      ;;
8582
8583    amigaos*)
8584      case $host_cpu in
8585      powerpc)
8586            # see comment about AmigaOS4 .so support
8587            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8588            archive_expsym_cmds=''
8589        ;;
8590      m68k)
8591            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)'
8592            hardcode_libdir_flag_spec='-L$libdir'
8593            hardcode_minus_L=yes
8594        ;;
8595      esac
8596      ;;
8597
8598    beos*)
8599      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8600	allow_undefined_flag=unsupported
8601	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8602	# support --undefined.  This deserves some investigation.  FIXME
8603	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604      else
8605	ld_shlibs=no
8606      fi
8607      ;;
8608
8609    cygwin* | mingw* | pw32* | cegcc*)
8610      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8611      # as there is no search path for DLLs.
8612      hardcode_libdir_flag_spec='-L$libdir'
8613      export_dynamic_flag_spec='${wl}--export-all-symbols'
8614      allow_undefined_flag=unsupported
8615      always_export_symbols=no
8616      enable_shared_with_static_runtimes=yes
8617      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'
8618      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8619
8620      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8621        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8622	# If the export-symbols file already is a .def file (1st line
8623	# is EXPORTS), use it as is; otherwise, prepend...
8624	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8625	  cp $export_symbols $output_objdir/$soname.def;
8626	else
8627	  echo EXPORTS > $output_objdir/$soname.def;
8628	  cat $export_symbols >> $output_objdir/$soname.def;
8629	fi~
8630	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8631      else
8632	ld_shlibs=no
8633      fi
8634      ;;
8635
8636    haiku*)
8637      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638      link_all_deplibs=yes
8639      ;;
8640
8641    interix[3-9]*)
8642      hardcode_direct=no
8643      hardcode_shlibpath_var=no
8644      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8645      export_dynamic_flag_spec='${wl}-E'
8646      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8647      # Instead, shared libraries are loaded at an image base (0x10000000 by
8648      # default) and relocated if they conflict, which is a slow very memory
8649      # consuming and fragmenting process.  To avoid this, we pick a random,
8650      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8651      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8652      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8653      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'
8654      ;;
8655
8656    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8657      tmp_diet=no
8658      if test "$host_os" = linux-dietlibc; then
8659	case $cc_basename in
8660	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8661	esac
8662      fi
8663      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8664	 && test "$tmp_diet" = no
8665      then
8666	tmp_addflag=' $pic_flag'
8667	tmp_sharedflag='-shared'
8668	case $cc_basename,$host_cpu in
8669        pgcc*)				# Portland Group C compiler
8670	  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'
8671	  tmp_addflag=' $pic_flag'
8672	  ;;
8673	pgf77* | pgf90* | pgf95* | pgfortran*)
8674					# Portland Group f77 and f90 compilers
8675	  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'
8676	  tmp_addflag=' $pic_flag -Mnomain' ;;
8677	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8678	  tmp_addflag=' -i_dynamic' ;;
8679	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8680	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8681	ifc* | ifort*)			# Intel Fortran compiler
8682	  tmp_addflag=' -nofor_main' ;;
8683	lf95*)				# Lahey Fortran 8.1
8684	  whole_archive_flag_spec=
8685	  tmp_sharedflag='--shared' ;;
8686	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8687	  tmp_sharedflag='-qmkshrobj'
8688	  tmp_addflag= ;;
8689	nvcc*)	# Cuda Compiler Driver 2.2
8690	  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'
8691	  compiler_needs_object=yes
8692	  ;;
8693	esac
8694	case `$CC -V 2>&1 | sed 5q` in
8695	*Sun\ C*)			# Sun C 5.9
8696	  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'
8697	  compiler_needs_object=yes
8698	  tmp_sharedflag='-G' ;;
8699	*Sun\ F*)			# Sun Fortran 8.3
8700	  tmp_sharedflag='-G' ;;
8701	esac
8702	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703
8704        if test "x$supports_anon_versioning" = xyes; then
8705          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8706	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8707	    echo "local: *; };" >> $output_objdir/$libname.ver~
8708	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8709        fi
8710
8711	case $cc_basename in
8712	xlf* | bgf* | bgxlf* | mpixlf*)
8713	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8714	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8715	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8716	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8717	  if test "x$supports_anon_versioning" = xyes; then
8718	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8719	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8720	      echo "local: *; };" >> $output_objdir/$libname.ver~
8721	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8722	  fi
8723	  ;;
8724	esac
8725      else
8726        ld_shlibs=no
8727      fi
8728      ;;
8729
8730    netbsd*)
8731      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8732	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8733	wlarc=
8734      else
8735	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8736	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8737      fi
8738      ;;
8739
8740    solaris*)
8741      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8742	ld_shlibs=no
8743	cat <<_LT_EOF 1>&2
8744
8745*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8746*** create shared libraries on Solaris systems.  Therefore, libtool
8747*** is disabling shared libraries support.  We urge you to upgrade GNU
8748*** binutils to release 2.9.1 or newer.  Another option is to modify
8749*** your PATH or compiler configuration so that the native linker is
8750*** used, and then restart.
8751
8752_LT_EOF
8753      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8754	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8756      else
8757	ld_shlibs=no
8758      fi
8759      ;;
8760
8761    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8762      case `$LD -v 2>&1` in
8763        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8764	ld_shlibs=no
8765	cat <<_LT_EOF 1>&2
8766
8767*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8768*** reliably create shared libraries on SCO systems.  Therefore, libtool
8769*** is disabling shared libraries support.  We urge you to upgrade GNU
8770*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8771*** your PATH or compiler configuration so that the native linker is
8772*** used, and then restart.
8773
8774_LT_EOF
8775	;;
8776	*)
8777	  # For security reasons, it is highly recommended that you always
8778	  # use absolute paths for naming shared libraries, and exclude the
8779	  # DT_RUNPATH tag from executables and libraries.  But doing so
8780	  # requires that you compile everything twice, which is a pain.
8781	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8782	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8785	  else
8786	    ld_shlibs=no
8787	  fi
8788	;;
8789      esac
8790      ;;
8791
8792    sunos4*)
8793      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8794      wlarc=
8795      hardcode_direct=yes
8796      hardcode_shlibpath_var=no
8797      ;;
8798
8799    *)
8800      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8801	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8802	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8803      else
8804	ld_shlibs=no
8805      fi
8806      ;;
8807    esac
8808
8809    if test "$ld_shlibs" = no; then
8810      runpath_var=
8811      hardcode_libdir_flag_spec=
8812      export_dynamic_flag_spec=
8813      whole_archive_flag_spec=
8814    fi
8815  else
8816    # PORTME fill in a description of your system's linker (not GNU ld)
8817    case $host_os in
8818    aix3*)
8819      allow_undefined_flag=unsupported
8820      always_export_symbols=yes
8821      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'
8822      # Note: this linker hardcodes the directories in LIBPATH if there
8823      # are no directories specified by -L.
8824      hardcode_minus_L=yes
8825      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8826	# Neither direct hardcoding nor static linking is supported with a
8827	# broken collect2.
8828	hardcode_direct=unsupported
8829      fi
8830      ;;
8831
8832    aix[4-9]*)
8833      if test "$host_cpu" = ia64; then
8834	# On IA64, the linker does run time linking by default, so we don't
8835	# have to do anything special.
8836	aix_use_runtimelinking=no
8837	exp_sym_flag='-Bexport'
8838	no_entry_flag=""
8839      else
8840	# If we're using GNU nm, then we don't want the "-C" option.
8841	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8842	# Also, AIX nm treats weak defined symbols like other global
8843	# defined symbols, whereas GNU nm marks them as "W".
8844	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8845	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8846	else
8847	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8848	fi
8849	aix_use_runtimelinking=no
8850
8851	# Test if we are trying to use run time linking or normal
8852	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8853	# need to do runtime linking.
8854	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8855	  for ld_flag in $LDFLAGS; do
8856	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8857	    aix_use_runtimelinking=yes
8858	    break
8859	  fi
8860	  done
8861	  ;;
8862	esac
8863
8864	exp_sym_flag='-bexport'
8865	no_entry_flag='-bnoentry'
8866      fi
8867
8868      # When large executables or shared objects are built, AIX ld can
8869      # have problems creating the table of contents.  If linking a library
8870      # or program results in "error TOC overflow" add -mminimal-toc to
8871      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8872      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8873
8874      archive_cmds=''
8875      hardcode_direct=yes
8876      hardcode_direct_absolute=yes
8877      hardcode_libdir_separator=':'
8878      link_all_deplibs=yes
8879      file_list_spec='${wl}-f,'
8880
8881      if test "$GCC" = yes; then
8882	case $host_os in aix4.[012]|aix4.[012].*)
8883	# We only want to do this on AIX 4.2 and lower, the check
8884	# below for broken collect2 doesn't work under 4.3+
8885	  collect2name=`${CC} -print-prog-name=collect2`
8886	  if test -f "$collect2name" &&
8887	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8888	  then
8889	  # We have reworked collect2
8890	  :
8891	  else
8892	  # We have old collect2
8893	  hardcode_direct=unsupported
8894	  # It fails to find uninstalled libraries when the uninstalled
8895	  # path is not listed in the libpath.  Setting hardcode_minus_L
8896	  # to unsupported forces relinking
8897	  hardcode_minus_L=yes
8898	  hardcode_libdir_flag_spec='-L$libdir'
8899	  hardcode_libdir_separator=
8900	  fi
8901	  ;;
8902	esac
8903	shared_flag='-shared'
8904	if test "$aix_use_runtimelinking" = yes; then
8905	  shared_flag="$shared_flag "'${wl}-G'
8906	fi
8907      else
8908	# not using gcc
8909	if test "$host_cpu" = ia64; then
8910	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8911	# chokes on -Wl,-G. The following line is correct:
8912	  shared_flag='-G'
8913	else
8914	  if test "$aix_use_runtimelinking" = yes; then
8915	    shared_flag='${wl}-G'
8916	  else
8917	    shared_flag='${wl}-bM:SRE'
8918	  fi
8919	fi
8920      fi
8921
8922      export_dynamic_flag_spec='${wl}-bexpall'
8923      # It seems that -bexpall does not export symbols beginning with
8924      # underscore (_), so it is better to generate a list of symbols to export.
8925      always_export_symbols=yes
8926      if test "$aix_use_runtimelinking" = yes; then
8927	# Warning - without using the other runtime loading flags (-brtl),
8928	# -berok will link without error, but may produce a broken library.
8929	allow_undefined_flag='-berok'
8930        # Determine the default libpath from the value encoded in an
8931        # empty executable.
8932        if test "${lt_cv_aix_libpath+set}" = set; then
8933  aix_libpath=$lt_cv_aix_libpath
8934else
8935  if ${lt_cv_aix_libpath_+:} false; then :
8936  $as_echo_n "(cached) " >&6
8937else
8938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939/* end confdefs.h.  */
8940
8941int
8942main ()
8943{
8944
8945  ;
8946  return 0;
8947}
8948_ACEOF
8949if ac_fn_c_try_link "$LINENO"; then :
8950
8951  lt_aix_libpath_sed='
8952      /Import File Strings/,/^$/ {
8953	  /^0/ {
8954	      s/^0  *\([^ ]*\) *$/\1/
8955	      p
8956	  }
8957      }'
8958  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959  # Check for a 64-bit object if we didn't find anything.
8960  if test -z "$lt_cv_aix_libpath_"; then
8961    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8962  fi
8963fi
8964rm -f core conftest.err conftest.$ac_objext \
8965    conftest$ac_exeext conftest.$ac_ext
8966  if test -z "$lt_cv_aix_libpath_"; then
8967    lt_cv_aix_libpath_="/usr/lib:/lib"
8968  fi
8969
8970fi
8971
8972  aix_libpath=$lt_cv_aix_libpath_
8973fi
8974
8975        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8976        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8977      else
8978	if test "$host_cpu" = ia64; then
8979	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8980	  allow_undefined_flag="-z nodefs"
8981	  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"
8982	else
8983	 # Determine the default libpath from the value encoded in an
8984	 # empty executable.
8985	 if test "${lt_cv_aix_libpath+set}" = set; then
8986  aix_libpath=$lt_cv_aix_libpath
8987else
8988  if ${lt_cv_aix_libpath_+:} false; then :
8989  $as_echo_n "(cached) " >&6
8990else
8991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992/* end confdefs.h.  */
8993
8994int
8995main ()
8996{
8997
8998  ;
8999  return 0;
9000}
9001_ACEOF
9002if ac_fn_c_try_link "$LINENO"; then :
9003
9004  lt_aix_libpath_sed='
9005      /Import File Strings/,/^$/ {
9006	  /^0/ {
9007	      s/^0  *\([^ ]*\) *$/\1/
9008	      p
9009	  }
9010      }'
9011  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9012  # Check for a 64-bit object if we didn't find anything.
9013  if test -z "$lt_cv_aix_libpath_"; then
9014    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9015  fi
9016fi
9017rm -f core conftest.err conftest.$ac_objext \
9018    conftest$ac_exeext conftest.$ac_ext
9019  if test -z "$lt_cv_aix_libpath_"; then
9020    lt_cv_aix_libpath_="/usr/lib:/lib"
9021  fi
9022
9023fi
9024
9025  aix_libpath=$lt_cv_aix_libpath_
9026fi
9027
9028	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9029	  # Warning - without using the other run time loading flags,
9030	  # -berok will link without error, but may produce a broken library.
9031	  no_undefined_flag=' ${wl}-bernotok'
9032	  allow_undefined_flag=' ${wl}-berok'
9033	  if test "$with_gnu_ld" = yes; then
9034	    # We only use this code for GNU lds that support --whole-archive.
9035	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9036	  else
9037	    # Exported symbols can be pulled into shared objects from archives
9038	    whole_archive_flag_spec='$convenience'
9039	  fi
9040	  archive_cmds_need_lc=yes
9041	  # This is similar to how AIX traditionally builds its shared libraries.
9042	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9043	fi
9044      fi
9045      ;;
9046
9047    amigaos*)
9048      case $host_cpu in
9049      powerpc)
9050            # see comment about AmigaOS4 .so support
9051            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052            archive_expsym_cmds=''
9053        ;;
9054      m68k)
9055            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)'
9056            hardcode_libdir_flag_spec='-L$libdir'
9057            hardcode_minus_L=yes
9058        ;;
9059      esac
9060      ;;
9061
9062    bsdi[45]*)
9063      export_dynamic_flag_spec=-rdynamic
9064      ;;
9065
9066    cygwin* | mingw* | pw32* | cegcc*)
9067      # When not using gcc, we currently assume that we are using
9068      # Microsoft Visual C++.
9069      # hardcode_libdir_flag_spec is actually meaningless, as there is
9070      # no search path for DLLs.
9071      case $cc_basename in
9072      cl*)
9073	# Native MSVC
9074	hardcode_libdir_flag_spec=' '
9075	allow_undefined_flag=unsupported
9076	always_export_symbols=yes
9077	file_list_spec='@'
9078	# Tell ltmain to make .lib files, not .a files.
9079	libext=lib
9080	# Tell ltmain to make .dll files, not .so files.
9081	shrext_cmds=".dll"
9082	# FIXME: Setting linknames here is a bad hack.
9083	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9084	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9085	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9086	  else
9087	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9088	  fi~
9089	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9090	  linknames='
9091	# The linker will not automatically build a static lib if we build a DLL.
9092	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9093	enable_shared_with_static_runtimes=yes
9094	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9095	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9096	# Don't use ranlib
9097	old_postinstall_cmds='chmod 644 $oldlib'
9098	postlink_cmds='lt_outputfile="@OUTPUT@"~
9099	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9100	  case $lt_outputfile in
9101	    *.exe|*.EXE) ;;
9102	    *)
9103	      lt_outputfile="$lt_outputfile.exe"
9104	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9105	      ;;
9106	  esac~
9107	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9108	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9109	    $RM "$lt_outputfile.manifest";
9110	  fi'
9111	;;
9112      *)
9113	# Assume MSVC wrapper
9114	hardcode_libdir_flag_spec=' '
9115	allow_undefined_flag=unsupported
9116	# Tell ltmain to make .lib files, not .a files.
9117	libext=lib
9118	# Tell ltmain to make .dll files, not .so files.
9119	shrext_cmds=".dll"
9120	# FIXME: Setting linknames here is a bad hack.
9121	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9122	# The linker will automatically build a .lib file if we build a DLL.
9123	old_archive_from_new_cmds='true'
9124	# FIXME: Should let the user specify the lib program.
9125	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9126	enable_shared_with_static_runtimes=yes
9127	;;
9128      esac
9129      ;;
9130
9131    darwin* | rhapsody*)
9132
9133
9134  archive_cmds_need_lc=no
9135  hardcode_direct=no
9136  hardcode_automatic=yes
9137  hardcode_shlibpath_var=unsupported
9138  if test "$lt_cv_ld_force_load" = "yes"; then
9139    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\"`'
9140
9141  else
9142    whole_archive_flag_spec=''
9143  fi
9144  link_all_deplibs=yes
9145  allow_undefined_flag="$_lt_dar_allow_undefined"
9146  case $cc_basename in
9147     ifort*) _lt_dar_can_shared=yes ;;
9148     *) _lt_dar_can_shared=$GCC ;;
9149  esac
9150  if test "$_lt_dar_can_shared" = "yes"; then
9151    output_verbose_link_cmd=func_echo_all
9152    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9153    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9154    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}"
9155    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}"
9156
9157  else
9158  ld_shlibs=no
9159  fi
9160
9161      ;;
9162
9163    dgux*)
9164      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9165      hardcode_libdir_flag_spec='-L$libdir'
9166      hardcode_shlibpath_var=no
9167      ;;
9168
9169    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9170    # support.  Future versions do this automatically, but an explicit c++rt0.o
9171    # does not break anything, and helps significantly (at the cost of a little
9172    # extra space).
9173    freebsd2.2*)
9174      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9175      hardcode_libdir_flag_spec='-R$libdir'
9176      hardcode_direct=yes
9177      hardcode_shlibpath_var=no
9178      ;;
9179
9180    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9181    freebsd2.*)
9182      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9183      hardcode_direct=yes
9184      hardcode_minus_L=yes
9185      hardcode_shlibpath_var=no
9186      ;;
9187
9188    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9189    freebsd* | dragonfly*)
9190      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9191      hardcode_libdir_flag_spec='-R$libdir'
9192      hardcode_direct=yes
9193      hardcode_shlibpath_var=no
9194      ;;
9195
9196    hpux9*)
9197      if test "$GCC" = yes; then
9198	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9199      else
9200	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9201      fi
9202      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9203      hardcode_libdir_separator=:
9204      hardcode_direct=yes
9205
9206      # hardcode_minus_L: Not really in the search PATH,
9207      # but as the default location of the library.
9208      hardcode_minus_L=yes
9209      export_dynamic_flag_spec='${wl}-E'
9210      ;;
9211
9212    hpux10*)
9213      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9214	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9215      else
9216	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9217      fi
9218      if test "$with_gnu_ld" = no; then
9219	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9220	hardcode_libdir_separator=:
9221	hardcode_direct=yes
9222	hardcode_direct_absolute=yes
9223	export_dynamic_flag_spec='${wl}-E'
9224	# hardcode_minus_L: Not really in the search PATH,
9225	# but as the default location of the library.
9226	hardcode_minus_L=yes
9227      fi
9228      ;;
9229
9230    hpux11*)
9231      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9232	case $host_cpu in
9233	hppa*64*)
9234	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9235	  ;;
9236	ia64*)
9237	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9238	  ;;
9239	*)
9240	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9241	  ;;
9242	esac
9243      else
9244	case $host_cpu in
9245	hppa*64*)
9246	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9247	  ;;
9248	ia64*)
9249	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9250	  ;;
9251	*)
9252
9253	  # Older versions of the 11.00 compiler do not understand -b yet
9254	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9255	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9256$as_echo_n "checking if $CC understands -b... " >&6; }
9257if ${lt_cv_prog_compiler__b+:} false; then :
9258  $as_echo_n "(cached) " >&6
9259else
9260  lt_cv_prog_compiler__b=no
9261   save_LDFLAGS="$LDFLAGS"
9262   LDFLAGS="$LDFLAGS -b"
9263   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9264   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9265     # The linker can only warn and ignore the option if not recognized
9266     # So say no if there are warnings
9267     if test -s conftest.err; then
9268       # Append any errors to the config.log.
9269       cat conftest.err 1>&5
9270       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9271       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9272       if diff conftest.exp conftest.er2 >/dev/null; then
9273         lt_cv_prog_compiler__b=yes
9274       fi
9275     else
9276       lt_cv_prog_compiler__b=yes
9277     fi
9278   fi
9279   $RM -r conftest*
9280   LDFLAGS="$save_LDFLAGS"
9281
9282fi
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9284$as_echo "$lt_cv_prog_compiler__b" >&6; }
9285
9286if test x"$lt_cv_prog_compiler__b" = xyes; then
9287    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9288else
9289    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9290fi
9291
9292	  ;;
9293	esac
9294      fi
9295      if test "$with_gnu_ld" = no; then
9296	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9297	hardcode_libdir_separator=:
9298
9299	case $host_cpu in
9300	hppa*64*|ia64*)
9301	  hardcode_direct=no
9302	  hardcode_shlibpath_var=no
9303	  ;;
9304	*)
9305	  hardcode_direct=yes
9306	  hardcode_direct_absolute=yes
9307	  export_dynamic_flag_spec='${wl}-E'
9308
9309	  # hardcode_minus_L: Not really in the search PATH,
9310	  # but as the default location of the library.
9311	  hardcode_minus_L=yes
9312	  ;;
9313	esac
9314      fi
9315      ;;
9316
9317    irix5* | irix6* | nonstopux*)
9318      if test "$GCC" = yes; then
9319	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'
9320	# Try to use the -exported_symbol ld option, if it does not
9321	# work, assume that -exports_file does not work either and
9322	# implicitly export all symbols.
9323	# This should be the same for all languages, so no per-tag cache variable.
9324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9325$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9326if ${lt_cv_irix_exported_symbol+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  save_LDFLAGS="$LDFLAGS"
9330	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9331	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332/* end confdefs.h.  */
9333int foo (void) { return 0; }
9334_ACEOF
9335if ac_fn_c_try_link "$LINENO"; then :
9336  lt_cv_irix_exported_symbol=yes
9337else
9338  lt_cv_irix_exported_symbol=no
9339fi
9340rm -f core conftest.err conftest.$ac_objext \
9341    conftest$ac_exeext conftest.$ac_ext
9342           LDFLAGS="$save_LDFLAGS"
9343fi
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9345$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9346	if test "$lt_cv_irix_exported_symbol" = yes; then
9347          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'
9348	fi
9349      else
9350	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'
9351	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'
9352      fi
9353      archive_cmds_need_lc='no'
9354      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9355      hardcode_libdir_separator=:
9356      inherit_rpath=yes
9357      link_all_deplibs=yes
9358      ;;
9359
9360    netbsd*)
9361      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9362	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9363      else
9364	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9365      fi
9366      hardcode_libdir_flag_spec='-R$libdir'
9367      hardcode_direct=yes
9368      hardcode_shlibpath_var=no
9369      ;;
9370
9371    newsos6)
9372      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373      hardcode_direct=yes
9374      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9375      hardcode_libdir_separator=:
9376      hardcode_shlibpath_var=no
9377      ;;
9378
9379    *nto* | *qnx*)
9380      ;;
9381
9382    openbsd*)
9383      if test -f /usr/libexec/ld.so; then
9384	hardcode_direct=yes
9385	hardcode_shlibpath_var=no
9386	hardcode_direct_absolute=yes
9387	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9388	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9389	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9390	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9391	  export_dynamic_flag_spec='${wl}-E'
9392	else
9393	  case $host_os in
9394	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9395	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9396	     hardcode_libdir_flag_spec='-R$libdir'
9397	     ;;
9398	   *)
9399	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9400	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9401	     ;;
9402	  esac
9403	fi
9404      else
9405	ld_shlibs=no
9406      fi
9407      ;;
9408
9409    os2*)
9410      hardcode_libdir_flag_spec='-L$libdir'
9411      hardcode_minus_L=yes
9412      allow_undefined_flag=unsupported
9413      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9414      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9415      ;;
9416
9417    osf3*)
9418      if test "$GCC" = yes; then
9419	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9420	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'
9421      else
9422	allow_undefined_flag=' -expect_unresolved \*'
9423	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'
9424      fi
9425      archive_cmds_need_lc='no'
9426      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427      hardcode_libdir_separator=:
9428      ;;
9429
9430    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9431      if test "$GCC" = yes; then
9432	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9433	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'
9434	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9435      else
9436	allow_undefined_flag=' -expect_unresolved \*'
9437	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'
9438	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~
9439	$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'
9440
9441	# Both c and cxx compiler support -rpath directly
9442	hardcode_libdir_flag_spec='-rpath $libdir'
9443      fi
9444      archive_cmds_need_lc='no'
9445      hardcode_libdir_separator=:
9446      ;;
9447
9448    solaris*)
9449      no_undefined_flag=' -z defs'
9450      if test "$GCC" = yes; then
9451	wlarc='${wl}'
9452	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9453	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9454	  $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'
9455      else
9456	case `$CC -V 2>&1` in
9457	*"Compilers 5.0"*)
9458	  wlarc=''
9459	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9461	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9462	  ;;
9463	*)
9464	  wlarc='${wl}'
9465	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9466	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9467	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9468	  ;;
9469	esac
9470      fi
9471      hardcode_libdir_flag_spec='-R$libdir'
9472      hardcode_shlibpath_var=no
9473      case $host_os in
9474      solaris2.[0-5] | solaris2.[0-5].*) ;;
9475      *)
9476	# The compiler driver will combine and reorder linker options,
9477	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9478	# but is careful enough not to reorder.
9479	# Supported since Solaris 2.6 (maybe 2.5.1?)
9480	if test "$GCC" = yes; then
9481	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9482	else
9483	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9484	fi
9485	;;
9486      esac
9487      link_all_deplibs=yes
9488      ;;
9489
9490    sunos4*)
9491      if test "x$host_vendor" = xsequent; then
9492	# Use $CC to link under sequent, because it throws in some extra .o
9493	# files that make .init and .fini sections work.
9494	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9495      else
9496	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9497      fi
9498      hardcode_libdir_flag_spec='-L$libdir'
9499      hardcode_direct=yes
9500      hardcode_minus_L=yes
9501      hardcode_shlibpath_var=no
9502      ;;
9503
9504    sysv4)
9505      case $host_vendor in
9506	sni)
9507	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9508	  hardcode_direct=yes # is this really true???
9509	;;
9510	siemens)
9511	  ## LD is ld it makes a PLAMLIB
9512	  ## CC just makes a GrossModule.
9513	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9514	  reload_cmds='$CC -r -o $output$reload_objs'
9515	  hardcode_direct=no
9516        ;;
9517	motorola)
9518	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9520	;;
9521      esac
9522      runpath_var='LD_RUN_PATH'
9523      hardcode_shlibpath_var=no
9524      ;;
9525
9526    sysv4.3*)
9527      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528      hardcode_shlibpath_var=no
9529      export_dynamic_flag_spec='-Bexport'
9530      ;;
9531
9532    sysv4*MP*)
9533      if test -d /usr/nec; then
9534	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535	hardcode_shlibpath_var=no
9536	runpath_var=LD_RUN_PATH
9537	hardcode_runpath_var=yes
9538	ld_shlibs=yes
9539      fi
9540      ;;
9541
9542    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9543      no_undefined_flag='${wl}-z,text'
9544      archive_cmds_need_lc=no
9545      hardcode_shlibpath_var=no
9546      runpath_var='LD_RUN_PATH'
9547
9548      if test "$GCC" = yes; then
9549	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9550	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9551      else
9552	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9553	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554      fi
9555      ;;
9556
9557    sysv5* | sco3.2v5* | sco5v6*)
9558      # Note: We can NOT use -z defs as we might desire, because we do not
9559      # link with -lc, and that would cause any symbols used from libc to
9560      # always be unresolved, which means just about no library would
9561      # ever link correctly.  If we're not using GNU ld we use -z text
9562      # though, which does catch some bad symbols but isn't as heavy-handed
9563      # as -z defs.
9564      no_undefined_flag='${wl}-z,text'
9565      allow_undefined_flag='${wl}-z,nodefs'
9566      archive_cmds_need_lc=no
9567      hardcode_shlibpath_var=no
9568      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9569      hardcode_libdir_separator=':'
9570      link_all_deplibs=yes
9571      export_dynamic_flag_spec='${wl}-Bexport'
9572      runpath_var='LD_RUN_PATH'
9573
9574      if test "$GCC" = yes; then
9575	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577      else
9578	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9579	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580      fi
9581      ;;
9582
9583    uts4*)
9584      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585      hardcode_libdir_flag_spec='-L$libdir'
9586      hardcode_shlibpath_var=no
9587      ;;
9588
9589    *)
9590      ld_shlibs=no
9591      ;;
9592    esac
9593
9594    if test x$host_vendor = xsni; then
9595      case $host in
9596      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9597	export_dynamic_flag_spec='${wl}-Blargedynsym'
9598	;;
9599      esac
9600    fi
9601  fi
9602
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9604$as_echo "$ld_shlibs" >&6; }
9605test "$ld_shlibs" = no && can_build_shared=no
9606
9607with_gnu_ld=$with_gnu_ld
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623#
9624# Do we need to explicitly link libc?
9625#
9626case "x$archive_cmds_need_lc" in
9627x|xyes)
9628  # Assume -lc should be added
9629  archive_cmds_need_lc=yes
9630
9631  if test "$enable_shared" = yes && test "$GCC" = yes; then
9632    case $archive_cmds in
9633    *'~'*)
9634      # FIXME: we may have to deal with multi-command sequences.
9635      ;;
9636    '$CC '*)
9637      # Test whether the compiler implicitly links with -lc since on some
9638      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9639      # to ld, don't add -lc before -lgcc.
9640      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9641$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9642if ${lt_cv_archive_cmds_need_lc+:} false; then :
9643  $as_echo_n "(cached) " >&6
9644else
9645  $RM conftest*
9646	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9647
9648	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9649  (eval $ac_compile) 2>&5
9650  ac_status=$?
9651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9652  test $ac_status = 0; } 2>conftest.err; then
9653	  soname=conftest
9654	  lib=conftest
9655	  libobjs=conftest.$ac_objext
9656	  deplibs=
9657	  wl=$lt_prog_compiler_wl
9658	  pic_flag=$lt_prog_compiler_pic
9659	  compiler_flags=-v
9660	  linker_flags=-v
9661	  verstring=
9662	  output_objdir=.
9663	  libname=conftest
9664	  lt_save_allow_undefined_flag=$allow_undefined_flag
9665	  allow_undefined_flag=
9666	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9667  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9668  ac_status=$?
9669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9670  test $ac_status = 0; }
9671	  then
9672	    lt_cv_archive_cmds_need_lc=no
9673	  else
9674	    lt_cv_archive_cmds_need_lc=yes
9675	  fi
9676	  allow_undefined_flag=$lt_save_allow_undefined_flag
9677	else
9678	  cat conftest.err 1>&5
9679	fi
9680	$RM conftest*
9681
9682fi
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9684$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9685      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9686      ;;
9687    esac
9688  fi
9689  ;;
9690esac
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9844$as_echo_n "checking dynamic linker characteristics... " >&6; }
9845
9846if test "$GCC" = yes; then
9847  case $host_os in
9848    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9849    *) lt_awk_arg="/^libraries:/" ;;
9850  esac
9851  case $host_os in
9852    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9853    *) lt_sed_strip_eq="s,=/,/,g" ;;
9854  esac
9855  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9856  case $lt_search_path_spec in
9857  *\;*)
9858    # if the path contains ";" then we assume it to be the separator
9859    # otherwise default to the standard path separator (i.e. ":") - it is
9860    # assumed that no part of a normal pathname contains ";" but that should
9861    # okay in the real world where ";" in dirpaths is itself problematic.
9862    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9863    ;;
9864  *)
9865    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9866    ;;
9867  esac
9868  # Ok, now we have the path, separated by spaces, we can step through it
9869  # and add multilib dir if necessary.
9870  lt_tmp_lt_search_path_spec=
9871  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9872  for lt_sys_path in $lt_search_path_spec; do
9873    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9874      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9875    else
9876      test -d "$lt_sys_path" && \
9877	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9878    fi
9879  done
9880  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9881BEGIN {RS=" "; FS="/|\n";} {
9882  lt_foo="";
9883  lt_count=0;
9884  for (lt_i = NF; lt_i > 0; lt_i--) {
9885    if ($lt_i != "" && $lt_i != ".") {
9886      if ($lt_i == "..") {
9887        lt_count++;
9888      } else {
9889        if (lt_count == 0) {
9890          lt_foo="/" $lt_i lt_foo;
9891        } else {
9892          lt_count--;
9893        }
9894      }
9895    }
9896  }
9897  if (lt_foo != "") { lt_freq[lt_foo]++; }
9898  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9899}'`
9900  # AWK program above erroneously prepends '/' to C:/dos/paths
9901  # for these hosts.
9902  case $host_os in
9903    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9904      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9905  esac
9906  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9907else
9908  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9909fi
9910library_names_spec=
9911libname_spec='lib$name'
9912soname_spec=
9913shrext_cmds=".so"
9914postinstall_cmds=
9915postuninstall_cmds=
9916finish_cmds=
9917finish_eval=
9918shlibpath_var=
9919shlibpath_overrides_runpath=unknown
9920version_type=none
9921dynamic_linker="$host_os ld.so"
9922sys_lib_dlsearch_path_spec="/lib /usr/lib"
9923need_lib_prefix=unknown
9924hardcode_into_libs=no
9925
9926# when you set need_version to no, make sure it does not cause -set_version
9927# flags to be left without arguments
9928need_version=unknown
9929
9930case $host_os in
9931aix3*)
9932  version_type=linux # correct to gnu/linux during the next big refactor
9933  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9934  shlibpath_var=LIBPATH
9935
9936  # AIX 3 has no versioning support, so we append a major version to the name.
9937  soname_spec='${libname}${release}${shared_ext}$major'
9938  ;;
9939
9940aix[4-9]*)
9941  version_type=linux # correct to gnu/linux during the next big refactor
9942  need_lib_prefix=no
9943  need_version=no
9944  hardcode_into_libs=yes
9945  if test "$host_cpu" = ia64; then
9946    # AIX 5 supports IA64
9947    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9948    shlibpath_var=LD_LIBRARY_PATH
9949  else
9950    # With GCC up to 2.95.x, collect2 would create an import file
9951    # for dependence libraries.  The import file would start with
9952    # the line `#! .'.  This would cause the generated library to
9953    # depend on `.', always an invalid library.  This was fixed in
9954    # development snapshots of GCC prior to 3.0.
9955    case $host_os in
9956      aix4 | aix4.[01] | aix4.[01].*)
9957      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9958	   echo ' yes '
9959	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9960	:
9961      else
9962	can_build_shared=no
9963      fi
9964      ;;
9965    esac
9966    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9967    # soname into executable. Probably we can add versioning support to
9968    # collect2, so additional links can be useful in future.
9969    if test "$aix_use_runtimelinking" = yes; then
9970      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9971      # instead of lib<name>.a to let people know that these are not
9972      # typical AIX shared libraries.
9973      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9974    else
9975      # We preserve .a as extension for shared libraries through AIX4.2
9976      # and later when we are not doing run time linking.
9977      library_names_spec='${libname}${release}.a $libname.a'
9978      soname_spec='${libname}${release}${shared_ext}$major'
9979    fi
9980    shlibpath_var=LIBPATH
9981  fi
9982  ;;
9983
9984amigaos*)
9985  case $host_cpu in
9986  powerpc)
9987    # Since July 2007 AmigaOS4 officially supports .so libraries.
9988    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9989    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990    ;;
9991  m68k)
9992    library_names_spec='$libname.ixlibrary $libname.a'
9993    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9994    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9995    ;;
9996  esac
9997  ;;
9998
9999beos*)
10000  library_names_spec='${libname}${shared_ext}'
10001  dynamic_linker="$host_os ld.so"
10002  shlibpath_var=LIBRARY_PATH
10003  ;;
10004
10005bsdi[45]*)
10006  version_type=linux # correct to gnu/linux during the next big refactor
10007  need_version=no
10008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009  soname_spec='${libname}${release}${shared_ext}$major'
10010  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10011  shlibpath_var=LD_LIBRARY_PATH
10012  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10013  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10014  # the default ld.so.conf also contains /usr/contrib/lib and
10015  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10016  # libtool to hard-code these into programs
10017  ;;
10018
10019cygwin* | mingw* | pw32* | cegcc*)
10020  version_type=windows
10021  shrext_cmds=".dll"
10022  need_version=no
10023  need_lib_prefix=no
10024
10025  case $GCC,$cc_basename in
10026  yes,*)
10027    # gcc
10028    library_names_spec='$libname.dll.a'
10029    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10030    postinstall_cmds='base_file=`basename \${file}`~
10031      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10032      dldir=$destdir/`dirname \$dlpath`~
10033      test -d \$dldir || mkdir -p \$dldir~
10034      $install_prog $dir/$dlname \$dldir/$dlname~
10035      chmod a+x \$dldir/$dlname~
10036      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10037        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10038      fi'
10039    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10040      dlpath=$dir/\$dldll~
10041       $RM \$dlpath'
10042    shlibpath_overrides_runpath=yes
10043
10044    case $host_os in
10045    cygwin*)
10046      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10047      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10048
10049      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10050      ;;
10051    mingw* | cegcc*)
10052      # MinGW DLLs use traditional 'lib' prefix
10053      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10054      ;;
10055    pw32*)
10056      # pw32 DLLs use 'pw' prefix rather than 'lib'
10057      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10058      ;;
10059    esac
10060    dynamic_linker='Win32 ld.exe'
10061    ;;
10062
10063  *,cl*)
10064    # Native MSVC
10065    libname_spec='$name'
10066    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10067    library_names_spec='${libname}.dll.lib'
10068
10069    case $build_os in
10070    mingw*)
10071      sys_lib_search_path_spec=
10072      lt_save_ifs=$IFS
10073      IFS=';'
10074      for lt_path in $LIB
10075      do
10076        IFS=$lt_save_ifs
10077        # Let DOS variable expansion print the short 8.3 style file name.
10078        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10079        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10080      done
10081      IFS=$lt_save_ifs
10082      # Convert to MSYS style.
10083      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10084      ;;
10085    cygwin*)
10086      # Convert to unix form, then to dos form, then back to unix form
10087      # but this time dos style (no spaces!) so that the unix form looks
10088      # like /cygdrive/c/PROGRA~1:/cygdr...
10089      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10090      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10091      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10092      ;;
10093    *)
10094      sys_lib_search_path_spec="$LIB"
10095      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10096        # It is most probably a Windows format PATH.
10097        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10098      else
10099        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10100      fi
10101      # FIXME: find the short name or the path components, as spaces are
10102      # common. (e.g. "Program Files" -> "PROGRA~1")
10103      ;;
10104    esac
10105
10106    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10107    postinstall_cmds='base_file=`basename \${file}`~
10108      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10109      dldir=$destdir/`dirname \$dlpath`~
10110      test -d \$dldir || mkdir -p \$dldir~
10111      $install_prog $dir/$dlname \$dldir/$dlname'
10112    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10113      dlpath=$dir/\$dldll~
10114       $RM \$dlpath'
10115    shlibpath_overrides_runpath=yes
10116    dynamic_linker='Win32 link.exe'
10117    ;;
10118
10119  *)
10120    # Assume MSVC wrapper
10121    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10122    dynamic_linker='Win32 ld.exe'
10123    ;;
10124  esac
10125  # FIXME: first we should search . and the directory the executable is in
10126  shlibpath_var=PATH
10127  ;;
10128
10129darwin* | rhapsody*)
10130  dynamic_linker="$host_os dyld"
10131  version_type=darwin
10132  need_lib_prefix=no
10133  need_version=no
10134  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10135  soname_spec='${libname}${release}${major}$shared_ext'
10136  shlibpath_overrides_runpath=yes
10137  shlibpath_var=DYLD_LIBRARY_PATH
10138  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10139
10140  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10141  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10142  ;;
10143
10144dgux*)
10145  version_type=linux # correct to gnu/linux during the next big refactor
10146  need_lib_prefix=no
10147  need_version=no
10148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10149  soname_spec='${libname}${release}${shared_ext}$major'
10150  shlibpath_var=LD_LIBRARY_PATH
10151  ;;
10152
10153freebsd* | dragonfly*)
10154  # DragonFly does not have aout.  When/if they implement a new
10155  # versioning mechanism, adjust this.
10156  if test -x /usr/bin/objformat; then
10157    objformat=`/usr/bin/objformat`
10158  else
10159    case $host_os in
10160    freebsd[23].*) objformat=aout ;;
10161    *) objformat=elf ;;
10162    esac
10163  fi
10164  version_type=freebsd-$objformat
10165  case $version_type in
10166    freebsd-elf*)
10167      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10168      need_version=no
10169      need_lib_prefix=no
10170      ;;
10171    freebsd-*)
10172      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10173      need_version=yes
10174      ;;
10175  esac
10176  shlibpath_var=LD_LIBRARY_PATH
10177  case $host_os in
10178  freebsd2.*)
10179    shlibpath_overrides_runpath=yes
10180    ;;
10181  freebsd3.[01]* | freebsdelf3.[01]*)
10182    shlibpath_overrides_runpath=yes
10183    hardcode_into_libs=yes
10184    ;;
10185  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10186  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10187    shlibpath_overrides_runpath=no
10188    hardcode_into_libs=yes
10189    ;;
10190  *) # from 4.6 on, and DragonFly
10191    shlibpath_overrides_runpath=yes
10192    hardcode_into_libs=yes
10193    ;;
10194  esac
10195  ;;
10196
10197gnu*)
10198  version_type=linux # correct to gnu/linux during the next big refactor
10199  need_lib_prefix=no
10200  need_version=no
10201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10202  soname_spec='${libname}${release}${shared_ext}$major'
10203  shlibpath_var=LD_LIBRARY_PATH
10204  shlibpath_overrides_runpath=no
10205  hardcode_into_libs=yes
10206  ;;
10207
10208haiku*)
10209  version_type=linux # correct to gnu/linux during the next big refactor
10210  need_lib_prefix=no
10211  need_version=no
10212  dynamic_linker="$host_os runtime_loader"
10213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10214  soname_spec='${libname}${release}${shared_ext}$major'
10215  shlibpath_var=LIBRARY_PATH
10216  shlibpath_overrides_runpath=yes
10217  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10218  hardcode_into_libs=yes
10219  ;;
10220
10221hpux9* | hpux10* | hpux11*)
10222  # Give a soname corresponding to the major version so that dld.sl refuses to
10223  # link against other versions.
10224  version_type=sunos
10225  need_lib_prefix=no
10226  need_version=no
10227  case $host_cpu in
10228  ia64*)
10229    shrext_cmds='.so'
10230    hardcode_into_libs=yes
10231    dynamic_linker="$host_os dld.so"
10232    shlibpath_var=LD_LIBRARY_PATH
10233    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10234    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235    soname_spec='${libname}${release}${shared_ext}$major'
10236    if test "X$HPUX_IA64_MODE" = X32; then
10237      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10238    else
10239      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10240    fi
10241    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10242    ;;
10243  hppa*64*)
10244    shrext_cmds='.sl'
10245    hardcode_into_libs=yes
10246    dynamic_linker="$host_os dld.sl"
10247    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10248    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10249    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250    soname_spec='${libname}${release}${shared_ext}$major'
10251    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10252    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10253    ;;
10254  *)
10255    shrext_cmds='.sl'
10256    dynamic_linker="$host_os dld.sl"
10257    shlibpath_var=SHLIB_PATH
10258    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10259    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260    soname_spec='${libname}${release}${shared_ext}$major'
10261    ;;
10262  esac
10263  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10264  postinstall_cmds='chmod 555 $lib'
10265  # or fails outright, so override atomically:
10266  install_override_mode=555
10267  ;;
10268
10269interix[3-9]*)
10270  version_type=linux # correct to gnu/linux during the next big refactor
10271  need_lib_prefix=no
10272  need_version=no
10273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10274  soname_spec='${libname}${release}${shared_ext}$major'
10275  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10276  shlibpath_var=LD_LIBRARY_PATH
10277  shlibpath_overrides_runpath=no
10278  hardcode_into_libs=yes
10279  ;;
10280
10281irix5* | irix6* | nonstopux*)
10282  case $host_os in
10283    nonstopux*) version_type=nonstopux ;;
10284    *)
10285	if test "$lt_cv_prog_gnu_ld" = yes; then
10286		version_type=linux # correct to gnu/linux during the next big refactor
10287	else
10288		version_type=irix
10289	fi ;;
10290  esac
10291  need_lib_prefix=no
10292  need_version=no
10293  soname_spec='${libname}${release}${shared_ext}$major'
10294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10295  case $host_os in
10296  irix5* | nonstopux*)
10297    libsuff= shlibsuff=
10298    ;;
10299  *)
10300    case $LD in # libtool.m4 will add one of these switches to LD
10301    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10302      libsuff= shlibsuff= libmagic=32-bit;;
10303    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10304      libsuff=32 shlibsuff=N32 libmagic=N32;;
10305    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10306      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10307    *) libsuff= shlibsuff= libmagic=never-match;;
10308    esac
10309    ;;
10310  esac
10311  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10312  shlibpath_overrides_runpath=no
10313  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10314  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10315  hardcode_into_libs=yes
10316  ;;
10317
10318# No shared lib support for Linux oldld, aout, or coff.
10319linux*oldld* | linux*aout* | linux*coff*)
10320  dynamic_linker=no
10321  ;;
10322
10323# This must be glibc/ELF.
10324linux* | k*bsd*-gnu | kopensolaris*-gnu)
10325  version_type=linux # correct to gnu/linux during the next big refactor
10326  need_lib_prefix=no
10327  need_version=no
10328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329  soname_spec='${libname}${release}${shared_ext}$major'
10330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10331  shlibpath_var=LD_LIBRARY_PATH
10332  shlibpath_overrides_runpath=no
10333
10334  # Some binutils ld are patched to set DT_RUNPATH
10335  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10336  $as_echo_n "(cached) " >&6
10337else
10338  lt_cv_shlibpath_overrides_runpath=no
10339    save_LDFLAGS=$LDFLAGS
10340    save_libdir=$libdir
10341    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10342	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10343    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344/* end confdefs.h.  */
10345
10346int
10347main ()
10348{
10349
10350  ;
10351  return 0;
10352}
10353_ACEOF
10354if ac_fn_c_try_link "$LINENO"; then :
10355  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10356  lt_cv_shlibpath_overrides_runpath=yes
10357fi
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360    conftest$ac_exeext conftest.$ac_ext
10361    LDFLAGS=$save_LDFLAGS
10362    libdir=$save_libdir
10363
10364fi
10365
10366  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10367
10368  # This implies no fast_install, which is unacceptable.
10369  # Some rework will be needed to allow for fast_install
10370  # before this can be enabled.
10371  hardcode_into_libs=yes
10372
10373  # Append ld.so.conf contents to the search path
10374  if test -f /etc/ld.so.conf; then
10375    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' ' '`
10376    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10377  fi
10378
10379  # We used to test for /lib/ld.so.1 and disable shared libraries on
10380  # powerpc, because MkLinux only supported shared libraries with the
10381  # GNU dynamic linker.  Since this was broken with cross compilers,
10382  # most powerpc-linux boxes support dynamic linking these days and
10383  # people can always --disable-shared, the test was removed, and we
10384  # assume the GNU/Linux dynamic linker is in use.
10385  dynamic_linker='GNU/Linux ld.so'
10386  ;;
10387
10388netbsd*)
10389  version_type=sunos
10390  need_lib_prefix=no
10391  need_version=no
10392  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10394    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10395    dynamic_linker='NetBSD (a.out) ld.so'
10396  else
10397    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10398    soname_spec='${libname}${release}${shared_ext}$major'
10399    dynamic_linker='NetBSD ld.elf_so'
10400  fi
10401  shlibpath_var=LD_LIBRARY_PATH
10402  shlibpath_overrides_runpath=yes
10403  hardcode_into_libs=yes
10404  ;;
10405
10406newsos6)
10407  version_type=linux # correct to gnu/linux during the next big refactor
10408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409  shlibpath_var=LD_LIBRARY_PATH
10410  shlibpath_overrides_runpath=yes
10411  ;;
10412
10413*nto* | *qnx*)
10414  version_type=qnx
10415  need_lib_prefix=no
10416  need_version=no
10417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418  soname_spec='${libname}${release}${shared_ext}$major'
10419  shlibpath_var=LD_LIBRARY_PATH
10420  shlibpath_overrides_runpath=no
10421  hardcode_into_libs=yes
10422  dynamic_linker='ldqnx.so'
10423  ;;
10424
10425openbsd*)
10426  version_type=sunos
10427  sys_lib_dlsearch_path_spec="/usr/lib"
10428  need_lib_prefix=no
10429  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10430  case $host_os in
10431    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10432    *)				need_version=no  ;;
10433  esac
10434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10435  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10436  shlibpath_var=LD_LIBRARY_PATH
10437  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10438    case $host_os in
10439      openbsd2.[89] | openbsd2.[89].*)
10440	shlibpath_overrides_runpath=no
10441	;;
10442      *)
10443	shlibpath_overrides_runpath=yes
10444	;;
10445      esac
10446  else
10447    shlibpath_overrides_runpath=yes
10448  fi
10449  ;;
10450
10451os2*)
10452  libname_spec='$name'
10453  shrext_cmds=".dll"
10454  need_lib_prefix=no
10455  library_names_spec='$libname${shared_ext} $libname.a'
10456  dynamic_linker='OS/2 ld.exe'
10457  shlibpath_var=LIBPATH
10458  ;;
10459
10460osf3* | osf4* | osf5*)
10461  version_type=osf
10462  need_lib_prefix=no
10463  need_version=no
10464  soname_spec='${libname}${release}${shared_ext}$major'
10465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466  shlibpath_var=LD_LIBRARY_PATH
10467  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10468  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10469  ;;
10470
10471rdos*)
10472  dynamic_linker=no
10473  ;;
10474
10475solaris*)
10476  version_type=linux # correct to gnu/linux during the next big refactor
10477  need_lib_prefix=no
10478  need_version=no
10479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480  soname_spec='${libname}${release}${shared_ext}$major'
10481  shlibpath_var=LD_LIBRARY_PATH
10482  shlibpath_overrides_runpath=yes
10483  hardcode_into_libs=yes
10484  # ldd complains unless libraries are executable
10485  postinstall_cmds='chmod +x $lib'
10486  ;;
10487
10488sunos4*)
10489  version_type=sunos
10490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10491  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10492  shlibpath_var=LD_LIBRARY_PATH
10493  shlibpath_overrides_runpath=yes
10494  if test "$with_gnu_ld" = yes; then
10495    need_lib_prefix=no
10496  fi
10497  need_version=yes
10498  ;;
10499
10500sysv4 | sysv4.3*)
10501  version_type=linux # correct to gnu/linux during the next big refactor
10502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503  soname_spec='${libname}${release}${shared_ext}$major'
10504  shlibpath_var=LD_LIBRARY_PATH
10505  case $host_vendor in
10506    sni)
10507      shlibpath_overrides_runpath=no
10508      need_lib_prefix=no
10509      runpath_var=LD_RUN_PATH
10510      ;;
10511    siemens)
10512      need_lib_prefix=no
10513      ;;
10514    motorola)
10515      need_lib_prefix=no
10516      need_version=no
10517      shlibpath_overrides_runpath=no
10518      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10519      ;;
10520  esac
10521  ;;
10522
10523sysv4*MP*)
10524  if test -d /usr/nec ;then
10525    version_type=linux # correct to gnu/linux during the next big refactor
10526    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10527    soname_spec='$libname${shared_ext}.$major'
10528    shlibpath_var=LD_LIBRARY_PATH
10529  fi
10530  ;;
10531
10532sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10533  version_type=freebsd-elf
10534  need_lib_prefix=no
10535  need_version=no
10536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10537  soname_spec='${libname}${release}${shared_ext}$major'
10538  shlibpath_var=LD_LIBRARY_PATH
10539  shlibpath_overrides_runpath=yes
10540  hardcode_into_libs=yes
10541  if test "$with_gnu_ld" = yes; then
10542    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10543  else
10544    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10545    case $host_os in
10546      sco3.2v5*)
10547        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10548	;;
10549    esac
10550  fi
10551  sys_lib_dlsearch_path_spec='/usr/lib'
10552  ;;
10553
10554tpf*)
10555  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10556  version_type=linux # correct to gnu/linux during the next big refactor
10557  need_lib_prefix=no
10558  need_version=no
10559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560  shlibpath_var=LD_LIBRARY_PATH
10561  shlibpath_overrides_runpath=no
10562  hardcode_into_libs=yes
10563  ;;
10564
10565uts4*)
10566  version_type=linux # correct to gnu/linux during the next big refactor
10567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568  soname_spec='${libname}${release}${shared_ext}$major'
10569  shlibpath_var=LD_LIBRARY_PATH
10570  ;;
10571
10572*)
10573  dynamic_linker=no
10574  ;;
10575esac
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10577$as_echo "$dynamic_linker" >&6; }
10578test "$dynamic_linker" = no && can_build_shared=no
10579
10580variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10581if test "$GCC" = yes; then
10582  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10583fi
10584
10585if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10586  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10587fi
10588if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10589  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10590fi
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
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10684$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10685hardcode_action=
10686if test -n "$hardcode_libdir_flag_spec" ||
10687   test -n "$runpath_var" ||
10688   test "X$hardcode_automatic" = "Xyes" ; then
10689
10690  # We can hardcode non-existent directories.
10691  if test "$hardcode_direct" != no &&
10692     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10693     # have to relink, otherwise we might link with an installed library
10694     # when we should be linking with a yet-to-be-installed one
10695     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10696     test "$hardcode_minus_L" != no; then
10697    # Linking always hardcodes the temporary library directory.
10698    hardcode_action=relink
10699  else
10700    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10701    hardcode_action=immediate
10702  fi
10703else
10704  # We cannot hardcode anything, or else we can only hardcode existing
10705  # directories.
10706  hardcode_action=unsupported
10707fi
10708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10709$as_echo "$hardcode_action" >&6; }
10710
10711if test "$hardcode_action" = relink ||
10712   test "$inherit_rpath" = yes; then
10713  # Fast installation is not supported
10714  enable_fast_install=no
10715elif test "$shlibpath_overrides_runpath" = yes ||
10716     test "$enable_shared" = no; then
10717  # Fast installation is not necessary
10718  enable_fast_install=needless
10719fi
10720
10721
10722
10723
10724
10725
10726  if test "x$enable_dlopen" != xyes; then
10727  enable_dlopen=unknown
10728  enable_dlopen_self=unknown
10729  enable_dlopen_self_static=unknown
10730else
10731  lt_cv_dlopen=no
10732  lt_cv_dlopen_libs=
10733
10734  case $host_os in
10735  beos*)
10736    lt_cv_dlopen="load_add_on"
10737    lt_cv_dlopen_libs=
10738    lt_cv_dlopen_self=yes
10739    ;;
10740
10741  mingw* | pw32* | cegcc*)
10742    lt_cv_dlopen="LoadLibrary"
10743    lt_cv_dlopen_libs=
10744    ;;
10745
10746  cygwin*)
10747    lt_cv_dlopen="dlopen"
10748    lt_cv_dlopen_libs=
10749    ;;
10750
10751  darwin*)
10752  # if libdl is installed we need to link against it
10753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10754$as_echo_n "checking for dlopen in -ldl... " >&6; }
10755if ${ac_cv_lib_dl_dlopen+:} false; then :
10756  $as_echo_n "(cached) " >&6
10757else
10758  ac_check_lib_save_LIBS=$LIBS
10759LIBS="-ldl  $LIBS"
10760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761/* end confdefs.h.  */
10762
10763/* Override any GCC internal prototype to avoid an error.
10764   Use char because int might match the return type of a GCC
10765   builtin and then its argument prototype would still apply.  */
10766#ifdef __cplusplus
10767extern "C"
10768#endif
10769char dlopen ();
10770int
10771main ()
10772{
10773return dlopen ();
10774  ;
10775  return 0;
10776}
10777_ACEOF
10778if ac_fn_c_try_link "$LINENO"; then :
10779  ac_cv_lib_dl_dlopen=yes
10780else
10781  ac_cv_lib_dl_dlopen=no
10782fi
10783rm -f core conftest.err conftest.$ac_objext \
10784    conftest$ac_exeext conftest.$ac_ext
10785LIBS=$ac_check_lib_save_LIBS
10786fi
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10788$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10789if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10790  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10791else
10792
10793    lt_cv_dlopen="dyld"
10794    lt_cv_dlopen_libs=
10795    lt_cv_dlopen_self=yes
10796
10797fi
10798
10799    ;;
10800
10801  *)
10802    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10803if test "x$ac_cv_func_shl_load" = xyes; then :
10804  lt_cv_dlopen="shl_load"
10805else
10806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10807$as_echo_n "checking for shl_load in -ldld... " >&6; }
10808if ${ac_cv_lib_dld_shl_load+:} false; then :
10809  $as_echo_n "(cached) " >&6
10810else
10811  ac_check_lib_save_LIBS=$LIBS
10812LIBS="-ldld  $LIBS"
10813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h.  */
10815
10816/* Override any GCC internal prototype to avoid an error.
10817   Use char because int might match the return type of a GCC
10818   builtin and then its argument prototype would still apply.  */
10819#ifdef __cplusplus
10820extern "C"
10821#endif
10822char shl_load ();
10823int
10824main ()
10825{
10826return shl_load ();
10827  ;
10828  return 0;
10829}
10830_ACEOF
10831if ac_fn_c_try_link "$LINENO"; then :
10832  ac_cv_lib_dld_shl_load=yes
10833else
10834  ac_cv_lib_dld_shl_load=no
10835fi
10836rm -f core conftest.err conftest.$ac_objext \
10837    conftest$ac_exeext conftest.$ac_ext
10838LIBS=$ac_check_lib_save_LIBS
10839fi
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10841$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10842if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10843  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10844else
10845  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10846if test "x$ac_cv_func_dlopen" = xyes; then :
10847  lt_cv_dlopen="dlopen"
10848else
10849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10850$as_echo_n "checking for dlopen in -ldl... " >&6; }
10851if ${ac_cv_lib_dl_dlopen+:} false; then :
10852  $as_echo_n "(cached) " >&6
10853else
10854  ac_check_lib_save_LIBS=$LIBS
10855LIBS="-ldl  $LIBS"
10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h.  */
10858
10859/* Override any GCC internal prototype to avoid an error.
10860   Use char because int might match the return type of a GCC
10861   builtin and then its argument prototype would still apply.  */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char dlopen ();
10866int
10867main ()
10868{
10869return dlopen ();
10870  ;
10871  return 0;
10872}
10873_ACEOF
10874if ac_fn_c_try_link "$LINENO"; then :
10875  ac_cv_lib_dl_dlopen=yes
10876else
10877  ac_cv_lib_dl_dlopen=no
10878fi
10879rm -f core conftest.err conftest.$ac_objext \
10880    conftest$ac_exeext conftest.$ac_ext
10881LIBS=$ac_check_lib_save_LIBS
10882fi
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10884$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10885if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10886  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10887else
10888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10889$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10890if ${ac_cv_lib_svld_dlopen+:} false; then :
10891  $as_echo_n "(cached) " >&6
10892else
10893  ac_check_lib_save_LIBS=$LIBS
10894LIBS="-lsvld  $LIBS"
10895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896/* end confdefs.h.  */
10897
10898/* Override any GCC internal prototype to avoid an error.
10899   Use char because int might match the return type of a GCC
10900   builtin and then its argument prototype would still apply.  */
10901#ifdef __cplusplus
10902extern "C"
10903#endif
10904char dlopen ();
10905int
10906main ()
10907{
10908return dlopen ();
10909  ;
10910  return 0;
10911}
10912_ACEOF
10913if ac_fn_c_try_link "$LINENO"; then :
10914  ac_cv_lib_svld_dlopen=yes
10915else
10916  ac_cv_lib_svld_dlopen=no
10917fi
10918rm -f core conftest.err conftest.$ac_objext \
10919    conftest$ac_exeext conftest.$ac_ext
10920LIBS=$ac_check_lib_save_LIBS
10921fi
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10923$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10924if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10925  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10926else
10927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10928$as_echo_n "checking for dld_link in -ldld... " >&6; }
10929if ${ac_cv_lib_dld_dld_link+:} false; then :
10930  $as_echo_n "(cached) " >&6
10931else
10932  ac_check_lib_save_LIBS=$LIBS
10933LIBS="-ldld  $LIBS"
10934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935/* end confdefs.h.  */
10936
10937/* Override any GCC internal prototype to avoid an error.
10938   Use char because int might match the return type of a GCC
10939   builtin and then its argument prototype would still apply.  */
10940#ifdef __cplusplus
10941extern "C"
10942#endif
10943char dld_link ();
10944int
10945main ()
10946{
10947return dld_link ();
10948  ;
10949  return 0;
10950}
10951_ACEOF
10952if ac_fn_c_try_link "$LINENO"; then :
10953  ac_cv_lib_dld_dld_link=yes
10954else
10955  ac_cv_lib_dld_dld_link=no
10956fi
10957rm -f core conftest.err conftest.$ac_objext \
10958    conftest$ac_exeext conftest.$ac_ext
10959LIBS=$ac_check_lib_save_LIBS
10960fi
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10962$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10963if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10964  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10965fi
10966
10967
10968fi
10969
10970
10971fi
10972
10973
10974fi
10975
10976
10977fi
10978
10979
10980fi
10981
10982    ;;
10983  esac
10984
10985  if test "x$lt_cv_dlopen" != xno; then
10986    enable_dlopen=yes
10987  else
10988    enable_dlopen=no
10989  fi
10990
10991  case $lt_cv_dlopen in
10992  dlopen)
10993    save_CPPFLAGS="$CPPFLAGS"
10994    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10995
10996    save_LDFLAGS="$LDFLAGS"
10997    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10998
10999    save_LIBS="$LIBS"
11000    LIBS="$lt_cv_dlopen_libs $LIBS"
11001
11002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11003$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11004if ${lt_cv_dlopen_self+:} false; then :
11005  $as_echo_n "(cached) " >&6
11006else
11007  	  if test "$cross_compiling" = yes; then :
11008  lt_cv_dlopen_self=cross
11009else
11010  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11011  lt_status=$lt_dlunknown
11012  cat > conftest.$ac_ext <<_LT_EOF
11013#line $LINENO "configure"
11014#include "confdefs.h"
11015
11016#if HAVE_DLFCN_H
11017#include <dlfcn.h>
11018#endif
11019
11020#include <stdio.h>
11021
11022#ifdef RTLD_GLOBAL
11023#  define LT_DLGLOBAL		RTLD_GLOBAL
11024#else
11025#  ifdef DL_GLOBAL
11026#    define LT_DLGLOBAL		DL_GLOBAL
11027#  else
11028#    define LT_DLGLOBAL		0
11029#  endif
11030#endif
11031
11032/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11033   find out it does not work in some platform. */
11034#ifndef LT_DLLAZY_OR_NOW
11035#  ifdef RTLD_LAZY
11036#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11037#  else
11038#    ifdef DL_LAZY
11039#      define LT_DLLAZY_OR_NOW		DL_LAZY
11040#    else
11041#      ifdef RTLD_NOW
11042#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11043#      else
11044#        ifdef DL_NOW
11045#          define LT_DLLAZY_OR_NOW	DL_NOW
11046#        else
11047#          define LT_DLLAZY_OR_NOW	0
11048#        endif
11049#      endif
11050#    endif
11051#  endif
11052#endif
11053
11054/* When -fvisbility=hidden is used, assume the code has been annotated
11055   correspondingly for the symbols needed.  */
11056#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11057int fnord () __attribute__((visibility("default")));
11058#endif
11059
11060int fnord () { return 42; }
11061int main ()
11062{
11063  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11064  int status = $lt_dlunknown;
11065
11066  if (self)
11067    {
11068      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11069      else
11070        {
11071	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11072          else puts (dlerror ());
11073	}
11074      /* dlclose (self); */
11075    }
11076  else
11077    puts (dlerror ());
11078
11079  return status;
11080}
11081_LT_EOF
11082  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11083  (eval $ac_link) 2>&5
11084  ac_status=$?
11085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11086  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11087    (./conftest; exit; ) >&5 2>/dev/null
11088    lt_status=$?
11089    case x$lt_status in
11090      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11091      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11092      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11093    esac
11094  else :
11095    # compilation failed
11096    lt_cv_dlopen_self=no
11097  fi
11098fi
11099rm -fr conftest*
11100
11101
11102fi
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11104$as_echo "$lt_cv_dlopen_self" >&6; }
11105
11106    if test "x$lt_cv_dlopen_self" = xyes; then
11107      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11108      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11109$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11110if ${lt_cv_dlopen_self_static+:} false; then :
11111  $as_echo_n "(cached) " >&6
11112else
11113  	  if test "$cross_compiling" = yes; then :
11114  lt_cv_dlopen_self_static=cross
11115else
11116  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11117  lt_status=$lt_dlunknown
11118  cat > conftest.$ac_ext <<_LT_EOF
11119#line $LINENO "configure"
11120#include "confdefs.h"
11121
11122#if HAVE_DLFCN_H
11123#include <dlfcn.h>
11124#endif
11125
11126#include <stdio.h>
11127
11128#ifdef RTLD_GLOBAL
11129#  define LT_DLGLOBAL		RTLD_GLOBAL
11130#else
11131#  ifdef DL_GLOBAL
11132#    define LT_DLGLOBAL		DL_GLOBAL
11133#  else
11134#    define LT_DLGLOBAL		0
11135#  endif
11136#endif
11137
11138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11139   find out it does not work in some platform. */
11140#ifndef LT_DLLAZY_OR_NOW
11141#  ifdef RTLD_LAZY
11142#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11143#  else
11144#    ifdef DL_LAZY
11145#      define LT_DLLAZY_OR_NOW		DL_LAZY
11146#    else
11147#      ifdef RTLD_NOW
11148#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11149#      else
11150#        ifdef DL_NOW
11151#          define LT_DLLAZY_OR_NOW	DL_NOW
11152#        else
11153#          define LT_DLLAZY_OR_NOW	0
11154#        endif
11155#      endif
11156#    endif
11157#  endif
11158#endif
11159
11160/* When -fvisbility=hidden is used, assume the code has been annotated
11161   correspondingly for the symbols needed.  */
11162#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11163int fnord () __attribute__((visibility("default")));
11164#endif
11165
11166int fnord () { return 42; }
11167int main ()
11168{
11169  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11170  int status = $lt_dlunknown;
11171
11172  if (self)
11173    {
11174      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11175      else
11176        {
11177	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11178          else puts (dlerror ());
11179	}
11180      /* dlclose (self); */
11181    }
11182  else
11183    puts (dlerror ());
11184
11185  return status;
11186}
11187_LT_EOF
11188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11189  (eval $ac_link) 2>&5
11190  ac_status=$?
11191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11193    (./conftest; exit; ) >&5 2>/dev/null
11194    lt_status=$?
11195    case x$lt_status in
11196      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11197      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11198      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11199    esac
11200  else :
11201    # compilation failed
11202    lt_cv_dlopen_self_static=no
11203  fi
11204fi
11205rm -fr conftest*
11206
11207
11208fi
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11210$as_echo "$lt_cv_dlopen_self_static" >&6; }
11211    fi
11212
11213    CPPFLAGS="$save_CPPFLAGS"
11214    LDFLAGS="$save_LDFLAGS"
11215    LIBS="$save_LIBS"
11216    ;;
11217  esac
11218
11219  case $lt_cv_dlopen_self in
11220  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11221  *) enable_dlopen_self=unknown ;;
11222  esac
11223
11224  case $lt_cv_dlopen_self_static in
11225  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11226  *) enable_dlopen_self_static=unknown ;;
11227  esac
11228fi
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246striplib=
11247old_striplib=
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11249$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11250if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11251  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11252  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11254$as_echo "yes" >&6; }
11255else
11256# FIXME - insert some real tests, host_os isn't really good enough
11257  case $host_os in
11258  darwin*)
11259    if test -n "$STRIP" ; then
11260      striplib="$STRIP -x"
11261      old_striplib="$STRIP -S"
11262      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263$as_echo "yes" >&6; }
11264    else
11265      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266$as_echo "no" >&6; }
11267    fi
11268    ;;
11269  *)
11270    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271$as_echo "no" >&6; }
11272    ;;
11273  esac
11274fi
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287  # Report which library types will actually be built
11288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11289$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11291$as_echo "$can_build_shared" >&6; }
11292
11293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11294$as_echo_n "checking whether to build shared libraries... " >&6; }
11295  test "$can_build_shared" = "no" && enable_shared=no
11296
11297  # On AIX, shared libraries and static libraries use the same namespace, and
11298  # are all built from PIC.
11299  case $host_os in
11300  aix3*)
11301    test "$enable_shared" = yes && enable_static=no
11302    if test -n "$RANLIB"; then
11303      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11304      postinstall_cmds='$RANLIB $lib'
11305    fi
11306    ;;
11307
11308  aix[4-9]*)
11309    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11310      test "$enable_shared" = yes && enable_static=no
11311    fi
11312    ;;
11313  esac
11314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11315$as_echo "$enable_shared" >&6; }
11316
11317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11318$as_echo_n "checking whether to build static libraries... " >&6; }
11319  # Make sure either enable_shared or enable_static is yes.
11320  test "$enable_shared" = yes || enable_static=yes
11321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11322$as_echo "$enable_static" >&6; }
11323
11324
11325
11326
11327fi
11328ac_ext=c
11329ac_cpp='$CPP $CPPFLAGS'
11330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332ac_compiler_gnu=$ac_cv_c_compiler_gnu
11333
11334CC="$lt_save_CC"
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350        ac_config_commands="$ac_config_commands libtool"
11351
11352
11353
11354
11355# Only expand once:
11356
11357
11358
11359# Require X.Org macros 1.8 or later
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11372$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11373if ${ac_cv_prog_cc_c99+:} false; then :
11374  $as_echo_n "(cached) " >&6
11375else
11376  ac_cv_prog_cc_c99=no
11377ac_save_CC=$CC
11378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379/* end confdefs.h.  */
11380#include <stdarg.h>
11381#include <stdbool.h>
11382#include <stdlib.h>
11383#include <wchar.h>
11384#include <stdio.h>
11385
11386// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11387#define debug(...) fprintf (stderr, __VA_ARGS__)
11388#define showlist(...) puts (#__VA_ARGS__)
11389#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11390static void
11391test_varargs_macros (void)
11392{
11393  int x = 1234;
11394  int y = 5678;
11395  debug ("Flag");
11396  debug ("X = %d\n", x);
11397  showlist (The first, second, and third items.);
11398  report (x>y, "x is %d but y is %d", x, y);
11399}
11400
11401// Check long long types.
11402#define BIG64 18446744073709551615ull
11403#define BIG32 4294967295ul
11404#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11405#if !BIG_OK
11406  your preprocessor is broken;
11407#endif
11408#if BIG_OK
11409#else
11410  your preprocessor is broken;
11411#endif
11412static long long int bignum = -9223372036854775807LL;
11413static unsigned long long int ubignum = BIG64;
11414
11415struct incomplete_array
11416{
11417  int datasize;
11418  double data[];
11419};
11420
11421struct named_init {
11422  int number;
11423  const wchar_t *name;
11424  double average;
11425};
11426
11427typedef const char *ccp;
11428
11429static inline int
11430test_restrict (ccp restrict text)
11431{
11432  // See if C++-style comments work.
11433  // Iterate through items via the restricted pointer.
11434  // Also check for declarations in for loops.
11435  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11436    continue;
11437  return 0;
11438}
11439
11440// Check varargs and va_copy.
11441static void
11442test_varargs (const char *format, ...)
11443{
11444  va_list args;
11445  va_start (args, format);
11446  va_list args_copy;
11447  va_copy (args_copy, args);
11448
11449  const char *str;
11450  int number;
11451  float fnumber;
11452
11453  while (*format)
11454    {
11455      switch (*format++)
11456	{
11457	case 's': // string
11458	  str = va_arg (args_copy, const char *);
11459	  break;
11460	case 'd': // int
11461	  number = va_arg (args_copy, int);
11462	  break;
11463	case 'f': // float
11464	  fnumber = va_arg (args_copy, double);
11465	  break;
11466	default:
11467	  break;
11468	}
11469    }
11470  va_end (args_copy);
11471  va_end (args);
11472}
11473
11474int
11475main ()
11476{
11477
11478  // Check bool.
11479  _Bool success = false;
11480
11481  // Check restrict.
11482  if (test_restrict ("String literal") == 0)
11483    success = true;
11484  char *restrict newvar = "Another string";
11485
11486  // Check varargs.
11487  test_varargs ("s, d' f .", "string", 65, 34.234);
11488  test_varargs_macros ();
11489
11490  // Check flexible array members.
11491  struct incomplete_array *ia =
11492    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11493  ia->datasize = 10;
11494  for (int i = 0; i < ia->datasize; ++i)
11495    ia->data[i] = i * 1.234;
11496
11497  // Check named initializers.
11498  struct named_init ni = {
11499    .number = 34,
11500    .name = L"Test wide string",
11501    .average = 543.34343,
11502  };
11503
11504  ni.number = 58;
11505
11506  int dynamic_array[ni.number];
11507  dynamic_array[ni.number - 1] = 543;
11508
11509  // work around unused variable warnings
11510  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11511	  || dynamic_array[ni.number - 1] != 543);
11512
11513  ;
11514  return 0;
11515}
11516_ACEOF
11517for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11518do
11519  CC="$ac_save_CC $ac_arg"
11520  if ac_fn_c_try_compile "$LINENO"; then :
11521  ac_cv_prog_cc_c99=$ac_arg
11522fi
11523rm -f core conftest.err conftest.$ac_objext
11524  test "x$ac_cv_prog_cc_c99" != "xno" && break
11525done
11526rm -f conftest.$ac_ext
11527CC=$ac_save_CC
11528
11529fi
11530# AC_CACHE_VAL
11531case "x$ac_cv_prog_cc_c99" in
11532  x)
11533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11534$as_echo "none needed" >&6; } ;;
11535  xno)
11536    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11537$as_echo "unsupported" >&6; } ;;
11538  *)
11539    CC="$CC $ac_cv_prog_cc_c99"
11540    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11541$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11542esac
11543if test "x$ac_cv_prog_cc_c99" != xno; then :
11544
11545fi
11546
11547
11548
11549
11550
11551
11552ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11553if test "x$ac_cv_have_decl___clang__" = xyes; then :
11554  CLANGCC="yes"
11555else
11556  CLANGCC="no"
11557fi
11558
11559ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11560if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11561  INTELCC="yes"
11562else
11563  INTELCC="no"
11564fi
11565
11566ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11567if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11568  SUNCC="yes"
11569else
11570  SUNCC="no"
11571fi
11572
11573
11574
11575
11576if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11577	if test -n "$ac_tool_prefix"; then
11578  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11579set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581$as_echo_n "checking for $ac_word... " >&6; }
11582if ${ac_cv_path_PKG_CONFIG+:} false; then :
11583  $as_echo_n "(cached) " >&6
11584else
11585  case $PKG_CONFIG in
11586  [\\/]* | ?:[\\/]*)
11587  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11588  ;;
11589  *)
11590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591for as_dir in $PATH
11592do
11593  IFS=$as_save_IFS
11594  test -z "$as_dir" && as_dir=.
11595    for ac_exec_ext in '' $ac_executable_extensions; do
11596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11597    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599    break 2
11600  fi
11601done
11602  done
11603IFS=$as_save_IFS
11604
11605  ;;
11606esac
11607fi
11608PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11609if test -n "$PKG_CONFIG"; then
11610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11611$as_echo "$PKG_CONFIG" >&6; }
11612else
11613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614$as_echo "no" >&6; }
11615fi
11616
11617
11618fi
11619if test -z "$ac_cv_path_PKG_CONFIG"; then
11620  ac_pt_PKG_CONFIG=$PKG_CONFIG
11621  # Extract the first word of "pkg-config", so it can be a program name with args.
11622set dummy pkg-config; ac_word=$2
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628  case $ac_pt_PKG_CONFIG in
11629  [\\/]* | ?:[\\/]*)
11630  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11631  ;;
11632  *)
11633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634for as_dir in $PATH
11635do
11636  IFS=$as_save_IFS
11637  test -z "$as_dir" && as_dir=.
11638    for ac_exec_ext in '' $ac_executable_extensions; do
11639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642    break 2
11643  fi
11644done
11645  done
11646IFS=$as_save_IFS
11647
11648  ;;
11649esac
11650fi
11651ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11652if test -n "$ac_pt_PKG_CONFIG"; then
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11654$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11655else
11656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
11658fi
11659
11660  if test "x$ac_pt_PKG_CONFIG" = x; then
11661    PKG_CONFIG=""
11662  else
11663    case $cross_compiling:$ac_tool_warned in
11664yes:)
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11667ac_tool_warned=yes ;;
11668esac
11669    PKG_CONFIG=$ac_pt_PKG_CONFIG
11670  fi
11671else
11672  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11673fi
11674
11675fi
11676if test -n "$PKG_CONFIG"; then
11677	_pkg_min_version=0.9.0
11678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11679$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11680	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11681		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11682$as_echo "yes" >&6; }
11683	else
11684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
11686		PKG_CONFIG=""
11687	fi
11688
11689fi
11690
11691
11692
11693
11694
11695# Check whether --enable-selective-werror was given.
11696if test "${enable_selective_werror+set}" = set; then :
11697  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11698else
11699  SELECTIVE_WERROR=yes
11700fi
11701
11702
11703
11704
11705
11706# -v is too short to test reliably with XORG_TESTSET_CFLAG
11707if test "x$SUNCC" = "xyes"; then
11708    BASE_CFLAGS="-v"
11709else
11710    BASE_CFLAGS=""
11711fi
11712
11713# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727xorg_testset_save_CFLAGS="$CFLAGS"
11728
11729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11734  $as_echo_n "(cached) " >&6
11735else
11736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h.  */
11738int i;
11739_ACEOF
11740if ac_fn_c_try_compile "$LINENO"; then :
11741  xorg_cv_cc_flag_unknown_warning_option=yes
11742else
11743  xorg_cv_cc_flag_unknown_warning_option=no
11744fi
11745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746fi
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11749	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11750	CFLAGS="$xorg_testset_save_CFLAGS"
11751fi
11752
11753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11754	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11755		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11756	fi
11757	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11761  $as_echo_n "(cached) " >&6
11762else
11763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764/* end confdefs.h.  */
11765int i;
11766_ACEOF
11767if ac_fn_c_try_compile "$LINENO"; then :
11768  xorg_cv_cc_flag_unused_command_line_argument=yes
11769else
11770  xorg_cv_cc_flag_unused_command_line_argument=no
11771fi
11772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11773fi
11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11777	CFLAGS="$xorg_testset_save_CFLAGS"
11778fi
11779
11780found="no"
11781
11782	if test $found = "no" ; then
11783		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11785		fi
11786
11787		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11789		fi
11790
11791		CFLAGS="$CFLAGS -Wall"
11792
11793		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11794$as_echo_n "checking if $CC supports -Wall... " >&6; }
11795		cacheid=xorg_cv_cc_flag__Wall
11796		if eval \${$cacheid+:} false; then :
11797  $as_echo_n "(cached) " >&6
11798else
11799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801int i;
11802int
11803main ()
11804{
11805
11806  ;
11807  return 0;
11808}
11809_ACEOF
11810if ac_fn_c_try_link "$LINENO"; then :
11811  eval $cacheid=yes
11812else
11813  eval $cacheid=no
11814fi
11815rm -f core conftest.err conftest.$ac_objext \
11816    conftest$ac_exeext conftest.$ac_ext
11817fi
11818
11819
11820		CFLAGS="$xorg_testset_save_CFLAGS"
11821
11822		eval supported=\$$cacheid
11823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11824$as_echo "$supported" >&6; }
11825		if test "$supported" = "yes" ; then
11826			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11827			found="yes"
11828		fi
11829	fi
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845xorg_testset_save_CFLAGS="$CFLAGS"
11846
11847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11850$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11851if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11852  $as_echo_n "(cached) " >&6
11853else
11854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855/* end confdefs.h.  */
11856int i;
11857_ACEOF
11858if ac_fn_c_try_compile "$LINENO"; then :
11859  xorg_cv_cc_flag_unknown_warning_option=yes
11860else
11861  xorg_cv_cc_flag_unknown_warning_option=no
11862fi
11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864fi
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11866$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11868	CFLAGS="$xorg_testset_save_CFLAGS"
11869fi
11870
11871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11874	fi
11875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11877$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11878if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11879  $as_echo_n "(cached) " >&6
11880else
11881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882/* end confdefs.h.  */
11883int i;
11884_ACEOF
11885if ac_fn_c_try_compile "$LINENO"; then :
11886  xorg_cv_cc_flag_unused_command_line_argument=yes
11887else
11888  xorg_cv_cc_flag_unused_command_line_argument=no
11889fi
11890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891fi
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11893$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11895	CFLAGS="$xorg_testset_save_CFLAGS"
11896fi
11897
11898found="no"
11899
11900	if test $found = "no" ; then
11901		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11903		fi
11904
11905		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11907		fi
11908
11909		CFLAGS="$CFLAGS -Wpointer-arith"
11910
11911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11912$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11913		cacheid=xorg_cv_cc_flag__Wpointer_arith
11914		if eval \${$cacheid+:} false; then :
11915  $as_echo_n "(cached) " >&6
11916else
11917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918/* end confdefs.h.  */
11919int i;
11920int
11921main ()
11922{
11923
11924  ;
11925  return 0;
11926}
11927_ACEOF
11928if ac_fn_c_try_link "$LINENO"; then :
11929  eval $cacheid=yes
11930else
11931  eval $cacheid=no
11932fi
11933rm -f core conftest.err conftest.$ac_objext \
11934    conftest$ac_exeext conftest.$ac_ext
11935fi
11936
11937
11938		CFLAGS="$xorg_testset_save_CFLAGS"
11939
11940		eval supported=\$$cacheid
11941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11942$as_echo "$supported" >&6; }
11943		if test "$supported" = "yes" ; then
11944			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11945			found="yes"
11946		fi
11947	fi
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963xorg_testset_save_CFLAGS="$CFLAGS"
11964
11965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11970  $as_echo_n "(cached) " >&6
11971else
11972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973/* end confdefs.h.  */
11974int i;
11975_ACEOF
11976if ac_fn_c_try_compile "$LINENO"; then :
11977  xorg_cv_cc_flag_unknown_warning_option=yes
11978else
11979  xorg_cv_cc_flag_unknown_warning_option=no
11980fi
11981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982fi
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11986	CFLAGS="$xorg_testset_save_CFLAGS"
11987fi
11988
11989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11992	fi
11993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11997  $as_echo_n "(cached) " >&6
11998else
11999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000/* end confdefs.h.  */
12001int i;
12002_ACEOF
12003if ac_fn_c_try_compile "$LINENO"; then :
12004  xorg_cv_cc_flag_unused_command_line_argument=yes
12005else
12006  xorg_cv_cc_flag_unused_command_line_argument=no
12007fi
12008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009fi
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12013	CFLAGS="$xorg_testset_save_CFLAGS"
12014fi
12015
12016found="no"
12017
12018	if test $found = "no" ; then
12019		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12021		fi
12022
12023		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12025		fi
12026
12027		CFLAGS="$CFLAGS -Wmissing-declarations"
12028
12029		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12030$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12031		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12032		if eval \${$cacheid+:} false; then :
12033  $as_echo_n "(cached) " >&6
12034else
12035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036/* end confdefs.h.  */
12037int i;
12038int
12039main ()
12040{
12041
12042  ;
12043  return 0;
12044}
12045_ACEOF
12046if ac_fn_c_try_link "$LINENO"; then :
12047  eval $cacheid=yes
12048else
12049  eval $cacheid=no
12050fi
12051rm -f core conftest.err conftest.$ac_objext \
12052    conftest$ac_exeext conftest.$ac_ext
12053fi
12054
12055
12056		CFLAGS="$xorg_testset_save_CFLAGS"
12057
12058		eval supported=\$$cacheid
12059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12060$as_echo "$supported" >&6; }
12061		if test "$supported" = "yes" ; then
12062			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12063			found="yes"
12064		fi
12065	fi
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081xorg_testset_save_CFLAGS="$CFLAGS"
12082
12083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12088  $as_echo_n "(cached) " >&6
12089else
12090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091/* end confdefs.h.  */
12092int i;
12093_ACEOF
12094if ac_fn_c_try_compile "$LINENO"; then :
12095  xorg_cv_cc_flag_unknown_warning_option=yes
12096else
12097  xorg_cv_cc_flag_unknown_warning_option=no
12098fi
12099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100fi
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12104	CFLAGS="$xorg_testset_save_CFLAGS"
12105fi
12106
12107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12110	fi
12111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12115  $as_echo_n "(cached) " >&6
12116else
12117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118/* end confdefs.h.  */
12119int i;
12120_ACEOF
12121if ac_fn_c_try_compile "$LINENO"; then :
12122  xorg_cv_cc_flag_unused_command_line_argument=yes
12123else
12124  xorg_cv_cc_flag_unused_command_line_argument=no
12125fi
12126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127fi
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12131	CFLAGS="$xorg_testset_save_CFLAGS"
12132fi
12133
12134found="no"
12135
12136	if test $found = "no" ; then
12137		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12139		fi
12140
12141		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12143		fi
12144
12145		CFLAGS="$CFLAGS -Wformat=2"
12146
12147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12148$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12149		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12150		if eval \${$cacheid+:} false; then :
12151  $as_echo_n "(cached) " >&6
12152else
12153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154/* end confdefs.h.  */
12155int i;
12156int
12157main ()
12158{
12159
12160  ;
12161  return 0;
12162}
12163_ACEOF
12164if ac_fn_c_try_link "$LINENO"; then :
12165  eval $cacheid=yes
12166else
12167  eval $cacheid=no
12168fi
12169rm -f core conftest.err conftest.$ac_objext \
12170    conftest$ac_exeext conftest.$ac_ext
12171fi
12172
12173
12174		CFLAGS="$xorg_testset_save_CFLAGS"
12175
12176		eval supported=\$$cacheid
12177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12178$as_echo "$supported" >&6; }
12179		if test "$supported" = "yes" ; then
12180			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12181			found="yes"
12182		fi
12183	fi
12184
12185	if test $found = "no" ; then
12186		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12188		fi
12189
12190		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12192		fi
12193
12194		CFLAGS="$CFLAGS -Wformat"
12195
12196		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12197$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12198		cacheid=xorg_cv_cc_flag__Wformat
12199		if eval \${$cacheid+:} false; then :
12200  $as_echo_n "(cached) " >&6
12201else
12202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203/* end confdefs.h.  */
12204int i;
12205int
12206main ()
12207{
12208
12209  ;
12210  return 0;
12211}
12212_ACEOF
12213if ac_fn_c_try_link "$LINENO"; then :
12214  eval $cacheid=yes
12215else
12216  eval $cacheid=no
12217fi
12218rm -f core conftest.err conftest.$ac_objext \
12219    conftest$ac_exeext conftest.$ac_ext
12220fi
12221
12222
12223		CFLAGS="$xorg_testset_save_CFLAGS"
12224
12225		eval supported=\$$cacheid
12226		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12227$as_echo "$supported" >&6; }
12228		if test "$supported" = "yes" ; then
12229			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12230			found="yes"
12231		fi
12232	fi
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250xorg_testset_save_CFLAGS="$CFLAGS"
12251
12252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12257  $as_echo_n "(cached) " >&6
12258else
12259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260/* end confdefs.h.  */
12261int i;
12262_ACEOF
12263if ac_fn_c_try_compile "$LINENO"; then :
12264  xorg_cv_cc_flag_unknown_warning_option=yes
12265else
12266  xorg_cv_cc_flag_unknown_warning_option=no
12267fi
12268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269fi
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12273	CFLAGS="$xorg_testset_save_CFLAGS"
12274fi
12275
12276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12279	fi
12280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12284  $as_echo_n "(cached) " >&6
12285else
12286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287/* end confdefs.h.  */
12288int i;
12289_ACEOF
12290if ac_fn_c_try_compile "$LINENO"; then :
12291  xorg_cv_cc_flag_unused_command_line_argument=yes
12292else
12293  xorg_cv_cc_flag_unused_command_line_argument=no
12294fi
12295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296fi
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12299	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12300	CFLAGS="$xorg_testset_save_CFLAGS"
12301fi
12302
12303found="no"
12304
12305	if test $found = "no" ; then
12306		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12308		fi
12309
12310		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12312		fi
12313
12314		CFLAGS="$CFLAGS -Wstrict-prototypes"
12315
12316		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12317$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12318		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12319		if eval \${$cacheid+:} false; then :
12320  $as_echo_n "(cached) " >&6
12321else
12322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323/* end confdefs.h.  */
12324int i;
12325int
12326main ()
12327{
12328
12329  ;
12330  return 0;
12331}
12332_ACEOF
12333if ac_fn_c_try_link "$LINENO"; then :
12334  eval $cacheid=yes
12335else
12336  eval $cacheid=no
12337fi
12338rm -f core conftest.err conftest.$ac_objext \
12339    conftest$ac_exeext conftest.$ac_ext
12340fi
12341
12342
12343		CFLAGS="$xorg_testset_save_CFLAGS"
12344
12345		eval supported=\$$cacheid
12346		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12347$as_echo "$supported" >&6; }
12348		if test "$supported" = "yes" ; then
12349			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12350			found="yes"
12351		fi
12352	fi
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368xorg_testset_save_CFLAGS="$CFLAGS"
12369
12370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12375  $as_echo_n "(cached) " >&6
12376else
12377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378/* end confdefs.h.  */
12379int i;
12380_ACEOF
12381if ac_fn_c_try_compile "$LINENO"; then :
12382  xorg_cv_cc_flag_unknown_warning_option=yes
12383else
12384  xorg_cv_cc_flag_unknown_warning_option=no
12385fi
12386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387fi
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12391	CFLAGS="$xorg_testset_save_CFLAGS"
12392fi
12393
12394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12397	fi
12398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12402  $as_echo_n "(cached) " >&6
12403else
12404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405/* end confdefs.h.  */
12406int i;
12407_ACEOF
12408if ac_fn_c_try_compile "$LINENO"; then :
12409  xorg_cv_cc_flag_unused_command_line_argument=yes
12410else
12411  xorg_cv_cc_flag_unused_command_line_argument=no
12412fi
12413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414fi
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12417	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12418	CFLAGS="$xorg_testset_save_CFLAGS"
12419fi
12420
12421found="no"
12422
12423	if test $found = "no" ; then
12424		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12426		fi
12427
12428		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12430		fi
12431
12432		CFLAGS="$CFLAGS -Wmissing-prototypes"
12433
12434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12435$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12436		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12437		if eval \${$cacheid+:} false; then :
12438  $as_echo_n "(cached) " >&6
12439else
12440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441/* end confdefs.h.  */
12442int i;
12443int
12444main ()
12445{
12446
12447  ;
12448  return 0;
12449}
12450_ACEOF
12451if ac_fn_c_try_link "$LINENO"; then :
12452  eval $cacheid=yes
12453else
12454  eval $cacheid=no
12455fi
12456rm -f core conftest.err conftest.$ac_objext \
12457    conftest$ac_exeext conftest.$ac_ext
12458fi
12459
12460
12461		CFLAGS="$xorg_testset_save_CFLAGS"
12462
12463		eval supported=\$$cacheid
12464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12465$as_echo "$supported" >&6; }
12466		if test "$supported" = "yes" ; then
12467			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12468			found="yes"
12469		fi
12470	fi
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486xorg_testset_save_CFLAGS="$CFLAGS"
12487
12488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12493  $as_echo_n "(cached) " >&6
12494else
12495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496/* end confdefs.h.  */
12497int i;
12498_ACEOF
12499if ac_fn_c_try_compile "$LINENO"; then :
12500  xorg_cv_cc_flag_unknown_warning_option=yes
12501else
12502  xorg_cv_cc_flag_unknown_warning_option=no
12503fi
12504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505fi
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12509	CFLAGS="$xorg_testset_save_CFLAGS"
12510fi
12511
12512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12515	fi
12516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12520  $as_echo_n "(cached) " >&6
12521else
12522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523/* end confdefs.h.  */
12524int i;
12525_ACEOF
12526if ac_fn_c_try_compile "$LINENO"; then :
12527  xorg_cv_cc_flag_unused_command_line_argument=yes
12528else
12529  xorg_cv_cc_flag_unused_command_line_argument=no
12530fi
12531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12532fi
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12536	CFLAGS="$xorg_testset_save_CFLAGS"
12537fi
12538
12539found="no"
12540
12541	if test $found = "no" ; then
12542		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12544		fi
12545
12546		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12548		fi
12549
12550		CFLAGS="$CFLAGS -Wnested-externs"
12551
12552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12553$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12554		cacheid=xorg_cv_cc_flag__Wnested_externs
12555		if eval \${$cacheid+:} false; then :
12556  $as_echo_n "(cached) " >&6
12557else
12558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559/* end confdefs.h.  */
12560int i;
12561int
12562main ()
12563{
12564
12565  ;
12566  return 0;
12567}
12568_ACEOF
12569if ac_fn_c_try_link "$LINENO"; then :
12570  eval $cacheid=yes
12571else
12572  eval $cacheid=no
12573fi
12574rm -f core conftest.err conftest.$ac_objext \
12575    conftest$ac_exeext conftest.$ac_ext
12576fi
12577
12578
12579		CFLAGS="$xorg_testset_save_CFLAGS"
12580
12581		eval supported=\$$cacheid
12582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12583$as_echo "$supported" >&6; }
12584		if test "$supported" = "yes" ; then
12585			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12586			found="yes"
12587		fi
12588	fi
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604xorg_testset_save_CFLAGS="$CFLAGS"
12605
12606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12611  $as_echo_n "(cached) " >&6
12612else
12613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614/* end confdefs.h.  */
12615int i;
12616_ACEOF
12617if ac_fn_c_try_compile "$LINENO"; then :
12618  xorg_cv_cc_flag_unknown_warning_option=yes
12619else
12620  xorg_cv_cc_flag_unknown_warning_option=no
12621fi
12622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623fi
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12627	CFLAGS="$xorg_testset_save_CFLAGS"
12628fi
12629
12630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12633	fi
12634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12638  $as_echo_n "(cached) " >&6
12639else
12640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641/* end confdefs.h.  */
12642int i;
12643_ACEOF
12644if ac_fn_c_try_compile "$LINENO"; then :
12645  xorg_cv_cc_flag_unused_command_line_argument=yes
12646else
12647  xorg_cv_cc_flag_unused_command_line_argument=no
12648fi
12649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650fi
12651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12654	CFLAGS="$xorg_testset_save_CFLAGS"
12655fi
12656
12657found="no"
12658
12659	if test $found = "no" ; then
12660		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12662		fi
12663
12664		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12666		fi
12667
12668		CFLAGS="$CFLAGS -Wbad-function-cast"
12669
12670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12671$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12672		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12673		if eval \${$cacheid+:} false; then :
12674  $as_echo_n "(cached) " >&6
12675else
12676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677/* end confdefs.h.  */
12678int i;
12679int
12680main ()
12681{
12682
12683  ;
12684  return 0;
12685}
12686_ACEOF
12687if ac_fn_c_try_link "$LINENO"; then :
12688  eval $cacheid=yes
12689else
12690  eval $cacheid=no
12691fi
12692rm -f core conftest.err conftest.$ac_objext \
12693    conftest$ac_exeext conftest.$ac_ext
12694fi
12695
12696
12697		CFLAGS="$xorg_testset_save_CFLAGS"
12698
12699		eval supported=\$$cacheid
12700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12701$as_echo "$supported" >&6; }
12702		if test "$supported" = "yes" ; then
12703			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12704			found="yes"
12705		fi
12706	fi
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722xorg_testset_save_CFLAGS="$CFLAGS"
12723
12724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12729  $as_echo_n "(cached) " >&6
12730else
12731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h.  */
12733int i;
12734_ACEOF
12735if ac_fn_c_try_compile "$LINENO"; then :
12736  xorg_cv_cc_flag_unknown_warning_option=yes
12737else
12738  xorg_cv_cc_flag_unknown_warning_option=no
12739fi
12740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741fi
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12745	CFLAGS="$xorg_testset_save_CFLAGS"
12746fi
12747
12748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12751	fi
12752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12756  $as_echo_n "(cached) " >&6
12757else
12758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759/* end confdefs.h.  */
12760int i;
12761_ACEOF
12762if ac_fn_c_try_compile "$LINENO"; then :
12763  xorg_cv_cc_flag_unused_command_line_argument=yes
12764else
12765  xorg_cv_cc_flag_unused_command_line_argument=no
12766fi
12767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768fi
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12772	CFLAGS="$xorg_testset_save_CFLAGS"
12773fi
12774
12775found="no"
12776
12777	if test $found = "no" ; then
12778		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12780		fi
12781
12782		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12784		fi
12785
12786		CFLAGS="$CFLAGS -Wold-style-definition"
12787
12788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12789$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12790		cacheid=xorg_cv_cc_flag__Wold_style_definition
12791		if eval \${$cacheid+:} false; then :
12792  $as_echo_n "(cached) " >&6
12793else
12794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795/* end confdefs.h.  */
12796int i;
12797int
12798main ()
12799{
12800
12801  ;
12802  return 0;
12803}
12804_ACEOF
12805if ac_fn_c_try_link "$LINENO"; then :
12806  eval $cacheid=yes
12807else
12808  eval $cacheid=no
12809fi
12810rm -f core conftest.err conftest.$ac_objext \
12811    conftest$ac_exeext conftest.$ac_ext
12812fi
12813
12814
12815		CFLAGS="$xorg_testset_save_CFLAGS"
12816
12817		eval supported=\$$cacheid
12818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12819$as_echo "$supported" >&6; }
12820		if test "$supported" = "yes" ; then
12821			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12822			found="yes"
12823		fi
12824	fi
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840xorg_testset_save_CFLAGS="$CFLAGS"
12841
12842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12847  $as_echo_n "(cached) " >&6
12848else
12849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850/* end confdefs.h.  */
12851int i;
12852_ACEOF
12853if ac_fn_c_try_compile "$LINENO"; then :
12854  xorg_cv_cc_flag_unknown_warning_option=yes
12855else
12856  xorg_cv_cc_flag_unknown_warning_option=no
12857fi
12858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859fi
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12863	CFLAGS="$xorg_testset_save_CFLAGS"
12864fi
12865
12866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12869	fi
12870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12874  $as_echo_n "(cached) " >&6
12875else
12876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877/* end confdefs.h.  */
12878int i;
12879_ACEOF
12880if ac_fn_c_try_compile "$LINENO"; then :
12881  xorg_cv_cc_flag_unused_command_line_argument=yes
12882else
12883  xorg_cv_cc_flag_unused_command_line_argument=no
12884fi
12885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886fi
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12890	CFLAGS="$xorg_testset_save_CFLAGS"
12891fi
12892
12893found="no"
12894
12895	if test $found = "no" ; then
12896		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12898		fi
12899
12900		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12902		fi
12903
12904		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12905
12906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12907$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12908		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12909		if eval \${$cacheid+:} false; then :
12910  $as_echo_n "(cached) " >&6
12911else
12912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913/* end confdefs.h.  */
12914int i;
12915int
12916main ()
12917{
12918
12919  ;
12920  return 0;
12921}
12922_ACEOF
12923if ac_fn_c_try_link "$LINENO"; then :
12924  eval $cacheid=yes
12925else
12926  eval $cacheid=no
12927fi
12928rm -f core conftest.err conftest.$ac_objext \
12929    conftest$ac_exeext conftest.$ac_ext
12930fi
12931
12932
12933		CFLAGS="$xorg_testset_save_CFLAGS"
12934
12935		eval supported=\$$cacheid
12936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12937$as_echo "$supported" >&6; }
12938		if test "$supported" = "yes" ; then
12939			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12940			found="yes"
12941		fi
12942	fi
12943
12944
12945
12946
12947
12948# This chunk adds additional warnings that could catch undesired effects.
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962xorg_testset_save_CFLAGS="$CFLAGS"
12963
12964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12969  $as_echo_n "(cached) " >&6
12970else
12971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972/* end confdefs.h.  */
12973int i;
12974_ACEOF
12975if ac_fn_c_try_compile "$LINENO"; then :
12976  xorg_cv_cc_flag_unknown_warning_option=yes
12977else
12978  xorg_cv_cc_flag_unknown_warning_option=no
12979fi
12980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981fi
12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12985	CFLAGS="$xorg_testset_save_CFLAGS"
12986fi
12987
12988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12991	fi
12992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12996  $as_echo_n "(cached) " >&6
12997else
12998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999/* end confdefs.h.  */
13000int i;
13001_ACEOF
13002if ac_fn_c_try_compile "$LINENO"; then :
13003  xorg_cv_cc_flag_unused_command_line_argument=yes
13004else
13005  xorg_cv_cc_flag_unused_command_line_argument=no
13006fi
13007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008fi
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13012	CFLAGS="$xorg_testset_save_CFLAGS"
13013fi
13014
13015found="no"
13016
13017	if test $found = "no" ; then
13018		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13020		fi
13021
13022		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13024		fi
13025
13026		CFLAGS="$CFLAGS -Wunused"
13027
13028		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13029$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13030		cacheid=xorg_cv_cc_flag__Wunused
13031		if eval \${$cacheid+:} false; then :
13032  $as_echo_n "(cached) " >&6
13033else
13034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035/* end confdefs.h.  */
13036int i;
13037int
13038main ()
13039{
13040
13041  ;
13042  return 0;
13043}
13044_ACEOF
13045if ac_fn_c_try_link "$LINENO"; then :
13046  eval $cacheid=yes
13047else
13048  eval $cacheid=no
13049fi
13050rm -f core conftest.err conftest.$ac_objext \
13051    conftest$ac_exeext conftest.$ac_ext
13052fi
13053
13054
13055		CFLAGS="$xorg_testset_save_CFLAGS"
13056
13057		eval supported=\$$cacheid
13058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13059$as_echo "$supported" >&6; }
13060		if test "$supported" = "yes" ; then
13061			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13062			found="yes"
13063		fi
13064	fi
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080xorg_testset_save_CFLAGS="$CFLAGS"
13081
13082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13087  $as_echo_n "(cached) " >&6
13088else
13089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090/* end confdefs.h.  */
13091int i;
13092_ACEOF
13093if ac_fn_c_try_compile "$LINENO"; then :
13094  xorg_cv_cc_flag_unknown_warning_option=yes
13095else
13096  xorg_cv_cc_flag_unknown_warning_option=no
13097fi
13098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099fi
13100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13103	CFLAGS="$xorg_testset_save_CFLAGS"
13104fi
13105
13106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13109	fi
13110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13114  $as_echo_n "(cached) " >&6
13115else
13116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117/* end confdefs.h.  */
13118int i;
13119_ACEOF
13120if ac_fn_c_try_compile "$LINENO"; then :
13121  xorg_cv_cc_flag_unused_command_line_argument=yes
13122else
13123  xorg_cv_cc_flag_unused_command_line_argument=no
13124fi
13125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126fi
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13130	CFLAGS="$xorg_testset_save_CFLAGS"
13131fi
13132
13133found="no"
13134
13135	if test $found = "no" ; then
13136		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13138		fi
13139
13140		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13142		fi
13143
13144		CFLAGS="$CFLAGS -Wuninitialized"
13145
13146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13147$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13148		cacheid=xorg_cv_cc_flag__Wuninitialized
13149		if eval \${$cacheid+:} false; then :
13150  $as_echo_n "(cached) " >&6
13151else
13152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153/* end confdefs.h.  */
13154int i;
13155int
13156main ()
13157{
13158
13159  ;
13160  return 0;
13161}
13162_ACEOF
13163if ac_fn_c_try_link "$LINENO"; then :
13164  eval $cacheid=yes
13165else
13166  eval $cacheid=no
13167fi
13168rm -f core conftest.err conftest.$ac_objext \
13169    conftest$ac_exeext conftest.$ac_ext
13170fi
13171
13172
13173		CFLAGS="$xorg_testset_save_CFLAGS"
13174
13175		eval supported=\$$cacheid
13176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13177$as_echo "$supported" >&6; }
13178		if test "$supported" = "yes" ; then
13179			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13180			found="yes"
13181		fi
13182	fi
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198xorg_testset_save_CFLAGS="$CFLAGS"
13199
13200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13205  $as_echo_n "(cached) " >&6
13206else
13207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208/* end confdefs.h.  */
13209int i;
13210_ACEOF
13211if ac_fn_c_try_compile "$LINENO"; then :
13212  xorg_cv_cc_flag_unknown_warning_option=yes
13213else
13214  xorg_cv_cc_flag_unknown_warning_option=no
13215fi
13216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13217fi
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13221	CFLAGS="$xorg_testset_save_CFLAGS"
13222fi
13223
13224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13227	fi
13228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13232  $as_echo_n "(cached) " >&6
13233else
13234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235/* end confdefs.h.  */
13236int i;
13237_ACEOF
13238if ac_fn_c_try_compile "$LINENO"; then :
13239  xorg_cv_cc_flag_unused_command_line_argument=yes
13240else
13241  xorg_cv_cc_flag_unused_command_line_argument=no
13242fi
13243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244fi
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13248	CFLAGS="$xorg_testset_save_CFLAGS"
13249fi
13250
13251found="no"
13252
13253	if test $found = "no" ; then
13254		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13256		fi
13257
13258		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13260		fi
13261
13262		CFLAGS="$CFLAGS -Wshadow"
13263
13264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13265$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13266		cacheid=xorg_cv_cc_flag__Wshadow
13267		if eval \${$cacheid+:} false; then :
13268  $as_echo_n "(cached) " >&6
13269else
13270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271/* end confdefs.h.  */
13272int i;
13273int
13274main ()
13275{
13276
13277  ;
13278  return 0;
13279}
13280_ACEOF
13281if ac_fn_c_try_link "$LINENO"; then :
13282  eval $cacheid=yes
13283else
13284  eval $cacheid=no
13285fi
13286rm -f core conftest.err conftest.$ac_objext \
13287    conftest$ac_exeext conftest.$ac_ext
13288fi
13289
13290
13291		CFLAGS="$xorg_testset_save_CFLAGS"
13292
13293		eval supported=\$$cacheid
13294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13295$as_echo "$supported" >&6; }
13296		if test "$supported" = "yes" ; then
13297			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13298			found="yes"
13299		fi
13300	fi
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316xorg_testset_save_CFLAGS="$CFLAGS"
13317
13318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13323  $as_echo_n "(cached) " >&6
13324else
13325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326/* end confdefs.h.  */
13327int i;
13328_ACEOF
13329if ac_fn_c_try_compile "$LINENO"; then :
13330  xorg_cv_cc_flag_unknown_warning_option=yes
13331else
13332  xorg_cv_cc_flag_unknown_warning_option=no
13333fi
13334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335fi
13336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13339	CFLAGS="$xorg_testset_save_CFLAGS"
13340fi
13341
13342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13345	fi
13346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13350  $as_echo_n "(cached) " >&6
13351else
13352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353/* end confdefs.h.  */
13354int i;
13355_ACEOF
13356if ac_fn_c_try_compile "$LINENO"; then :
13357  xorg_cv_cc_flag_unused_command_line_argument=yes
13358else
13359  xorg_cv_cc_flag_unused_command_line_argument=no
13360fi
13361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362fi
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13366	CFLAGS="$xorg_testset_save_CFLAGS"
13367fi
13368
13369found="no"
13370
13371	if test $found = "no" ; then
13372		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13374		fi
13375
13376		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13378		fi
13379
13380		CFLAGS="$CFLAGS -Wcast-qual"
13381
13382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13383$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13384		cacheid=xorg_cv_cc_flag__Wcast_qual
13385		if eval \${$cacheid+:} false; then :
13386  $as_echo_n "(cached) " >&6
13387else
13388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389/* end confdefs.h.  */
13390int i;
13391int
13392main ()
13393{
13394
13395  ;
13396  return 0;
13397}
13398_ACEOF
13399if ac_fn_c_try_link "$LINENO"; then :
13400  eval $cacheid=yes
13401else
13402  eval $cacheid=no
13403fi
13404rm -f core conftest.err conftest.$ac_objext \
13405    conftest$ac_exeext conftest.$ac_ext
13406fi
13407
13408
13409		CFLAGS="$xorg_testset_save_CFLAGS"
13410
13411		eval supported=\$$cacheid
13412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13413$as_echo "$supported" >&6; }
13414		if test "$supported" = "yes" ; then
13415			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13416			found="yes"
13417		fi
13418	fi
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434xorg_testset_save_CFLAGS="$CFLAGS"
13435
13436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13440if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13441  $as_echo_n "(cached) " >&6
13442else
13443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444/* end confdefs.h.  */
13445int i;
13446_ACEOF
13447if ac_fn_c_try_compile "$LINENO"; then :
13448  xorg_cv_cc_flag_unknown_warning_option=yes
13449else
13450  xorg_cv_cc_flag_unknown_warning_option=no
13451fi
13452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13453fi
13454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13455$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13457	CFLAGS="$xorg_testset_save_CFLAGS"
13458fi
13459
13460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13463	fi
13464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13466$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13467if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13468  $as_echo_n "(cached) " >&6
13469else
13470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471/* end confdefs.h.  */
13472int i;
13473_ACEOF
13474if ac_fn_c_try_compile "$LINENO"; then :
13475  xorg_cv_cc_flag_unused_command_line_argument=yes
13476else
13477  xorg_cv_cc_flag_unused_command_line_argument=no
13478fi
13479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480fi
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13482$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13484	CFLAGS="$xorg_testset_save_CFLAGS"
13485fi
13486
13487found="no"
13488
13489	if test $found = "no" ; then
13490		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13492		fi
13493
13494		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13496		fi
13497
13498		CFLAGS="$CFLAGS -Wmissing-noreturn"
13499
13500		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13501$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13502		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13503		if eval \${$cacheid+:} false; then :
13504  $as_echo_n "(cached) " >&6
13505else
13506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507/* end confdefs.h.  */
13508int i;
13509int
13510main ()
13511{
13512
13513  ;
13514  return 0;
13515}
13516_ACEOF
13517if ac_fn_c_try_link "$LINENO"; then :
13518  eval $cacheid=yes
13519else
13520  eval $cacheid=no
13521fi
13522rm -f core conftest.err conftest.$ac_objext \
13523    conftest$ac_exeext conftest.$ac_ext
13524fi
13525
13526
13527		CFLAGS="$xorg_testset_save_CFLAGS"
13528
13529		eval supported=\$$cacheid
13530		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13531$as_echo "$supported" >&6; }
13532		if test "$supported" = "yes" ; then
13533			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13534			found="yes"
13535		fi
13536	fi
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552xorg_testset_save_CFLAGS="$CFLAGS"
13553
13554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13559  $as_echo_n "(cached) " >&6
13560else
13561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562/* end confdefs.h.  */
13563int i;
13564_ACEOF
13565if ac_fn_c_try_compile "$LINENO"; then :
13566  xorg_cv_cc_flag_unknown_warning_option=yes
13567else
13568  xorg_cv_cc_flag_unknown_warning_option=no
13569fi
13570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13571fi
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13574	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13575	CFLAGS="$xorg_testset_save_CFLAGS"
13576fi
13577
13578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13579	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13581	fi
13582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13586  $as_echo_n "(cached) " >&6
13587else
13588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589/* end confdefs.h.  */
13590int i;
13591_ACEOF
13592if ac_fn_c_try_compile "$LINENO"; then :
13593  xorg_cv_cc_flag_unused_command_line_argument=yes
13594else
13595  xorg_cv_cc_flag_unused_command_line_argument=no
13596fi
13597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598fi
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13602	CFLAGS="$xorg_testset_save_CFLAGS"
13603fi
13604
13605found="no"
13606
13607	if test $found = "no" ; then
13608		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13610		fi
13611
13612		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13614		fi
13615
13616		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13617
13618		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13619$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13620		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13621		if eval \${$cacheid+:} false; then :
13622  $as_echo_n "(cached) " >&6
13623else
13624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625/* end confdefs.h.  */
13626int i;
13627int
13628main ()
13629{
13630
13631  ;
13632  return 0;
13633}
13634_ACEOF
13635if ac_fn_c_try_link "$LINENO"; then :
13636  eval $cacheid=yes
13637else
13638  eval $cacheid=no
13639fi
13640rm -f core conftest.err conftest.$ac_objext \
13641    conftest$ac_exeext conftest.$ac_ext
13642fi
13643
13644
13645		CFLAGS="$xorg_testset_save_CFLAGS"
13646
13647		eval supported=\$$cacheid
13648		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13649$as_echo "$supported" >&6; }
13650		if test "$supported" = "yes" ; then
13651			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13652			found="yes"
13653		fi
13654	fi
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670xorg_testset_save_CFLAGS="$CFLAGS"
13671
13672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13677  $as_echo_n "(cached) " >&6
13678else
13679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680/* end confdefs.h.  */
13681int i;
13682_ACEOF
13683if ac_fn_c_try_compile "$LINENO"; then :
13684  xorg_cv_cc_flag_unknown_warning_option=yes
13685else
13686  xorg_cv_cc_flag_unknown_warning_option=no
13687fi
13688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689fi
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13693	CFLAGS="$xorg_testset_save_CFLAGS"
13694fi
13695
13696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13699	fi
13700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13704  $as_echo_n "(cached) " >&6
13705else
13706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707/* end confdefs.h.  */
13708int i;
13709_ACEOF
13710if ac_fn_c_try_compile "$LINENO"; then :
13711  xorg_cv_cc_flag_unused_command_line_argument=yes
13712else
13713  xorg_cv_cc_flag_unused_command_line_argument=no
13714fi
13715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716fi
13717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13720	CFLAGS="$xorg_testset_save_CFLAGS"
13721fi
13722
13723found="no"
13724
13725	if test $found = "no" ; then
13726		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13728		fi
13729
13730		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13732		fi
13733
13734		CFLAGS="$CFLAGS -Wredundant-decls"
13735
13736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13737$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13738		cacheid=xorg_cv_cc_flag__Wredundant_decls
13739		if eval \${$cacheid+:} false; then :
13740  $as_echo_n "(cached) " >&6
13741else
13742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743/* end confdefs.h.  */
13744int i;
13745int
13746main ()
13747{
13748
13749  ;
13750  return 0;
13751}
13752_ACEOF
13753if ac_fn_c_try_link "$LINENO"; then :
13754  eval $cacheid=yes
13755else
13756  eval $cacheid=no
13757fi
13758rm -f core conftest.err conftest.$ac_objext \
13759    conftest$ac_exeext conftest.$ac_ext
13760fi
13761
13762
13763		CFLAGS="$xorg_testset_save_CFLAGS"
13764
13765		eval supported=\$$cacheid
13766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13767$as_echo "$supported" >&6; }
13768		if test "$supported" = "yes" ; then
13769			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13770			found="yes"
13771		fi
13772	fi
13773
13774
13775
13776# These are currently disabled because they are noisy.  They will be enabled
13777# in the future once the codebase is sufficiently modernized to silence
13778# them.  For now, I don't want them to drown out the other warnings.
13779# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13780# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13781# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13782
13783# Turn some warnings into errors, so we don't accidently get successful builds
13784# when there are problems that should be fixed.
13785
13786if test "x$SELECTIVE_WERROR" = "xyes" ; then
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800xorg_testset_save_CFLAGS="$CFLAGS"
13801
13802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13805$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13806if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13807  $as_echo_n "(cached) " >&6
13808else
13809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810/* end confdefs.h.  */
13811int i;
13812_ACEOF
13813if ac_fn_c_try_compile "$LINENO"; then :
13814  xorg_cv_cc_flag_unknown_warning_option=yes
13815else
13816  xorg_cv_cc_flag_unknown_warning_option=no
13817fi
13818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819fi
13820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13821$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13822	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13823	CFLAGS="$xorg_testset_save_CFLAGS"
13824fi
13825
13826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13827	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13828		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13829	fi
13830	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13832$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13833if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13834  $as_echo_n "(cached) " >&6
13835else
13836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837/* end confdefs.h.  */
13838int i;
13839_ACEOF
13840if ac_fn_c_try_compile "$LINENO"; then :
13841  xorg_cv_cc_flag_unused_command_line_argument=yes
13842else
13843  xorg_cv_cc_flag_unused_command_line_argument=no
13844fi
13845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846fi
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13848$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13850	CFLAGS="$xorg_testset_save_CFLAGS"
13851fi
13852
13853found="no"
13854
13855	if test $found = "no" ; then
13856		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13858		fi
13859
13860		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13862		fi
13863
13864		CFLAGS="$CFLAGS -Werror=implicit"
13865
13866		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13867$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13868		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13869		if eval \${$cacheid+:} false; then :
13870  $as_echo_n "(cached) " >&6
13871else
13872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873/* end confdefs.h.  */
13874int i;
13875int
13876main ()
13877{
13878
13879  ;
13880  return 0;
13881}
13882_ACEOF
13883if ac_fn_c_try_link "$LINENO"; then :
13884  eval $cacheid=yes
13885else
13886  eval $cacheid=no
13887fi
13888rm -f core conftest.err conftest.$ac_objext \
13889    conftest$ac_exeext conftest.$ac_ext
13890fi
13891
13892
13893		CFLAGS="$xorg_testset_save_CFLAGS"
13894
13895		eval supported=\$$cacheid
13896		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13897$as_echo "$supported" >&6; }
13898		if test "$supported" = "yes" ; then
13899			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13900			found="yes"
13901		fi
13902	fi
13903
13904	if test $found = "no" ; then
13905		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13907		fi
13908
13909		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13911		fi
13912
13913		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13914
13915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13916$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13917		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13918		if eval \${$cacheid+:} false; then :
13919  $as_echo_n "(cached) " >&6
13920else
13921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922/* end confdefs.h.  */
13923int i;
13924int
13925main ()
13926{
13927
13928  ;
13929  return 0;
13930}
13931_ACEOF
13932if ac_fn_c_try_link "$LINENO"; then :
13933  eval $cacheid=yes
13934else
13935  eval $cacheid=no
13936fi
13937rm -f core conftest.err conftest.$ac_objext \
13938    conftest$ac_exeext conftest.$ac_ext
13939fi
13940
13941
13942		CFLAGS="$xorg_testset_save_CFLAGS"
13943
13944		eval supported=\$$cacheid
13945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13946$as_echo "$supported" >&6; }
13947		if test "$supported" = "yes" ; then
13948			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13949			found="yes"
13950		fi
13951	fi
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967xorg_testset_save_CFLAGS="$CFLAGS"
13968
13969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13974  $as_echo_n "(cached) " >&6
13975else
13976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977/* end confdefs.h.  */
13978int i;
13979_ACEOF
13980if ac_fn_c_try_compile "$LINENO"; then :
13981  xorg_cv_cc_flag_unknown_warning_option=yes
13982else
13983  xorg_cv_cc_flag_unknown_warning_option=no
13984fi
13985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986fi
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13990	CFLAGS="$xorg_testset_save_CFLAGS"
13991fi
13992
13993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13996	fi
13997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14001  $as_echo_n "(cached) " >&6
14002else
14003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004/* end confdefs.h.  */
14005int i;
14006_ACEOF
14007if ac_fn_c_try_compile "$LINENO"; then :
14008  xorg_cv_cc_flag_unused_command_line_argument=yes
14009else
14010  xorg_cv_cc_flag_unused_command_line_argument=no
14011fi
14012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013fi
14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14017	CFLAGS="$xorg_testset_save_CFLAGS"
14018fi
14019
14020found="no"
14021
14022	if test $found = "no" ; then
14023		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14025		fi
14026
14027		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14029		fi
14030
14031		CFLAGS="$CFLAGS -Werror=nonnull"
14032
14033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14034$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14035		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14036		if eval \${$cacheid+:} false; then :
14037  $as_echo_n "(cached) " >&6
14038else
14039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040/* end confdefs.h.  */
14041int i;
14042int
14043main ()
14044{
14045
14046  ;
14047  return 0;
14048}
14049_ACEOF
14050if ac_fn_c_try_link "$LINENO"; then :
14051  eval $cacheid=yes
14052else
14053  eval $cacheid=no
14054fi
14055rm -f core conftest.err conftest.$ac_objext \
14056    conftest$ac_exeext conftest.$ac_ext
14057fi
14058
14059
14060		CFLAGS="$xorg_testset_save_CFLAGS"
14061
14062		eval supported=\$$cacheid
14063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14064$as_echo "$supported" >&6; }
14065		if test "$supported" = "yes" ; then
14066			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14067			found="yes"
14068		fi
14069	fi
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085xorg_testset_save_CFLAGS="$CFLAGS"
14086
14087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14092  $as_echo_n "(cached) " >&6
14093else
14094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095/* end confdefs.h.  */
14096int i;
14097_ACEOF
14098if ac_fn_c_try_compile "$LINENO"; then :
14099  xorg_cv_cc_flag_unknown_warning_option=yes
14100else
14101  xorg_cv_cc_flag_unknown_warning_option=no
14102fi
14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104fi
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14108	CFLAGS="$xorg_testset_save_CFLAGS"
14109fi
14110
14111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14114	fi
14115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14119  $as_echo_n "(cached) " >&6
14120else
14121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122/* end confdefs.h.  */
14123int i;
14124_ACEOF
14125if ac_fn_c_try_compile "$LINENO"; then :
14126  xorg_cv_cc_flag_unused_command_line_argument=yes
14127else
14128  xorg_cv_cc_flag_unused_command_line_argument=no
14129fi
14130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14131fi
14132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14135	CFLAGS="$xorg_testset_save_CFLAGS"
14136fi
14137
14138found="no"
14139
14140	if test $found = "no" ; then
14141		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14143		fi
14144
14145		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14147		fi
14148
14149		CFLAGS="$CFLAGS -Werror=init-self"
14150
14151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14152$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14153		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14154		if eval \${$cacheid+:} false; then :
14155  $as_echo_n "(cached) " >&6
14156else
14157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158/* end confdefs.h.  */
14159int i;
14160int
14161main ()
14162{
14163
14164  ;
14165  return 0;
14166}
14167_ACEOF
14168if ac_fn_c_try_link "$LINENO"; then :
14169  eval $cacheid=yes
14170else
14171  eval $cacheid=no
14172fi
14173rm -f core conftest.err conftest.$ac_objext \
14174    conftest$ac_exeext conftest.$ac_ext
14175fi
14176
14177
14178		CFLAGS="$xorg_testset_save_CFLAGS"
14179
14180		eval supported=\$$cacheid
14181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14182$as_echo "$supported" >&6; }
14183		if test "$supported" = "yes" ; then
14184			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14185			found="yes"
14186		fi
14187	fi
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203xorg_testset_save_CFLAGS="$CFLAGS"
14204
14205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14210  $as_echo_n "(cached) " >&6
14211else
14212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213/* end confdefs.h.  */
14214int i;
14215_ACEOF
14216if ac_fn_c_try_compile "$LINENO"; then :
14217  xorg_cv_cc_flag_unknown_warning_option=yes
14218else
14219  xorg_cv_cc_flag_unknown_warning_option=no
14220fi
14221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222fi
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14226	CFLAGS="$xorg_testset_save_CFLAGS"
14227fi
14228
14229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14232	fi
14233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14237  $as_echo_n "(cached) " >&6
14238else
14239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240/* end confdefs.h.  */
14241int i;
14242_ACEOF
14243if ac_fn_c_try_compile "$LINENO"; then :
14244  xorg_cv_cc_flag_unused_command_line_argument=yes
14245else
14246  xorg_cv_cc_flag_unused_command_line_argument=no
14247fi
14248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249fi
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14253	CFLAGS="$xorg_testset_save_CFLAGS"
14254fi
14255
14256found="no"
14257
14258	if test $found = "no" ; then
14259		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14261		fi
14262
14263		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14265		fi
14266
14267		CFLAGS="$CFLAGS -Werror=main"
14268
14269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14270$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14271		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14272		if eval \${$cacheid+:} false; then :
14273  $as_echo_n "(cached) " >&6
14274else
14275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276/* end confdefs.h.  */
14277int i;
14278int
14279main ()
14280{
14281
14282  ;
14283  return 0;
14284}
14285_ACEOF
14286if ac_fn_c_try_link "$LINENO"; then :
14287  eval $cacheid=yes
14288else
14289  eval $cacheid=no
14290fi
14291rm -f core conftest.err conftest.$ac_objext \
14292    conftest$ac_exeext conftest.$ac_ext
14293fi
14294
14295
14296		CFLAGS="$xorg_testset_save_CFLAGS"
14297
14298		eval supported=\$$cacheid
14299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14300$as_echo "$supported" >&6; }
14301		if test "$supported" = "yes" ; then
14302			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14303			found="yes"
14304		fi
14305	fi
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321xorg_testset_save_CFLAGS="$CFLAGS"
14322
14323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14328  $as_echo_n "(cached) " >&6
14329else
14330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331/* end confdefs.h.  */
14332int i;
14333_ACEOF
14334if ac_fn_c_try_compile "$LINENO"; then :
14335  xorg_cv_cc_flag_unknown_warning_option=yes
14336else
14337  xorg_cv_cc_flag_unknown_warning_option=no
14338fi
14339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340fi
14341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14344	CFLAGS="$xorg_testset_save_CFLAGS"
14345fi
14346
14347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14350	fi
14351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14355  $as_echo_n "(cached) " >&6
14356else
14357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358/* end confdefs.h.  */
14359int i;
14360_ACEOF
14361if ac_fn_c_try_compile "$LINENO"; then :
14362  xorg_cv_cc_flag_unused_command_line_argument=yes
14363else
14364  xorg_cv_cc_flag_unused_command_line_argument=no
14365fi
14366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14367fi
14368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14371	CFLAGS="$xorg_testset_save_CFLAGS"
14372fi
14373
14374found="no"
14375
14376	if test $found = "no" ; then
14377		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14379		fi
14380
14381		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14383		fi
14384
14385		CFLAGS="$CFLAGS -Werror=missing-braces"
14386
14387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14388$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14389		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14390		if eval \${$cacheid+:} false; then :
14391  $as_echo_n "(cached) " >&6
14392else
14393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394/* end confdefs.h.  */
14395int i;
14396int
14397main ()
14398{
14399
14400  ;
14401  return 0;
14402}
14403_ACEOF
14404if ac_fn_c_try_link "$LINENO"; then :
14405  eval $cacheid=yes
14406else
14407  eval $cacheid=no
14408fi
14409rm -f core conftest.err conftest.$ac_objext \
14410    conftest$ac_exeext conftest.$ac_ext
14411fi
14412
14413
14414		CFLAGS="$xorg_testset_save_CFLAGS"
14415
14416		eval supported=\$$cacheid
14417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14418$as_echo "$supported" >&6; }
14419		if test "$supported" = "yes" ; then
14420			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14421			found="yes"
14422		fi
14423	fi
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439xorg_testset_save_CFLAGS="$CFLAGS"
14440
14441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14446  $as_echo_n "(cached) " >&6
14447else
14448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449/* end confdefs.h.  */
14450int i;
14451_ACEOF
14452if ac_fn_c_try_compile "$LINENO"; then :
14453  xorg_cv_cc_flag_unknown_warning_option=yes
14454else
14455  xorg_cv_cc_flag_unknown_warning_option=no
14456fi
14457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458fi
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14462	CFLAGS="$xorg_testset_save_CFLAGS"
14463fi
14464
14465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14468	fi
14469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14473  $as_echo_n "(cached) " >&6
14474else
14475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476/* end confdefs.h.  */
14477int i;
14478_ACEOF
14479if ac_fn_c_try_compile "$LINENO"; then :
14480  xorg_cv_cc_flag_unused_command_line_argument=yes
14481else
14482  xorg_cv_cc_flag_unused_command_line_argument=no
14483fi
14484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485fi
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14489	CFLAGS="$xorg_testset_save_CFLAGS"
14490fi
14491
14492found="no"
14493
14494	if test $found = "no" ; then
14495		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14497		fi
14498
14499		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14501		fi
14502
14503		CFLAGS="$CFLAGS -Werror=sequence-point"
14504
14505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14506$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14507		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14508		if eval \${$cacheid+:} false; then :
14509  $as_echo_n "(cached) " >&6
14510else
14511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512/* end confdefs.h.  */
14513int i;
14514int
14515main ()
14516{
14517
14518  ;
14519  return 0;
14520}
14521_ACEOF
14522if ac_fn_c_try_link "$LINENO"; then :
14523  eval $cacheid=yes
14524else
14525  eval $cacheid=no
14526fi
14527rm -f core conftest.err conftest.$ac_objext \
14528    conftest$ac_exeext conftest.$ac_ext
14529fi
14530
14531
14532		CFLAGS="$xorg_testset_save_CFLAGS"
14533
14534		eval supported=\$$cacheid
14535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14536$as_echo "$supported" >&6; }
14537		if test "$supported" = "yes" ; then
14538			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14539			found="yes"
14540		fi
14541	fi
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557xorg_testset_save_CFLAGS="$CFLAGS"
14558
14559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14564  $as_echo_n "(cached) " >&6
14565else
14566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567/* end confdefs.h.  */
14568int i;
14569_ACEOF
14570if ac_fn_c_try_compile "$LINENO"; then :
14571  xorg_cv_cc_flag_unknown_warning_option=yes
14572else
14573  xorg_cv_cc_flag_unknown_warning_option=no
14574fi
14575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576fi
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14580	CFLAGS="$xorg_testset_save_CFLAGS"
14581fi
14582
14583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14586	fi
14587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14591  $as_echo_n "(cached) " >&6
14592else
14593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594/* end confdefs.h.  */
14595int i;
14596_ACEOF
14597if ac_fn_c_try_compile "$LINENO"; then :
14598  xorg_cv_cc_flag_unused_command_line_argument=yes
14599else
14600  xorg_cv_cc_flag_unused_command_line_argument=no
14601fi
14602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603fi
14604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14607	CFLAGS="$xorg_testset_save_CFLAGS"
14608fi
14609
14610found="no"
14611
14612	if test $found = "no" ; then
14613		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14615		fi
14616
14617		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14619		fi
14620
14621		CFLAGS="$CFLAGS -Werror=return-type"
14622
14623		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14624$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14625		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14626		if eval \${$cacheid+:} false; then :
14627  $as_echo_n "(cached) " >&6
14628else
14629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630/* end confdefs.h.  */
14631int i;
14632int
14633main ()
14634{
14635
14636  ;
14637  return 0;
14638}
14639_ACEOF
14640if ac_fn_c_try_link "$LINENO"; then :
14641  eval $cacheid=yes
14642else
14643  eval $cacheid=no
14644fi
14645rm -f core conftest.err conftest.$ac_objext \
14646    conftest$ac_exeext conftest.$ac_ext
14647fi
14648
14649
14650		CFLAGS="$xorg_testset_save_CFLAGS"
14651
14652		eval supported=\$$cacheid
14653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14654$as_echo "$supported" >&6; }
14655		if test "$supported" = "yes" ; then
14656			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14657			found="yes"
14658		fi
14659	fi
14660
14661	if test $found = "no" ; then
14662		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664		fi
14665
14666		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14668		fi
14669
14670		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14671
14672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14673$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14674		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14675		if eval \${$cacheid+:} false; then :
14676  $as_echo_n "(cached) " >&6
14677else
14678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679/* end confdefs.h.  */
14680int i;
14681int
14682main ()
14683{
14684
14685  ;
14686  return 0;
14687}
14688_ACEOF
14689if ac_fn_c_try_link "$LINENO"; then :
14690  eval $cacheid=yes
14691else
14692  eval $cacheid=no
14693fi
14694rm -f core conftest.err conftest.$ac_objext \
14695    conftest$ac_exeext conftest.$ac_ext
14696fi
14697
14698
14699		CFLAGS="$xorg_testset_save_CFLAGS"
14700
14701		eval supported=\$$cacheid
14702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14703$as_echo "$supported" >&6; }
14704		if test "$supported" = "yes" ; then
14705			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14706			found="yes"
14707		fi
14708	fi
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724xorg_testset_save_CFLAGS="$CFLAGS"
14725
14726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14731  $as_echo_n "(cached) " >&6
14732else
14733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734/* end confdefs.h.  */
14735int i;
14736_ACEOF
14737if ac_fn_c_try_compile "$LINENO"; then :
14738  xorg_cv_cc_flag_unknown_warning_option=yes
14739else
14740  xorg_cv_cc_flag_unknown_warning_option=no
14741fi
14742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743fi
14744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14746	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14747	CFLAGS="$xorg_testset_save_CFLAGS"
14748fi
14749
14750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14751	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14752		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14753	fi
14754	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14758  $as_echo_n "(cached) " >&6
14759else
14760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761/* end confdefs.h.  */
14762int i;
14763_ACEOF
14764if ac_fn_c_try_compile "$LINENO"; then :
14765  xorg_cv_cc_flag_unused_command_line_argument=yes
14766else
14767  xorg_cv_cc_flag_unused_command_line_argument=no
14768fi
14769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770fi
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14774	CFLAGS="$xorg_testset_save_CFLAGS"
14775fi
14776
14777found="no"
14778
14779	if test $found = "no" ; then
14780		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14782		fi
14783
14784		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14786		fi
14787
14788		CFLAGS="$CFLAGS -Werror=trigraphs"
14789
14790		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14791$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14792		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14793		if eval \${$cacheid+:} false; then :
14794  $as_echo_n "(cached) " >&6
14795else
14796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797/* end confdefs.h.  */
14798int i;
14799int
14800main ()
14801{
14802
14803  ;
14804  return 0;
14805}
14806_ACEOF
14807if ac_fn_c_try_link "$LINENO"; then :
14808  eval $cacheid=yes
14809else
14810  eval $cacheid=no
14811fi
14812rm -f core conftest.err conftest.$ac_objext \
14813    conftest$ac_exeext conftest.$ac_ext
14814fi
14815
14816
14817		CFLAGS="$xorg_testset_save_CFLAGS"
14818
14819		eval supported=\$$cacheid
14820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14821$as_echo "$supported" >&6; }
14822		if test "$supported" = "yes" ; then
14823			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14824			found="yes"
14825		fi
14826	fi
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842xorg_testset_save_CFLAGS="$CFLAGS"
14843
14844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14849  $as_echo_n "(cached) " >&6
14850else
14851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853int i;
14854_ACEOF
14855if ac_fn_c_try_compile "$LINENO"; then :
14856  xorg_cv_cc_flag_unknown_warning_option=yes
14857else
14858  xorg_cv_cc_flag_unknown_warning_option=no
14859fi
14860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861fi
14862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14865	CFLAGS="$xorg_testset_save_CFLAGS"
14866fi
14867
14868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14871	fi
14872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14876  $as_echo_n "(cached) " >&6
14877else
14878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879/* end confdefs.h.  */
14880int i;
14881_ACEOF
14882if ac_fn_c_try_compile "$LINENO"; then :
14883  xorg_cv_cc_flag_unused_command_line_argument=yes
14884else
14885  xorg_cv_cc_flag_unused_command_line_argument=no
14886fi
14887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14888fi
14889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14892	CFLAGS="$xorg_testset_save_CFLAGS"
14893fi
14894
14895found="no"
14896
14897	if test $found = "no" ; then
14898		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14900		fi
14901
14902		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14904		fi
14905
14906		CFLAGS="$CFLAGS -Werror=array-bounds"
14907
14908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14909$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14910		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14911		if eval \${$cacheid+:} false; then :
14912  $as_echo_n "(cached) " >&6
14913else
14914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915/* end confdefs.h.  */
14916int i;
14917int
14918main ()
14919{
14920
14921  ;
14922  return 0;
14923}
14924_ACEOF
14925if ac_fn_c_try_link "$LINENO"; then :
14926  eval $cacheid=yes
14927else
14928  eval $cacheid=no
14929fi
14930rm -f core conftest.err conftest.$ac_objext \
14931    conftest$ac_exeext conftest.$ac_ext
14932fi
14933
14934
14935		CFLAGS="$xorg_testset_save_CFLAGS"
14936
14937		eval supported=\$$cacheid
14938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14939$as_echo "$supported" >&6; }
14940		if test "$supported" = "yes" ; then
14941			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14942			found="yes"
14943		fi
14944	fi
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960xorg_testset_save_CFLAGS="$CFLAGS"
14961
14962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14963	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14967  $as_echo_n "(cached) " >&6
14968else
14969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970/* end confdefs.h.  */
14971int i;
14972_ACEOF
14973if ac_fn_c_try_compile "$LINENO"; then :
14974  xorg_cv_cc_flag_unknown_warning_option=yes
14975else
14976  xorg_cv_cc_flag_unknown_warning_option=no
14977fi
14978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979fi
14980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14983	CFLAGS="$xorg_testset_save_CFLAGS"
14984fi
14985
14986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14989	fi
14990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14994  $as_echo_n "(cached) " >&6
14995else
14996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997/* end confdefs.h.  */
14998int i;
14999_ACEOF
15000if ac_fn_c_try_compile "$LINENO"; then :
15001  xorg_cv_cc_flag_unused_command_line_argument=yes
15002else
15003  xorg_cv_cc_flag_unused_command_line_argument=no
15004fi
15005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006fi
15007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15010	CFLAGS="$xorg_testset_save_CFLAGS"
15011fi
15012
15013found="no"
15014
15015	if test $found = "no" ; then
15016		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15018		fi
15019
15020		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15022		fi
15023
15024		CFLAGS="$CFLAGS -Werror=write-strings"
15025
15026		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15027$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15028		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15029		if eval \${$cacheid+:} false; then :
15030  $as_echo_n "(cached) " >&6
15031else
15032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h.  */
15034int i;
15035int
15036main ()
15037{
15038
15039  ;
15040  return 0;
15041}
15042_ACEOF
15043if ac_fn_c_try_link "$LINENO"; then :
15044  eval $cacheid=yes
15045else
15046  eval $cacheid=no
15047fi
15048rm -f core conftest.err conftest.$ac_objext \
15049    conftest$ac_exeext conftest.$ac_ext
15050fi
15051
15052
15053		CFLAGS="$xorg_testset_save_CFLAGS"
15054
15055		eval supported=\$$cacheid
15056		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15057$as_echo "$supported" >&6; }
15058		if test "$supported" = "yes" ; then
15059			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15060			found="yes"
15061		fi
15062	fi
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078xorg_testset_save_CFLAGS="$CFLAGS"
15079
15080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15085  $as_echo_n "(cached) " >&6
15086else
15087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089int i;
15090_ACEOF
15091if ac_fn_c_try_compile "$LINENO"; then :
15092  xorg_cv_cc_flag_unknown_warning_option=yes
15093else
15094  xorg_cv_cc_flag_unknown_warning_option=no
15095fi
15096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097fi
15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15101	CFLAGS="$xorg_testset_save_CFLAGS"
15102fi
15103
15104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15107	fi
15108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15112  $as_echo_n "(cached) " >&6
15113else
15114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115/* end confdefs.h.  */
15116int i;
15117_ACEOF
15118if ac_fn_c_try_compile "$LINENO"; then :
15119  xorg_cv_cc_flag_unused_command_line_argument=yes
15120else
15121  xorg_cv_cc_flag_unused_command_line_argument=no
15122fi
15123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124fi
15125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15128	CFLAGS="$xorg_testset_save_CFLAGS"
15129fi
15130
15131found="no"
15132
15133	if test $found = "no" ; then
15134		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15136		fi
15137
15138		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15140		fi
15141
15142		CFLAGS="$CFLAGS -Werror=address"
15143
15144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15145$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15146		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15147		if eval \${$cacheid+:} false; then :
15148  $as_echo_n "(cached) " >&6
15149else
15150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151/* end confdefs.h.  */
15152int i;
15153int
15154main ()
15155{
15156
15157  ;
15158  return 0;
15159}
15160_ACEOF
15161if ac_fn_c_try_link "$LINENO"; then :
15162  eval $cacheid=yes
15163else
15164  eval $cacheid=no
15165fi
15166rm -f core conftest.err conftest.$ac_objext \
15167    conftest$ac_exeext conftest.$ac_ext
15168fi
15169
15170
15171		CFLAGS="$xorg_testset_save_CFLAGS"
15172
15173		eval supported=\$$cacheid
15174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15175$as_echo "$supported" >&6; }
15176		if test "$supported" = "yes" ; then
15177			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15178			found="yes"
15179		fi
15180	fi
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196xorg_testset_save_CFLAGS="$CFLAGS"
15197
15198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15203  $as_echo_n "(cached) " >&6
15204else
15205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206/* end confdefs.h.  */
15207int i;
15208_ACEOF
15209if ac_fn_c_try_compile "$LINENO"; then :
15210  xorg_cv_cc_flag_unknown_warning_option=yes
15211else
15212  xorg_cv_cc_flag_unknown_warning_option=no
15213fi
15214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15215fi
15216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15219	CFLAGS="$xorg_testset_save_CFLAGS"
15220fi
15221
15222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15225	fi
15226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15230  $as_echo_n "(cached) " >&6
15231else
15232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233/* end confdefs.h.  */
15234int i;
15235_ACEOF
15236if ac_fn_c_try_compile "$LINENO"; then :
15237  xorg_cv_cc_flag_unused_command_line_argument=yes
15238else
15239  xorg_cv_cc_flag_unused_command_line_argument=no
15240fi
15241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242fi
15243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15246	CFLAGS="$xorg_testset_save_CFLAGS"
15247fi
15248
15249found="no"
15250
15251	if test $found = "no" ; then
15252		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15254		fi
15255
15256		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15258		fi
15259
15260		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15261
15262		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15263$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15264		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15265		if eval \${$cacheid+:} false; then :
15266  $as_echo_n "(cached) " >&6
15267else
15268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269/* end confdefs.h.  */
15270int i;
15271int
15272main ()
15273{
15274
15275  ;
15276  return 0;
15277}
15278_ACEOF
15279if ac_fn_c_try_link "$LINENO"; then :
15280  eval $cacheid=yes
15281else
15282  eval $cacheid=no
15283fi
15284rm -f core conftest.err conftest.$ac_objext \
15285    conftest$ac_exeext conftest.$ac_ext
15286fi
15287
15288
15289		CFLAGS="$xorg_testset_save_CFLAGS"
15290
15291		eval supported=\$$cacheid
15292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15293$as_echo "$supported" >&6; }
15294		if test "$supported" = "yes" ; then
15295			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15296			found="yes"
15297		fi
15298	fi
15299
15300	if test $found = "no" ; then
15301		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15303		fi
15304
15305		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15307		fi
15308
15309		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15310
15311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15312$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15313		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15314		if eval \${$cacheid+:} false; then :
15315  $as_echo_n "(cached) " >&6
15316else
15317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318/* end confdefs.h.  */
15319int i;
15320int
15321main ()
15322{
15323
15324  ;
15325  return 0;
15326}
15327_ACEOF
15328if ac_fn_c_try_link "$LINENO"; then :
15329  eval $cacheid=yes
15330else
15331  eval $cacheid=no
15332fi
15333rm -f core conftest.err conftest.$ac_objext \
15334    conftest$ac_exeext conftest.$ac_ext
15335fi
15336
15337
15338		CFLAGS="$xorg_testset_save_CFLAGS"
15339
15340		eval supported=\$$cacheid
15341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15342$as_echo "$supported" >&6; }
15343		if test "$supported" = "yes" ; then
15344			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15345			found="yes"
15346		fi
15347	fi
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363xorg_testset_save_CFLAGS="$CFLAGS"
15364
15365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15370  $as_echo_n "(cached) " >&6
15371else
15372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373/* end confdefs.h.  */
15374int i;
15375_ACEOF
15376if ac_fn_c_try_compile "$LINENO"; then :
15377  xorg_cv_cc_flag_unknown_warning_option=yes
15378else
15379  xorg_cv_cc_flag_unknown_warning_option=no
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15386	CFLAGS="$xorg_testset_save_CFLAGS"
15387fi
15388
15389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15392	fi
15393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15397  $as_echo_n "(cached) " >&6
15398else
15399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400/* end confdefs.h.  */
15401int i;
15402_ACEOF
15403if ac_fn_c_try_compile "$LINENO"; then :
15404  xorg_cv_cc_flag_unused_command_line_argument=yes
15405else
15406  xorg_cv_cc_flag_unused_command_line_argument=no
15407fi
15408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15409fi
15410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15413	CFLAGS="$xorg_testset_save_CFLAGS"
15414fi
15415
15416found="no"
15417
15418	if test $found = "no" ; then
15419		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15421		fi
15422
15423		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15425		fi
15426
15427		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15428
15429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15430$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15431		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15432		if eval \${$cacheid+:} false; then :
15433  $as_echo_n "(cached) " >&6
15434else
15435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436/* end confdefs.h.  */
15437int i;
15438int
15439main ()
15440{
15441
15442  ;
15443  return 0;
15444}
15445_ACEOF
15446if ac_fn_c_try_link "$LINENO"; then :
15447  eval $cacheid=yes
15448else
15449  eval $cacheid=no
15450fi
15451rm -f core conftest.err conftest.$ac_objext \
15452    conftest$ac_exeext conftest.$ac_ext
15453fi
15454
15455
15456		CFLAGS="$xorg_testset_save_CFLAGS"
15457
15458		eval supported=\$$cacheid
15459		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15460$as_echo "$supported" >&6; }
15461		if test "$supported" = "yes" ; then
15462			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15463			found="yes"
15464		fi
15465	fi
15466
15467 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15468else
15469{ $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
15470$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;}
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484xorg_testset_save_CFLAGS="$CFLAGS"
15485
15486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15491  $as_echo_n "(cached) " >&6
15492else
15493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494/* end confdefs.h.  */
15495int i;
15496_ACEOF
15497if ac_fn_c_try_compile "$LINENO"; then :
15498  xorg_cv_cc_flag_unknown_warning_option=yes
15499else
15500  xorg_cv_cc_flag_unknown_warning_option=no
15501fi
15502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503fi
15504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15507	CFLAGS="$xorg_testset_save_CFLAGS"
15508fi
15509
15510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15513	fi
15514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15518  $as_echo_n "(cached) " >&6
15519else
15520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521/* end confdefs.h.  */
15522int i;
15523_ACEOF
15524if ac_fn_c_try_compile "$LINENO"; then :
15525  xorg_cv_cc_flag_unused_command_line_argument=yes
15526else
15527  xorg_cv_cc_flag_unused_command_line_argument=no
15528fi
15529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530fi
15531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15534	CFLAGS="$xorg_testset_save_CFLAGS"
15535fi
15536
15537found="no"
15538
15539	if test $found = "no" ; then
15540		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15542		fi
15543
15544		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15546		fi
15547
15548		CFLAGS="$CFLAGS -Wimplicit"
15549
15550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15551$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15552		cacheid=xorg_cv_cc_flag__Wimplicit
15553		if eval \${$cacheid+:} false; then :
15554  $as_echo_n "(cached) " >&6
15555else
15556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557/* end confdefs.h.  */
15558int i;
15559int
15560main ()
15561{
15562
15563  ;
15564  return 0;
15565}
15566_ACEOF
15567if ac_fn_c_try_link "$LINENO"; then :
15568  eval $cacheid=yes
15569else
15570  eval $cacheid=no
15571fi
15572rm -f core conftest.err conftest.$ac_objext \
15573    conftest$ac_exeext conftest.$ac_ext
15574fi
15575
15576
15577		CFLAGS="$xorg_testset_save_CFLAGS"
15578
15579		eval supported=\$$cacheid
15580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15581$as_echo "$supported" >&6; }
15582		if test "$supported" = "yes" ; then
15583			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15584			found="yes"
15585		fi
15586	fi
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602xorg_testset_save_CFLAGS="$CFLAGS"
15603
15604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15609  $as_echo_n "(cached) " >&6
15610else
15611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612/* end confdefs.h.  */
15613int i;
15614_ACEOF
15615if ac_fn_c_try_compile "$LINENO"; then :
15616  xorg_cv_cc_flag_unknown_warning_option=yes
15617else
15618  xorg_cv_cc_flag_unknown_warning_option=no
15619fi
15620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15621fi
15622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15624	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15625	CFLAGS="$xorg_testset_save_CFLAGS"
15626fi
15627
15628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15629	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15631	fi
15632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15636  $as_echo_n "(cached) " >&6
15637else
15638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639/* end confdefs.h.  */
15640int i;
15641_ACEOF
15642if ac_fn_c_try_compile "$LINENO"; then :
15643  xorg_cv_cc_flag_unused_command_line_argument=yes
15644else
15645  xorg_cv_cc_flag_unused_command_line_argument=no
15646fi
15647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15648fi
15649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15652	CFLAGS="$xorg_testset_save_CFLAGS"
15653fi
15654
15655found="no"
15656
15657	if test $found = "no" ; then
15658		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15660		fi
15661
15662		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15664		fi
15665
15666		CFLAGS="$CFLAGS -Wnonnull"
15667
15668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15669$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15670		cacheid=xorg_cv_cc_flag__Wnonnull
15671		if eval \${$cacheid+:} false; then :
15672  $as_echo_n "(cached) " >&6
15673else
15674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675/* end confdefs.h.  */
15676int i;
15677int
15678main ()
15679{
15680
15681  ;
15682  return 0;
15683}
15684_ACEOF
15685if ac_fn_c_try_link "$LINENO"; then :
15686  eval $cacheid=yes
15687else
15688  eval $cacheid=no
15689fi
15690rm -f core conftest.err conftest.$ac_objext \
15691    conftest$ac_exeext conftest.$ac_ext
15692fi
15693
15694
15695		CFLAGS="$xorg_testset_save_CFLAGS"
15696
15697		eval supported=\$$cacheid
15698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15699$as_echo "$supported" >&6; }
15700		if test "$supported" = "yes" ; then
15701			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15702			found="yes"
15703		fi
15704	fi
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720xorg_testset_save_CFLAGS="$CFLAGS"
15721
15722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15723	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15727  $as_echo_n "(cached) " >&6
15728else
15729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15730/* end confdefs.h.  */
15731int i;
15732_ACEOF
15733if ac_fn_c_try_compile "$LINENO"; then :
15734  xorg_cv_cc_flag_unknown_warning_option=yes
15735else
15736  xorg_cv_cc_flag_unknown_warning_option=no
15737fi
15738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15739fi
15740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15743	CFLAGS="$xorg_testset_save_CFLAGS"
15744fi
15745
15746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15749	fi
15750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15754  $as_echo_n "(cached) " >&6
15755else
15756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757/* end confdefs.h.  */
15758int i;
15759_ACEOF
15760if ac_fn_c_try_compile "$LINENO"; then :
15761  xorg_cv_cc_flag_unused_command_line_argument=yes
15762else
15763  xorg_cv_cc_flag_unused_command_line_argument=no
15764fi
15765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766fi
15767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15770	CFLAGS="$xorg_testset_save_CFLAGS"
15771fi
15772
15773found="no"
15774
15775	if test $found = "no" ; then
15776		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15778		fi
15779
15780		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15782		fi
15783
15784		CFLAGS="$CFLAGS -Winit-self"
15785
15786		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15787$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15788		cacheid=xorg_cv_cc_flag__Winit_self
15789		if eval \${$cacheid+:} false; then :
15790  $as_echo_n "(cached) " >&6
15791else
15792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793/* end confdefs.h.  */
15794int i;
15795int
15796main ()
15797{
15798
15799  ;
15800  return 0;
15801}
15802_ACEOF
15803if ac_fn_c_try_link "$LINENO"; then :
15804  eval $cacheid=yes
15805else
15806  eval $cacheid=no
15807fi
15808rm -f core conftest.err conftest.$ac_objext \
15809    conftest$ac_exeext conftest.$ac_ext
15810fi
15811
15812
15813		CFLAGS="$xorg_testset_save_CFLAGS"
15814
15815		eval supported=\$$cacheid
15816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15817$as_echo "$supported" >&6; }
15818		if test "$supported" = "yes" ; then
15819			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15820			found="yes"
15821		fi
15822	fi
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838xorg_testset_save_CFLAGS="$CFLAGS"
15839
15840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15845  $as_echo_n "(cached) " >&6
15846else
15847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848/* end confdefs.h.  */
15849int i;
15850_ACEOF
15851if ac_fn_c_try_compile "$LINENO"; then :
15852  xorg_cv_cc_flag_unknown_warning_option=yes
15853else
15854  xorg_cv_cc_flag_unknown_warning_option=no
15855fi
15856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857fi
15858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15861	CFLAGS="$xorg_testset_save_CFLAGS"
15862fi
15863
15864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15867	fi
15868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15872  $as_echo_n "(cached) " >&6
15873else
15874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875/* end confdefs.h.  */
15876int i;
15877_ACEOF
15878if ac_fn_c_try_compile "$LINENO"; then :
15879  xorg_cv_cc_flag_unused_command_line_argument=yes
15880else
15881  xorg_cv_cc_flag_unused_command_line_argument=no
15882fi
15883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884fi
15885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15888	CFLAGS="$xorg_testset_save_CFLAGS"
15889fi
15890
15891found="no"
15892
15893	if test $found = "no" ; then
15894		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15896		fi
15897
15898		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15900		fi
15901
15902		CFLAGS="$CFLAGS -Wmain"
15903
15904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15905$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15906		cacheid=xorg_cv_cc_flag__Wmain
15907		if eval \${$cacheid+:} false; then :
15908  $as_echo_n "(cached) " >&6
15909else
15910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h.  */
15912int i;
15913int
15914main ()
15915{
15916
15917  ;
15918  return 0;
15919}
15920_ACEOF
15921if ac_fn_c_try_link "$LINENO"; then :
15922  eval $cacheid=yes
15923else
15924  eval $cacheid=no
15925fi
15926rm -f core conftest.err conftest.$ac_objext \
15927    conftest$ac_exeext conftest.$ac_ext
15928fi
15929
15930
15931		CFLAGS="$xorg_testset_save_CFLAGS"
15932
15933		eval supported=\$$cacheid
15934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15935$as_echo "$supported" >&6; }
15936		if test "$supported" = "yes" ; then
15937			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15938			found="yes"
15939		fi
15940	fi
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956xorg_testset_save_CFLAGS="$CFLAGS"
15957
15958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15963  $as_echo_n "(cached) " >&6
15964else
15965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966/* end confdefs.h.  */
15967int i;
15968_ACEOF
15969if ac_fn_c_try_compile "$LINENO"; then :
15970  xorg_cv_cc_flag_unknown_warning_option=yes
15971else
15972  xorg_cv_cc_flag_unknown_warning_option=no
15973fi
15974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975fi
15976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15979	CFLAGS="$xorg_testset_save_CFLAGS"
15980fi
15981
15982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15985	fi
15986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15990  $as_echo_n "(cached) " >&6
15991else
15992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993/* end confdefs.h.  */
15994int i;
15995_ACEOF
15996if ac_fn_c_try_compile "$LINENO"; then :
15997  xorg_cv_cc_flag_unused_command_line_argument=yes
15998else
15999  xorg_cv_cc_flag_unused_command_line_argument=no
16000fi
16001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16002fi
16003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16006	CFLAGS="$xorg_testset_save_CFLAGS"
16007fi
16008
16009found="no"
16010
16011	if test $found = "no" ; then
16012		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16014		fi
16015
16016		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16018		fi
16019
16020		CFLAGS="$CFLAGS -Wmissing-braces"
16021
16022		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16023$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16024		cacheid=xorg_cv_cc_flag__Wmissing_braces
16025		if eval \${$cacheid+:} false; then :
16026  $as_echo_n "(cached) " >&6
16027else
16028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029/* end confdefs.h.  */
16030int i;
16031int
16032main ()
16033{
16034
16035  ;
16036  return 0;
16037}
16038_ACEOF
16039if ac_fn_c_try_link "$LINENO"; then :
16040  eval $cacheid=yes
16041else
16042  eval $cacheid=no
16043fi
16044rm -f core conftest.err conftest.$ac_objext \
16045    conftest$ac_exeext conftest.$ac_ext
16046fi
16047
16048
16049		CFLAGS="$xorg_testset_save_CFLAGS"
16050
16051		eval supported=\$$cacheid
16052		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16053$as_echo "$supported" >&6; }
16054		if test "$supported" = "yes" ; then
16055			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16056			found="yes"
16057		fi
16058	fi
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074xorg_testset_save_CFLAGS="$CFLAGS"
16075
16076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16081  $as_echo_n "(cached) " >&6
16082else
16083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084/* end confdefs.h.  */
16085int i;
16086_ACEOF
16087if ac_fn_c_try_compile "$LINENO"; then :
16088  xorg_cv_cc_flag_unknown_warning_option=yes
16089else
16090  xorg_cv_cc_flag_unknown_warning_option=no
16091fi
16092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093fi
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16097	CFLAGS="$xorg_testset_save_CFLAGS"
16098fi
16099
16100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16103	fi
16104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16108  $as_echo_n "(cached) " >&6
16109else
16110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111/* end confdefs.h.  */
16112int i;
16113_ACEOF
16114if ac_fn_c_try_compile "$LINENO"; then :
16115  xorg_cv_cc_flag_unused_command_line_argument=yes
16116else
16117  xorg_cv_cc_flag_unused_command_line_argument=no
16118fi
16119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120fi
16121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16124	CFLAGS="$xorg_testset_save_CFLAGS"
16125fi
16126
16127found="no"
16128
16129	if test $found = "no" ; then
16130		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16132		fi
16133
16134		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16136		fi
16137
16138		CFLAGS="$CFLAGS -Wsequence-point"
16139
16140		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16141$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16142		cacheid=xorg_cv_cc_flag__Wsequence_point
16143		if eval \${$cacheid+:} false; then :
16144  $as_echo_n "(cached) " >&6
16145else
16146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147/* end confdefs.h.  */
16148int i;
16149int
16150main ()
16151{
16152
16153  ;
16154  return 0;
16155}
16156_ACEOF
16157if ac_fn_c_try_link "$LINENO"; then :
16158  eval $cacheid=yes
16159else
16160  eval $cacheid=no
16161fi
16162rm -f core conftest.err conftest.$ac_objext \
16163    conftest$ac_exeext conftest.$ac_ext
16164fi
16165
16166
16167		CFLAGS="$xorg_testset_save_CFLAGS"
16168
16169		eval supported=\$$cacheid
16170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16171$as_echo "$supported" >&6; }
16172		if test "$supported" = "yes" ; then
16173			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16174			found="yes"
16175		fi
16176	fi
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192xorg_testset_save_CFLAGS="$CFLAGS"
16193
16194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16199  $as_echo_n "(cached) " >&6
16200else
16201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202/* end confdefs.h.  */
16203int i;
16204_ACEOF
16205if ac_fn_c_try_compile "$LINENO"; then :
16206  xorg_cv_cc_flag_unknown_warning_option=yes
16207else
16208  xorg_cv_cc_flag_unknown_warning_option=no
16209fi
16210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211fi
16212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16215	CFLAGS="$xorg_testset_save_CFLAGS"
16216fi
16217
16218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16221	fi
16222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16226  $as_echo_n "(cached) " >&6
16227else
16228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229/* end confdefs.h.  */
16230int i;
16231_ACEOF
16232if ac_fn_c_try_compile "$LINENO"; then :
16233  xorg_cv_cc_flag_unused_command_line_argument=yes
16234else
16235  xorg_cv_cc_flag_unused_command_line_argument=no
16236fi
16237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238fi
16239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16242	CFLAGS="$xorg_testset_save_CFLAGS"
16243fi
16244
16245found="no"
16246
16247	if test $found = "no" ; then
16248		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16250		fi
16251
16252		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16254		fi
16255
16256		CFLAGS="$CFLAGS -Wreturn-type"
16257
16258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16259$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16260		cacheid=xorg_cv_cc_flag__Wreturn_type
16261		if eval \${$cacheid+:} false; then :
16262  $as_echo_n "(cached) " >&6
16263else
16264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265/* end confdefs.h.  */
16266int i;
16267int
16268main ()
16269{
16270
16271  ;
16272  return 0;
16273}
16274_ACEOF
16275if ac_fn_c_try_link "$LINENO"; then :
16276  eval $cacheid=yes
16277else
16278  eval $cacheid=no
16279fi
16280rm -f core conftest.err conftest.$ac_objext \
16281    conftest$ac_exeext conftest.$ac_ext
16282fi
16283
16284
16285		CFLAGS="$xorg_testset_save_CFLAGS"
16286
16287		eval supported=\$$cacheid
16288		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16289$as_echo "$supported" >&6; }
16290		if test "$supported" = "yes" ; then
16291			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16292			found="yes"
16293		fi
16294	fi
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310xorg_testset_save_CFLAGS="$CFLAGS"
16311
16312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16317  $as_echo_n "(cached) " >&6
16318else
16319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320/* end confdefs.h.  */
16321int i;
16322_ACEOF
16323if ac_fn_c_try_compile "$LINENO"; then :
16324  xorg_cv_cc_flag_unknown_warning_option=yes
16325else
16326  xorg_cv_cc_flag_unknown_warning_option=no
16327fi
16328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329fi
16330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16333	CFLAGS="$xorg_testset_save_CFLAGS"
16334fi
16335
16336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16339	fi
16340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16344  $as_echo_n "(cached) " >&6
16345else
16346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347/* end confdefs.h.  */
16348int i;
16349_ACEOF
16350if ac_fn_c_try_compile "$LINENO"; then :
16351  xorg_cv_cc_flag_unused_command_line_argument=yes
16352else
16353  xorg_cv_cc_flag_unused_command_line_argument=no
16354fi
16355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356fi
16357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16360	CFLAGS="$xorg_testset_save_CFLAGS"
16361fi
16362
16363found="no"
16364
16365	if test $found = "no" ; then
16366		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16368		fi
16369
16370		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16372		fi
16373
16374		CFLAGS="$CFLAGS -Wtrigraphs"
16375
16376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16377$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16378		cacheid=xorg_cv_cc_flag__Wtrigraphs
16379		if eval \${$cacheid+:} false; then :
16380  $as_echo_n "(cached) " >&6
16381else
16382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383/* end confdefs.h.  */
16384int i;
16385int
16386main ()
16387{
16388
16389  ;
16390  return 0;
16391}
16392_ACEOF
16393if ac_fn_c_try_link "$LINENO"; then :
16394  eval $cacheid=yes
16395else
16396  eval $cacheid=no
16397fi
16398rm -f core conftest.err conftest.$ac_objext \
16399    conftest$ac_exeext conftest.$ac_ext
16400fi
16401
16402
16403		CFLAGS="$xorg_testset_save_CFLAGS"
16404
16405		eval supported=\$$cacheid
16406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16407$as_echo "$supported" >&6; }
16408		if test "$supported" = "yes" ; then
16409			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16410			found="yes"
16411		fi
16412	fi
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428xorg_testset_save_CFLAGS="$CFLAGS"
16429
16430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16435  $as_echo_n "(cached) " >&6
16436else
16437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438/* end confdefs.h.  */
16439int i;
16440_ACEOF
16441if ac_fn_c_try_compile "$LINENO"; then :
16442  xorg_cv_cc_flag_unknown_warning_option=yes
16443else
16444  xorg_cv_cc_flag_unknown_warning_option=no
16445fi
16446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447fi
16448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16451	CFLAGS="$xorg_testset_save_CFLAGS"
16452fi
16453
16454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16457	fi
16458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16462  $as_echo_n "(cached) " >&6
16463else
16464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465/* end confdefs.h.  */
16466int i;
16467_ACEOF
16468if ac_fn_c_try_compile "$LINENO"; then :
16469  xorg_cv_cc_flag_unused_command_line_argument=yes
16470else
16471  xorg_cv_cc_flag_unused_command_line_argument=no
16472fi
16473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16474fi
16475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16478	CFLAGS="$xorg_testset_save_CFLAGS"
16479fi
16480
16481found="no"
16482
16483	if test $found = "no" ; then
16484		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16486		fi
16487
16488		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16490		fi
16491
16492		CFLAGS="$CFLAGS -Warray-bounds"
16493
16494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16495$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16496		cacheid=xorg_cv_cc_flag__Warray_bounds
16497		if eval \${$cacheid+:} false; then :
16498  $as_echo_n "(cached) " >&6
16499else
16500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501/* end confdefs.h.  */
16502int i;
16503int
16504main ()
16505{
16506
16507  ;
16508  return 0;
16509}
16510_ACEOF
16511if ac_fn_c_try_link "$LINENO"; then :
16512  eval $cacheid=yes
16513else
16514  eval $cacheid=no
16515fi
16516rm -f core conftest.err conftest.$ac_objext \
16517    conftest$ac_exeext conftest.$ac_ext
16518fi
16519
16520
16521		CFLAGS="$xorg_testset_save_CFLAGS"
16522
16523		eval supported=\$$cacheid
16524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16525$as_echo "$supported" >&6; }
16526		if test "$supported" = "yes" ; then
16527			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16528			found="yes"
16529		fi
16530	fi
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546xorg_testset_save_CFLAGS="$CFLAGS"
16547
16548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16553  $as_echo_n "(cached) " >&6
16554else
16555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556/* end confdefs.h.  */
16557int i;
16558_ACEOF
16559if ac_fn_c_try_compile "$LINENO"; then :
16560  xorg_cv_cc_flag_unknown_warning_option=yes
16561else
16562  xorg_cv_cc_flag_unknown_warning_option=no
16563fi
16564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565fi
16566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16569	CFLAGS="$xorg_testset_save_CFLAGS"
16570fi
16571
16572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16575	fi
16576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16580  $as_echo_n "(cached) " >&6
16581else
16582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583/* end confdefs.h.  */
16584int i;
16585_ACEOF
16586if ac_fn_c_try_compile "$LINENO"; then :
16587  xorg_cv_cc_flag_unused_command_line_argument=yes
16588else
16589  xorg_cv_cc_flag_unused_command_line_argument=no
16590fi
16591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16592fi
16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16596	CFLAGS="$xorg_testset_save_CFLAGS"
16597fi
16598
16599found="no"
16600
16601	if test $found = "no" ; then
16602		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16604		fi
16605
16606		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16608		fi
16609
16610		CFLAGS="$CFLAGS -Wwrite-strings"
16611
16612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16613$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16614		cacheid=xorg_cv_cc_flag__Wwrite_strings
16615		if eval \${$cacheid+:} false; then :
16616  $as_echo_n "(cached) " >&6
16617else
16618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619/* end confdefs.h.  */
16620int i;
16621int
16622main ()
16623{
16624
16625  ;
16626  return 0;
16627}
16628_ACEOF
16629if ac_fn_c_try_link "$LINENO"; then :
16630  eval $cacheid=yes
16631else
16632  eval $cacheid=no
16633fi
16634rm -f core conftest.err conftest.$ac_objext \
16635    conftest$ac_exeext conftest.$ac_ext
16636fi
16637
16638
16639		CFLAGS="$xorg_testset_save_CFLAGS"
16640
16641		eval supported=\$$cacheid
16642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16643$as_echo "$supported" >&6; }
16644		if test "$supported" = "yes" ; then
16645			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16646			found="yes"
16647		fi
16648	fi
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664xorg_testset_save_CFLAGS="$CFLAGS"
16665
16666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16671  $as_echo_n "(cached) " >&6
16672else
16673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674/* end confdefs.h.  */
16675int i;
16676_ACEOF
16677if ac_fn_c_try_compile "$LINENO"; then :
16678  xorg_cv_cc_flag_unknown_warning_option=yes
16679else
16680  xorg_cv_cc_flag_unknown_warning_option=no
16681fi
16682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16683fi
16684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16687	CFLAGS="$xorg_testset_save_CFLAGS"
16688fi
16689
16690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16693	fi
16694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16698  $as_echo_n "(cached) " >&6
16699else
16700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701/* end confdefs.h.  */
16702int i;
16703_ACEOF
16704if ac_fn_c_try_compile "$LINENO"; then :
16705  xorg_cv_cc_flag_unused_command_line_argument=yes
16706else
16707  xorg_cv_cc_flag_unused_command_line_argument=no
16708fi
16709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710fi
16711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16714	CFLAGS="$xorg_testset_save_CFLAGS"
16715fi
16716
16717found="no"
16718
16719	if test $found = "no" ; then
16720		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16722		fi
16723
16724		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16726		fi
16727
16728		CFLAGS="$CFLAGS -Waddress"
16729
16730		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16731$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16732		cacheid=xorg_cv_cc_flag__Waddress
16733		if eval \${$cacheid+:} false; then :
16734  $as_echo_n "(cached) " >&6
16735else
16736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737/* end confdefs.h.  */
16738int i;
16739int
16740main ()
16741{
16742
16743  ;
16744  return 0;
16745}
16746_ACEOF
16747if ac_fn_c_try_link "$LINENO"; then :
16748  eval $cacheid=yes
16749else
16750  eval $cacheid=no
16751fi
16752rm -f core conftest.err conftest.$ac_objext \
16753    conftest$ac_exeext conftest.$ac_ext
16754fi
16755
16756
16757		CFLAGS="$xorg_testset_save_CFLAGS"
16758
16759		eval supported=\$$cacheid
16760		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16761$as_echo "$supported" >&6; }
16762		if test "$supported" = "yes" ; then
16763			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16764			found="yes"
16765		fi
16766	fi
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782xorg_testset_save_CFLAGS="$CFLAGS"
16783
16784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16789  $as_echo_n "(cached) " >&6
16790else
16791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792/* end confdefs.h.  */
16793int i;
16794_ACEOF
16795if ac_fn_c_try_compile "$LINENO"; then :
16796  xorg_cv_cc_flag_unknown_warning_option=yes
16797else
16798  xorg_cv_cc_flag_unknown_warning_option=no
16799fi
16800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801fi
16802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16804	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16805	CFLAGS="$xorg_testset_save_CFLAGS"
16806fi
16807
16808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16809	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16810		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16811	fi
16812	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16816  $as_echo_n "(cached) " >&6
16817else
16818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819/* end confdefs.h.  */
16820int i;
16821_ACEOF
16822if ac_fn_c_try_compile "$LINENO"; then :
16823  xorg_cv_cc_flag_unused_command_line_argument=yes
16824else
16825  xorg_cv_cc_flag_unused_command_line_argument=no
16826fi
16827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828fi
16829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16831	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16832	CFLAGS="$xorg_testset_save_CFLAGS"
16833fi
16834
16835found="no"
16836
16837	if test $found = "no" ; then
16838		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16839			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16840		fi
16841
16842		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16843			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16844		fi
16845
16846		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16847
16848		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16849$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16850		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16851		if eval \${$cacheid+:} false; then :
16852  $as_echo_n "(cached) " >&6
16853else
16854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855/* end confdefs.h.  */
16856int i;
16857int
16858main ()
16859{
16860
16861  ;
16862  return 0;
16863}
16864_ACEOF
16865if ac_fn_c_try_link "$LINENO"; then :
16866  eval $cacheid=yes
16867else
16868  eval $cacheid=no
16869fi
16870rm -f core conftest.err conftest.$ac_objext \
16871    conftest$ac_exeext conftest.$ac_ext
16872fi
16873
16874
16875		CFLAGS="$xorg_testset_save_CFLAGS"
16876
16877		eval supported=\$$cacheid
16878		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16879$as_echo "$supported" >&6; }
16880		if test "$supported" = "yes" ; then
16881			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16882			found="yes"
16883		fi
16884	fi
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900xorg_testset_save_CFLAGS="$CFLAGS"
16901
16902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16903	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16907  $as_echo_n "(cached) " >&6
16908else
16909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910/* end confdefs.h.  */
16911int i;
16912_ACEOF
16913if ac_fn_c_try_compile "$LINENO"; then :
16914  xorg_cv_cc_flag_unknown_warning_option=yes
16915else
16916  xorg_cv_cc_flag_unknown_warning_option=no
16917fi
16918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919fi
16920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16923	CFLAGS="$xorg_testset_save_CFLAGS"
16924fi
16925
16926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16929	fi
16930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16934  $as_echo_n "(cached) " >&6
16935else
16936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937/* end confdefs.h.  */
16938int i;
16939_ACEOF
16940if ac_fn_c_try_compile "$LINENO"; then :
16941  xorg_cv_cc_flag_unused_command_line_argument=yes
16942else
16943  xorg_cv_cc_flag_unused_command_line_argument=no
16944fi
16945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16946fi
16947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16950	CFLAGS="$xorg_testset_save_CFLAGS"
16951fi
16952
16953found="no"
16954
16955	if test $found = "no" ; then
16956		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16958		fi
16959
16960		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16962		fi
16963
16964		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16965
16966		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16967$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16968		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16969		if eval \${$cacheid+:} false; then :
16970  $as_echo_n "(cached) " >&6
16971else
16972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973/* end confdefs.h.  */
16974int i;
16975int
16976main ()
16977{
16978
16979  ;
16980  return 0;
16981}
16982_ACEOF
16983if ac_fn_c_try_link "$LINENO"; then :
16984  eval $cacheid=yes
16985else
16986  eval $cacheid=no
16987fi
16988rm -f core conftest.err conftest.$ac_objext \
16989    conftest$ac_exeext conftest.$ac_ext
16990fi
16991
16992
16993		CFLAGS="$xorg_testset_save_CFLAGS"
16994
16995		eval supported=\$$cacheid
16996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16997$as_echo "$supported" >&6; }
16998		if test "$supported" = "yes" ; then
16999			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17000			found="yes"
17001		fi
17002	fi
17003
17004
17005fi
17006
17007
17008
17009
17010
17011
17012
17013		CWARNFLAGS="$BASE_CFLAGS"
17014		if  test "x$GCC" = xyes ; then
17015		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17016		fi
17017
17018
17019
17020
17021
17022
17023
17024
17025# Check whether --enable-strict-compilation was given.
17026if test "${enable_strict_compilation+set}" = set; then :
17027  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17028else
17029  STRICT_COMPILE=no
17030fi
17031
17032
17033
17034
17035
17036
17037STRICT_CFLAGS=""
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051xorg_testset_save_CFLAGS="$CFLAGS"
17052
17053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17058  $as_echo_n "(cached) " >&6
17059else
17060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061/* end confdefs.h.  */
17062int i;
17063_ACEOF
17064if ac_fn_c_try_compile "$LINENO"; then :
17065  xorg_cv_cc_flag_unknown_warning_option=yes
17066else
17067  xorg_cv_cc_flag_unknown_warning_option=no
17068fi
17069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070fi
17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17074	CFLAGS="$xorg_testset_save_CFLAGS"
17075fi
17076
17077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080	fi
17081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17085  $as_echo_n "(cached) " >&6
17086else
17087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088/* end confdefs.h.  */
17089int i;
17090_ACEOF
17091if ac_fn_c_try_compile "$LINENO"; then :
17092  xorg_cv_cc_flag_unused_command_line_argument=yes
17093else
17094  xorg_cv_cc_flag_unused_command_line_argument=no
17095fi
17096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17097fi
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17101	CFLAGS="$xorg_testset_save_CFLAGS"
17102fi
17103
17104found="no"
17105
17106	if test $found = "no" ; then
17107		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17109		fi
17110
17111		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17113		fi
17114
17115		CFLAGS="$CFLAGS -pedantic"
17116
17117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17118$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17119		cacheid=xorg_cv_cc_flag__pedantic
17120		if eval \${$cacheid+:} false; then :
17121  $as_echo_n "(cached) " >&6
17122else
17123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124/* end confdefs.h.  */
17125int i;
17126int
17127main ()
17128{
17129
17130  ;
17131  return 0;
17132}
17133_ACEOF
17134if ac_fn_c_try_link "$LINENO"; then :
17135  eval $cacheid=yes
17136else
17137  eval $cacheid=no
17138fi
17139rm -f core conftest.err conftest.$ac_objext \
17140    conftest$ac_exeext conftest.$ac_ext
17141fi
17142
17143
17144		CFLAGS="$xorg_testset_save_CFLAGS"
17145
17146		eval supported=\$$cacheid
17147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17148$as_echo "$supported" >&6; }
17149		if test "$supported" = "yes" ; then
17150			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17151			found="yes"
17152		fi
17153	fi
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169xorg_testset_save_CFLAGS="$CFLAGS"
17170
17171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17176  $as_echo_n "(cached) " >&6
17177else
17178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179/* end confdefs.h.  */
17180int i;
17181_ACEOF
17182if ac_fn_c_try_compile "$LINENO"; then :
17183  xorg_cv_cc_flag_unknown_warning_option=yes
17184else
17185  xorg_cv_cc_flag_unknown_warning_option=no
17186fi
17187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188fi
17189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17192	CFLAGS="$xorg_testset_save_CFLAGS"
17193fi
17194
17195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17198	fi
17199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17203  $as_echo_n "(cached) " >&6
17204else
17205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206/* end confdefs.h.  */
17207int i;
17208_ACEOF
17209if ac_fn_c_try_compile "$LINENO"; then :
17210  xorg_cv_cc_flag_unused_command_line_argument=yes
17211else
17212  xorg_cv_cc_flag_unused_command_line_argument=no
17213fi
17214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17215fi
17216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17219	CFLAGS="$xorg_testset_save_CFLAGS"
17220fi
17221
17222found="no"
17223
17224	if test $found = "no" ; then
17225		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17227		fi
17228
17229		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17231		fi
17232
17233		CFLAGS="$CFLAGS -Werror"
17234
17235		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17236$as_echo_n "checking if $CC supports -Werror... " >&6; }
17237		cacheid=xorg_cv_cc_flag__Werror
17238		if eval \${$cacheid+:} false; then :
17239  $as_echo_n "(cached) " >&6
17240else
17241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242/* end confdefs.h.  */
17243int i;
17244int
17245main ()
17246{
17247
17248  ;
17249  return 0;
17250}
17251_ACEOF
17252if ac_fn_c_try_link "$LINENO"; then :
17253  eval $cacheid=yes
17254else
17255  eval $cacheid=no
17256fi
17257rm -f core conftest.err conftest.$ac_objext \
17258    conftest$ac_exeext conftest.$ac_ext
17259fi
17260
17261
17262		CFLAGS="$xorg_testset_save_CFLAGS"
17263
17264		eval supported=\$$cacheid
17265		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17266$as_echo "$supported" >&6; }
17267		if test "$supported" = "yes" ; then
17268			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17269			found="yes"
17270		fi
17271	fi
17272
17273	if test $found = "no" ; then
17274		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17276		fi
17277
17278		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17280		fi
17281
17282		CFLAGS="$CFLAGS -errwarn"
17283
17284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17285$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17286		cacheid=xorg_cv_cc_flag__errwarn
17287		if eval \${$cacheid+:} false; then :
17288  $as_echo_n "(cached) " >&6
17289else
17290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291/* end confdefs.h.  */
17292int i;
17293int
17294main ()
17295{
17296
17297  ;
17298  return 0;
17299}
17300_ACEOF
17301if ac_fn_c_try_link "$LINENO"; then :
17302  eval $cacheid=yes
17303else
17304  eval $cacheid=no
17305fi
17306rm -f core conftest.err conftest.$ac_objext \
17307    conftest$ac_exeext conftest.$ac_ext
17308fi
17309
17310
17311		CFLAGS="$xorg_testset_save_CFLAGS"
17312
17313		eval supported=\$$cacheid
17314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17315$as_echo "$supported" >&6; }
17316		if test "$supported" = "yes" ; then
17317			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17318			found="yes"
17319		fi
17320	fi
17321
17322
17323
17324# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17325# activate it with -Werror, so we add it here explicitly.
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339xorg_testset_save_CFLAGS="$CFLAGS"
17340
17341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17346  $as_echo_n "(cached) " >&6
17347else
17348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349/* end confdefs.h.  */
17350int i;
17351_ACEOF
17352if ac_fn_c_try_compile "$LINENO"; then :
17353  xorg_cv_cc_flag_unknown_warning_option=yes
17354else
17355  xorg_cv_cc_flag_unknown_warning_option=no
17356fi
17357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358fi
17359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17362	CFLAGS="$xorg_testset_save_CFLAGS"
17363fi
17364
17365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17368	fi
17369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17373  $as_echo_n "(cached) " >&6
17374else
17375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376/* end confdefs.h.  */
17377int i;
17378_ACEOF
17379if ac_fn_c_try_compile "$LINENO"; then :
17380  xorg_cv_cc_flag_unused_command_line_argument=yes
17381else
17382  xorg_cv_cc_flag_unused_command_line_argument=no
17383fi
17384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17385fi
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17389	CFLAGS="$xorg_testset_save_CFLAGS"
17390fi
17391
17392found="no"
17393
17394	if test $found = "no" ; then
17395		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17397		fi
17398
17399		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17401		fi
17402
17403		CFLAGS="$CFLAGS -Werror=attributes"
17404
17405		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17406$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17407		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17408		if eval \${$cacheid+:} false; then :
17409  $as_echo_n "(cached) " >&6
17410else
17411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412/* end confdefs.h.  */
17413int i;
17414int
17415main ()
17416{
17417
17418  ;
17419  return 0;
17420}
17421_ACEOF
17422if ac_fn_c_try_link "$LINENO"; then :
17423  eval $cacheid=yes
17424else
17425  eval $cacheid=no
17426fi
17427rm -f core conftest.err conftest.$ac_objext \
17428    conftest$ac_exeext conftest.$ac_ext
17429fi
17430
17431
17432		CFLAGS="$xorg_testset_save_CFLAGS"
17433
17434		eval supported=\$$cacheid
17435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17436$as_echo "$supported" >&6; }
17437		if test "$supported" = "yes" ; then
17438			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17439			found="yes"
17440		fi
17441	fi
17442
17443
17444
17445if test "x$STRICT_COMPILE" = "xyes"; then
17446    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17447    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17448fi
17449
17450
17451
17452
17453
17454
17455cat >>confdefs.h <<_ACEOF
17456#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17457_ACEOF
17458
17459	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17460	if test "x$PVM" = "x"; then
17461		PVM="0"
17462	fi
17463
17464cat >>confdefs.h <<_ACEOF
17465#define PACKAGE_VERSION_MINOR $PVM
17466_ACEOF
17467
17468	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17469	if test "x$PVP" = "x"; then
17470		PVP="0"
17471	fi
17472
17473cat >>confdefs.h <<_ACEOF
17474#define PACKAGE_VERSION_PATCHLEVEL $PVP
17475_ACEOF
17476
17477
17478
17479CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17480mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17481|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17482echo 'git directory not found: installing possibly empty changelog.' >&2)"
17483
17484
17485
17486
17487macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17488INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17489mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17490|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17491echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17492
17493
17494
17495
17496
17497
17498if test x$APP_MAN_SUFFIX = x    ; then
17499    APP_MAN_SUFFIX=1
17500fi
17501if test x$APP_MAN_DIR = x    ; then
17502    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17503fi
17504
17505if test x$LIB_MAN_SUFFIX = x    ; then
17506    LIB_MAN_SUFFIX=3
17507fi
17508if test x$LIB_MAN_DIR = x    ; then
17509    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17510fi
17511
17512if test x$FILE_MAN_SUFFIX = x    ; then
17513    case $host_os in
17514	solaris*)	FILE_MAN_SUFFIX=4  ;;
17515	*)		FILE_MAN_SUFFIX=5  ;;
17516    esac
17517fi
17518if test x$FILE_MAN_DIR = x    ; then
17519    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17520fi
17521
17522if test x$MISC_MAN_SUFFIX = x    ; then
17523    case $host_os in
17524	solaris*)	MISC_MAN_SUFFIX=5  ;;
17525	*)		MISC_MAN_SUFFIX=7  ;;
17526    esac
17527fi
17528if test x$MISC_MAN_DIR = x    ; then
17529    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17530fi
17531
17532if test x$DRIVER_MAN_SUFFIX = x    ; then
17533    case $host_os in
17534	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17535	*)		DRIVER_MAN_SUFFIX=4  ;;
17536    esac
17537fi
17538if test x$DRIVER_MAN_DIR = x    ; then
17539    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17540fi
17541
17542if test x$ADMIN_MAN_SUFFIX = x    ; then
17543    case $host_os in
17544	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17545	*)		ADMIN_MAN_SUFFIX=8  ;;
17546    esac
17547fi
17548if test x$ADMIN_MAN_DIR = x    ; then
17549    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17550fi
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566XORG_MAN_PAGE="X Version 11"
17567
17568MAN_SUBSTS="\
17569	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17570	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17571	-e 's|__xservername__|Xorg|g' \
17572	-e 's|__xconfigfile__|xorg.conf|g' \
17573	-e 's|__projectroot__|\$(prefix)|g' \
17574	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17575	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17576	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17577	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17578	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17579	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17580	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17581
17582
17583
17584# Check whether --enable-silent-rules was given.
17585if test "${enable_silent_rules+set}" = set; then :
17586  enableval=$enable_silent_rules;
17587fi
17588
17589case $enable_silent_rules in
17590yes) AM_DEFAULT_VERBOSITY=0;;
17591no)  AM_DEFAULT_VERBOSITY=1;;
17592*)   AM_DEFAULT_VERBOSITY=0;;
17593esac
17594AM_BACKSLASH='\'
17595
17596
17597
17598# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
17614$as_echo_n "checking for root directory for font files... " >&6; }
17615
17616# Check whether --with-fontrootdir was given.
17617if test "${with_fontrootdir+set}" = set; then :
17618  withval=$with_fontrootdir; FONTROOTDIR="$withval"
17619fi
17620
17621	# if --with-fontrootdir not specified...
17622	if test "x${FONTROOTDIR}" = "x"; then
17623		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
17624	fi
17625	# ...and if pkg-config didn't find fontdir in fontutil.pc...
17626	if test "x${FONTROOTDIR}" = "x"; then
17627		FONTROOTDIR="${datadir}/fonts/X11"
17628	fi
17629
17630	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
17631$as_echo "${FONTROOTDIR}" >&6; }
17632
17633
17634
17635
17636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
17637$as_echo_n "checking for directory for encodings files... " >&6; }
17638
17639# Check whether --with-encodingsdir was given.
17640if test "${with_encodingsdir+set}" = set; then :
17641  withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
17642else
17643  ENCODINGSDIR='${FONTROOTDIR}/encodings'
17644fi
17645
17646
17647	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
17648$as_echo "${ENCODINGSDIR}" >&6; }
17649
17650
17651# zlib
17652ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17653if test "x$ac_cv_header_zlib_h" = xyes; then :
17654
17655else
17656  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17658as_fn_error $? "zlib.h is required to compile libfontenc
17659See \`config.log' for more details" "$LINENO" 5; }
17660fi
17661
17662
17663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5
17664$as_echo_n "checking for gzclose in -lz... " >&6; }
17665if ${ac_cv_lib_z_gzclose+:} false; then :
17666  $as_echo_n "(cached) " >&6
17667else
17668  ac_check_lib_save_LIBS=$LIBS
17669LIBS="-lz  $LIBS"
17670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671/* end confdefs.h.  */
17672
17673/* Override any GCC internal prototype to avoid an error.
17674   Use char because int might match the return type of a GCC
17675   builtin and then its argument prototype would still apply.  */
17676#ifdef __cplusplus
17677extern "C"
17678#endif
17679char gzclose ();
17680int
17681main ()
17682{
17683return gzclose ();
17684  ;
17685  return 0;
17686}
17687_ACEOF
17688if ac_fn_c_try_link "$LINENO"; then :
17689  ac_cv_lib_z_gzclose=yes
17690else
17691  ac_cv_lib_z_gzclose=no
17692fi
17693rm -f core conftest.err conftest.$ac_objext \
17694    conftest$ac_exeext conftest.$ac_ext
17695LIBS=$ac_check_lib_save_LIBS
17696fi
17697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5
17698$as_echo "$ac_cv_lib_z_gzclose" >&6; }
17699if test "x$ac_cv_lib_z_gzclose" = xyes; then :
17700  cat >>confdefs.h <<_ACEOF
17701#define HAVE_LIBZ 1
17702_ACEOF
17703
17704  LIBS="-lz $LIBS"
17705
17706else
17707  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17709as_fn_error $? "zlib is required to compile libfontenc
17710See \`config.log' for more details" "$LINENO" 5; }
17711fi
17712
17713
17714# Obtain compiler/linker options for depedencies
17715
17716pkg_failed=no
17717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5
17718$as_echo_n "checking for FONTENC... " >&6; }
17719
17720if test -n "$FONTENC_CFLAGS"; then
17721    pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS"
17722 elif test -n "$PKG_CONFIG"; then
17723    if test -n "$PKG_CONFIG" && \
17724    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
17725  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
17726  ac_status=$?
17727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17728  test $ac_status = 0; }; then
17729  pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
17730else
17731  pkg_failed=yes
17732fi
17733 else
17734    pkg_failed=untried
17735fi
17736if test -n "$FONTENC_LIBS"; then
17737    pkg_cv_FONTENC_LIBS="$FONTENC_LIBS"
17738 elif test -n "$PKG_CONFIG"; then
17739    if test -n "$PKG_CONFIG" && \
17740    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
17741  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
17742  ac_status=$?
17743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17744  test $ac_status = 0; }; then
17745  pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
17746else
17747  pkg_failed=yes
17748fi
17749 else
17750    pkg_failed=untried
17751fi
17752
17753
17754
17755if test $pkg_failed = yes; then
17756
17757if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17758        _pkg_short_errors_supported=yes
17759else
17760        _pkg_short_errors_supported=no
17761fi
17762        if test $_pkg_short_errors_supported = yes; then
17763	        FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
17764        else
17765	        FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
17766        fi
17767	# Put the nasty error message in config.log where it belongs
17768	echo "$FONTENC_PKG_ERRORS" >&5
17769
17770	as_fn_error $? "Package requirements (xproto) were not met:
17771
17772$FONTENC_PKG_ERRORS
17773
17774Consider adjusting the PKG_CONFIG_PATH environment variable if you
17775installed software in a non-standard prefix.
17776
17777Alternatively, you may set the environment variables FONTENC_CFLAGS
17778and FONTENC_LIBS to avoid the need to call pkg-config.
17779See the pkg-config man page for more details.
17780" "$LINENO" 5
17781elif test $pkg_failed = untried; then
17782	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17784as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17785is in your PATH or set the PKG_CONFIG environment variable to the full
17786path to pkg-config.
17787
17788Alternatively, you may set the environment variables FONTENC_CFLAGS
17789and FONTENC_LIBS to avoid the need to call pkg-config.
17790See the pkg-config man page for more details.
17791
17792To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17793See \`config.log' for more details" "$LINENO" 5; }
17794else
17795	FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS
17796	FONTENC_LIBS=$pkg_cv_FONTENC_LIBS
17797        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17798$as_echo "yes" >&6; }
17799	:
17800fi
17801
17802# Allow checking code with lint, sparse, etc.
17803
17804
17805
17806
17807
17808# Check whether --with-lint was given.
17809if test "${with_lint+set}" = set; then :
17810  withval=$with_lint; use_lint=$withval
17811else
17812  use_lint=no
17813fi
17814
17815
17816# Obtain platform specific info like program name and options
17817# The lint program on FreeBSD and NetBSD is different from the one on Solaris
17818case $host_os in
17819  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17820	lint_name=splint
17821	lint_options="-badflag"
17822	;;
17823  *freebsd* | *netbsd*)
17824	lint_name=lint
17825	lint_options="-u -b"
17826	;;
17827  *solaris*)
17828	lint_name=lint
17829	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17830	;;
17831esac
17832
17833# Test for the presence of the program (either guessed by the code or spelled out by the user)
17834if test "x$use_lint" = x"yes" ; then
17835   # Extract the first word of "$lint_name", so it can be a program name with args.
17836set dummy $lint_name; ac_word=$2
17837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17838$as_echo_n "checking for $ac_word... " >&6; }
17839if ${ac_cv_path_LINT+:} false; then :
17840  $as_echo_n "(cached) " >&6
17841else
17842  case $LINT in
17843  [\\/]* | ?:[\\/]*)
17844  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17845  ;;
17846  *)
17847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17848for as_dir in $PATH
17849do
17850  IFS=$as_save_IFS
17851  test -z "$as_dir" && as_dir=.
17852    for ac_exec_ext in '' $ac_executable_extensions; do
17853  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17854    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17856    break 2
17857  fi
17858done
17859  done
17860IFS=$as_save_IFS
17861
17862  ;;
17863esac
17864fi
17865LINT=$ac_cv_path_LINT
17866if test -n "$LINT"; then
17867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17868$as_echo "$LINT" >&6; }
17869else
17870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17871$as_echo "no" >&6; }
17872fi
17873
17874
17875   if test "x$LINT" = "x"; then
17876        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17877   fi
17878elif test "x$use_lint" = x"no" ; then
17879   if test "x$LINT" != "x"; then
17880      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17881$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17882   fi
17883else
17884   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17885fi
17886
17887# User supplied flags override default flags
17888if test "x$LINT_FLAGS" != "x"; then
17889   lint_options=$LINT_FLAGS
17890fi
17891
17892LINT_FLAGS=$lint_options
17893
17894 if test "x$LINT" != x; then
17895  LINT_TRUE=
17896  LINT_FALSE='#'
17897else
17898  LINT_TRUE='#'
17899  LINT_FALSE=
17900fi
17901
17902
17903
17904LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
17905
17906ac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc"
17907
17908cat >confcache <<\_ACEOF
17909# This file is a shell script that caches the results of configure
17910# tests run on this system so they can be shared between configure
17911# scripts and configure runs, see configure's option --config-cache.
17912# It is not useful on other systems.  If it contains results you don't
17913# want to keep, you may remove or edit it.
17914#
17915# config.status only pays attention to the cache file if you give it
17916# the --recheck option to rerun configure.
17917#
17918# `ac_cv_env_foo' variables (set or unset) will be overridden when
17919# loading this file, other *unset* `ac_cv_foo' will be assigned the
17920# following values.
17921
17922_ACEOF
17923
17924# The following way of writing the cache mishandles newlines in values,
17925# but we know of no workaround that is simple, portable, and efficient.
17926# So, we kill variables containing newlines.
17927# Ultrix sh set writes to stderr and can't be redirected directly,
17928# and sets the high bit in the cache file unless we assign to the vars.
17929(
17930  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17931    eval ac_val=\$$ac_var
17932    case $ac_val in #(
17933    *${as_nl}*)
17934      case $ac_var in #(
17935      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17936$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17937      esac
17938      case $ac_var in #(
17939      _ | IFS | as_nl) ;; #(
17940      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17941      *) { eval $ac_var=; unset $ac_var;} ;;
17942      esac ;;
17943    esac
17944  done
17945
17946  (set) 2>&1 |
17947    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17948    *${as_nl}ac_space=\ *)
17949      # `set' does not quote correctly, so add quotes: double-quote
17950      # substitution turns \\\\ into \\, and sed turns \\ into \.
17951      sed -n \
17952	"s/'/'\\\\''/g;
17953	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17954      ;; #(
17955    *)
17956      # `set' quotes correctly as required by POSIX, so do not add quotes.
17957      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17958      ;;
17959    esac |
17960    sort
17961) |
17962  sed '
17963     /^ac_cv_env_/b end
17964     t clear
17965     :clear
17966     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17967     t end
17968     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17969     :end' >>confcache
17970if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17971  if test -w "$cache_file"; then
17972    if test "x$cache_file" != "x/dev/null"; then
17973      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17974$as_echo "$as_me: updating cache $cache_file" >&6;}
17975      if test ! -f "$cache_file" || test -h "$cache_file"; then
17976	cat confcache >"$cache_file"
17977      else
17978        case $cache_file in #(
17979        */* | ?:*)
17980	  mv -f confcache "$cache_file"$$ &&
17981	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17982        *)
17983	  mv -f confcache "$cache_file" ;;
17984	esac
17985      fi
17986    fi
17987  else
17988    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17989$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17990  fi
17991fi
17992rm -f confcache
17993
17994test "x$prefix" = xNONE && prefix=$ac_default_prefix
17995# Let make expand exec_prefix.
17996test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17997
17998DEFS=-DHAVE_CONFIG_H
17999
18000ac_libobjs=
18001ac_ltlibobjs=
18002U=
18003for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18004  # 1. Remove the extension, and $U if already installed.
18005  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18006  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18007  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18008  #    will be set to the directory where LIBOBJS objects are built.
18009  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18010  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18011done
18012LIBOBJS=$ac_libobjs
18013
18014LTLIBOBJS=$ac_ltlibobjs
18015
18016
18017 if test -n "$EXEEXT"; then
18018  am__EXEEXT_TRUE=
18019  am__EXEEXT_FALSE='#'
18020else
18021  am__EXEEXT_TRUE='#'
18022  am__EXEEXT_FALSE=
18023fi
18024
18025if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18026  as_fn_error $? "conditional \"AMDEP\" was never defined.
18027Usually this means the macro was only invoked conditionally." "$LINENO" 5
18028fi
18029if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18030  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18031Usually this means the macro was only invoked conditionally." "$LINENO" 5
18032fi
18033if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18034  as_fn_error $? "conditional \"LINT\" was never defined.
18035Usually this means the macro was only invoked conditionally." "$LINENO" 5
18036fi
18037
18038: "${CONFIG_STATUS=./config.status}"
18039ac_write_fail=0
18040ac_clean_files_save=$ac_clean_files
18041ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18042{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18043$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18044as_write_fail=0
18045cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18046#! $SHELL
18047# Generated by $as_me.
18048# Run this file to recreate the current configuration.
18049# Compiler output produced by configure, useful for debugging
18050# configure, is in config.log if it exists.
18051
18052debug=false
18053ac_cs_recheck=false
18054ac_cs_silent=false
18055
18056SHELL=\${CONFIG_SHELL-$SHELL}
18057export SHELL
18058_ASEOF
18059cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18060## -------------------- ##
18061## M4sh Initialization. ##
18062## -------------------- ##
18063
18064# Be more Bourne compatible
18065DUALCASE=1; export DUALCASE # for MKS sh
18066if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18067  emulate sh
18068  NULLCMD=:
18069  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18070  # is contrary to our usage.  Disable this feature.
18071  alias -g '${1+"$@"}'='"$@"'
18072  setopt NO_GLOB_SUBST
18073else
18074  case `(set -o) 2>/dev/null` in #(
18075  *posix*) :
18076    set -o posix ;; #(
18077  *) :
18078     ;;
18079esac
18080fi
18081
18082
18083as_nl='
18084'
18085export as_nl
18086# Printing a long string crashes Solaris 7 /usr/bin/printf.
18087as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18088as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18089as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18090# Prefer a ksh shell builtin over an external printf program on Solaris,
18091# but without wasting forks for bash or zsh.
18092if test -z "$BASH_VERSION$ZSH_VERSION" \
18093    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18094  as_echo='print -r --'
18095  as_echo_n='print -rn --'
18096elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18097  as_echo='printf %s\n'
18098  as_echo_n='printf %s'
18099else
18100  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18101    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18102    as_echo_n='/usr/ucb/echo -n'
18103  else
18104    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18105    as_echo_n_body='eval
18106      arg=$1;
18107      case $arg in #(
18108      *"$as_nl"*)
18109	expr "X$arg" : "X\\(.*\\)$as_nl";
18110	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18111      esac;
18112      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18113    '
18114    export as_echo_n_body
18115    as_echo_n='sh -c $as_echo_n_body as_echo'
18116  fi
18117  export as_echo_body
18118  as_echo='sh -c $as_echo_body as_echo'
18119fi
18120
18121# The user is always right.
18122if test "${PATH_SEPARATOR+set}" != set; then
18123  PATH_SEPARATOR=:
18124  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18125    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18126      PATH_SEPARATOR=';'
18127  }
18128fi
18129
18130
18131# IFS
18132# We need space, tab and new line, in precisely that order.  Quoting is
18133# there to prevent editors from complaining about space-tab.
18134# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18135# splitting by setting IFS to empty value.)
18136IFS=" ""	$as_nl"
18137
18138# Find who we are.  Look in the path if we contain no directory separator.
18139as_myself=
18140case $0 in #((
18141  *[\\/]* ) as_myself=$0 ;;
18142  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18143for as_dir in $PATH
18144do
18145  IFS=$as_save_IFS
18146  test -z "$as_dir" && as_dir=.
18147    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18148  done
18149IFS=$as_save_IFS
18150
18151     ;;
18152esac
18153# We did not find ourselves, most probably we were run as `sh COMMAND'
18154# in which case we are not to be found in the path.
18155if test "x$as_myself" = x; then
18156  as_myself=$0
18157fi
18158if test ! -f "$as_myself"; then
18159  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18160  exit 1
18161fi
18162
18163# Unset variables that we do not need and which cause bugs (e.g. in
18164# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18165# suppresses any "Segmentation fault" message there.  '((' could
18166# trigger a bug in pdksh 5.2.14.
18167for as_var in BASH_ENV ENV MAIL MAILPATH
18168do eval test x\${$as_var+set} = xset \
18169  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18170done
18171PS1='$ '
18172PS2='> '
18173PS4='+ '
18174
18175# NLS nuisances.
18176LC_ALL=C
18177export LC_ALL
18178LANGUAGE=C
18179export LANGUAGE
18180
18181# CDPATH.
18182(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18183
18184
18185# as_fn_error STATUS ERROR [LINENO LOG_FD]
18186# ----------------------------------------
18187# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18188# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18189# script with STATUS, using 1 if that was 0.
18190as_fn_error ()
18191{
18192  as_status=$1; test $as_status -eq 0 && as_status=1
18193  if test "$4"; then
18194    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18195    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18196  fi
18197  $as_echo "$as_me: error: $2" >&2
18198  as_fn_exit $as_status
18199} # as_fn_error
18200
18201
18202# as_fn_set_status STATUS
18203# -----------------------
18204# Set $? to STATUS, without forking.
18205as_fn_set_status ()
18206{
18207  return $1
18208} # as_fn_set_status
18209
18210# as_fn_exit STATUS
18211# -----------------
18212# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18213as_fn_exit ()
18214{
18215  set +e
18216  as_fn_set_status $1
18217  exit $1
18218} # as_fn_exit
18219
18220# as_fn_unset VAR
18221# ---------------
18222# Portably unset VAR.
18223as_fn_unset ()
18224{
18225  { eval $1=; unset $1;}
18226}
18227as_unset=as_fn_unset
18228# as_fn_append VAR VALUE
18229# ----------------------
18230# Append the text in VALUE to the end of the definition contained in VAR. Take
18231# advantage of any shell optimizations that allow amortized linear growth over
18232# repeated appends, instead of the typical quadratic growth present in naive
18233# implementations.
18234if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18235  eval 'as_fn_append ()
18236  {
18237    eval $1+=\$2
18238  }'
18239else
18240  as_fn_append ()
18241  {
18242    eval $1=\$$1\$2
18243  }
18244fi # as_fn_append
18245
18246# as_fn_arith ARG...
18247# ------------------
18248# Perform arithmetic evaluation on the ARGs, and store the result in the
18249# global $as_val. Take advantage of shells that can avoid forks. The arguments
18250# must be portable across $(()) and expr.
18251if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18252  eval 'as_fn_arith ()
18253  {
18254    as_val=$(( $* ))
18255  }'
18256else
18257  as_fn_arith ()
18258  {
18259    as_val=`expr "$@" || test $? -eq 1`
18260  }
18261fi # as_fn_arith
18262
18263
18264if expr a : '\(a\)' >/dev/null 2>&1 &&
18265   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18266  as_expr=expr
18267else
18268  as_expr=false
18269fi
18270
18271if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18272  as_basename=basename
18273else
18274  as_basename=false
18275fi
18276
18277if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18278  as_dirname=dirname
18279else
18280  as_dirname=false
18281fi
18282
18283as_me=`$as_basename -- "$0" ||
18284$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18285	 X"$0" : 'X\(//\)$' \| \
18286	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18287$as_echo X/"$0" |
18288    sed '/^.*\/\([^/][^/]*\)\/*$/{
18289	    s//\1/
18290	    q
18291	  }
18292	  /^X\/\(\/\/\)$/{
18293	    s//\1/
18294	    q
18295	  }
18296	  /^X\/\(\/\).*/{
18297	    s//\1/
18298	    q
18299	  }
18300	  s/.*/./; q'`
18301
18302# Avoid depending upon Character Ranges.
18303as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18304as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18305as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18306as_cr_digits='0123456789'
18307as_cr_alnum=$as_cr_Letters$as_cr_digits
18308
18309ECHO_C= ECHO_N= ECHO_T=
18310case `echo -n x` in #(((((
18311-n*)
18312  case `echo 'xy\c'` in
18313  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18314  xy)  ECHO_C='\c';;
18315  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18316       ECHO_T='	';;
18317  esac;;
18318*)
18319  ECHO_N='-n';;
18320esac
18321
18322rm -f conf$$ conf$$.exe conf$$.file
18323if test -d conf$$.dir; then
18324  rm -f conf$$.dir/conf$$.file
18325else
18326  rm -f conf$$.dir
18327  mkdir conf$$.dir 2>/dev/null
18328fi
18329if (echo >conf$$.file) 2>/dev/null; then
18330  if ln -s conf$$.file conf$$ 2>/dev/null; then
18331    as_ln_s='ln -s'
18332    # ... but there are two gotchas:
18333    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18334    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18335    # In both cases, we have to default to `cp -p'.
18336    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18337      as_ln_s='cp -p'
18338  elif ln conf$$.file conf$$ 2>/dev/null; then
18339    as_ln_s=ln
18340  else
18341    as_ln_s='cp -p'
18342  fi
18343else
18344  as_ln_s='cp -p'
18345fi
18346rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18347rmdir conf$$.dir 2>/dev/null
18348
18349
18350# as_fn_mkdir_p
18351# -------------
18352# Create "$as_dir" as a directory, including parents if necessary.
18353as_fn_mkdir_p ()
18354{
18355
18356  case $as_dir in #(
18357  -*) as_dir=./$as_dir;;
18358  esac
18359  test -d "$as_dir" || eval $as_mkdir_p || {
18360    as_dirs=
18361    while :; do
18362      case $as_dir in #(
18363      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18364      *) as_qdir=$as_dir;;
18365      esac
18366      as_dirs="'$as_qdir' $as_dirs"
18367      as_dir=`$as_dirname -- "$as_dir" ||
18368$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18369	 X"$as_dir" : 'X\(//\)[^/]' \| \
18370	 X"$as_dir" : 'X\(//\)$' \| \
18371	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18372$as_echo X"$as_dir" |
18373    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18374	    s//\1/
18375	    q
18376	  }
18377	  /^X\(\/\/\)[^/].*/{
18378	    s//\1/
18379	    q
18380	  }
18381	  /^X\(\/\/\)$/{
18382	    s//\1/
18383	    q
18384	  }
18385	  /^X\(\/\).*/{
18386	    s//\1/
18387	    q
18388	  }
18389	  s/.*/./; q'`
18390      test -d "$as_dir" && break
18391    done
18392    test -z "$as_dirs" || eval "mkdir $as_dirs"
18393  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18394
18395
18396} # as_fn_mkdir_p
18397if mkdir -p . 2>/dev/null; then
18398  as_mkdir_p='mkdir -p "$as_dir"'
18399else
18400  test -d ./-p && rmdir ./-p
18401  as_mkdir_p=false
18402fi
18403
18404if test -x / >/dev/null 2>&1; then
18405  as_test_x='test -x'
18406else
18407  if ls -dL / >/dev/null 2>&1; then
18408    as_ls_L_option=L
18409  else
18410    as_ls_L_option=
18411  fi
18412  as_test_x='
18413    eval sh -c '\''
18414      if test -d "$1"; then
18415	test -d "$1/.";
18416      else
18417	case $1 in #(
18418	-*)set "./$1";;
18419	esac;
18420	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18421	???[sx]*):;;*)false;;esac;fi
18422    '\'' sh
18423  '
18424fi
18425as_executable_p=$as_test_x
18426
18427# Sed expression to map a string onto a valid CPP name.
18428as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18429
18430# Sed expression to map a string onto a valid variable name.
18431as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18432
18433
18434exec 6>&1
18435## ----------------------------------- ##
18436## Main body of $CONFIG_STATUS script. ##
18437## ----------------------------------- ##
18438_ASEOF
18439test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18440
18441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18442# Save the log message, to keep $0 and so on meaningful, and to
18443# report actual input values of CONFIG_FILES etc. instead of their
18444# values after options handling.
18445ac_log="
18446This file was extended by libfontenc $as_me 1.1.2, which was
18447generated by GNU Autoconf 2.68.  Invocation command line was
18448
18449  CONFIG_FILES    = $CONFIG_FILES
18450  CONFIG_HEADERS  = $CONFIG_HEADERS
18451  CONFIG_LINKS    = $CONFIG_LINKS
18452  CONFIG_COMMANDS = $CONFIG_COMMANDS
18453  $ $0 $@
18454
18455on `(hostname || uname -n) 2>/dev/null | sed 1q`
18456"
18457
18458_ACEOF
18459
18460case $ac_config_files in *"
18461"*) set x $ac_config_files; shift; ac_config_files=$*;;
18462esac
18463
18464case $ac_config_headers in *"
18465"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18466esac
18467
18468
18469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18470# Files that config.status was made for.
18471config_files="$ac_config_files"
18472config_headers="$ac_config_headers"
18473config_commands="$ac_config_commands"
18474
18475_ACEOF
18476
18477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18478ac_cs_usage="\
18479\`$as_me' instantiates files and other configuration actions
18480from templates according to the current configuration.  Unless the files
18481and actions are specified as TAGs, all are instantiated by default.
18482
18483Usage: $0 [OPTION]... [TAG]...
18484
18485  -h, --help       print this help, then exit
18486  -V, --version    print version number and configuration settings, then exit
18487      --config     print configuration, then exit
18488  -q, --quiet, --silent
18489                   do not print progress messages
18490  -d, --debug      don't remove temporary files
18491      --recheck    update $as_me by reconfiguring in the same conditions
18492      --file=FILE[:TEMPLATE]
18493                   instantiate the configuration file FILE
18494      --header=FILE[:TEMPLATE]
18495                   instantiate the configuration header FILE
18496
18497Configuration files:
18498$config_files
18499
18500Configuration headers:
18501$config_headers
18502
18503Configuration commands:
18504$config_commands
18505
18506Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18507
18508_ACEOF
18509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18510ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18511ac_cs_version="\\
18512libfontenc config.status 1.1.2
18513configured by $0, generated by GNU Autoconf 2.68,
18514  with options \\"\$ac_cs_config\\"
18515
18516Copyright (C) 2010 Free Software Foundation, Inc.
18517This config.status script is free software; the Free Software Foundation
18518gives unlimited permission to copy, distribute and modify it."
18519
18520ac_pwd='$ac_pwd'
18521srcdir='$srcdir'
18522INSTALL='$INSTALL'
18523MKDIR_P='$MKDIR_P'
18524AWK='$AWK'
18525test -n "\$AWK" || AWK=awk
18526_ACEOF
18527
18528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18529# The default lists apply if the user does not specify any file.
18530ac_need_defaults=:
18531while test $# != 0
18532do
18533  case $1 in
18534  --*=?*)
18535    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18536    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18537    ac_shift=:
18538    ;;
18539  --*=)
18540    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18541    ac_optarg=
18542    ac_shift=:
18543    ;;
18544  *)
18545    ac_option=$1
18546    ac_optarg=$2
18547    ac_shift=shift
18548    ;;
18549  esac
18550
18551  case $ac_option in
18552  # Handling of the options.
18553  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18554    ac_cs_recheck=: ;;
18555  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18556    $as_echo "$ac_cs_version"; exit ;;
18557  --config | --confi | --conf | --con | --co | --c )
18558    $as_echo "$ac_cs_config"; exit ;;
18559  --debug | --debu | --deb | --de | --d | -d )
18560    debug=: ;;
18561  --file | --fil | --fi | --f )
18562    $ac_shift
18563    case $ac_optarg in
18564    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18565    '') as_fn_error $? "missing file argument" ;;
18566    esac
18567    as_fn_append CONFIG_FILES " '$ac_optarg'"
18568    ac_need_defaults=false;;
18569  --header | --heade | --head | --hea )
18570    $ac_shift
18571    case $ac_optarg in
18572    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18573    esac
18574    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18575    ac_need_defaults=false;;
18576  --he | --h)
18577    # Conflict between --help and --header
18578    as_fn_error $? "ambiguous option: \`$1'
18579Try \`$0 --help' for more information.";;
18580  --help | --hel | -h )
18581    $as_echo "$ac_cs_usage"; exit ;;
18582  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18583  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18584    ac_cs_silent=: ;;
18585
18586  # This is an error.
18587  -*) as_fn_error $? "unrecognized option: \`$1'
18588Try \`$0 --help' for more information." ;;
18589
18590  *) as_fn_append ac_config_targets " $1"
18591     ac_need_defaults=false ;;
18592
18593  esac
18594  shift
18595done
18596
18597ac_configure_extra_args=
18598
18599if $ac_cs_silent; then
18600  exec 6>/dev/null
18601  ac_configure_extra_args="$ac_configure_extra_args --silent"
18602fi
18603
18604_ACEOF
18605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18606if \$ac_cs_recheck; then
18607  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18608  shift
18609  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18610  CONFIG_SHELL='$SHELL'
18611  export CONFIG_SHELL
18612  exec "\$@"
18613fi
18614
18615_ACEOF
18616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18617exec 5>>config.log
18618{
18619  echo
18620  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18621## Running $as_me. ##
18622_ASBOX
18623  $as_echo "$ac_log"
18624} >&5
18625
18626_ACEOF
18627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18628#
18629# INIT-COMMANDS
18630#
18631AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18632
18633
18634# The HP-UX ksh and POSIX shell print the target directory to stdout
18635# if CDPATH is set.
18636(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18637
18638sed_quote_subst='$sed_quote_subst'
18639double_quote_subst='$double_quote_subst'
18640delay_variable_subst='$delay_variable_subst'
18641macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18642macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18643enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18644enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18645pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18646enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18647SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18648ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18649PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18650host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18651host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18652host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18653build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18654build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18655build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18656SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18657Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18658GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18659EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18660FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18661LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18662NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18663LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18664max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18665ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18666exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18667lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18668lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18669lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18670lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18671lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18672reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18673reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18674OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18675deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18676file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18677file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18678want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18679DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18680sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18681AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18682AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18683archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18684STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18685RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18686old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18687old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18688old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18689lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18690CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18691CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18692compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18693GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18694lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18695lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18696lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18697lt_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"`'
18698nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18699lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18700objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18701MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18702lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18703lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18704lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18705lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18706lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18707need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18708MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18709DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18710NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18711LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18712OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18713OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18714libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18715shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18716extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18717archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18718enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18719export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18720whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18721compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18722old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18723old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18724archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18725archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18726module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18727module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18728with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18729allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18730no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18731hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18732hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18733hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18734hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18735hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18736hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18737hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18738inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18739link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18740always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18741export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18742exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18743include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18744prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18745postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18746file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18747variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18748need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18749need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18750version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18751runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18752shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18753shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18754libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18755library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18756soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18757install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18758postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18759postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18760finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18761finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18762hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18763sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18764sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18765hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18766enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18767enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18768enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18769old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18770striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18771
18772LTCC='$LTCC'
18773LTCFLAGS='$LTCFLAGS'
18774compiler='$compiler_DEFAULT'
18775
18776# A function that is used when there is no print builtin or printf.
18777func_fallback_echo ()
18778{
18779  eval 'cat <<_LTECHO_EOF
18780\$1
18781_LTECHO_EOF'
18782}
18783
18784# Quote evaled strings.
18785for var in SHELL \
18786ECHO \
18787PATH_SEPARATOR \
18788SED \
18789GREP \
18790EGREP \
18791FGREP \
18792LD \
18793NM \
18794LN_S \
18795lt_SP2NL \
18796lt_NL2SP \
18797reload_flag \
18798OBJDUMP \
18799deplibs_check_method \
18800file_magic_cmd \
18801file_magic_glob \
18802want_nocaseglob \
18803DLLTOOL \
18804sharedlib_from_linklib_cmd \
18805AR \
18806AR_FLAGS \
18807archiver_list_spec \
18808STRIP \
18809RANLIB \
18810CC \
18811CFLAGS \
18812compiler \
18813lt_cv_sys_global_symbol_pipe \
18814lt_cv_sys_global_symbol_to_cdecl \
18815lt_cv_sys_global_symbol_to_c_name_address \
18816lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18817nm_file_list_spec \
18818lt_prog_compiler_no_builtin_flag \
18819lt_prog_compiler_pic \
18820lt_prog_compiler_wl \
18821lt_prog_compiler_static \
18822lt_cv_prog_compiler_c_o \
18823need_locks \
18824MANIFEST_TOOL \
18825DSYMUTIL \
18826NMEDIT \
18827LIPO \
18828OTOOL \
18829OTOOL64 \
18830shrext_cmds \
18831export_dynamic_flag_spec \
18832whole_archive_flag_spec \
18833compiler_needs_object \
18834with_gnu_ld \
18835allow_undefined_flag \
18836no_undefined_flag \
18837hardcode_libdir_flag_spec \
18838hardcode_libdir_separator \
18839exclude_expsyms \
18840include_expsyms \
18841file_list_spec \
18842variables_saved_for_relink \
18843libname_spec \
18844library_names_spec \
18845soname_spec \
18846install_override_mode \
18847finish_eval \
18848old_striplib \
18849striplib; do
18850    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18851    *[\\\\\\\`\\"\\\$]*)
18852      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18853      ;;
18854    *)
18855      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18856      ;;
18857    esac
18858done
18859
18860# Double-quote double-evaled strings.
18861for var in reload_cmds \
18862old_postinstall_cmds \
18863old_postuninstall_cmds \
18864old_archive_cmds \
18865extract_expsyms_cmds \
18866old_archive_from_new_cmds \
18867old_archive_from_expsyms_cmds \
18868archive_cmds \
18869archive_expsym_cmds \
18870module_cmds \
18871module_expsym_cmds \
18872export_symbols_cmds \
18873prelink_cmds \
18874postlink_cmds \
18875postinstall_cmds \
18876postuninstall_cmds \
18877finish_cmds \
18878sys_lib_search_path_spec \
18879sys_lib_dlsearch_path_spec; do
18880    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18881    *[\\\\\\\`\\"\\\$]*)
18882      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18883      ;;
18884    *)
18885      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18886      ;;
18887    esac
18888done
18889
18890ac_aux_dir='$ac_aux_dir'
18891xsi_shell='$xsi_shell'
18892lt_shell_append='$lt_shell_append'
18893
18894# See if we are running on zsh, and set the options which allow our
18895# commands through without removal of \ escapes INIT.
18896if test -n "\${ZSH_VERSION+set}" ; then
18897   setopt NO_GLOB_SUBST
18898fi
18899
18900
18901    PACKAGE='$PACKAGE'
18902    VERSION='$VERSION'
18903    TIMESTAMP='$TIMESTAMP'
18904    RM='$RM'
18905    ofile='$ofile'
18906
18907
18908
18909
18910_ACEOF
18911
18912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18913
18914# Handling of arguments.
18915for ac_config_target in $ac_config_targets
18916do
18917  case $ac_config_target in
18918    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18919    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18920    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18921    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18922    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18923    "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;;
18924
18925  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18926  esac
18927done
18928
18929
18930# If the user did not use the arguments to specify the items to instantiate,
18931# then the envvar interface is used.  Set only those that are not.
18932# We use the long form for the default assignment because of an extremely
18933# bizarre bug on SunOS 4.1.3.
18934if $ac_need_defaults; then
18935  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18936  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18937  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18938fi
18939
18940# Have a temporary directory for convenience.  Make it in the build tree
18941# simply because there is no reason against having it here, and in addition,
18942# creating and moving files from /tmp can sometimes cause problems.
18943# Hook for its removal unless debugging.
18944# Note that there is a small window in which the directory will not be cleaned:
18945# after its creation but before its name has been assigned to `$tmp'.
18946$debug ||
18947{
18948  tmp= ac_tmp=
18949  trap 'exit_status=$?
18950  : "${ac_tmp:=$tmp}"
18951  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18952' 0
18953  trap 'as_fn_exit 1' 1 2 13 15
18954}
18955# Create a (secure) tmp directory for tmp files.
18956
18957{
18958  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18959  test -d "$tmp"
18960}  ||
18961{
18962  tmp=./conf$$-$RANDOM
18963  (umask 077 && mkdir "$tmp")
18964} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18965ac_tmp=$tmp
18966
18967# Set up the scripts for CONFIG_FILES section.
18968# No need to generate them if there are no CONFIG_FILES.
18969# This happens for instance with `./config.status config.h'.
18970if test -n "$CONFIG_FILES"; then
18971
18972
18973ac_cr=`echo X | tr X '\015'`
18974# On cygwin, bash can eat \r inside `` if the user requested igncr.
18975# But we know of no other shell where ac_cr would be empty at this
18976# point, so we can use a bashism as a fallback.
18977if test "x$ac_cr" = x; then
18978  eval ac_cr=\$\'\\r\'
18979fi
18980ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18981if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18982  ac_cs_awk_cr='\\r'
18983else
18984  ac_cs_awk_cr=$ac_cr
18985fi
18986
18987echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18988_ACEOF
18989
18990
18991{
18992  echo "cat >conf$$subs.awk <<_ACEOF" &&
18993  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18994  echo "_ACEOF"
18995} >conf$$subs.sh ||
18996  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18997ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18998ac_delim='%!_!# '
18999for ac_last_try in false false false false false :; do
19000  . ./conf$$subs.sh ||
19001    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19002
19003  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19004  if test $ac_delim_n = $ac_delim_num; then
19005    break
19006  elif $ac_last_try; then
19007    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19008  else
19009    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19010  fi
19011done
19012rm -f conf$$subs.sh
19013
19014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19015cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19016_ACEOF
19017sed -n '
19018h
19019s/^/S["/; s/!.*/"]=/
19020p
19021g
19022s/^[^!]*!//
19023:repl
19024t repl
19025s/'"$ac_delim"'$//
19026t delim
19027:nl
19028h
19029s/\(.\{148\}\)..*/\1/
19030t more1
19031s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19032p
19033n
19034b repl
19035:more1
19036s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19037p
19038g
19039s/.\{148\}//
19040t nl
19041:delim
19042h
19043s/\(.\{148\}\)..*/\1/
19044t more2
19045s/["\\]/\\&/g; s/^/"/; s/$/"/
19046p
19047b
19048:more2
19049s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19050p
19051g
19052s/.\{148\}//
19053t delim
19054' <conf$$subs.awk | sed '
19055/^[^""]/{
19056  N
19057  s/\n//
19058}
19059' >>$CONFIG_STATUS || ac_write_fail=1
19060rm -f conf$$subs.awk
19061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19062_ACAWK
19063cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19064  for (key in S) S_is_set[key] = 1
19065  FS = ""
19066
19067}
19068{
19069  line = $ 0
19070  nfields = split(line, field, "@")
19071  substed = 0
19072  len = length(field[1])
19073  for (i = 2; i < nfields; i++) {
19074    key = field[i]
19075    keylen = length(key)
19076    if (S_is_set[key]) {
19077      value = S[key]
19078      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19079      len += length(value) + length(field[++i])
19080      substed = 1
19081    } else
19082      len += 1 + keylen
19083  }
19084
19085  print line
19086}
19087
19088_ACAWK
19089_ACEOF
19090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19091if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19092  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19093else
19094  cat
19095fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19096  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19097_ACEOF
19098
19099# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19100# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19101# trailing colons and then remove the whole line if VPATH becomes empty
19102# (actually we leave an empty line to preserve line numbers).
19103if test "x$srcdir" = x.; then
19104  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19105h
19106s///
19107s/^/:/
19108s/[	 ]*$/:/
19109s/:\$(srcdir):/:/g
19110s/:\${srcdir}:/:/g
19111s/:@srcdir@:/:/g
19112s/^:*//
19113s/:*$//
19114x
19115s/\(=[	 ]*\).*/\1/
19116G
19117s/\n//
19118s/^[^=]*=[	 ]*$//
19119}'
19120fi
19121
19122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19123fi # test -n "$CONFIG_FILES"
19124
19125# Set up the scripts for CONFIG_HEADERS section.
19126# No need to generate them if there are no CONFIG_HEADERS.
19127# This happens for instance with `./config.status Makefile'.
19128if test -n "$CONFIG_HEADERS"; then
19129cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19130BEGIN {
19131_ACEOF
19132
19133# Transform confdefs.h into an awk script `defines.awk', embedded as
19134# here-document in config.status, that substitutes the proper values into
19135# config.h.in to produce config.h.
19136
19137# Create a delimiter string that does not exist in confdefs.h, to ease
19138# handling of long lines.
19139ac_delim='%!_!# '
19140for ac_last_try in false false :; do
19141  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19142  if test -z "$ac_tt"; then
19143    break
19144  elif $ac_last_try; then
19145    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19146  else
19147    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19148  fi
19149done
19150
19151# For the awk script, D is an array of macro values keyed by name,
19152# likewise P contains macro parameters if any.  Preserve backslash
19153# newline sequences.
19154
19155ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19156sed -n '
19157s/.\{148\}/&'"$ac_delim"'/g
19158t rset
19159:rset
19160s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19161t def
19162d
19163:def
19164s/\\$//
19165t bsnl
19166s/["\\]/\\&/g
19167s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19168D["\1"]=" \3"/p
19169s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19170d
19171:bsnl
19172s/["\\]/\\&/g
19173s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19174D["\1"]=" \3\\\\\\n"\\/p
19175t cont
19176s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19177t cont
19178d
19179:cont
19180n
19181s/.\{148\}/&'"$ac_delim"'/g
19182t clear
19183:clear
19184s/\\$//
19185t bsnlc
19186s/["\\]/\\&/g; s/^/"/; s/$/"/p
19187d
19188:bsnlc
19189s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19190b cont
19191' <confdefs.h | sed '
19192s/'"$ac_delim"'/"\\\
19193"/g' >>$CONFIG_STATUS || ac_write_fail=1
19194
19195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19196  for (key in D) D_is_set[key] = 1
19197  FS = ""
19198}
19199/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19200  line = \$ 0
19201  split(line, arg, " ")
19202  if (arg[1] == "#") {
19203    defundef = arg[2]
19204    mac1 = arg[3]
19205  } else {
19206    defundef = substr(arg[1], 2)
19207    mac1 = arg[2]
19208  }
19209  split(mac1, mac2, "(") #)
19210  macro = mac2[1]
19211  prefix = substr(line, 1, index(line, defundef) - 1)
19212  if (D_is_set[macro]) {
19213    # Preserve the white space surrounding the "#".
19214    print prefix "define", macro P[macro] D[macro]
19215    next
19216  } else {
19217    # Replace #undef with comments.  This is necessary, for example,
19218    # in the case of _POSIX_SOURCE, which is predefined and required
19219    # on some systems where configure will not decide to define it.
19220    if (defundef == "undef") {
19221      print "/*", prefix defundef, macro, "*/"
19222      next
19223    }
19224  }
19225}
19226{ print }
19227_ACAWK
19228_ACEOF
19229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19230  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19231fi # test -n "$CONFIG_HEADERS"
19232
19233
19234eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19235shift
19236for ac_tag
19237do
19238  case $ac_tag in
19239  :[FHLC]) ac_mode=$ac_tag; continue;;
19240  esac
19241  case $ac_mode$ac_tag in
19242  :[FHL]*:*);;
19243  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19244  :[FH]-) ac_tag=-:-;;
19245  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19246  esac
19247  ac_save_IFS=$IFS
19248  IFS=:
19249  set x $ac_tag
19250  IFS=$ac_save_IFS
19251  shift
19252  ac_file=$1
19253  shift
19254
19255  case $ac_mode in
19256  :L) ac_source=$1;;
19257  :[FH])
19258    ac_file_inputs=
19259    for ac_f
19260    do
19261      case $ac_f in
19262      -) ac_f="$ac_tmp/stdin";;
19263      *) # Look for the file first in the build tree, then in the source tree
19264	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19265	 # because $ac_f cannot contain `:'.
19266	 test -f "$ac_f" ||
19267	   case $ac_f in
19268	   [\\/$]*) false;;
19269	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19270	   esac ||
19271	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19272      esac
19273      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19274      as_fn_append ac_file_inputs " '$ac_f'"
19275    done
19276
19277    # Let's still pretend it is `configure' which instantiates (i.e., don't
19278    # use $as_me), people would be surprised to read:
19279    #    /* config.h.  Generated by config.status.  */
19280    configure_input='Generated from '`
19281	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19282	`' by configure.'
19283    if test x"$ac_file" != x-; then
19284      configure_input="$ac_file.  $configure_input"
19285      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19286$as_echo "$as_me: creating $ac_file" >&6;}
19287    fi
19288    # Neutralize special characters interpreted by sed in replacement strings.
19289    case $configure_input in #(
19290    *\&* | *\|* | *\\* )
19291       ac_sed_conf_input=`$as_echo "$configure_input" |
19292       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19293    *) ac_sed_conf_input=$configure_input;;
19294    esac
19295
19296    case $ac_tag in
19297    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19298      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19299    esac
19300    ;;
19301  esac
19302
19303  ac_dir=`$as_dirname -- "$ac_file" ||
19304$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19305	 X"$ac_file" : 'X\(//\)[^/]' \| \
19306	 X"$ac_file" : 'X\(//\)$' \| \
19307	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19308$as_echo X"$ac_file" |
19309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19310	    s//\1/
19311	    q
19312	  }
19313	  /^X\(\/\/\)[^/].*/{
19314	    s//\1/
19315	    q
19316	  }
19317	  /^X\(\/\/\)$/{
19318	    s//\1/
19319	    q
19320	  }
19321	  /^X\(\/\).*/{
19322	    s//\1/
19323	    q
19324	  }
19325	  s/.*/./; q'`
19326  as_dir="$ac_dir"; as_fn_mkdir_p
19327  ac_builddir=.
19328
19329case "$ac_dir" in
19330.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19331*)
19332  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19333  # A ".." for each directory in $ac_dir_suffix.
19334  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19335  case $ac_top_builddir_sub in
19336  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19337  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19338  esac ;;
19339esac
19340ac_abs_top_builddir=$ac_pwd
19341ac_abs_builddir=$ac_pwd$ac_dir_suffix
19342# for backward compatibility:
19343ac_top_builddir=$ac_top_build_prefix
19344
19345case $srcdir in
19346  .)  # We are building in place.
19347    ac_srcdir=.
19348    ac_top_srcdir=$ac_top_builddir_sub
19349    ac_abs_top_srcdir=$ac_pwd ;;
19350  [\\/]* | ?:[\\/]* )  # Absolute name.
19351    ac_srcdir=$srcdir$ac_dir_suffix;
19352    ac_top_srcdir=$srcdir
19353    ac_abs_top_srcdir=$srcdir ;;
19354  *) # Relative name.
19355    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19356    ac_top_srcdir=$ac_top_build_prefix$srcdir
19357    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19358esac
19359ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19360
19361
19362  case $ac_mode in
19363  :F)
19364  #
19365  # CONFIG_FILE
19366  #
19367
19368  case $INSTALL in
19369  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19370  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19371  esac
19372  ac_MKDIR_P=$MKDIR_P
19373  case $MKDIR_P in
19374  [\\/$]* | ?:[\\/]* ) ;;
19375  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19376  esac
19377_ACEOF
19378
19379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19380# If the template does not know about datarootdir, expand it.
19381# FIXME: This hack should be removed a few years after 2.60.
19382ac_datarootdir_hack=; ac_datarootdir_seen=
19383ac_sed_dataroot='
19384/datarootdir/ {
19385  p
19386  q
19387}
19388/@datadir@/p
19389/@docdir@/p
19390/@infodir@/p
19391/@localedir@/p
19392/@mandir@/p'
19393case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19394*datarootdir*) ac_datarootdir_seen=yes;;
19395*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19396  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19397$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19398_ACEOF
19399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19400  ac_datarootdir_hack='
19401  s&@datadir@&$datadir&g
19402  s&@docdir@&$docdir&g
19403  s&@infodir@&$infodir&g
19404  s&@localedir@&$localedir&g
19405  s&@mandir@&$mandir&g
19406  s&\\\${datarootdir}&$datarootdir&g' ;;
19407esac
19408_ACEOF
19409
19410# Neutralize VPATH when `$srcdir' = `.'.
19411# Shell code in configure.ac might set extrasub.
19412# FIXME: do we really want to maintain this feature?
19413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19414ac_sed_extra="$ac_vpsub
19415$extrasub
19416_ACEOF
19417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19418:t
19419/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19420s|@configure_input@|$ac_sed_conf_input|;t t
19421s&@top_builddir@&$ac_top_builddir_sub&;t t
19422s&@top_build_prefix@&$ac_top_build_prefix&;t t
19423s&@srcdir@&$ac_srcdir&;t t
19424s&@abs_srcdir@&$ac_abs_srcdir&;t t
19425s&@top_srcdir@&$ac_top_srcdir&;t t
19426s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19427s&@builddir@&$ac_builddir&;t t
19428s&@abs_builddir@&$ac_abs_builddir&;t t
19429s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19430s&@INSTALL@&$ac_INSTALL&;t t
19431s&@MKDIR_P@&$ac_MKDIR_P&;t t
19432$ac_datarootdir_hack
19433"
19434eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19435  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19436
19437test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19438  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19439  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19440      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19441  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19442which seems to be undefined.  Please make sure it is defined" >&5
19443$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19444which seems to be undefined.  Please make sure it is defined" >&2;}
19445
19446  rm -f "$ac_tmp/stdin"
19447  case $ac_file in
19448  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19449  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19450  esac \
19451  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19452 ;;
19453  :H)
19454  #
19455  # CONFIG_HEADER
19456  #
19457  if test x"$ac_file" != x-; then
19458    {
19459      $as_echo "/* $configure_input  */" \
19460      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19461    } >"$ac_tmp/config.h" \
19462      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19463    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19464      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19465$as_echo "$as_me: $ac_file is unchanged" >&6;}
19466    else
19467      rm -f "$ac_file"
19468      mv "$ac_tmp/config.h" "$ac_file" \
19469	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19470    fi
19471  else
19472    $as_echo "/* $configure_input  */" \
19473      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19474      || as_fn_error $? "could not create -" "$LINENO" 5
19475  fi
19476# Compute "$ac_file"'s index in $config_headers.
19477_am_arg="$ac_file"
19478_am_stamp_count=1
19479for _am_header in $config_headers :; do
19480  case $_am_header in
19481    $_am_arg | $_am_arg:* )
19482      break ;;
19483    * )
19484      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19485  esac
19486done
19487echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19488$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19489	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19490	 X"$_am_arg" : 'X\(//\)$' \| \
19491	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19492$as_echo X"$_am_arg" |
19493    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19494	    s//\1/
19495	    q
19496	  }
19497	  /^X\(\/\/\)[^/].*/{
19498	    s//\1/
19499	    q
19500	  }
19501	  /^X\(\/\/\)$/{
19502	    s//\1/
19503	    q
19504	  }
19505	  /^X\(\/\).*/{
19506	    s//\1/
19507	    q
19508	  }
19509	  s/.*/./; q'`/stamp-h$_am_stamp_count
19510 ;;
19511
19512  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19513$as_echo "$as_me: executing $ac_file commands" >&6;}
19514 ;;
19515  esac
19516
19517
19518  case $ac_file$ac_mode in
19519    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19520  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19521  # are listed without --file.  Let's play safe and only enable the eval
19522  # if we detect the quoting.
19523  case $CONFIG_FILES in
19524  *\'*) eval set x "$CONFIG_FILES" ;;
19525  *)   set x $CONFIG_FILES ;;
19526  esac
19527  shift
19528  for mf
19529  do
19530    # Strip MF so we end up with the name of the file.
19531    mf=`echo "$mf" | sed -e 's/:.*$//'`
19532    # Check whether this is an Automake generated Makefile or not.
19533    # We used to match only the files named `Makefile.in', but
19534    # some people rename them; so instead we look at the file content.
19535    # Grep'ing the first line is not enough: some people post-process
19536    # each Makefile.in and add a new line on top of each file to say so.
19537    # Grep'ing the whole file is not good either: AIX grep has a line
19538    # limit of 2048, but all sed's we know have understand at least 4000.
19539    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19540      dirpart=`$as_dirname -- "$mf" ||
19541$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19542	 X"$mf" : 'X\(//\)[^/]' \| \
19543	 X"$mf" : 'X\(//\)$' \| \
19544	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19545$as_echo X"$mf" |
19546    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19547	    s//\1/
19548	    q
19549	  }
19550	  /^X\(\/\/\)[^/].*/{
19551	    s//\1/
19552	    q
19553	  }
19554	  /^X\(\/\/\)$/{
19555	    s//\1/
19556	    q
19557	  }
19558	  /^X\(\/\).*/{
19559	    s//\1/
19560	    q
19561	  }
19562	  s/.*/./; q'`
19563    else
19564      continue
19565    fi
19566    # Extract the definition of DEPDIR, am__include, and am__quote
19567    # from the Makefile without running `make'.
19568    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19569    test -z "$DEPDIR" && continue
19570    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19571    test -z "am__include" && continue
19572    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19573    # When using ansi2knr, U may be empty or an underscore; expand it
19574    U=`sed -n 's/^U = //p' < "$mf"`
19575    # Find all dependency output files, they are included files with
19576    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19577    # simplest approach to changing $(DEPDIR) to its actual value in the
19578    # expansion.
19579    for file in `sed -n "
19580      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19581	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19582      # Make sure the directory exists.
19583      test -f "$dirpart/$file" && continue
19584      fdir=`$as_dirname -- "$file" ||
19585$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19586	 X"$file" : 'X\(//\)[^/]' \| \
19587	 X"$file" : 'X\(//\)$' \| \
19588	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19589$as_echo X"$file" |
19590    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19591	    s//\1/
19592	    q
19593	  }
19594	  /^X\(\/\/\)[^/].*/{
19595	    s//\1/
19596	    q
19597	  }
19598	  /^X\(\/\/\)$/{
19599	    s//\1/
19600	    q
19601	  }
19602	  /^X\(\/\).*/{
19603	    s//\1/
19604	    q
19605	  }
19606	  s/.*/./; q'`
19607      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19608      # echo "creating $dirpart/$file"
19609      echo '# dummy' > "$dirpart/$file"
19610    done
19611  done
19612}
19613 ;;
19614    "libtool":C)
19615
19616    # See if we are running on zsh, and set the options which allow our
19617    # commands through without removal of \ escapes.
19618    if test -n "${ZSH_VERSION+set}" ; then
19619      setopt NO_GLOB_SUBST
19620    fi
19621
19622    cfgfile="${ofile}T"
19623    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19624    $RM "$cfgfile"
19625
19626    cat <<_LT_EOF >> "$cfgfile"
19627#! $SHELL
19628
19629# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19630# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19631# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19632# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19633#
19634#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19635#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19636#                 Foundation, Inc.
19637#   Written by Gordon Matzigkeit, 1996
19638#
19639#   This file is part of GNU Libtool.
19640#
19641# GNU Libtool is free software; you can redistribute it and/or
19642# modify it under the terms of the GNU General Public License as
19643# published by the Free Software Foundation; either version 2 of
19644# the License, or (at your option) any later version.
19645#
19646# As a special exception to the GNU General Public License,
19647# if you distribute this file as part of a program or library that
19648# is built using GNU Libtool, you may include this file under the
19649# same distribution terms that you use for the rest of that program.
19650#
19651# GNU Libtool is distributed in the hope that it will be useful,
19652# but WITHOUT ANY WARRANTY; without even the implied warranty of
19653# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19654# GNU General Public License for more details.
19655#
19656# You should have received a copy of the GNU General Public License
19657# along with GNU Libtool; see the file COPYING.  If not, a copy
19658# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19659# obtained by writing to the Free Software Foundation, Inc.,
19660# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19661
19662
19663# The names of the tagged configurations supported by this script.
19664available_tags=""
19665
19666# ### BEGIN LIBTOOL CONFIG
19667
19668# Which release of libtool.m4 was used?
19669macro_version=$macro_version
19670macro_revision=$macro_revision
19671
19672# Whether or not to build shared libraries.
19673build_libtool_libs=$enable_shared
19674
19675# Whether or not to build static libraries.
19676build_old_libs=$enable_static
19677
19678# What type of objects to build.
19679pic_mode=$pic_mode
19680
19681# Whether or not to optimize for fast installation.
19682fast_install=$enable_fast_install
19683
19684# Shell to use when invoking shell scripts.
19685SHELL=$lt_SHELL
19686
19687# An echo program that protects backslashes.
19688ECHO=$lt_ECHO
19689
19690# The PATH separator for the build system.
19691PATH_SEPARATOR=$lt_PATH_SEPARATOR
19692
19693# The host system.
19694host_alias=$host_alias
19695host=$host
19696host_os=$host_os
19697
19698# The build system.
19699build_alias=$build_alias
19700build=$build
19701build_os=$build_os
19702
19703# A sed program that does not truncate output.
19704SED=$lt_SED
19705
19706# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19707Xsed="\$SED -e 1s/^X//"
19708
19709# A grep program that handles long lines.
19710GREP=$lt_GREP
19711
19712# An ERE matcher.
19713EGREP=$lt_EGREP
19714
19715# A literal string matcher.
19716FGREP=$lt_FGREP
19717
19718# A BSD- or MS-compatible name lister.
19719NM=$lt_NM
19720
19721# Whether we need soft or hard links.
19722LN_S=$lt_LN_S
19723
19724# What is the maximum length of a command?
19725max_cmd_len=$max_cmd_len
19726
19727# Object file suffix (normally "o").
19728objext=$ac_objext
19729
19730# Executable file suffix (normally "").
19731exeext=$exeext
19732
19733# whether the shell understands "unset".
19734lt_unset=$lt_unset
19735
19736# turn spaces into newlines.
19737SP2NL=$lt_lt_SP2NL
19738
19739# turn newlines into spaces.
19740NL2SP=$lt_lt_NL2SP
19741
19742# convert \$build file names to \$host format.
19743to_host_file_cmd=$lt_cv_to_host_file_cmd
19744
19745# convert \$build files to toolchain format.
19746to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19747
19748# An object symbol dumper.
19749OBJDUMP=$lt_OBJDUMP
19750
19751# Method to check whether dependent libraries are shared objects.
19752deplibs_check_method=$lt_deplibs_check_method
19753
19754# Command to use when deplibs_check_method = "file_magic".
19755file_magic_cmd=$lt_file_magic_cmd
19756
19757# How to find potential files when deplibs_check_method = "file_magic".
19758file_magic_glob=$lt_file_magic_glob
19759
19760# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19761want_nocaseglob=$lt_want_nocaseglob
19762
19763# DLL creation program.
19764DLLTOOL=$lt_DLLTOOL
19765
19766# Command to associate shared and link libraries.
19767sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19768
19769# The archiver.
19770AR=$lt_AR
19771
19772# Flags to create an archive.
19773AR_FLAGS=$lt_AR_FLAGS
19774
19775# How to feed a file listing to the archiver.
19776archiver_list_spec=$lt_archiver_list_spec
19777
19778# A symbol stripping program.
19779STRIP=$lt_STRIP
19780
19781# Commands used to install an old-style archive.
19782RANLIB=$lt_RANLIB
19783old_postinstall_cmds=$lt_old_postinstall_cmds
19784old_postuninstall_cmds=$lt_old_postuninstall_cmds
19785
19786# Whether to use a lock for old archive extraction.
19787lock_old_archive_extraction=$lock_old_archive_extraction
19788
19789# A C compiler.
19790LTCC=$lt_CC
19791
19792# LTCC compiler flags.
19793LTCFLAGS=$lt_CFLAGS
19794
19795# Take the output of nm and produce a listing of raw symbols and C names.
19796global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19797
19798# Transform the output of nm in a proper C declaration.
19799global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19800
19801# Transform the output of nm in a C name address pair.
19802global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19803
19804# Transform the output of nm in a C name address pair when lib prefix is needed.
19805global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19806
19807# Specify filename containing input files for \$NM.
19808nm_file_list_spec=$lt_nm_file_list_spec
19809
19810# The root where to search for dependent libraries,and in which our libraries should be installed.
19811lt_sysroot=$lt_sysroot
19812
19813# The name of the directory that contains temporary libtool files.
19814objdir=$objdir
19815
19816# Used to examine libraries when file_magic_cmd begins with "file".
19817MAGIC_CMD=$MAGIC_CMD
19818
19819# Must we lock files when doing compilation?
19820need_locks=$lt_need_locks
19821
19822# Manifest tool.
19823MANIFEST_TOOL=$lt_MANIFEST_TOOL
19824
19825# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19826DSYMUTIL=$lt_DSYMUTIL
19827
19828# Tool to change global to local symbols on Mac OS X.
19829NMEDIT=$lt_NMEDIT
19830
19831# Tool to manipulate fat objects and archives on Mac OS X.
19832LIPO=$lt_LIPO
19833
19834# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19835OTOOL=$lt_OTOOL
19836
19837# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19838OTOOL64=$lt_OTOOL64
19839
19840# Old archive suffix (normally "a").
19841libext=$libext
19842
19843# Shared library suffix (normally ".so").
19844shrext_cmds=$lt_shrext_cmds
19845
19846# The commands to extract the exported symbol list from a shared archive.
19847extract_expsyms_cmds=$lt_extract_expsyms_cmds
19848
19849# Variables whose values should be saved in libtool wrapper scripts and
19850# restored at link time.
19851variables_saved_for_relink=$lt_variables_saved_for_relink
19852
19853# Do we need the "lib" prefix for modules?
19854need_lib_prefix=$need_lib_prefix
19855
19856# Do we need a version for libraries?
19857need_version=$need_version
19858
19859# Library versioning type.
19860version_type=$version_type
19861
19862# Shared library runtime path variable.
19863runpath_var=$runpath_var
19864
19865# Shared library path variable.
19866shlibpath_var=$shlibpath_var
19867
19868# Is shlibpath searched before the hard-coded library search path?
19869shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19870
19871# Format of library name prefix.
19872libname_spec=$lt_libname_spec
19873
19874# List of archive names.  First name is the real one, the rest are links.
19875# The last name is the one that the linker finds with -lNAME
19876library_names_spec=$lt_library_names_spec
19877
19878# The coded name of the library, if different from the real name.
19879soname_spec=$lt_soname_spec
19880
19881# Permission mode override for installation of shared libraries.
19882install_override_mode=$lt_install_override_mode
19883
19884# Command to use after installation of a shared archive.
19885postinstall_cmds=$lt_postinstall_cmds
19886
19887# Command to use after uninstallation of a shared archive.
19888postuninstall_cmds=$lt_postuninstall_cmds
19889
19890# Commands used to finish a libtool library installation in a directory.
19891finish_cmds=$lt_finish_cmds
19892
19893# As "finish_cmds", except a single script fragment to be evaled but
19894# not shown.
19895finish_eval=$lt_finish_eval
19896
19897# Whether we should hardcode library paths into libraries.
19898hardcode_into_libs=$hardcode_into_libs
19899
19900# Compile-time system search path for libraries.
19901sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19902
19903# Run-time system search path for libraries.
19904sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19905
19906# Whether dlopen is supported.
19907dlopen_support=$enable_dlopen
19908
19909# Whether dlopen of programs is supported.
19910dlopen_self=$enable_dlopen_self
19911
19912# Whether dlopen of statically linked programs is supported.
19913dlopen_self_static=$enable_dlopen_self_static
19914
19915# Commands to strip libraries.
19916old_striplib=$lt_old_striplib
19917striplib=$lt_striplib
19918
19919
19920# The linker used to build libraries.
19921LD=$lt_LD
19922
19923# How to create reloadable object files.
19924reload_flag=$lt_reload_flag
19925reload_cmds=$lt_reload_cmds
19926
19927# Commands used to build an old-style archive.
19928old_archive_cmds=$lt_old_archive_cmds
19929
19930# A language specific compiler.
19931CC=$lt_compiler
19932
19933# Is the compiler the GNU compiler?
19934with_gcc=$GCC
19935
19936# Compiler flag to turn off builtin functions.
19937no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19938
19939# Additional compiler flags for building library objects.
19940pic_flag=$lt_lt_prog_compiler_pic
19941
19942# How to pass a linker flag through the compiler.
19943wl=$lt_lt_prog_compiler_wl
19944
19945# Compiler flag to prevent dynamic linking.
19946link_static_flag=$lt_lt_prog_compiler_static
19947
19948# Does compiler simultaneously support -c and -o options?
19949compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19950
19951# Whether or not to add -lc for building shared libraries.
19952build_libtool_need_lc=$archive_cmds_need_lc
19953
19954# Whether or not to disallow shared libs when runtime libs are static.
19955allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19956
19957# Compiler flag to allow reflexive dlopens.
19958export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19959
19960# Compiler flag to generate shared objects directly from archives.
19961whole_archive_flag_spec=$lt_whole_archive_flag_spec
19962
19963# Whether the compiler copes with passing no objects directly.
19964compiler_needs_object=$lt_compiler_needs_object
19965
19966# Create an old-style archive from a shared archive.
19967old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19968
19969# Create a temporary old-style archive to link instead of a shared archive.
19970old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19971
19972# Commands used to build a shared archive.
19973archive_cmds=$lt_archive_cmds
19974archive_expsym_cmds=$lt_archive_expsym_cmds
19975
19976# Commands used to build a loadable module if different from building
19977# a shared archive.
19978module_cmds=$lt_module_cmds
19979module_expsym_cmds=$lt_module_expsym_cmds
19980
19981# Whether we are building with GNU ld or not.
19982with_gnu_ld=$lt_with_gnu_ld
19983
19984# Flag that allows shared libraries with undefined symbols to be built.
19985allow_undefined_flag=$lt_allow_undefined_flag
19986
19987# Flag that enforces no undefined symbols.
19988no_undefined_flag=$lt_no_undefined_flag
19989
19990# Flag to hardcode \$libdir into a binary during linking.
19991# This must work even if \$libdir does not exist
19992hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19993
19994# Whether we need a single "-rpath" flag with a separated argument.
19995hardcode_libdir_separator=$lt_hardcode_libdir_separator
19996
19997# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19998# DIR into the resulting binary.
19999hardcode_direct=$hardcode_direct
20000
20001# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20002# DIR into the resulting binary and the resulting library dependency is
20003# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20004# library is relocated.
20005hardcode_direct_absolute=$hardcode_direct_absolute
20006
20007# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20008# into the resulting binary.
20009hardcode_minus_L=$hardcode_minus_L
20010
20011# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20012# into the resulting binary.
20013hardcode_shlibpath_var=$hardcode_shlibpath_var
20014
20015# Set to "yes" if building a shared library automatically hardcodes DIR
20016# into the library and all subsequent libraries and executables linked
20017# against it.
20018hardcode_automatic=$hardcode_automatic
20019
20020# Set to yes if linker adds runtime paths of dependent libraries
20021# to runtime path list.
20022inherit_rpath=$inherit_rpath
20023
20024# Whether libtool must link a program against all its dependency libraries.
20025link_all_deplibs=$link_all_deplibs
20026
20027# Set to "yes" if exported symbols are required.
20028always_export_symbols=$always_export_symbols
20029
20030# The commands to list exported symbols.
20031export_symbols_cmds=$lt_export_symbols_cmds
20032
20033# Symbols that should not be listed in the preloaded symbols.
20034exclude_expsyms=$lt_exclude_expsyms
20035
20036# Symbols that must always be exported.
20037include_expsyms=$lt_include_expsyms
20038
20039# Commands necessary for linking programs (against libraries) with templates.
20040prelink_cmds=$lt_prelink_cmds
20041
20042# Commands necessary for finishing linking programs.
20043postlink_cmds=$lt_postlink_cmds
20044
20045# Specify filename containing input files.
20046file_list_spec=$lt_file_list_spec
20047
20048# How to hardcode a shared library path into an executable.
20049hardcode_action=$hardcode_action
20050
20051# ### END LIBTOOL CONFIG
20052
20053_LT_EOF
20054
20055  case $host_os in
20056  aix3*)
20057    cat <<\_LT_EOF >> "$cfgfile"
20058# AIX sometimes has problems with the GCC collect2 program.  For some
20059# reason, if we set the COLLECT_NAMES environment variable, the problems
20060# vanish in a puff of smoke.
20061if test "X${COLLECT_NAMES+set}" != Xset; then
20062  COLLECT_NAMES=
20063  export COLLECT_NAMES
20064fi
20065_LT_EOF
20066    ;;
20067  esac
20068
20069
20070ltmain="$ac_aux_dir/ltmain.sh"
20071
20072
20073  # We use sed instead of cat because bash on DJGPP gets confused if
20074  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20075  # text mode, it properly converts lines to CR/LF.  This bash problem
20076  # is reportedly fixed, but why not run on old versions too?
20077  sed '$q' "$ltmain" >> "$cfgfile" \
20078     || (rm -f "$cfgfile"; exit 1)
20079
20080  if test x"$xsi_shell" = xyes; then
20081  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20082func_dirname ()\
20083{\
20084\    case ${1} in\
20085\      */*) func_dirname_result="${1%/*}${2}" ;;\
20086\      *  ) func_dirname_result="${3}" ;;\
20087\    esac\
20088} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20089  && mv -f "$cfgfile.tmp" "$cfgfile" \
20090    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20091test 0 -eq $? || _lt_function_replace_fail=:
20092
20093
20094  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20095func_basename ()\
20096{\
20097\    func_basename_result="${1##*/}"\
20098} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20099  && mv -f "$cfgfile.tmp" "$cfgfile" \
20100    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20101test 0 -eq $? || _lt_function_replace_fail=:
20102
20103
20104  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20105func_dirname_and_basename ()\
20106{\
20107\    case ${1} in\
20108\      */*) func_dirname_result="${1%/*}${2}" ;;\
20109\      *  ) func_dirname_result="${3}" ;;\
20110\    esac\
20111\    func_basename_result="${1##*/}"\
20112} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20113  && mv -f "$cfgfile.tmp" "$cfgfile" \
20114    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20115test 0 -eq $? || _lt_function_replace_fail=:
20116
20117
20118  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20119func_stripname ()\
20120{\
20121\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20122\    # positional parameters, so assign one to ordinary parameter first.\
20123\    func_stripname_result=${3}\
20124\    func_stripname_result=${func_stripname_result#"${1}"}\
20125\    func_stripname_result=${func_stripname_result%"${2}"}\
20126} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20127  && mv -f "$cfgfile.tmp" "$cfgfile" \
20128    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20129test 0 -eq $? || _lt_function_replace_fail=:
20130
20131
20132  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20133func_split_long_opt ()\
20134{\
20135\    func_split_long_opt_name=${1%%=*}\
20136\    func_split_long_opt_arg=${1#*=}\
20137} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20138  && mv -f "$cfgfile.tmp" "$cfgfile" \
20139    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20140test 0 -eq $? || _lt_function_replace_fail=:
20141
20142
20143  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20144func_split_short_opt ()\
20145{\
20146\    func_split_short_opt_arg=${1#??}\
20147\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20148} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20149  && mv -f "$cfgfile.tmp" "$cfgfile" \
20150    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20151test 0 -eq $? || _lt_function_replace_fail=:
20152
20153
20154  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20155func_lo2o ()\
20156{\
20157\    case ${1} in\
20158\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20159\      *)    func_lo2o_result=${1} ;;\
20160\    esac\
20161} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20162  && mv -f "$cfgfile.tmp" "$cfgfile" \
20163    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20164test 0 -eq $? || _lt_function_replace_fail=:
20165
20166
20167  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20168func_xform ()\
20169{\
20170    func_xform_result=${1%.*}.lo\
20171} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20172  && mv -f "$cfgfile.tmp" "$cfgfile" \
20173    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20174test 0 -eq $? || _lt_function_replace_fail=:
20175
20176
20177  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20178func_arith ()\
20179{\
20180    func_arith_result=$(( $* ))\
20181} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20182  && mv -f "$cfgfile.tmp" "$cfgfile" \
20183    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20184test 0 -eq $? || _lt_function_replace_fail=:
20185
20186
20187  sed -e '/^func_len ()$/,/^} # func_len /c\
20188func_len ()\
20189{\
20190    func_len_result=${#1}\
20191} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20192  && mv -f "$cfgfile.tmp" "$cfgfile" \
20193    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20194test 0 -eq $? || _lt_function_replace_fail=:
20195
20196fi
20197
20198if test x"$lt_shell_append" = xyes; then
20199  sed -e '/^func_append ()$/,/^} # func_append /c\
20200func_append ()\
20201{\
20202    eval "${1}+=\\${2}"\
20203} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20204  && mv -f "$cfgfile.tmp" "$cfgfile" \
20205    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20206test 0 -eq $? || _lt_function_replace_fail=:
20207
20208
20209  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20210func_append_quoted ()\
20211{\
20212\    func_quote_for_eval "${2}"\
20213\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20214} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20215  && mv -f "$cfgfile.tmp" "$cfgfile" \
20216    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20217test 0 -eq $? || _lt_function_replace_fail=:
20218
20219
20220  # Save a `func_append' function call where possible by direct use of '+='
20221  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20222    && mv -f "$cfgfile.tmp" "$cfgfile" \
20223      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20224  test 0 -eq $? || _lt_function_replace_fail=:
20225else
20226  # Save a `func_append' function call even when '+=' is not available
20227  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20228    && mv -f "$cfgfile.tmp" "$cfgfile" \
20229      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20230  test 0 -eq $? || _lt_function_replace_fail=:
20231fi
20232
20233if test x"$_lt_function_replace_fail" = x":"; then
20234  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20235$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20236fi
20237
20238
20239   mv -f "$cfgfile" "$ofile" ||
20240    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20241  chmod +x "$ofile"
20242
20243 ;;
20244
20245  esac
20246done # for ac_tag
20247
20248
20249as_fn_exit 0
20250_ACEOF
20251ac_clean_files=$ac_clean_files_save
20252
20253test $ac_write_fail = 0 ||
20254  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20255
20256
20257# configure is writing to config.log, and then calls config.status.
20258# config.status does its own redirection, appending to config.log.
20259# Unfortunately, on DOS this fails, as config.log is still kept open
20260# by configure, so config.status won't be able to write to it; its
20261# output is simply discarded.  So we exec the FD to /dev/null,
20262# effectively closing config.log, so it can be properly (re)opened and
20263# appended to by config.status.  When coming back to configure, we
20264# need to make the FD available again.
20265if test "$no_create" != yes; then
20266  ac_cs_success=:
20267  ac_config_status_args=
20268  test "$silent" = yes &&
20269    ac_config_status_args="$ac_config_status_args --quiet"
20270  exec 5>/dev/null
20271  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20272  exec 5>>config.log
20273  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20274  # would make configure fail if this is the last instruction.
20275  $ac_cs_success || as_fn_exit 1
20276fi
20277if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20278  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20279$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20280fi
20281
20282